fix(mutate): don't skip dir replacements via whiteout in export#2191
fix(mutate): don't skip dir replacements via whiteout in export#2191jonjohnsonjr merged 1 commit intogoogle:mainfrom
Conversation
Consider a container with the following layers: layer1: a/foo b/bar layer2: .wh.a layer3: a/baz When exporting those layers to a flattened filesystem, we cannot skip processing `a/` because it's been visited before when `a/` is a whiteout directive. Otherwise the filesystem will end up with `a/foo a/baz b/bar` when we expect only `a/baz b/bar`. Signed-off-by: Rafael Fonseca <r4f4rfs@gmail.com>
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
This PR fixes #2029. |
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #2191 +/- ##
===========================================
- Coverage 71.67% 53.07% -18.61%
===========================================
Files 123 164 +41
Lines 9935 10940 +1005
===========================================
- Hits 7121 5806 -1315
- Misses 2115 4428 +2313
- Partials 699 706 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Update the dependency so we get the fix for replaced directories in oci layers google/go-containerregistry#2191
Update the dependency so we get the fix for replaced directories in oci layers google/go-containerregistry#2191
Update the dependency so we get the fix for replaced directories in oci layers google/go-containerregistry#2191
Update the dependency so we get the fix for replaced directories in oci layers google/go-containerregistry#2191
Update the dependency so we get the fix for replaced directories in oci layers google/go-containerregistry#2191
Update the dependency so we get the fix for replaced directories in oci layers google/go-containerregistry#2191
Consider a container with the following layers:
When exporting those layers to a flattened filesystem, we cannot skip processing
a/because it's been visited before whena/is a whiteout directive. Otherwise the filesystem will end up witha/foo a/baz b/barwhen we expect onlya/baz b/bar.