Commit 691d531
models: output: Make EnvironmentVariable a frozen model
EnvironmentVariable instances are never mutated after construction.
resolve_value() is a pure function returning a new string. Making
the model frozen enforces this invariant and enables hashing, which
allows using EnvironmentVariable in sets and as dict keys.
Reference: hermetoproject#1629 (comment)
Signed-off-by: Erik Skultety <eskultet@redhat.com>1 parent b5e84c8 commit 691d531
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments