Is this paragraph true? > To set environment v...
# development
h
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
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.