Replies: 1 comment 15 replies
-
|
@HHobeck can you help here? |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have hundreds of repos configured for 5.12 with a config that is as follows:
Lets' say I have a
masterbranch with a commit tagged withv10.0.0and eight more untagged commits after it, each of which had+semver: nonein the commit message and correspondingly the build versioning skipped these as still producingv10.0.0with no change in tag. GitVersion is being run atHEADofmaster.GitVersion
5.12.0gives me10.0.0with a pre-release tag of8which gets skipped when formingFullSemVer:JSON
{ "Major": 10, "Minor": 0, "Patch": 0, "PreReleaseTag": "8", "PreReleaseTagWithDash": "", "PreReleaseLabel": "", "PreReleaseLabelWithDash": "", "PreReleaseNumber": null, "WeightedPreReleaseNumber": 60000, "BuildMetaData": null, "BuildMetaDataPadded": "", "FullBuildMetaData": "Branch.master.Sha.8947dafe06011c812599eb2b273830d916d367cf", "MajorMinorPatch": "10.0.0", "SemVer": "10.0.0", "LegacySemVer": "10.0.0", "LegacySemVerPadded": "10.0.0", "AssemblySemVer": "10.0.0.0", "AssemblySemFileVer": "10.0.0.0", "FullSemVer": "10.0.0", "InformationalVersion": "10.0.0+Branch.master.Sha.8947dafe06011c812599eb2b273830d916d367cf", "BranchName": "master", "EscapedBranchName": "master", "Sha": "8947dafe06011c812599eb2b273830d916d367cf", "ShortSha": "8947daf", "NuGetVersionV2": "10.0.0", "NuGetVersion": "10.0.0", "NuGetPreReleaseTagV2": "", "NuGetPreReleaseTag": "", "VersionSourceSha": "bf8dcfafbf235762f6e1d9396392dfac9ee690b6", "CommitsSinceVersionSource": 8, "CommitsSinceVersionSourcePadded": "0008", "UncommittedChanges": 327, "CommitDate": "2024-07-18" }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.0gives me10.0.8:JSON
{ "AssemblySemFileVer": "10.0.8.0", "AssemblySemVer": "10.0.0.0", "BranchName": "master", "BuildMetaData": null, "CommitDate": "2024-07-18", "CommitsSinceVersionSource": 1, "EscapedBranchName": "master", "FullBuildMetaData": "Branch.master.Sha.8947dafe06011c812599eb2b273830d916d367cf", "FullSemVer": "10.0.8", "InformationalVersion": "10.0.8+Branch.master.Sha.8947dafe06011c812599eb2b273830d916d367cf", "Major": 10, "MajorMinorPatch": "10.0.8", "Minor": 0, "Patch": 8, "PreReleaseLabel": "", "PreReleaseLabelWithDash": "", "PreReleaseNumber": null, "PreReleaseTag": "", "PreReleaseTagWithDash": "", "SemVer": "10.0.8", "Sha": "8947dafe06011c812599eb2b273830d916d367cf", "ShortSha": "8947daf", "UncommittedChanges": 328, "VersionSourceSha": "f327e3cc4c5b92b77dd186198d2bb4262c1473fd", "WeightedPreReleaseNumber": 60000 }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
nonesemver message.I cannot find any up-to-date documentation on either
Mainlineas a strategy (or indeed what any of the strategies actually do), and the documentedTrunkBasedstrategy does not appear to exist.Assistance/advice would be appreciated. I am suspecting I need to replace
strategiesbut 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:
masterwas last tagged with1.2.0, then absent any other commit messaging, the next version should be1.2.1i.e. defaulting to a patch; if the next commit contains+semver: featurethen it should yield1.3.0; our build system will then apply a tag accordingly+semver: noneto indicate that the version should not change, and correspondingly no tag should be addedsupportbranch was last tagged with1.3.2then the next version should be1.3.3Beta Was this translation helpful? Give feedback.
All reactions