diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-09-09 16:34:44 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-09-09 16:34:44 +0200 |
commit | c87840ae14eea84b5910cb0b188ec3fb32cc1466 (patch) | |
tree | fbd5a0707c47b3a3d2a96771c1509cedc7afcbad /src/libexpr/eval.hh | |
parent | 2fa7f2a56a5c2fe11c1a0daceee5cf0584b69be9 (diff) |
Don't allow arbitrary computations in flake attributes
E.g. you can write 'edition = 201909' but not 'edition = 201909 + 0'.
Fixes #3075.
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 5e976f196..468a826ca 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -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, |