-
Notifications
You must be signed in to change notification settings - Fork 785
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
buildah never invalidates the cache of a RUN --mount=type=bind layer #5400
Comments
Is this normal/accepted behaviour? |
This looks like a bug to me, since buildkit clears the cache when source content is changed. I'll take a look at this issue. Thanks for creating this. |
Buildah's cache works on history statements, I think in order to make this work we need to store some additional information in history statements, (maybe like checksum of source) in history stmts and invalidate cache when there is a diff in @containers/buildah-maintainers @nalind WDYT ? |
A friendly reminder that this issue had no activity for 30 days. |
Probably the same issue seen in containers/podman#22450 |
Is there any update?.. |
Looks like this will get fixed once #5691 is merged. |
Description
buildah never invalidates the cache of a
RUN --mount=type=bind
orRUN --mount=type=cache
when the contents of the source changes.Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
I expected the image to be rebuilt during the second iteration, since the contents of
files
had changed.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
uname -a
:Output of
cat /etc/containers/storage.conf
:The text was updated successfully, but these errors were encountered: