-
-
Notifications
You must be signed in to change notification settings - Fork 15.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: patch runfiles.bash to include defaultShellPath in PATH #44079
Conversation
…ellPath in PATH closes NixOS#43955
Thanks, I will look over this later. |
@Profpatsch |
@Profpatsch do you have some time to get this merged? |
I wouldn’t add workarounds for potentially breaking stuff, especially if the original upstream issue has been fixed. |
@Profpatsch no I think @kalbasit's fix is the right way forward. rules_typescript was just one example of something that was broken, but others will hit the same problem on other rule sets without this patch. |
@GrahamcOfBorg build bazel |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: v Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: v Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: bazel Partial log (click to expand)
|
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: v Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: bazel Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: bazel Partial log (click to expand)
|
Motivation for this change
rules_typescript invokes a shell without passing the
use_default_shell_env=True
and this ends up not using the custom bash that we create for Bazel.This PR patches runfiles.bash to include the
defaultShellPath
that we create to the known PATH.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)closes #43955
cc @mboes @Profpatsch