-
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
No way to unset path on Windows for all actions #9467
Comments
@buchgr asked me to ping you @meteorcloudy |
@ozio85 Thanks for reporting! Do you mean we should be able to set
Looks like it already works. |
No i mean that all actions are not affected by --action_env=PATH=""
from log.txt
|
That's what I meant, it did work in my build with 0.29.1. Can you provide a correct log? |
Sorry it took some time.. but i had no time to write a repro: Most of the actions are OK, but some are not, they get the default value listed in BazelRuleClassProvider.java: ç� |
I can repro this:
|
@ozio85 Thanks for providing the minimal repro case, I can reproduce this problem now. It seems this only happens with host configuration. We should fix this. |
Is this fixed by |
Yes, this is fixed with |
Description of the problem / feature request:
Currently it is not possible to unset the --action_env=PATH="" for all actions on Windows.
There is a difference between linux and windows in BazelRuleClassProvider.java, since on Windows you end up with (enabling strict_action_env):
env.put("PATH", pathOrDefault(os, null, shellExecutable));
But on Linux you simply leave the PATH empty:
env.put("PATH", null);
There is no way to use --action_env=PATH="" to unset the path for all actions (e.g. the internal Bazel Zipper tool gets the default path).
Feature requests: what underlying problem are you trying to solve with this feature?
If action_env=PATH is set, it should control the PATH
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Build any action that ends up with the default path.
What operating system are you running Bazel on?
Windows
What's the output of
bazel info release
?0.29.1
Have you found anything relevant by searching the web?
GitHub issues:
#7026
#7976
The text was updated successfully, but these errors were encountered: