-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Allow calling shell to pass environment variables to Actions environment #18586
Comments
You can forward environment variables individually via If all variables were made available to an action, caching would probably become impossible. Is that really what you want? Is it possible to enumerate the variables consumed by the tools you are using? |
@fmeum Thanks for your quick answer. The way it works right now is the following :
The problem right now, is that all those environment variables are accessible in the windows shell, and I cannot forward them all one by one to Bazel with Thanks |
Could you elaborate on why forwarding them one-by-one wouldn't work? If the |
I didn't made that very clear, my bad! Those variables are generated, including their names. There is no way to know which one will be produced in advanced, as this is based on a number of external factors. |
I see. So you have a script |
Exactly, the variables are generated at a custom configuration stage, before any compilation tool is called. Make sense, maybe an external tool would to the trick... Caching is indeed important for us. |
I think I'm gonna go with that. |
There is no way to do this as far as I know, mostly because features that would essentially prevent caching aren't really going to be considered. Glad to hear that there is a path forward for you though. |
Thanks for your reactivity, that's very appreciated. Closing the issue. |
Description of the feature request:
Currently, Actions environment are a little odd, as there is no options to forward all environment variables to the Action environment. Just
LD_LIBRARY_PATH
andPATH
are forwarded but there should be an options to forward them all.This would be very useful in the embedded world, and old test benches who's configurations can't be changed.
What underlying problem are you trying to solve with this feature?
Allow old compilers and tools to benefits from Bazel. But those are picky and require their environment variables.
Which operating system are you running Bazel on?
Windows
What is the output of
bazel info release
?release 6.2.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
#8578
https://groups.google.com/g/bazel-discuss/c/AZek-OR1t7A
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: