You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting with a working project that depends on cargo-pretag-version-issue-test = "0.1.0", running cargo update -p cargo-pretag-version-issue-test --precise 0.1.1-pre0 returns an unhelpful error message.
> cargo update -p cargo-pretag-version-issue-test --precise 0.1.1-pre0
Updating crates.io index
error: no matching package named `cargo-pretag-version-issue-test` found
location searched: registry `crates-io`
required by package `tmp-08luyo v0.1.0 (/home/ethan/.cache/cargo-temp/tmp-08luyo)`
> cargo new issue
Created binary (application) `issue` package
> cargo add cargo-pretag-version-issue-test
Updating crates.io index
Adding cargo-pretag-version-issue-test v0.1.0 to dependencies.
Updating crates.io index
> cargo tree
issue v0.1.0 (/home/ethan/.cache/cargo-temp/issue)
└── cargo-pretag-version-issue-test v0.1.0
> cargo update -p cargo-pretag-version-issue-test --precise 0.1.1-pre0
Updating crates.io index
error: no matching package named `cargo-pretag-version-issue-test` found
location searched: registry `crates-io`
required by package `issue v0.1.0 (/home/ethan/.cache/cargo-temp/issue)`
Possible Solution(s)
Either,
Allow upgrading to pre-release versions via cargo update --precise
or
Display a reason why the version could not be selected rather than saying it could not be found
eopb
changed the title
cargo update --precise unable to upgrade to pre-release
Poor error from cargo update --precise when upgrading to pre-release
Aug 28, 2023
If that happens, I'm not sure if it is worth putting effort into improving the error message. It probably wouldn't hurt, but I'm not sure how complex that would be.
#13290 also proposes changes to the behavior of this operation. This error can probably be replaced by an unstable feature warning as part of the work on precise_pre_releases
Problem
Starting with a working project that depends on
cargo-pretag-version-issue-test = "0.1.0"
, runningcargo update -p cargo-pretag-version-issue-test --precise 0.1.1-pre0
returns an unhelpful error message.Steps
I created cargo-pretag-version-issue-test to demonstrate this issue. It has two versions,
0.1.0
and0.1.1-pre0
.Possible Solution(s)
Either,
cargo update --precise
or
Notes
No response
Version
and
The text was updated successfully, but these errors were encountered: