Don't allow arbitrary computations in flake attributes

E.g. you can write 'edition = 201909' but not 'edition = 201909 + 0'.

Fixes #3075.
This commit is contained in:
Eelco Dolstra
2019-09-09 16:34:44 +02:00
parent 2fa7f2a56a
commit c87840ae14
3 changed files with 46 additions and 14 deletions
+1
View File
@@ -338,6 +338,7 @@ private:
/* Return a string representing the type of the value `v'. */
string showType(ValueType type);
string showType(const Value & v);
/* Decode a context string !<name>!<path> into a pair <path,