-
Notifications
You must be signed in to change notification settings - Fork 787
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
BUG: --build-arg detection not working in multistage builds #1463
Comments
@h-vetinari just to make sure we're on the same page, you said "But if the second line is uncommented, ..." and showed an error. The error you received there you got from using the same 'sudo podman build...` command that you've illustrated? I.e. you didn't tweak that any right? |
That's exactly right (sorry if I wasn't clear enough), with the sole exception that it does not error the build, but just yields a warning. |
This should have been fixed by #1427. |
@h-vetinari What version of buildah are you using? Can you check it versus buildah in master? Or buildah 1.7 if you are using an older version. |
[Continuing from #1456; containers/podman#2250]
Assume I have a toy dockerfile, say
podman_test.dockrf
:then everything builds fine (aside from the tagging issue #1456) with
But if the second line is uncommented, I get a spurious warning about:
Starting to ignore this warning is obviously risky business, as it would be easily possible to miss cases where it is actually missing (in this case, leaving out
--build-arg TEST_ARG=TRUE
would result in a single line/bin/sh: 1: [: =: unexpected operator
, that's easy to overlook in the build log).The text was updated successfully, but these errors were encountered: