-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--action_env=ENVVAR is not picked up #11290
Comments
One thing to check. Do you have a |
@alanfalloon : I have no such script. The above is reproducible as-is. |
Huh, the interesting thing is that the environment variables do get passed properly. Given:
we see that the value is passed correctly to the action:
So I'm guessing this is a problem in the Starlark object passed to the rules and not actually with environment variable propagation. |
Actually this sounds like #4912, which contains a diagnosis of this issue. |
Description of the problem
--action_env=ENVVAR
is not propagated to the rules, while--action_env=ENVVAR=foobar
is.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
In the first invocation, I expected
{"FOO": "bar"}
, taken from the invocation environment, as specified by https://docs.bazel.build/versions/2.1.0/command-line-reference.html#flag--action_env .What operating system are you running Bazel on?
What's the output of
bazel info release
?release 3.1.0
Have you found anything relevant by searching the web?
Lot of similar bugs, but not exactly this.
The text was updated successfully, but these errors were encountered: