-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Bazel 7 PATH issues #289505
Comments
I added a reproducer: https://github.com/malt3/bazel-path-issues-nix This is a simplified form of the rules_oci |
the I would almost be tempted to default I may have some more thoughts on this, but Id need to formulate them in my mind first 😄 [1]: previously, setting |
@Strum355 I wonder if |
Aspect uses shell wrappers that invoke tools like `dirname` and `uname`. When the default shell env is not inherited, this prevents tools to be found. See also: NixOS/nixpkgs#289505
Aspect uses shell wrappers that invoke tools like `dirname` and `uname`. When the default shell env is not inherited, this prevents tools to be found. See also: NixOS/nixpkgs#289505
Aspect uses shell wrappers that invoke tools like `dirname` and `uname`. When the default shell env is not inherited, this prevents tools to be found. See also: NixOS/nixpkgs#289505
Aspect uses shell wrappers that invoke tools like `dirname` and `uname`. When the default shell env is not inherited, this prevents tools from being found on systems without a working fallback $PATH (like NixOS). See also: NixOS/nixpkgs#289505
Aspect uses shell wrappers that invoke tools like `dirname` and `uname`. When the default shell env is not inherited, this prevents tools from being found on systems without a working fallback $PATH (like NixOS). See also: NixOS/nixpkgs#289505
Aspect uses shell wrappers that invoke tools like `dirname` and `uname`. When the default shell env is not inherited, this prevents tools from being found on systems without a working fallback $PATH (like NixOS). See also: NixOS/nixpkgs#289505
This issue is here to discuss issues with PATH when using bazel 7 as packaged in nix.
When packaging bazel_7, I removed the (
action_path
patch)[https://github.com/NixOS/nixpkgs/blob/1012b2a368b12c3c5751b06123214de202e28778/pkgs/development/tools/build-managers/bazel/bazel_6/actions_path.patch] from bazel_6, because it did not make sense to have it.But removing that patch has consequences. Some actions now run with no PATH at all. What I am unable to figure right now is how to fix that.
It would be nice to setup a MWE to test it on several machines.
AFAIU the issue arises when you run a binary process (that needs no PATH set to run) but that binary ends up running system commands (using
system()
or calling a bash script) which then fails to find it's dependencies.As mentioned in some places, we may want to tweak that path without having to recompile bazel.
See
#262152
#285544
https://github.com/sourcegraph/sourcegraph/pull/59359
and possibly some more I have forgotten.
/cc @malt3 @uri-canva @Strum355 @flurie @boltzmannrain @rickvanprim as you might be interested in this discussion.
The text was updated successfully, but these errors were encountered: