-
Notifications
You must be signed in to change notification settings - Fork 137
use absolute shebang for macos cc_wrapper #448
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
Conversation
Based on my read of https://bazel.build/external/module#compatibility_level it seems this issue would be fairly widespread and require users to use single_version_override in some fashion to avoid this issue. It'd be great if a fix could be made and released as |
The only Posix-guaranteed available path is The I would not be happy with using an absolute path to The original issue just seems to be that there is no path to If the scripts can be written to just use |
@hzeller I've switched to |
Perfect. If the scripts don't use bash-specific features, it might be worthwhile looking through the other scripts as well and convert as many as possible to pure |
I can do as part of a separate PR but for now this is the only one actually breaking things so would like to keep the focus on impacting issues. I agree it'd be a worthwhile to try to convert to |
poke @comius or any other rules_cc maintainer for a review 😅 |
@trybka does an additional review at Google need to be done? |
Closing in favor of #466 |
This change resolves the following issue which impacts
rules_rust
(bazelbuild/rules_rust#3535 (comment)):This change is related to d749150 where shebangs were updated but on Posix systems
/bin/sh
is expected to be consistently available soPATH
reliance can be avoided.