raven-actions / actionlint

βœ… Run actionlint in your GitHub workflow
https://github.com/marketplace/actions/actionlint
MIT License
23 stars 1 forks source link

πŸ› [bug]: pipx is missing #25

Closed mavimo closed 2 months ago

mavimo commented 2 months ago

πŸ› What happened?

The upgrade to v2 require to have pipx already available on the workers, this may be true for github runners:

πŸ”¬ How to reproduce?

Create a pipeline executed in a self-hosted worker (e.g. using act) where pipx is not installed

πŸ—οΈ Code Sample / Log

Cache restored from key: actionlint-1.7.1-Linux-X64
Run actions/github-script@v7
Error: Unable to locate executable file: pipx. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
    at Object.<anonymous> (/runner/_work/_actions/actions/github-script/v7/dist/index.js:4381:27)
    at Generator.next (<anonymous>)
    at fulfilled (/runner/_work/_actions/actions/github-script/v7/dist/index.js:4234:58)
Error: Unhandled error: Error: Unable to locate executable file: pipx. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

🌌 Environment (actionlint action)

v2

🌌 Environment (actionlint)

1.7.1

🌌 Environment (GitHub Runner OS)

Linux

πŸ“· Screenshots

No response

πŸ“ˆ Expected behavior

I suggest to check if pipx is installed and if missing evaluate to include it at runtime. The changelog do not report it as requirement, so may be worth to mention it in the changelog/doc.

πŸ“Ž Additional context

No response

πŸ“œ Code of Conduct

DariuszPorowski commented 2 months ago

hi @mavimo

It's mentioned in the README

image

and changelog as well (maybe it should be highlighter better πŸ€”)

image

and this is one of the reasons why is major bump

mavimo commented 2 months ago

@DariuszPorowski in the changelog was not highlighted as pre-requirement and the PR open dependabot do not report the changes in the readme.

Anyway I should have read the readme better, sorry for the noise.

DariuszPorowski commented 2 months ago

It's not a noise, it's actionable feedback for me to improve changelog in the future releases. Thanks 😊

hamdrew commented 2 weeks ago

I got bit by this, too, due to using a self-hosted runner. Turning this into Docker container might help alleviate dependency woes. If you're interested in going that route, I could help contribute.