-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
rust-lang/git2-rs
#567Labels
Description
Problem
there maybe a bug in the latest cargo dependency repo of git2 which will lead to "error reading from the zlib stream" when fetch a certain repo (I don't know which of its group) in cargo build.
I have not detected why these happen, but I confirm that it is the git2 repo(0.12, 0.12+) in cargo dependency cause the error.
Steps
I have just one example to reproduce the error.
- go get github.com/kata-containers/kata-containers
- cd $(GOPATH)/github.com/kata-containers/kata-containers/ && git checkout 7087b5f43c86367f78d28
- make
be patient, then you will get the error log.
Possible Solution(s)
I'm not familiar with libgit2, so I can't tell why this happen, only, I can tell the error come from git_packfile_stream_read in the libgit2/src/pack.c
Notes
Output of cargo version
:
I have tested cargo 1.43.1 even the latest cargo from source code (13bded9)
mckaymatt, paolobarbolini and longfangsong