-
Notifications
You must be signed in to change notification settings - Fork 236
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
Release version incorrectly incremented #920
Comments
@JeromeCheviet, I think I know the answer now based on what changed from 9.5 to 9.6. I probably should have made it a breaking change just in case but you live and learn. I am very sorry it messed up your workflow. If you could try swapping |
Hello @codejedi365 , I had tested with --as-prerelease with the version 9.7.2 and it perfectly working. Thank you for your help. I'm really sorry because I had read the changelog and seen this new option, but I thought both still worked (and I forgot about it later… ). So it's my bad. Life is a long learning process :) Best Regards. |
The problem
Hello,
Like requested in the issue #838 I open a new bug.
Like I said, we practice the trunk base development and we release from trunk.
We use Python Semantic Release with Gitlab and we have a specific configuration file with a little more commit type.
We have a first job to make pre-release versions and a second to make final release versions.
Until PSR 9.5.0 we have no problem, but since 9.6.0 the incrementation of pre-release version is not incremented on the last release version:
I have a pre-release version 0.2.0-beta.3 and I make an 0.2.0 release version on the same branch.
I release a patch and PSR make me a 0.2.0-beta.4. And when I make the release I have a 0.2.1 release version.
In resume: 0.2.0-beta.3 -> 0.2.0 -> 0.2.0-beta.4 -> 0.2.1
Expected behavior
I have a pre-release version 0.2.0-beta.3 and I make an 0.2.0 release version on the same branch.
I release a new pre-release patch 0.2.1-beta.1 and after a couple of beta version I make a release 0.2.1.
I would like: 0.2.0-beta.3 -> 0.2.0 -> 0.2.1-beta.1 -> 0.2.1
Environment
We use a docker image based on python:3.12-alpine and versions are:
We use poetry for our projects.
Configuration
PSR configuration:
Build-system configuration:
Logs
logs for the command:
semantic-release -vv version --prerelease --no-push
:psr_logs.txt
Additional context
Until PSR 9.6.0 everything works perfectly. We are actually blocked on version 9.5.0.
Copy of your message:
Thanks for your time.
Best Regards.
The text was updated successfully, but these errors were encountered: