-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo build fails with git dependency in rust 1.44 #8352
Comments
Here's a minimal reproducer using one of the open-source libraries I maintain:
|
Also, FYI, your reproduction has a small mistake (the tag needs |
It appears to be
which causes the issue Perhaps your gitconfig parser does not handle |
Yea, looks like an issue in the libgit2 library. I have filed a report at libgit2/libgit2#5555. A workaround is to use I'm not yet sure why running twice works. For some reason, the second run thinks the repo is up-to-date. Perhaps the error happens late enough that the repo is partially updated. It will take some more investigation to figure that out. |
Update git2. Closes rust-lang#8517 Closes rust-lang#8588 Closes rust-lang#8352 Closes rust-lang#4777 Closes rust-lang#8746 I only added a test for one of these. I can add for the others if you want.
|
If you ran into this and can clone using git cli adding --config net.git-fetch-with-cli=true to the end of your cargo command will fix it for you |
Problem
Since Rust 1.44, cloning git dependencies fails the first time with an error like the following:
Rerunning
cargo build
a second time always succeeds.This worked fine in 1.43.
Steps
Possible Solution(s)
Working on trying to make a minimal reproducer; figured I'd file this first.
Notes
Output of
cargo version
:cargo 1.44.0 (05d080faa 2020-05-06)
(repros on macOS and Linux)The text was updated successfully, but these errors were encountered: