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
Note to maintainers: Attached a patch in #1915 -- not sure how to test that though, hints welcome.
Actual behavior Kaniko allows to access ARGS/ENV variables that are not yet defined when --cache=true is used
--cache=true
Expected behavior Undefined variables should behave as one would expect from a shell
To Reproduce
FROM alpine as build ARG TEST=123 RUN echo $TESTNOTSET ARG TESTNOTSET=ups
--cache
Without cache:
INFO[0002] Running: [/bin/sh -c echo $TESTNOTSET] INFO[0002] Taking snapshot of full filesystem...
with cache:
INFO[0002] Running: [/bin/sh -c echo $TESTNOTSET] ups INFO[0002] Taking snapshot of full filesystem...
Additional Information
Triage Notes for the Maintainers
Note, this is probably related to #1910 because optimize() accumulates all ENV/ARG variables before they should be used
optimize()
The text was updated successfully, but these errors were encountered:
Restore build args after optimize. Fixes GoogleContainerTools#1910, G…
0c3b97d
…oogleContainerTools#1912.
731068f
1dfda2b
Restore build args after optimize. Fixes #1910, #1912. (#1915)
ef97636
* Restore build args after optimize. Fixes #1910, #1912. * Apply review suggestions.
Successfully merging a pull request may close this issue.
Note to maintainers: Attached a patch in #1915 -- not sure how to test that though, hints welcome.
Actual behavior
Kaniko allows to access ARGS/ENV variables that are not yet defined when
--cache=true
is usedExpected behavior
Undefined variables should behave as one would expect from a shell
To Reproduce
--cache
Without cache:
with cache:
Additional Information
Triage Notes for the Maintainers
--cache
flagNote, this is probably related to #1910 because
optimize()
accumulates all ENV/ARG variables before they should be usedThe text was updated successfully, but these errors were encountered: