Prerequisites
GitVersion package
GitVersion.CmdLine
GitVersion version
6.3.0
Operating system
macOS
What are you seeing?
When running gitversion with the /diag flag, no diag output is logged.
$ gitversion -diag
{
"AssemblySemFileVer": "4.0.0.0",
"AssemblySemVer": "4.0.0.0",
"BranchName": "main",
"BuildMetaData": null,
"CommitDate": "2025-05-02",
"CommitsSinceVersionSource": 55,
"EscapedBranchName": "main",
"FullBuildMetaData": "Branch.main.Sha.58ee094bf82d3d5fd265f49b86e9b39a499f723c",
"FullSemVer": "4.0.0",
"InformationalVersion": "4.0.0+Branch.main.Sha.58ee094bf82d3d5fd265f49b86e9b39a499f723c",
"Major": 4,
"MajorMinorPatch": "4.0.0",
"Minor": 0,
"Patch": 0,
"PreReleaseLabel": "",
"PreReleaseLabelWithDash": "",
"PreReleaseNumber": null,
"PreReleaseTag": "",
"PreReleaseTagWithDash": "",
"SemVer": "4.0.0",
"Sha": "58ee094bf82d3d5fd265f49b86e9b39a499f723c",
"ShortSha": "58ee094",
"UncommittedChanges": 0,
"VersionSourceSha": "819c687a914b4567faf9fa647bd9d0aa14df909e",
"WeightedPreReleaseNumber": 60000
}
What is expected?
Diag output is shown exactly like in 6.2.0
$ gitversion-6.2.0 -diag
INFO [25-05-08 9:19:43:69] Please run `git log --graph --format="%h %cr %d" --decorate --date=relative --all --remotes=*` to see the git graph. This can help you troubleshoot any issues.
INFO [25-05-08 9:19:43:69] Working directory: <REPO_PATH>
INFO [25-05-08 9:19:43:70] Project root is: <REPO_PATH>
INFO [25-05-08 9:19:43:70] DotGit directory is: <REPO_PATH>/.git
INFO [25-05-08 9:19:43:70] Branch from build environment:
INFO [25-05-08 9:19:43:77] Using latest commit on specified branch
INFO [25-05-08 9:19:43:80] Getting tagged semantic versions. TagPrefix: and Format: Strict
INFO [25-05-08 9:19:43:84] Running against branch: main ('58ee094' - chore: promote external-secrets v1beta1 to v1)
INFO [25-05-08 9:19:43:84] -< Begin: Fetching the base versions for version calculation... >-
INFO [25-05-08 9:19:43:84] -< Begin: Calculating base versions for 'main' >-
INFO [25-05-08 9:19:43:84] -< Begin: [Using 'ConfiguredNextVersionVersionStrategy' strategy] >-
INFO [25-05-08 9:19:43:84] -< End: [Using 'ConfiguredNextVersionVersionStrategy' strategy] (Took: 0.29ms) >-
INFO [25-05-08 9:19:43:84] -< Begin: [Using 'MainlineVersionStrategy' strategy] >-
INFO [25-05-08 9:19:43:85] -< End: [Using 'MainlineVersionStrategy' strategy] (Took: 0.23ms) >-
INFO [25-05-08 9:19:43:85] -< Begin: [Using 'MergeMessageVersionStrategy' strategy] >-
INFO [25-05-08 9:19:43:87] -< End: [Using 'MergeMessageVersionStrategy' strategy] (Took: 23.71ms) >-
INFO [25-05-08 9:19:43:87] -< Begin: [Using 'TaggedCommitVersionStrategy' strategy] >-
INFO [25-05-08 9:19:43:87] -< Begin: Getting tagged semantic versions on branch 'refs/heads/main'. TagPrefix: and Format: Strict >-
INFO [25-05-08 9:19:43:87] -< End: Getting tagged semantic versions on branch 'refs/heads/main'. TagPrefix: and Format: Strict (Took: 0.85ms) >-
INFO [25-05-08 9:19:43:90] Git tag '3.1.1': Version increment '3.1.1' +semver 'Major' with label '' based on commit '819c687'.
INFO [25-05-08 9:19:43:90] Git tag '3.1.0': Version increment '3.1.0' +semver 'Major' with label '' based on commit '88ae521'.
INFO [25-05-08 9:19:43:90] Git tag '3.0.1': Version increment '3.0.1' +semver 'Major' with label '' based on commit '860266f'.
INFO [25-05-08 9:19:43:90] Git tag '3.0.0': Version increment '3.0.0' +semver 'Major' with label '' based on commit '917fcee'.
INFO [25-05-08 9:19:43:90] The tag '2.2.0' is skipped because it provides a lower base version than other tags.
INFO [25-05-08 9:19:43:90] The tag '2.1.0' is skipped because it provides a lower base version than other tags.
INFO [25-05-08 9:19:43:90] The tag '2.0.0' is skipped because it provides a lower base version than other tags.
INFO [25-05-08 9:19:43:90] The tag '1.3.0' is skipped because it provides a lower base version than other tags.
INFO [25-05-08 9:19:43:90] The tag '1.2.1' is skipped because it provides a lower base version than other tags.
INFO [25-05-08 9:19:43:90] The tag '1.2.0' is skipped because it provides a lower base version than other tags.
INFO [25-05-08 9:19:43:90] The tag '1.1.0' is skipped because it provides a lower base version than other tags.
INFO [25-05-08 9:19:43:90] The tag '1.0.0' is skipped because it provides a lower base version than other tags.
INFO [25-05-08 9:19:43:90] -< End: [Using 'TaggedCommitVersionStrategy' strategy] (Took: 32.17ms) >-
INFO [25-05-08 9:19:43:90] -< Begin: [Using 'TrackReleaseBranchesVersionStrategy' strategy] >-
INFO [25-05-08 9:19:43:90] -< End: [Using 'TrackReleaseBranchesVersionStrategy' strategy] (Took: 0.22ms) >-
INFO [25-05-08 9:19:43:90] -< Begin: [Using 'VersionInBranchNameVersionStrategy' strategy] >-
INFO [25-05-08 9:19:43:90] -< End: [Using 'VersionInBranchNameVersionStrategy' strategy] (Took: 0.28ms) >-
INFO [25-05-08 9:19:43:90] -< End: Calculating base versions for 'main' (Took: 58.04ms) >-
INFO [25-05-08 9:19:43:90] -< End: Fetching the base versions for version calculation... (Took: 59.11ms) >-
INFO [25-05-08 9:19:43:90] -------------------------------------------------------
INFO [25-05-08 9:19:43:90] Found multiple base versions which will produce the same SemVer (4.0.0-1), taking latest source for commit counting (Git tag '3.1.1')
INFO [25-05-08 9:19:43:90] Base version used: Git tag '3.1.1': Take '3.1.1' based on commit '819c687'.
INFO [25-05-08 9:19:43:90] -------------------------------------------------------
INFO [25-05-08 9:19:43:90] -< Begin: Using continuous deployment workflow to calculate the incremented version. >-
INFO [25-05-08 9:19:43:90] 55 commits found between '819c687' - chore(chart): Bump chart version to 3.1.1 and '58ee094' - chore: promote external-secrets v1beta1 to v1
INFO [25-05-08 9:19:43:90] -< End: Using continuous deployment workflow to calculate the incremented version. (Took: 1.50ms) >-
Set Build Number for 'LocalBuild'.
Set Output Variables for 'LocalBuild'.
{
"AssemblySemFileVer": "4.0.0.0",
"AssemblySemVer": "4.0.0.0",
"BranchName": "main",
"BuildMetaData": null,
"CommitDate": "2025-05-02",
"CommitsSinceVersionSource": 55,
"EscapedBranchName": "main",
"FullBuildMetaData": "Branch.main.Sha.58ee094bf82d3d5fd265f49b86e9b39a499f723c",
"FullSemVer": "4.0.0",
"InformationalVersion": "4.0.0+Branch.main.Sha.58ee094bf82d3d5fd265f49b86e9b39a499f723c",
"Major": 4,
"MajorMinorPatch": "4.0.0",
"Minor": 0,
"Patch": 0,
"PreReleaseLabel": "",
"PreReleaseLabelWithDash": "",
"PreReleaseNumber": null,
"PreReleaseTag": "",
"PreReleaseTagWithDash": "",
"SemVer": "4.0.0",
"Sha": "58ee094bf82d3d5fd265f49b86e9b39a499f723c",
"ShortSha": "58ee094",
"UncommittedChanges": 0,
"VersionSourceSha": "819c687a914b4567faf9fa647bd9d0aa14df909e",
"WeightedPreReleaseNumber": 60000
}
Steps to Reproduce
- Run
gitversion /diag using 6.3.0 release => no output
- Run
gitversion /diag using 6.2.0 release => diag output
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
Prerequisites
GitVersion package
GitVersion.CmdLine
GitVersion version
6.3.0
Operating system
macOS
What are you seeing?
When running gitversion with the
/diagflag, no diag output is logged.What is expected?
Diag output is shown exactly like in 6.2.0
Steps to Reproduce
gitversion /diagusing 6.3.0 release => no outputgitversion /diagusing 6.2.0 release => diag outputRepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).