Cargo should not download the full code repository on which it depends. #14689
Labels
A-git
Area: anything dealing with git
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Performance
Gotta go fast!
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
Problem
like #14687
Some of the problems are solved in the previous issue. However, when the Cargo.lock file is carried and is not a GitHub code repository, the cargo will go to the GitReference::Rev branch due to the lock file. As a result, the cargo will download all tags.
cargo/src/cargo/sources/git/utils.rs
Lines 983 to 1010 in 1975c3c
Proposed Solution
In the fetchall tag scenario, if the content in the source is a tag, the tag branch is used.
Notes
No response
The text was updated successfully, but these errors were encountered: