Problem
vendor doesn't work with dependencies with different revs from same git. it should generate source replacement entry for each git revision.
The expected behavior is in the test case
cc @alexcrichton
Steps
test case
Possible Solution(s)
Use the SourceId url instead of git url for source name to avoid the source entry being overwritten. AtkinsChang@3a0fd08
ex.
[source."git+https://github.com/rust-lang/cargo?rev=6d6dd9d#6d6dd9d9be9c91390da620adf43581619c2fa90e"]
instead of
[source."https://github.com/rust-lang/cargo"]
Notes
If this solution is okay, I'll pr it.
Version
cargo 1.62.0-nightly (a44758ac8 2022-05-04)