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: Support streaming already-compressed layers #1799

Closed
bmoylan opened this issue Sep 28, 2023 · 1 comment
Closed

ggcr: Support streaming already-compressed layers #1799

bmoylan opened this issue Sep 28, 2023 · 1 comment
Labels
bug Something isn't working lifecycle/stale

Comments

@bmoylan
Copy link

bmoylan commented Sep 28, 2023

I have a use case where I have an io.ReadCloser representing an already-compressed layer I wish to upload to a registry. As far as I can tell, the only mechanism is stream.NewLayer which expects an uncompressed stream (often from a tarball). The layer will need to compute Digest/DiffID/Size during the single read pass like we do in the uncompressed version. While I could uncompress the input stream with gzip.Reader and provide that as the NewLayer input argument, I do not want the compression parameters to change and want the input's checksum preserved.

Specific case of #1011

// More FR than bug, but I can not remove the label

@bmoylan bmoylan added the bug Something isn't working label Sep 28, 2023
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lifecycle/stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant