Creating a patch for an existing tag doesn't work at first execution, but work at second ? 😑 #2990
Unanswered
djeanprost
asked this question in
Q&A
Replies: 1 comment
-
I understand that semantic release seems to use git notes to store channel associated to a branch. Could the problem be related with the way I create branches from an existing tag, so that git notes are lost or something ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I manage to create easily release version for my java application, but I meet problem when I need to create a release for an existing tag.
What I can see : after commiting a fix: to my branch, pipeline runs but fails. If I force an execution on the same branch, it works on second time.
Let me explain:
Semantic release configuration
And here are the two execution logs of the gitlab pipeline job, both run on branch
0.24.x
Failing execution :
What is interesting on the failing execution is those 2 lines I guess :
2023-09-27T15:57:45.674Z semantic-release:get-tags found tags for branch 0.24.x: [ { gitTag: 'v0.24.2', version: '0.24.2', channels: [ null ] } ]
2023-09-27T15:57:45.703Z semantic-release:get-tags found tags for branch release: [ { gitTag: 'v0.24.2', version: '0.24.2', channels: [ null ] }, { gitTag: 'v0.25.0', version: '0.25.0', channels: [ null ] }, { gitTag: 'v0.26.0', version: '0.26.0', channels: [ null ] } ]
and then
[3:57:46 PM] [semantic-release] › ℹ No previous release found, retrieving all commits
[3:57:46 PM] [semantic-release] › ℹ Found 707 commits since last release
If I run again the same pipeline, with I think the same context :
On second execution, those 2 lines are different, which might be the beginning of the solution. Channels have value
2023-09-28T06:51:56.888Z semantic-release:get-tags found tags for branch 0.24.x: [ { gitTag: 'v0.24.2', version: '0.24.2', channels: [ null, '0.24.x' ] } ]
2023-09-28T06:51:56.918Z semantic-release:get-tags found tags for branch release: [ { gitTag: 'v0.24.2', version: '0.24.2', channels: [ null, '0.24.x' ] }, { gitTag: 'v0.25.0', version: '0.25.0', channels: [ null ] }, { gitTag: 'v0.26.0', version: '0.26.0', channels: [ null ] } ]
and then
[6:51:57 AM] [semantic-release] › ℹ Found git tag v0.24.2 associated with version 0.24.2 on branch 0.24.x
2023-09-28T06:51:57.435Z semantic-release:get-commits Use from: aa558eac89363e3c5b2b564b9e6371581ee493f8
[6:51:57 AM] [semantic-release] › ℹ Found 3 commits since last release
Can someone help me understand what is wrong with my configuration that causes the first try to fail and the second one to success please ?
thank you
Beta Was this translation helpful? Give feedback.
All reactions