Skip to content
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

Add shellcheck dependency in pre-commit hooks #482

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kadykov
Copy link

@kadykov kadykov commented Nov 21, 2024

Fixes #477

This pull request adds the github.com/wasilibs/go-shellcheck/cmd/shellcheck@latest package as a dependency for actionlint pre-commit hooks. This change resolves the issue reported in #477.

Please note that I'm not familiar with Go and may not have chosen the most optimal dependency package. If you have a better approach, please let me know and I'll be happy to update the code.

@rhysd
Copy link
Owner

rhysd commented Nov 24, 2024

Since I'm not a pre-commit user, I can't say this is the right direction or not. However let me confirm one thing. Why do you use the WASI port of shellcheck instead of the official released binaries?

The go-shellcheck project looks very young. It's unclear how it will be maintained (e.g. following the new releases). I'm not sure that we should rely on the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pre-commit hook does not install shellcheck, resulting in inconsistent linter behavior
2 participants