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

Ignore unsatisfiable shellcheck error 1090 #344

Merged
merged 1 commit into from Aug 29, 2019

Conversation

ianfixes
Copy link
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
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
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