pkgid spec confusion #7725
Labels
A-documenting-cargo-itself
Area: Cargo's documentation
C-bug
Category: bug
Command-pkgid
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
The documentation for the package id spec (https://doc.rust-lang.org/1.40.0/cargo/reference/pkgid-spec.html) does not seem to be correct in several ways.
cargo://
which is not a scheme Cargo understands anywhere.crates.io
as a host does not work. It looks like you can only give the full path to the index, likehttps://github.com/rust-lang/crates.io-index#bitflags:1.2.1
host/name
doesn't work. It looks like the matching code requires the entire scheme/host/path to match.The question is, what should we do? Should we just remove all the things that don't work from the documentation? Or should we try to enhance the parsing/matching code to work better.
crates.io
work as an alias forhttps://github.com/rust-lang/crates.io-index
?host/name
matchhost/path#name
?EDIT: #9188 and #9249 fixed the broken parts, but leaving this open to consider adding abbreviated forms.
The text was updated successfully, but these errors were encountered: