https://pantsbuild.org/ logo
#development
Title
# development
h

hundreds-father-404

07/29/2020, 12:51 AM
Is this paragraph true?
To set environment variables, use the parameter
env: Mapping[str, str]
. You generally should not read from
os.environ
because this reduces reproducibility. Instead, hardcode the value or use a [
Subsystem
option](doc:rules-api-subsystems).
w

witty-crayon-22786

07/29/2020, 1:00 AM
that’s correct. similar to the strategy on the PATH issue, we’ll likely want to reify that at some point.
but if you were to read from
os.environ
, we would not invalidate.
👍 1
i suppose that that is actually the same underlying issue, now that i think about it.