clap-rs / clap

A full featured, fast Command Line Argument Parser for Rust
docs.rs/clap
Apache License 2.0
13.64k stars 1.02k forks source link

fix: point `repository` metadata to clonable URLs #5508

Closed lucab closed 4 weeks ago

lucab commented 1 month ago

This tweaks the repository fields in Cargo metadata in order to use the correct (i.e. git clonable) URL. The existing GitHub webUI URLs for each package have been retained and moved to homepage fields.

lucab commented 1 month ago

For reference, without this PR the remote fetch would fail with:

$ git clone https://github.com/clap-rs/clap/tree/master/clap_complete

Cloning into 'clap_complete'...
fatal: repository 'https://github.com/clap-rs/clap/tree/master/clap_complete/' not found
epage commented 4 weeks ago

Thanks for pointing this out! This will become especially important as we hopefully add support for veriying .crates against repos.

I've made tweaks and merged the idea in 5e3386bb

lucab commented 3 weeks ago

Thanks for fixing the metadata, looking forward to the next release!