-
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
caches: buildah bud --layers
sucks on --build-arg=VAR=VAL
#1391
Comments
Can I help with this? It causes fatal build failures in @sclorg/postgresql-container:
I intentionally created easier reproducer, but it is not a low-prio thing. |
@praiskup sorry for the delay on this one. It's high on the priority list, but I've had a few others that were prioritized a bit higher. Also @nalind is busy reworking the image layering code and I think his work will at least make this easier to figure out this issue with a small chance that it might fix it. Part of that work is in #1473 and more to come. I hope to make more progress on this one next week. Honestly I looked at my todo list earlier today and saw this one and said to myself, 'really need to get to this". Again apologies for the tardiness. |
@praiskup the issue appears to be that the value of the user variable, in this example either 1 or 0, is not being tucked away in the layers as it's probably supposed to be. So when we check our current image against previous ones we get a match as that doesn't differentiate them. I wasn't able to find a quick fix, but will dig further on Monday. |
Fixed in #1521 |
Description
Changing the
--build-arg
option doesn't invalidate--layers
caches.Steps to reproduce the issue:
provide dockerfile:
first run (no caches => no hit => correct)
repeat the build with the same --build-arg=user=0 (cache hit => correct)
repeat the build with changed --build=arg=1 (cache hit => incorrect!)
Describe the results you received:
The --build-arg option doesn't invalidate the caches.
Describe the results you expected:
Changed --build-arg option invalidates caches.
Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
podman version
if reporting apodman build
issue:Output of
cat /etc/*release
:Output of
cat /etc/containers/storage.conf
:The text was updated successfully, but these errors were encountered: