Chromium Code Reviews
Description[context] Split "env" values and prefixes.
Currently, "context.env" coalesces the string and prefix values for an
enviornment. This results in the environment flattening prefixes, and
recipes that pull the environment and tweak it having lots of duplicate
prefix values.
Now, we split the "env" property into two properties, "env", which
returns just the environment strings map, and "env_prefixes", which
returns prefix tuples. "env_prefixes" will only be applied when a setep
renders the enviornment to a string, meaning that prefixes will not
accumulate during flattening.
Along these lines, remove improper context handling from "python" module.
BUG=None
TEST=expectations
R=iannucci@chromium.org
Review-Url: https://codereview.chromium.org/2933473002
Committed: https://github.com/luci/recipes-py/commit/d732be8c982f015796f0e620b7b46cff161b137f
Patch Set 1 #
Total comments: 2
Patch Set 2 : comments, tests, better definition #
Total comments: 1
Patch Set 3 : plumb pathsep through so we don't assume OS #
Total comments: 16
Patch Set 4 : rebase #Patch Set 5 : comments #
Total comments: 14
Patch Set 6 : comments #Patch Set 7 : fix typo #
Depends on Patchset: Messages
Total messages: 24 (12 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||