Closed silence-coding closed 2 hours ago
We are tracking shallow clones in #13285.
What seems odd though is I didn't think we downloaded all tags and branches for a git dependency. Do you have reproduction steps?
What seems odd though is I didn't think we downloaded all tags and branches for a git dependency. Do you have reproduction steps?
This is the CARGO_NET_GIT_FETCH_WITH_CLI=true
case. I guess Cargo should pass --no-tags
to git
CLI for the default case.
Besides, the -Zgit
shallow clone feature doesn't really extend to support CARGO_NET_GIT_FETCH_WITH_CLI=true
, and I don't remember anyone has even talked about that.
We used CARGO_NET_GIT_FETCH_WITH_CLI=true
,
Problem
Why does cargo need to download git dependencies completely?
Proposed Solution
Set
depth=1
when git is used for download.Notes
No response