cargo-semver-checks icon indicating copy to clipboard operation
cargo-semver-checks copied to clipboard

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

Open obi1kenobi opened this issue 2 years ago • 0 comments

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 avatar Dec 24 '22 04:12 obi1kenobi