crate-ci / cargo-release

Cargo subcommand `release`: everything about releasing a rust crate.
Apache License 2.0
1.33k stars 112 forks source link

If a version already exist add ability to bump to the next version instead of panicking out. #734

Closed veritem closed 10 months ago

veritem commented 10 months ago

I'm not sure if this have been discussed before but i wished this package provided a way to bump package's version the next version if the present already exist on the registry. Some packages does it very well like this one for javascript community.

If you like this idea. I'm willing to open a pull request addressing it.

epage commented 10 months ago

In what scenarios is this happening?

Is this just wanting to run cargo release -x? Or is it that the registry and the repo are out of sync with what versions are released?

veritem commented 10 months ago

@epage I was suggesting, instead of it erroring out when package already exists in the registry like the following ... Screenshot 2023-12-21 at 11 29 55 PM

To add a flag to enable bumping to the next version automatically.

epage commented 10 months ago

Wouldn't that be cargo release -x patch?

veritem commented 10 months ago

I didn't know that was a thing. Thanks!!