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

FROM ARGS are not checked #1012

Open
2 of 3 tasks
mxbossard opened this issue Apr 22, 2024 · 1 comment
Open
2 of 3 tasks

FROM ARGS are not checked #1012

mxbossard opened this issue Apr 22, 2024 · 1 comment

Comments

@mxbossard
Copy link

mxbossard commented Apr 22, 2024

  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Expected behavior

With supplied Dockerfile :
ARG foo bar mean nothing, there is no equal sign. The linter should complain.
FROM is referencing a missing ${baz} ARG. The linter should complain.
ARG pif paf mean nothing, there is no equal sign. The linter should complain.

Actual behavior

The linter do not complain.

Steps to reproduce the behavior

Dockerfile (if relevant)

ARG foo bar
FROM alpine${foo}:${baz}
ARG pif paf
@mxbossard
Copy link
Author

I tested ARG foo bar on Docker and it works like if we declared 2 args foo and bar on 2 separate lines.
But this behavior is not documented, so should the linter support it ?

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

No branches or pull requests

1 participant