-
-
Notifications
You must be signed in to change notification settings - Fork 692
--action_env not respected? #2057
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
Comments
It appears that Bazel does not pass From the design doc, it seems like the intent was to make I think it's probably safe to switch rules_go actions to use this, given the limited scope. However, please do consider configuring your toolchain with |
Cool, sounds good with adding The envoy folks have their own compiler wrappers and stuff that appear to be non-standard (i.e. not CROSSTOOL), so it wasn't obvious to me how to modify their setup to affect dependencies' environments or linkopts. That might be something to improve over there, but nonetheless it would be helpful to add the action-env passthrough here. |
It looks like when From bazelbuild/bazel#5980, it doesn't seem like this is intended behavior. I'll leave this issue open, but that needs to be resolved first. |
Just a note that bazelbuild/bazel#5980 is now fixed, FWIW. |
Implementation based on the comments in bazel-contrib#3248, and tested locally with `VAR=foo bazel build -s --action_env=VAR //...` and inspecting the output. Fixes bazel-contrib#2057
I came across this issue while trying to figure out how to get
|
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to build the latest envoy, and it seems that some protoc calls do not have the correct environment.
What version of rules_go are you using?
0.17.4
What version of Bazel are you using?
0.25.1
Does this issue reproduce with the latest releases of all the above?
Other things break if I bump to 0.18.4.
What operating system and processor architecture are you using?
Linux x86_64
Any other potentially useful information about your toolchain?
CC/CXX/LD_LIBRARY_PATH are set to a non-system gcc 9.1.0. The system gcc is 4.8.x.
What did you do?
Effectively this:
What did you expect to see?
Successful build
What did you see instead?
I'm somewhat of a bazel novice so not 100% sure why the LD_LIBRARY_PATH is not being passed through to this go-protoc step via --action_env. The other envoy build steps appear to have LD_LIBRARY_PATH set correctly. I've seen some mention of a use_default_shell_env flag, maybe we need to set that somewhere?
The text was updated successfully, but these errors were encountered: