Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
str4d opened this issue May 27, 2024 · 3 comments
Closed

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

str4d opened this issue May 27, 2024 · 3 comments

Comments

@str4d
Copy link

str4d commented May 27, 2024

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 frewsxcv/rust-crates-index#172 for details.

Possible solutions:

  • Wait for crates-index to fix its SemVer violation, and then either do nothing (stay on http 0.2), or migrate to http 1 and crates-index 3.
  • Migrate to http 1 and crates-index >= 2.10. This however runs a risk that crates-index decides to fix its SemVer violation, which would break cargo-dl again.
@str4d
Copy link
Author

str4d commented May 27, 2024

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
Copy link
Member

Nemo157 commented May 27, 2024

Fun, this is not the first time a dependency did a breaking http update algesten/ureq#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 🤔.

@Nemo157
Copy link
Member

Nemo157 commented May 28, 2024

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

@Nemo157 Nemo157 closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants