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
archive/tar: write too long when calling crane export on mcr.microsoft.com/dotnet on windows #1412
Comments
I'm not able to reproduce this from macOS. I'm not sure why this would only manifest on Windows, as far as I know the underlying code to fetch manifests and blobs and un-tar them should be pure Go code, which should insulate us from platform-specific issues. Seems that's not the case though. Can you try with edit: And does it happen with any other images, when exporting on Windows? |
I tried to go through code but also did not find any platform dependent code - this is why it really puzzled me :) |
Same call from linux ... both go 1.18.4 and crane latest release No it does not happend on other images I tested (nginx, internal ...) |
https://stackoverflow.com/questions/38454850/getting-write-too-long-error-when-trying-to-create-tar-gz-file-from-file-and-d seems like it might be related. However, we aren't using https://github.com/google/go-containerregistry/blob/v0.10.0/pkg/v1/mutate/mutate.go#L300 Is there any image you can successfully |
I'm not sure what the equivalent of
So we can see what file is failing? |
Tar is present on Windows 10 so I could run exact command as posted |
@imjasonh thanks for pointing me towards good direction ... https://github.com/google/go-containerregistry/blob/v0.10.0/pkg/v1/mutate/mutate.go#L300 is actually root of the problem as it does not handler error returned from
|
Related docker/engine#167 len("usr\share\dotnet\shared\Microsoft.AspNetCore.App\6.0.5\.version") == 69 |
I am not expert in tar formats but can we take same direction as docker/engine? Options here https://serverfault.com/questions/250511/which-tar-file-format-should-i-use-it Same logic also used here https://github.com/google/go-containerregistry/blob/v0.11.0/internal/windows/windows.go#L80 ? |
Describe the bug
export fails for mcr.microsoft.com/dotnet images
To Reproduce
crane export mcr.microsoft.com/dotnet/aspnet:6.0.5-focal
Expected behavior
should export without failing
Additional context
only reproducible on windows 10
The text was updated successfully, but these errors were encountered: