Replies: 1 comment 12 replies
-
@HHobeck can you help here? |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have hundreds of repos configured for 5.12 with a config that is as follows:
Lets' say I have a
master
branch with a commit tagged withv10.0.0
and eight more untagged commits after it, each of which had+semver: none
in the commit message and correspondingly the build versioning skipped these as still producingv10.0.0
with no change in tag. GitVersion is being run atHEAD
ofmaster
.GitVersion
5.12.0
gives me10.0.0
with a pre-release tag of8
which gets skipped when formingFullSemVer
:JSON
which is correct - the package is unchanged.
If I try the suggested migration for 6.0.0, using trunk-based, I get completely different behaviour, so I'm querying - is there actually a 1:1 expected configuration for the above? Is the migration configuration advice incomplete or perhaps yielding assumptions?
GitVersion
6.0.0
gives me10.0.8
:JSON
which is incorrect; the package hasn't changed so the version should not have done so either.
What is the migration path to yield original behaviour? My expectation is that the versioning should be driven by the last tag, particularly since the interposed commits are all marked with the
none
semver message.I cannot find any up-to-date documentation on either
Mainline
as a strategy (or indeed what any of the strategies actually do), and the documentedTrunkBased
strategy does not appear to exist.Assistance/advice would be appreciated. I am suspecting I need to replace
strategies
but since I clearly don't grasp what these are actually doing, I would like some help in understanding the functionality.What I am attempting to achieve:
master
was last tagged with1.2.0
, then absent any other commit messaging, the next version should be1.2.1
i.e. defaulting to a patch; if the next commit contains+semver: feature
then it should yield1.3.0
; our build system will then apply a tag accordingly+semver: none
to indicate that the version should not change, and correspondingly no tag should be addedsupport
branch was last tagged with1.3.2
then the next version should be1.3.3
Beta Was this translation helpful? Give feedback.
All reactions