-
Notifications
You must be signed in to change notification settings - Fork 144
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
Add --allow-downgrade
option to set-version command
#863
Comments
This was previously discussed in #782 (somehow I missed it when previously searching or I would have linked to it). That was mostly closed because there wasn't a use case to justify the exposing the behavior when moving backwards is generally not what should be done.
Can you expand on this. Why are you making packages of source code from a newer version than you are releasing but wanting to release with that old version? |
We are using monorepo with multiple independently versioned components. Components are released through Described approach is not ideal but for our usecase is perfectly fine. We are using cargo-edit as a tool to manage versions of application, not source code and for this reason we sometimes want to intentionally break the semver rules. As pointed out in #782 |
I just want to chime in and say that my colleague was just blocked by this. We're having a problem similar to that of @wiktorsikora where we need to internally release some versions that don't follow semantic versioning. We'll find another way to solve our problem of course, but this feature would have been perfect. |
We are just hit by the same issue. I think it makes sense to allow downgrades it the user explicitly states this. A strategy of preventing the user from making mistakes by default is valuable. A strategy of patronizing the user is not. Even in Rust you can go with I guess our use case is similar to the already reported ones. We have a CI, we use |
Just for people running into the same issue, looking for a solution. Install You can then run the following command to set any version for a workspace, ignoring changes, not creating a git commit/tag.
|
I would like to add an option to allow downgrade version when using
set-version
command.In my use case this feature is necessary since our CI/CD needs to create dev packages (deb/rpm) for already released versions.
I have already created PR for this feature (Sorry about that, I misunderstood contribution guidelines 😕)
The text was updated successfully, but these errors were encountered: