-
Notifications
You must be signed in to change notification settings - Fork 539
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
crane: Cannot Append Windows Layer Without Duplicate "Files" #1909
Comments
This issue is stale because it has been open for 90 days with no |
Confirmed still issue on 0.20.0
|
not useful error message - weird, as Files is the directory root for the actual filesystem contents. |
Hello Jon, The error is being thrown from this loop - go-containerregistry/pkg/v1/validate/layer.go Lines 141 to 153 in d36047a
What I don't understand is why the "Files" subdir is being treated as an actual directory. It's supposed to be more-or-less ignored as I understand it (in Windows containers). Will continue digging. |
When I examine the gzipped .tar layer that is not able to be decompressed, I see that the directory permissions for the |
okay, I figured out what happened here. The |
Describe the bug
When using
crane append
to append a TAR'd Windows layer to a base image, the resultant image failscrane validate
with an error:Error: validating layers: duplicate file path: Files
I understand that the
Files
path is a special entry for windows layers, but I'm not sure why this is occurring. There is no documentation anywhere about this issue but according to the docs forcrane append
this should "just work" on windows.The layer I am appending is a built .NET Framework 4.8.1 MVC App onto the image
mcr.microsoft.com/dotnet/framework/aspnet:4.8.1-windowsservercore-ltsc2022
To Reproduce
Use
crane append
to append a windows directory onto an existing windows image using a windows x64 host machine.Expected behavior
I expected the files from the TAR'd layer to be appended successfully to the base image, and the resultant image be runnable.
Additional context
Running on a windows image builder for github actions.
crane version
0.19.1
ECR
The text was updated successfully, but these errors were encountered: