Skip to content

Ignore unsatisfiable shellcheck error 1090#344

Merged
lorenzo merged 1 commit intohadolint:masterfrom
ianfixes:patch-1
Aug 29, 2019
Merged

Ignore unsatisfiable shellcheck error 1090#344
lorenzo merged 1 commit intohadolint:masterfrom
ianfixes:patch-1

Conversation

@ianfixes
Copy link
Copy Markdown
Contributor

According to https://github.com/koalaman/shellcheck/wiki/SC1090 the fix is to put a shell comment "directive" to assist -- "# shellcheck source=/dev/null". This can't work in a Dockerfile because # is also the Docker comment character. So with no obvious workaround, the error must simply be ignored completely.

According to https://github.com/koalaman/shellcheck/wiki/SC1090 the fix is to put a shell comment "directive" to assist -- "# shellcheck source=/dev/null".  This can't work in a Dockerfile because `#` is also the Docker comment character.  So with no obvious workaround, the error must simply be ignored completely.
@lorenzo
Copy link
Copy Markdown
Member

lorenzo commented Aug 29, 2019

Thanks! I’ll make a new release tomorrow

@lorenzo lorenzo merged commit eac036c into hadolint:master Aug 29, 2019
ghoneycutt added a commit to ghoneycutt/hadolint that referenced this pull request May 31, 2024
This check is related to SC1090 which is already skipped in PR hadolint#344
and background in issue hadolint#343.
lorenzo pushed a commit that referenced this pull request Mar 5, 2025
This check is related to SC1090 which is already skipped in PR #344
and background in issue #343.
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.

SC1090 can't be satisfied -- it wants shellcheck directives (which are shell comments)

2 participants