re-vendored suggestion is incorrect with sparse crates.io #12802
Labels
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
C-bug
Category: bug
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Problem
The error message for a resolver activation error includes this comment when used with crates.io:
This is not correct. This message should only be displayed when vendoring is enabled. Cargo is getting confused somehow, thinking index.crates.io is a replaced source. This message should only be displayed when vendoring is actually enabled.
Steps
Try to build with:
displays:
Possible Solution(s)
The error message is generated here.
I'm uncertain at this moment why the source seems to be replaced. I vaguely recall having cargo treat index.crates.io as equivalent for the git index, but I forget how that all works.
Notes
No response
Version
The text was updated successfully, but these errors were encountered: