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

Docker image missing /usr/bin/shellcheck #1136

Closed
stephenbmfj opened this issue Dec 29, 2021 · 2 comments
Closed

Docker image missing /usr/bin/shellcheck #1136

stephenbmfj opened this issue Dec 29, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@stephenbmfj
Copy link

stephenbmfj commented Dec 29, 2021

The megalinter/megalinter:v5 docker image is missing /usr/bin/shellcheck, which is needed by at least one linter (i.e.: actionlint).

To reproduce:

  1. Create .github/workflows/test.yml

  2. docker run -v /var/run/docker.sock:/var/run/docker.sock:rw -v $PWD:/tmp/lint:rw -e ENABLE_LINTERS=ACTION_ACTIONLINT

  3. See error

     fatal error while checking tmp/lint/.github/workflows/test.yml: `/usr/bin/shellcheck ...
    
@stephenbmfj stephenbmfj added the bug Something isn't working label Dec 29, 2021
@nvuillam
Copy link
Member

nvuillam commented Dec 30, 2021

Do you have the same issue with megalinter/megalinter:beta ?

Is it related to rhysd/actionlint#98 ? If the problem is from actionlint, I can't do a lot
But if you need spellcheck as an option dependency, you may define a PRE_COMMAND in your .mega-linter.yml to install it

What is this spellcheck app ? there are a lot in github / google, I don't know which one your refer to :/

Example:

PRE_COMMANDS:
  - command: npm install eslint-plugin-whatever
    cwd: "root"        # Will be run at the root of MegaLinter docker image

@stephenbmfj stephenbmfj changed the title Docker image missing /usr/bin/spellcheck Docker image missing /usr/bin/shellcheck Jan 3, 2022
@stephenbmfj
Copy link
Author

I misread shellcheck as spellcheck. There is a bug, but I think it is completely inside actionlint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants