Discussed in #2414
Originally posted by Tlepel April 12, 2022
Hi everyone!
In my project there are 3 branches: production, development and beta. We've only recently started releasing on the alpha branch, in addition to the releases on the beta and production branches where we've been releasing for a few years now.
We've released a version to the alpha branch, let's say v2.2.0-development.3, which worked perfectly fine. However, when all seemed well we merged the alpha branch to beta and tried to release there. We don't use merge commits for this, so the v2.2.0-beta.1 tag was created on the same commit as the v2.2.0-development.3 tag. Now we've pushed a few commits to the beta branch that fixed some issues on that branch, and tried to release that. However, the tag that was generated was v2.2.0-development.4 instead of v2.2.0-beta.2..
I checked the git notes to see if it went wrong there, and I tried to adapt it to reflect the situation, but that didn't change the version at all; none of these options worked:
{"channels": ["development","beta"]}
{"channels": ["beta"]}
{"channels": ["development"]}
Schematic:
|
* - v2.2.0-development.1
|
* - v2.2.0-development.2
|
* - v2.2.0-development.3, v2.2.0-beta.1
| \
* \ - v2.2.0-development.4 (on development branch)
| |
| * - v2.2.0-development.4 (on beta branch, should be v.2.2.0-beta.2)
Setup:
branches: [
'production',
{
name: 'beta',
prerelease: true,
},
{
name: 'development',
prerelease: true,
},
],
Can anyone help me out and see what we're doing wrong here?
It seems like the current implementation doesn't account for multiple tags/versions using the same git-commit.
Discussed in #2414
Originally posted by Tlepel April 12, 2022
Hi everyone!
In my project there are 3 branches:
production,developmentandbeta. We've only recently started releasing on the alpha branch, in addition to the releases on the beta and production branches where we've been releasing for a few years now.We've released a version to the alpha branch, let's say
v2.2.0-development.3, which worked perfectly fine. However, when all seemed well we merged the alpha branch to beta and tried to release there. We don't use merge commits for this, so thev2.2.0-beta.1tag was created on the same commit as thev2.2.0-development.3tag. Now we've pushed a few commits to the beta branch that fixed some issues on that branch, and tried to release that. However, the tag that was generated wasv2.2.0-development.4instead ofv2.2.0-beta.2..I checked the git notes to see if it went wrong there, and I tried to adapt it to reflect the situation, but that didn't change the version at all; none of these options worked:
Schematic:
Setup:
Can anyone help me out and see what we're doing wrong here?
It seems like the current implementation doesn't account for multiple tags/versions using the same git-commit.