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

libutil: allow decompression with none/empty method #4730

Merged
merged 1 commit into from Apr 22, 2021

Conversation

lukegb
Copy link
Contributor

@lukegb lukegb commented Apr 22, 2021

The S3 store relies on the ability to be able to decompress things with
an empty method, because it just passes the value of the Content-Encoding
directly to decompress.

If the file is not compressed, then this will cause the compression
routine to get confused.

This caused NixOS/nixpkgs#120120.

The S3 store relies on the ability to be able to decompress things with
an empty method, because it just passes the value of the Content-Encoding
directly to decompress.

If the file is not compressed, then this will cause the compression
routine to get confused.

This caused NixOS/nixpkgs#120120.
@edolstra
Copy link
Member

Not sure I understand. What has changed that's causing NixOS/nixpkgs#120120?

@edolstra
Copy link
Member

Looks like 8a0c00b made a bit of a mess of what compression methods are supported by decompress, makeDecompressionSink and the new makeDecompressionSource. We should make decompress a simple wrapper around makeDecompressionSink again, and get rid of makeDecompressionSource.

@edolstra edolstra merged commit a6eebcf into NixOS:master Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants