In a `BuiltinGoal`, how do I access the environmen...
# development
f
In a
BuiltinGoal
, how do I access the environment?
os.environ
is empty except for
PANTS_BIN_NAME
. Do I need to make an
EnvironmentRequest
to the engine?
h
That's what I would expect to be the case
w
it should be in the SessionValues as well.
f
yeah that’s what I ended up with via
CompleteEnvironment
w
EnvironmentRequest
is recommended if you’re consuming it from a
@rule
, but outside the engine it’s fine to look at the whole thing.
f
yeah this is outside the engine. https://github.com/pantsbuild/pants/pull/14756