-
Notifications
You must be signed in to change notification settings - Fork 729
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
[ci] Source shellcheck from nix instead of installing via script #3811
Conversation
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.
FYI there's a shellcheck action that avoids the indirection via a script.
cp /tmp/shellcheck-"${VERSION}"/shellcheck "${SHELLCHECK}" | ||
fi | ||
fi | ||
|
||
# `find *` is the simplest way to ensure find does not include a | ||
# leading `.` in filenames it emits. A leading `.` will prevent the | ||
# use of `git apply` to fix reported shellcheck issues. This is | ||
# compatible with both macos and linux (unlike the use of -printf). | ||
# | ||
# shellcheck disable=SC2035 |
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.
It's shellcheck all the way down!
I'm aware, but an action doesn't solve the problem of local execution. Unless an action is performing something that makes no sense to perform outside of a github action runner, I always prefer a non-action solution that can be easily run locally. edit: And yes, I'm aware of https://github.com/nektos/act, but I think being able to run without that indirection is also preferable. |
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.
lgtm - will merge after the v1.13.0
release cycle finishes.
Why this should be merged
We're already using nix and it's simpler not to have to maintain a multi-platform installer.
How this works
How this was tested
CI
Need to be documented in RELEASES.md?
N/A