killercup / cargo-edit

A utility for managing cargo dependencies from the command line.
http://killercup.github.io/cargo-edit/
MIT License
3.09k stars 148 forks source link

Thinks upgrading is downgrading with pre-releases #912

Closed leighmcculloch closed 1 month ago

leighmcculloch commented 1 month ago

When a project has version 22.0.0-rc.1, and the set-version command is called, it errors with the following message:

$ cargo set-version 20.0.0-rc.1.1
Error: Cannot downgrade from 22.0.0-rc.1 to 20.0.0-rc.1.1
epage commented 1 month ago

So your project is at 22.0.0-rc.1 and you are setting it to 20.0.0-rc.1.1? I'm a bit confused, how is that not a downgrade?

leighmcculloch commented 1 month ago

🤦🏻 Oh my goodness, what a bad start to the day. It's a typo. Wow. So sorry for the noise on your issue trackers because I hit a wrong key.