We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would expect a docker line of:
RUN dnf install -y dnf-plugins-core \ && dnf clean all
To return an error of:
-:5 DL3041 warning: Specify version with `dnf install -y <package>-<version>`.
Hadolint runs successfully with no errors.
Use this dockerfile:
FROM rockylinux:9.3 RUN dnf install -y dnf-plugins-core \ && dnf clean all
And run hadolint against it.
This oneliner works:
printf "%s\n" "FROM rockylinux:9.3" "RUN dnf install -y dnf-plugins-core && dnf clean all" | docker run --rm -i hadolint/hadolint
If you add, e.g., openssl to the install command then it works as expected:
openssl
$ printf "%s\n" "FROM rockylinux:9.3" "RUN dnf install -y openssl dnf-plugins-core && dnf clean all" | docker run --rm -i hadolint/hadolint -:2 DL3041 warning: Specify version with `dnf install -y <package>-<version>`.
Output of hadolint --version or docker run --rm hadolint/hadolint hadolint --version or docker run --rm ghcr.io/hadolint/hadolint hadolint --version:
hadolint --version
docker run --rm hadolint/hadolint hadolint --version
docker run --rm ghcr.io/hadolint/hadolint hadolint --version
Haskell Dockerfile Linter 2.12.1
Dockerfile (if relevant)
Additional environment details (OS, stack version, etc.)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected behavior
I would expect a docker line of:
To return an error of:
Actual behavior
Hadolint runs successfully with no errors.
Steps to reproduce the behavior
Use this dockerfile:
And run hadolint against it.
This oneliner works:
If you add, e.g.,
openssl
to the install command then it works as expected:Output of
hadolint --version
ordocker run --rm hadolint/hadolint hadolint --version
ordocker run --rm ghcr.io/hadolint/hadolint hadolint --version
:Dockerfile (if relevant)
Additional environment details (OS, stack version, etc.)
The text was updated successfully, but these errors were encountered: