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

Writer: initialize the writer on Flush() if wasn't initialized before #212

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Writer: initialize the writer on Flush() if wasn't initialized before #212

merged 1 commit into from
Dec 7, 2023

Conversation

edigaryev
Copy link
Contributor

This allows compressing empty files, because without this change the proper headers were not emitted when reading an empty file via e.g. io.Copy().

This allows compressing empty files, because without this change
the proper headers were not emitted when reading an empty file
via e.g. io.Copy().

Signed-off-by: Nikolay Edigaryev <edigaryev@gmail.com>
edigaryev added a commit to cirruslabs/vetu that referenced this pull request Nov 22, 2023
This happens when attempting to compress a disk that is empty (0 bytes).
edigaryev added a commit to cirruslabs/vetu that referenced this pull request Nov 22, 2023
…ll,push} --insecure` command-line argument (#27)

* vetu login: validate credentials and support --no-validate

* Chunker: fix NPE when Close()'ing a chunker with no Write()s made on it

* Chunker: always emit at least one chunk on Close()

This may happen when no Write()s were made.

* Work around pierrec/lz4#212

This happens when attempting to compress a disk that is empty (0 bytes).

* Hide progress bar when the size of disk to be pulled is zero (0 bytes)

* vetu {pull,push}: support --insecure

* dockerhosts: fix comments
@pierrec pierrec closed this Dec 7, 2023
@pierrec pierrec reopened this Dec 7, 2023
@pierrec pierrec merged commit a0f6c5e into pierrec:v4 Dec 7, 2023
0 of 10 checks passed
@edigaryev edigaryev deleted the writer-init-on-flush branch December 7, 2023 08:47
edigaryev added a commit to cirruslabs/vetu that referenced this pull request Jan 8, 2024
The fix was was merged[1] and released upstream.

[1]: pierrec/lz4#212
edigaryev added a commit to cirruslabs/vetu that referenced this pull request Jan 8, 2024
* No need for the github.com/pierrec/lz4/v4 work-around anymore

The fix was was merged[1] and released upstream.

[1]: pierrec/lz4#212

* Sentry integration

* Fix linter error
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.

2 participants