-
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
chore: Ignore shellcheck error in copy-paste code #22530
Conversation
This piece of code is supposed to be copy-pasted literally, so it is better to already configure shellcheck ignore to help users who apply shellcheck to their scripts.
@@ -70,6 +70,7 @@ | |||
# # --- begin runfiles.bash initialization v3 --- | |||
# # Copy-pasted from the Bazel Bash runfiles library v3. | |||
# set -uo pipefail; set +e; f=bazel_tools/tools/bash/runfiles/runfiles.bash | |||
# # shellcheck disable=SC1090 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs suggest a different workaround, should we use that instead?
https://www.shellcheck.net/wiki/SC1090
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried that but couldn't figure it out how to get it work because the file is part of runfile so depending on how shellcheck is executed, it may not be able to locate it. Having # shellcheck source=/dev/null
is pretty much the same as ignoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@meteorcloudy Could you import this?
@bazel-io fork 7.3.0 |
This piece of code is supposed to be copy-pasted literally, so it is better to already configure shellcheck ignore to help users who apply shellcheck to their scripts. Closes bazelbuild#22530. PiperOrigin-RevId: 641178789 Change-Id: I4ea3629f57e66996fca5768cea73497cda29eb16
This piece of code is supposed to be copy-pasted literally, so it is better to already configure shellcheck ignore to help users who apply shellcheck to their scripts. Closes #22530. PiperOrigin-RevId: 641178789 Change-Id: I4ea3629f57e66996fca5768cea73497cda29eb16 Commit b75ad88 Co-authored-by: Honnix <honnix@users.noreply.github.com>
The changes in this PR have been included in Bazel 7.3.0 RC1. Please test out the release candidate and report any issues as soon as possible. |
This piece of code is supposed to be copy-pasted literally, so it is better to already configure shellcheck ignore to help users who apply shellcheck to their scripts.