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

fix: Report more detailed semver errors #12924

Merged
merged 1 commit into from Nov 8, 2023
Merged

Conversation

epage
Copy link
Contributor

@epage epage commented Nov 6, 2023

For cargo install we'll now show a more specific parse error for semver, much like other parts of cargo.

This came out of my work on #12801. I was looking at what might be appropriate to put in a cargo-util-semver crate and realized we have the ToSemver trait that exists but doesn't do much, so I dropped it.

For `cargo install` we'll now show a more specific parse error for
semver, much like other parts of cargo.

This came out of my work on rust-lang#12801.  I was looking at what might be
appropriate to put in a `cargo-util-semver` crate and realized we have
the `ToSemver` trait that exists but doesn't do much, so I dropped it.
@rustbot
Copy link
Collaborator

rustbot commented Nov 6, 2023

r? @weihanglo

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added A-cli Area: Command-line interface, option parsing, etc. A-manifest Area: Cargo.toml issues A-registries Area: registries A-semver Area: semver specifications, version matching, etc. Command-install S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 6, 2023
@rustbot rustbot added the A-infrastructure Area: infrastructure around the cargo repo, ci, releases, etc. label Nov 6, 2023
@weihanglo
Copy link
Member

Look reasonable. Thank you!

@bors r+

@bors
Copy link
Collaborator

bors commented Nov 8, 2023

📌 Commit e70e310 has been approved by weihanglo

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 8, 2023
@bors
Copy link
Collaborator

bors commented Nov 8, 2023

⌛ Testing commit e70e310 with merge 7046d99...

@bors
Copy link
Collaborator

bors commented Nov 8, 2023

☀️ Test successful - checks-actions
Approved by: weihanglo
Pushing 7046d99 to master...

1 similar comment
@bors
Copy link
Collaborator

bors commented Nov 8, 2023

☀️ Test successful - checks-actions
Approved by: weihanglo
Pushing 7046d99 to master...

@bors bors merged commit 7046d99 into rust-lang:master Nov 8, 2023
22 checks passed
@bors
Copy link
Collaborator

bors commented Nov 8, 2023

👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request.

bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 8, 2023
Update cargo

7 commits in 65e297d1ec0dee1a74800efe600b8dc163bcf5db..7046d992f9f32ba209a8079f662ebccf9da8de25
2023-11-03 20:56:31 +0000 to 2023-11-08 03:24:57 +0000
- fix: Report more detailed semver errors (rust-lang/cargo#12924)
- Fix some broken links in the man pages (rust-lang/cargo#12929)
- Add better error message when it can not find the search section (rust-lang/cargo#12865)
- Bug 12920 (rust-lang/cargo#12923)
- Update link in environment-variables.md (rust-lang/cargo#12922)
- refactor(toml): Pull out the schema (rust-lang/cargo#12911)
- tests: Remove plugin tests (rust-lang/cargo#12921)

r? ghost
@epage epage deleted the to_semver branch November 8, 2023 14:16
bors added a commit that referenced this pull request Nov 8, 2023
refactor(util): Prepare for splitting out semver logic

### What does this PR try to resolve?

Like #12924, this was cleanup I noticed as I was looking to pull out our reusable semver code for #12801

### How should we test and review this PR?

### Additional information
epage added a commit to epage/cargo that referenced this pull request Nov 8, 2023
This `mod` is a proposal for what a new package would look like.
This needs to be split out so a future `util_manifest_schema`
package can depend on it (rust-lang#12801).

This doesn't address where `RustVersion` should live (along with
`PackageIdSpec`).

This builds on the work from rust-lang#12924 and rust-lang#12926
bors added a commit that referenced this pull request Nov 8, 2023
refactor(util): Pull out `mod util_semver`

### What does this PR try to resolve?
This `mod` is a proposal for what a new package would look like. This needs to be split out so a future `util_manifest_schema` package can depend on it (#12801).

This doesn't address where `RustVersion` should live (along with `PackageIdSpec`).

### How should we test and review this PR?

### Additional information

This builds on the work from #12924 and #12926
@ehuss ehuss added this to the 1.75.0 milestone Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Area: Command-line interface, option parsing, etc. A-infrastructure Area: infrastructure around the cargo repo, ci, releases, etc. A-manifest Area: Cargo.toml issues A-registries Area: registries A-semver Area: semver specifications, version matching, etc. Command-install S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants