nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.22k stars 42 forks source link

Fix parsing of sparse-index registries #254

Closed nevsal closed 6 months ago

nevsal commented 6 months ago

Fixes https://github.com/nabijaczleweli/cargo-update/issues/253 by extending registry regex matching to include sparse indices and also applying the same transparent (to +sparse) comparison found at other places within the code when matching registry per crate.

nabijaczleweli commented 6 months ago

Hm. For the record, what does the corresponding .crates.toml look like for an affected package?

nevsal commented 6 months ago

Of course, that's e.g.:

[v1]
"bat 0.24.0 (sparse+https://localserver/directory/crates.io/index/)" = ["bat.exe"]
nabijaczleweli commented 6 months ago

Applied as b64c3adb2f0781657cb1729e2efc7b33b2c2051c, thanks!

nevsal commented 6 months ago

And thank you for this great tool!

nabijaczleweli commented 6 months ago

Released in v13.4.0