Nullus157 / cargo-dl

Apache License 2.0
5 stars 1 forks source link

Installation currently broken due to `crates-index` SemVer violation #28

Closed str4d closed 1 month ago

str4d commented 1 month ago

cargo install cargo-dl currently fails due to cargo-dl using http 0.2, but crates-index migrating to http 1 (a breaking change under SemVer) in a non-breaking SemVer release. See https://github.com/frewsxcv/rust-crates-index/issues/172 for details.

Possible solutions:

str4d commented 1 month ago

As a temporary workaround, cargo install --locked cargo-dl will install with the Cargo.lock that was present at the time the latest cargo-dl version was published, i.e. with an older crates-index.

Nemo157 commented 1 month ago

Fun, this is not the first time a dependency did a breaking http update https://github.com/algesten/ureq/issues/683. I'll wait and see what happens to avoid any breakage from fixes.

I'm disappointed I didn't catch this earlier with my nightly CI job as it got auto-disabled. I'll have to work out some way to ensure all my repos nightly jobs remain running even when they don't need continuous maintenance :thinking:.

Nemo157 commented 1 month ago

Looks like it's been fixed upstream now. Thanks for letting me know and opening the upstream issue!