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

Improve error message when testing on not-yet-published crate #247

Open
obi1kenobi opened this issue Dec 24, 2022 · 0 comments
Open

Improve error message when testing on not-yet-published crate #247

obi1kenobi opened this issue Dec 24, 2022 · 0 comments
Labels
A-cli Area: engine around the lints C-enhancement Category: raise the bar on expectations

Comments

@obi1kenobi
Copy link
Owner

Right now, if a user runs cargo-semver-checks on a new package that hasn't been uploaded to crates.io, they'll get a fairly opaque error message saying the crate was "not found in registry."

This is a common failure mode for first-time users of the tool, since most linters only depend on the current state of the repo instead of also depending on prior versions.

We should consider adding hint/info text reminding the user that the default mode assumes there's a prior version on crates.io and suggesting other baseline options if that's not the case.

@obi1kenobi obi1kenobi added A-cli Area: engine around the lints C-enhancement Category: raise the bar on expectations labels Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Area: engine around the lints C-enhancement Category: raise the bar on expectations
Projects
None yet
Development

No branches or pull requests

1 participant