Skip to content

cache extract failure fails on invalidated symlinks #3428

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

Open
mzihlmann opened this issue Mar 22, 2025 · 0 comments · May be fixed by #3429
Open

cache extract failure fails on invalidated symlinks #3428

mzihlmann opened this issue Mar 22, 2025 · 0 comments · May be fixed by #3429

Comments

@mzihlmann
Copy link

Actual behavior
If a folder is created from cache over an invalid symlink, kaniko fails to create the directory

Expected behavior
Build behaves the same whether it's from scratch or from cache

To Reproduce

FROM ubuntu

RUN mkdir /test \
    && ln -s /test /link

RUN rm -rf /test /link \
    && mkdir /link

WORKDIR /app

note that this will only fail on the second build, when we try to unpack the cache.
WORKDIR is used to invalidate the cache #3340

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

Successfully merging a pull request may close this issue.

1 participant