Skip to content
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

ggcr: mutate.Extract does not handle whiteouts of directories properly #1897

Open
tri-adam opened this issue Mar 18, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@tri-adam
Copy link

tri-adam commented Mar 18, 2024

Describe the bug

When the source image contains a layer with an opaque whiteout, the output of mutate.Extract seems to contain unexpected content.

To Reproduce

I've implemented a reproducer in the form of a test in tri-adam@062c74e.

In the test, an image whose base layer is:

a/
a/b/
a/b/foo

.. with a layer that deletes a/b/ using an opaque whiteout on a/:

a/
a/.wh..wh..opq

... results in a (squashed) layer that contains a/b/:

a/
a/b/
a/b/foo

Expected behavior

I believe the expected output would be:

a/

Additional context

Add any other context about the problem here.

  • Version of the module: v0.19.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant