Skip to content

package: remove git fetch zlib lookahead fix #19253

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

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

ianic
Copy link
Contributor

@ianic ianic commented Mar 11, 2024

My first zlib implementation broke git fetch because it introduce lookahead. That resulted in workarounds 1 2.

After removing lookahead in zlib decompressor this fixes are no longer necessary.

cc @ianprime0509 for review

My first zlib implementation broke git fetch because it introduce
[lookahead](ziglang#18967). That resulted
in workarounds [1](ziglang@80f3ef6)
[2](ziglang@d00faa2)

After [fixing](ziglang#19163) lookahead in
zlib decompressor this fixes are no longer necessary.
Copy link
Contributor

@ianprime0509 ianprime0509 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This looks good, thanks for following up on this.

@andrewrk andrewrk merged commit f8f43ca into ziglang:master Mar 11, 2024
@ianic
Copy link
Contributor Author

ianic commented Mar 12, 2024

@andrewrk
In the previous workaround, I added BufferedTee to the std.io. That is not used here anymore and nowhere in the std lib. Should I remove it?

@andrewrk
Copy link
Member

Hmmmm. I could go either way with this one. I think generally, it would be better to leave such things to third party packages. It's more difficult to remove things than to add them later on, so better not to acquire too much std lib code right now.

ianic added a commit to ianic/zig that referenced this pull request Mar 20, 2024
Introduced in  ziglang#19032 as a fix for ziglang#18967.
Not needed any more after ziglang#19253.
andrewrk pushed a commit that referenced this pull request Mar 21, 2024
Introduced in  #19032 as a fix for #18967.
Not needed any more after #19253.
@ianic ianic deleted the git_fetch_zlib_revert branch April 3, 2024 20:18
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.

3 participants