-
Notifications
You must be signed in to change notification settings - Fork 163
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
Support 'go install ./...' ? #297
Comments
It works for me. # ...
- repo: https://github.com/Freed-Wu/actionlint
rev: v1.6.25
hooks:
- id: actionlint $ pre-commit run -a
[INFO] Initializing environment for https://github.com/Freed-Wu/actionlint.
...
Lint GitHub Actions workflow files............................................Passed
... Environments: $ go version
go version go1.20.4 linux/amd64
$ uname -r
6.3.2-arch1-1 |
#297 (comment) This comment is written before #301 (comment), at that time, I haven't known this bug. Now it should be fixed. |
It looks a problem of pre-commit. The package path |
I may be able to add some build tag to excluding the Wasm package. |
I added |
The current
.pre-commit-hooks.yaml
file allows running actionlint through pre-commit'ssystem
anddocker
languages. These are both ways of skipping pre-commit's packaging system.pre-commit has a
golang
language, and in recent version 3.0.0 it gained the ability to bootstrap golang. This allows users to compile and run native golang tools without any setup other than pre-commit. It would be neat if actionlint supported this style of running, since it would avoid teams needing to all install actionlint themselves, or Docker.I just tried using actionlint under pre-commit with
golang
, just this change:It fails though, with:
pre-commit
runsgo install ./...
, but this fails in the actinolint repo. I'm afraid I don't know anything about Go, so that's where I stop. I imagine the repository may need a little rearrangement, or a rule added to not install the playground by default... Anyway I would just like to see this happen to make it a little bit easier to run actionlint.The text was updated successfully, but these errors were encountered: