Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 5.5.1 does not produce and incrementing version on main branch #2461

Closed
ptr727 opened this issue Nov 23, 2020 · 6 comments
Closed

[Bug] 5.5.1 does not produce and incrementing version on main branch #2461

ptr727 opened this issue Nov 23, 2020 · 6 comments
Labels

Comments

@ptr727
Copy link

ptr727 commented Nov 23, 2020

Describe the bug
I switched from master to main style branch naming.
New branch main from master, set main as default, delete master.
I switched from Azure DevOps to GitHub Actions.
Using 5.5.1 I could not get GitVersion to increment versions using +semver.
Reverting to 5.3.7 I could again get version increments.

Expected Behavior

I expect 5.5.1 to work the same as 5.3.7.

Actual Behavior

5.5.1 is not incrementing in +semver commit commands.

Possible Fix

Revert to 5.3.7

Steps to Reproduce

GitHub Action:
https://github.com/ptr727/Utilities/blob/main/.github/workflows/BuildPublishPipeline.yml

Diag from 5.5.1:

PS C:\Users\piete\source\repos\Utilities> gitversion /version
5.5.1+Branch.master.Sha.26def753db54e1cf430f0651d5800e5e0e607147
PS C:\Users\piete\source\repos\Utilities> gitversion /diag   
INFO [11/23/20 7:09:48:01] Dumping commit graph: 
INFO [11/23/20 7:09:48:21] * 9a89c7b 2 days ago  (HEAD -> develop, origin/develop)
| *   00b655c 2 days ago  (origin/main, main)
| |\  
| |/  
|/|   
* |   4dfe7c9 2 days ago 
|\ \  
| |/  
| *   6b3cfb9 2 days ago 
| |\  
* | | dc8d40a 2 days ago 
| |/  
|/|
* |   3ad6b1d 2 days ago
|\ \
| |/
| *   d24ce6f 2 days ago
| |\
* | | 3d8b51a 2 days ago
| |/
|/|
* |   62976a3 2 days ago
|\ \
| |/
| *   6a65af2 2 days ago
| |\
* | \   98a3002 2 days ago
|\ \ \
| | |/
| |/|
| * |   f1b1a95 2 days ago
| |\ \
| | |/
| | *   8f66a60 2 days ago
| | |\
* | | | 758796e 2 days ago
|/ / /
* | | a4b299a 2 days ago
* | | e3985fc 2 days ago
* | | d310d84 2 days ago
| |/
|/|
* | 0f1b68b 2 days ago
* | 5a6da7e 2 days ago
* |   39b6a78 2 days ago
|\ \
| |/
| *   24d48dc 2 days ago
| |\
| * \   f5bb165 2 days ago
| |\ \
* | | | 134bf78 2 days ago
| |_|/
|/| |
* | |   ba7e885 2 days ago
|\ \ \
| | |/
| |/|
| * |   ed0fc0c 2 days ago
| |\ \
| | |/
| | *   41fe103 6 months ago  (origin/master, origin/HEAD)
| | |\
* | | | 88b5d04 2 days ago
|/ / /
* | | ff2370c 2 days ago
* | | 4cfb57d 2 days ago
* | | 8d5e685 2 days ago
* | | ad9eb5e 2 days ago
* | | df087c5 2 days ago
* | | 46e4b07 2 days ago
* | | ec27686 2 days ago
* | | 2adfe8c 2 days ago
* | | 1c2ed7c 2 days ago
* | | 6d4784d 2 days ago
* | | 8412e34 2 days ago
* | |   4330bf8 2 days ago
|\ \ \
| | |/
| |/|
| * |   04e754b 6 months ago
| |\ \
| | |/
| | *   4ce5a40 6 months ago
| | |\
* | | | 5a1206d 2 days ago
|/ / /
* | | c333e3f 6 months ago
| |/
|/|
* |   177e8f0 6 months ago
|\ \
| |/
| *   96181e7 6 months ago
| |\
* | | e2448f3 6 months ago
| |/
|/|
* |   c89ac9a 6 months ago
|\ \
| |/
| *   99a3b1f 7 months ago
| |\
* | \   6a096f8 6 months ago
|\ \ \
| | |/
| |/|
| * |   490b2e8 7 months ago
| |\ \
| | |/
| | *   3c4633d 7 months ago
| | |\
| * | | bed8c1d 7 months ago
* | | | af55b31 6 months ago
|/ / /
* | | 7ab6464 7 months ago
| |/
|/|
* | 3f4981a 7 months ago
* |   3218c3d 7 months ago
|\ \
| |/
| *   0127fb1 7 months ago
| |\
* | | d2f9fe8 7 months ago
| |/
|/|
* |   4eecd45 7 months ago
|\ \
| |/
| *   634b830 8 months ago
| |\
* | | 81275be 7 months ago
| |/
|/|
* |   d409cbe 8 months ago
|\ \
| |/
| *   425c118 9 months ago
| |\
* | | 1860abb 8 months ago
| |/
|/|
* |   610c01f 9 months ago
|\ \
| |/
| *   a2e2bcb 9 months ago
| |\
| * \   c2be3ea 10 months ago
| |\ \
* | | | 1875fa3 9 months ago
| |_|/
|/| |
* | | dd4ed7d 9 months ago
| |/  
|/|
* |   2c199e2 10 months ago
|\ \
| |/
| *   5e5c316 10 months ago
| |\
* | | 2376142 10 months ago
| |/
|/|
* |   9a0c3d4 10 months ago
|\ \
| |/
| *   718f051 10 months ago
| |\
| * \   a4cdf25 10 months ago
| |\ \
* | | | 566af08 10 months ago
* | | | fc7e008 10 months ago
* | | | a244e24 10 months ago
* | | | 28e89c2 10 months ago
* | | | 8a4b18b 10 months ago
* | | | b0e1dff 10 months ago
* | | | 0b392f7 10 months ago
* | | | a1e7b83 10 months ago
* | | | 3c7be2f 10 months ago
* | | | baabdf1 10 months ago
| |_|/
|/| |
* | | 372a1c0 10 months ago
* | | ac6365b 10 months ago
* | | b7543e4 10 months ago
* | | 3c31849 10 months ago
* | | 4ff6e74 10 months ago
* | | 2ee963f 10 months ago
* | | 6c8031f 10 months ago
| |/
|/|
* | 419d65b 10 months ago
* | 315b0a5 10 months ago
* | 33a08df 10 months ago
* |   a3db955 10 months ago
|\ \
| |/
| * 4e5f661 10 months ago
| *   61b0e02 10 months ago
| |\
| |/
|/|
* | 40293c5 10 months ago
| * 7d9f6f5 10 months ago  (master)

INFO [11/23/20 7:09:48:27] Working directory: C:\Users\piete\source\repos\Utilities
INFO [11/23/20 7:09:48:33] Project root is: C:\Users\piete\source\repos\Utilities\
INFO [11/23/20 7:09:48:33] DotGit directory is: C:\Users\piete\source\repos\Utilities\.git
INFO [11/23/20 7:09:48:56] Using latest commit on specified branch
INFO [11/23/20 7:09:48:61] Running against branch: develop (9a89c7bb36c083b99a7677783fb14a6bee5becc0)
INFO [11/23/20 7:09:48:61] Begin: Calculating base versions
  INFO [11/23/20 7:09:48:63] NextVersion in GitVersion configuration file: 1.4.0 with commit count source External Source
  INFO [11/23/20 7:09:48:74] Base version used: NextVersion in GitVersion configuration file: 1.4.0 with commit count source ada0b3dc356446d18989bd55141c1bf7d6d719aa
  INFO [11/23/20 7:09:48:74] End: Calculating base versions (Took: 125.29ms)
  INFO [11/23/20 7:09:48:74] Begin: Using mainline development mode to calculate current version
    INFO [11/23/20 7:09:48:76] Found possible mainline branches: main, master
    INFO [11/23/20 7:09:48:77] Mainline for current branch is main
    INFO [11/23/20 7:09:48:78] Found branch merge point; choosing 00b655c39f81fba5b1a452da676bc7c38d51a5b6 as effective mainline tip
    INFO [11/23/20 7:09:48:79] Current branch (develop) was branch from 4dfe7c96e8993959e4f9b05c236ad125982fa175
    INFO [11/23/20 7:09:48:79] 1 commits found between 4dfe7c96e8993959e4f9b05c236ad125982fa175 and 9a89c7bb36c083b99a7677783fb14a6bee5becc0
  INFO [11/23/20 7:09:48:79] End: Using mainline development mode to calculate current version (Took: 50.23ms)
  INFO [11/23/20 7:09:48:79] Begin: Getting version tags from branch 'refs/heads/develop'.
  INFO [11/23/20 7:09:48:81] End: Getting version tags from branch 'refs/heads/develop'. (Took: 15.82ms)
{
  "Major":1,
  "Minor":4,
  "Patch":0,
  "PreReleaseTag":"alpha.1",
  "PreReleaseTagWithDash":"-alpha.1",
  "PreReleaseLabel":"alpha",
  "PreReleaseNumber":1,
  "WeightedPreReleaseNumber":1,
  "BuildMetaData":"",
  "BuildMetaDataPadded":"",
  "FullBuildMetaData":"Branch.develop.Sha.9a89c7bb36c083b99a7677783fb14a6bee5becc0",
  "MajorMinorPatch":"1.4.0",
  "SemVer":"1.4.0-alpha.1",
  "LegacySemVer":"1.4.0-alpha1",
  "LegacySemVerPadded":"1.4.0-alpha0001",
  "AssemblySemVer":"1.4.0.0",
  "AssemblySemFileVer":"1.4.0.0",
  "FullSemVer":"1.4.0-alpha.1",
  "InformationalVersion":"1.4.0-alpha.1+Branch.develop.Sha.9a89c7bb36c083b99a7677783fb14a6bee5becc0",
  "BranchName":"develop",
  "EscapedBranchName":"develop",
  "Sha":"9a89c7bb36c083b99a7677783fb14a6bee5becc0",
  "ShortSha":"9a89c7b",
  "NuGetVersionV2":"1.4.0-alpha0001",
  "NuGetVersion":"1.4.0-alpha0001",
  "NuGetPreReleaseTagV2":"alpha0001",
  "NuGetPreReleaseTag":"alpha0001",
  "VersionSourceSha":"4dfe7c96e8993959e4f9b05c236ad125982fa175",
  "CommitsSinceVersionSource":1,
  "CommitsSinceVersionSourcePadded":"0001",
  "UncommittedChanges":0,
  "CommitDate":"2020-11-22"
}
  INFO [11/23/20 7:09:48:83] Done writing 

Diag from 5.3.7:

PS C:\Users\piete\source\repos\Utilities> gitversion /version
5.3.7+Branch.master.Sha.b22e8726683a0997484b53c5efd54394e93b5306
PS C:\Users\piete\source\repos\Utilities> gitversion /diag   
INFO [11/23/20 7:07:17:06] Dumping commit graph: 
INFO [11/23/20 7:07:17:20] * 9a89c7b 2 days ago  (HEAD -> develop, origin/develop)
| *   00b655c 2 days ago  (origin/main, main)
| |\  
| |/  
|/|   
* |   4dfe7c9 2 days ago 
|\ \  
| |/  
| *   6b3cfb9 2 days ago 
| |\  
* | | dc8d40a 2 days ago 
| |/  
|/|
* |   3ad6b1d 2 days ago
|\ \
| |/
| *   d24ce6f 2 days ago
| |\
* | | 3d8b51a 2 days ago
| |/
|/|
* |   62976a3 2 days ago
|\ \
| |/
| *   6a65af2 2 days ago
| |\
* | \   98a3002 2 days ago
|\ \ \
| | |/
| |/|
| * |   f1b1a95 2 days ago
| |\ \
| | |/
| | *   8f66a60 2 days ago
| | |\
* | | | 758796e 2 days ago
|/ / /
* | | a4b299a 2 days ago
* | | e3985fc 2 days ago
* | | d310d84 2 days ago
| |/
|/|
* | 0f1b68b 2 days ago 
* | 5a6da7e 2 days ago
* |   39b6a78 2 days ago
|\ \
| |/
| *   24d48dc 2 days ago
| |\
| * \   f5bb165 2 days ago
| |\ \
* | | | 134bf78 2 days ago
| |_|/
|/| |
* | |   ba7e885 2 days ago
|\ \ \
| | |/
| |/|
| * |   ed0fc0c 2 days ago
| |\ \
| | |/
| | *   41fe103 6 months ago  (origin/master, origin/HEAD)
| | |\
* | | | 88b5d04 2 days ago
|/ / /
* | | ff2370c 2 days ago
* | | 4cfb57d 2 days ago
* | | 8d5e685 2 days ago
* | | ad9eb5e 2 days ago
* | | df087c5 2 days ago
* | | 46e4b07 2 days ago
* | | ec27686 2 days ago
* | | 2adfe8c 2 days ago
* | | 1c2ed7c 2 days ago
* | | 6d4784d 2 days ago
* | | 8412e34 2 days ago
* | |   4330bf8 2 days ago
|\ \ \
| | |/
| |/|
| * |   04e754b 6 months ago
| |\ \
| | |/
| | *   4ce5a40 6 months ago
| | |\
* | | | 5a1206d 2 days ago
|/ / /
* | | c333e3f 6 months ago
| |/
|/|
* |   177e8f0 6 months ago
|\ \
| |/
| *   96181e7 6 months ago
| |\
* | | e2448f3 6 months ago
| |/
|/|
* |   c89ac9a 6 months ago
|\ \
| |/
| *   99a3b1f 7 months ago
| |\
* | \   6a096f8 6 months ago
|\ \ \
| | |/
| |/|
| * |   490b2e8 7 months ago
| |\ \
| | |/
| | *   3c4633d 7 months ago
| | |\
| * | | bed8c1d 7 months ago
* | | | af55b31 6 months ago
|/ / /
* | | 7ab6464 7 months ago
| |/
|/|
* | 3f4981a 7 months ago
* |   3218c3d 7 months ago
|\ \
| |/
| *   0127fb1 7 months ago
| |\
* | | d2f9fe8 7 months ago
| |/
|/|
* |   4eecd45 7 months ago
|\ \
| |/
| *   634b830 8 months ago
| |\
* | | 81275be 7 months ago
| |/
|/|
* |   d409cbe 8 months ago
|\ \
| |/
| *   425c118 9 months ago
| |\
* | | 1860abb 8 months ago
| |/
|/|
* |   610c01f 9 months ago
|\ \
| |/
| *   a2e2bcb 9 months ago
| |\
| * \   c2be3ea 10 months ago
| |\ \
* | | | 1875fa3 9 months ago
| |_|/
|/| |
* | | dd4ed7d 9 months ago
| |/
|/|
* |   2c199e2 10 months ago
|\ \
| |/
| *   5e5c316 10 months ago
| |\
* | | 2376142 10 months ago
| |/
|/|
* |   9a0c3d4 10 months ago
|\ \
| |/
| *   718f051 10 months ago
| |\
| * \   a4cdf25 10 months ago
| |\ \
* | | | 566af08 10 months ago
* | | | fc7e008 10 months ago
* | | | a244e24 10 months ago
* | | | 28e89c2 10 months ago
* | | | 8a4b18b 10 months ago
* | | | b0e1dff 10 months ago
* | | | 0b392f7 10 months ago
* | | | a1e7b83 10 months ago
* | | | 3c7be2f 10 months ago
* | | | baabdf1 10 months ago
| |_|/
|/| |
* | | 372a1c0 10 months ago
* | | ac6365b 10 months ago
* | | b7543e4 10 months ago
* | | 3c31849 10 months ago
* | | 4ff6e74 10 months ago
* | | 2ee963f 10 months ago 
* | | 6c8031f 10 months ago
| |/
|/|
* | 419d65b 10 months ago
* | 315b0a5 10 months ago
* | 33a08df 10 months ago
* |   a3db955 10 months ago
|\ \
| |/
| * 4e5f661 10 months ago
| *   61b0e02 10 months ago
| |\
| |/
|/|
* | 40293c5 10 months ago
| * 7d9f6f5 10 months ago  (master)

INFO [11/23/20 7:07:17:25] Working directory: C:\Users\piete\source\repos\Utilities
INFO [11/23/20 7:07:17:27] Project root is: C:\Users\piete\source\repos\Utilities\
INFO [11/23/20 7:07:17:28] DotGit directory is: C:\Users\piete\source\repos\Utilities\.git
INFO [11/23/20 7:07:17:42] Using latest commit on specified branch
INFO [11/23/20 7:07:17:43] Running against branch: develop (9a89c7bb36c083b99a7677783fb14a6bee5becc0)
INFO [11/23/20 7:07:17:43] Begin: Calculating base versions
  INFO [11/23/20 7:07:17:45] NextVersion in GitVersion configuration file: 1.4.0 with commit count source External Source
  INFO [11/23/20 7:07:17:91] Base version used: NextVersion in GitVersion configuration file: 1.4.0 with commit count source ada0b3dc356446d18989bd55141c1bf7d6d719aa
  INFO [11/23/20 7:07:17:91] End: Calculating base versions (Took: 474.31ms)
  INFO [11/23/20 7:07:17:91] Begin: Using mainline development mode to calculate current version
    INFO [11/23/20 7:07:17:93] Found possible mainline branches: master
    INFO [11/23/20 7:07:17:94] Mainline for current branch is master
    INFO [11/23/20 7:07:17:96] Found branch merge point; choosing 7d9f6f532b7d44fe9c42e656166a35a253bb672b as effective mainline tip
    INFO [11/23/20 7:07:17:96] Current branch (develop) was branch from 7d9f6f532b7d44fe9c42e656166a35a253bb672b
    INFO [11/23/20 7:07:17:97] Direct commit on master 8a20fd3a3c5d8399490dd21d0d185e58e04cb3e1 incremented base versions Patch, now 1.4.1
    INFO [11/23/20 7:07:17:97] Merge commit e44a1639607cacd6640dded62037dc185088aebd incremented base versions Patch, now 1.4.2
    INFO [11/23/20 7:07:17:97] Direct commit on master ff36f89bbb08296b70311041ec4b07a29e44f05d incremented base versions Patch, now 1.4.3
    INFO [11/23/20 7:07:17:97] Direct commit on master 52c6ed77618e5c84cd58f27d888141974a1e3d97 incremented base versions Patch, now 1.4.4
    INFO [11/23/20 7:07:17:97] Direct commit on master 76b9f0c3fe93dcc34cfbfcb46378fb45c02515ef incremented base versions Patch, now 1.4.5
    INFO [11/23/20 7:07:17:98] Direct commit on master 98b8898d117f8a86f079d965495bc4fc1838d05b incremented base versions Patch, now 1.4.6
    INFO [11/23/20 7:07:17:98] Direct commit on master 8a70f2d5b274bf55c5e89314997479227a7218fc incremented base versions Patch, now 1.4.7
    INFO [11/23/20 7:07:17:98] Direct commit on master 08a621d7990e785d1c092703ec583cd4dff44746 incremented base versions Patch, now 1.4.8
    INFO [11/23/20 7:07:17:98] Direct commit on master 6309ede55ba6f743068800533e3ff641496cf72a incremented base versions Patch, now 1.4.9
    INFO [11/23/20 7:07:17:98] Direct commit on master f53aa73f76f9b10ccb6d3c142d010833392fc99e incremented base versions Patch, now 1.4.10
    INFO [11/23/20 7:07:17:98] Direct commit on master 818c5b44e4f4adc60fb17fbaa741c1cc428a202d incremented base versions Patch, now 1.4.11
    INFO [11/23/20 7:07:17:98] Direct commit on master 201d5a01ebc48ba53e5d4a0760cb84df7de40554 incremented base versions Patch, now 1.4.12
    INFO [11/23/20 7:07:17:98] Direct commit on master 91a54e515b32fb0f7dffbd51161898d3a7ef77c0 incremented base versions Patch, now 1.4.13
    INFO [11/23/20 7:07:17:98] Direct commit on master b70b6d703f4c6495fa55ef5a5e5e2b129cbc7aae incremented base versions Patch, now 1.4.14
    INFO [11/23/20 7:07:17:98] Merge commit ff70565d8f990facd9d583bf4bbb56c6dc162a87 incremented base versions Patch, now 1.4.15
    INFO [11/23/20 7:07:17:98] Direct commit on master e0b8003444d7e42dd920c46aa16193a0f81fb63f incremented base versions Patch, now 1.4.16
    INFO [11/23/20 7:07:17:98] Direct commit on master e7a0a51329531220409ad4b303a214fd550d8312 incremented base versions Patch, now 1.4.17
    INFO [11/23/20 7:07:17:99] Direct commit on master 58cb3a92e322b46ebe04ba3bc0d8a47a5c051652 incremented base versions Patch, now 1.4.18
    INFO [11/23/20 7:07:17:99] Direct commit on master 7636c2015ab9f9e2ea82ddd8330fb5f2f0d0b6e3 incremented base versions Patch, now 1.4.19
    INFO [11/23/20 7:07:17:99] Direct commit on master de353962b4c9ef7516c87a06674bef46e82b4a1d incremented base versions Patch, now 1.4.20
    INFO [11/23/20 7:07:17:99] Direct commit on master 86f26a1c70bb284940d55a28be2652be09d0dba3 incremented base versions Patch, now 1.4.21
    INFO [11/23/20 7:07:17:99] Direct commit on master 9dffcf8cb8461ee2d63214ccbb3c7e55dc840dde incremented base versions Patch, now 1.4.22
    INFO [11/23/20 7:07:17:99] Direct commit on master 287b608c79fb6e9905947afd828312af7f01f6bd incremented base versions Patch, now 1.4.23
    INFO [11/23/20 7:07:17:99] Merge commit 177a0127be901ffd88f1582a331e365e16b379a9 incremented base versions Patch, now 1.4.24
    INFO [11/23/20 7:07:18:00] Direct commit on master 828a2856d3da071923c4de73d183f1a160189f00 incremented base versions Patch, now 1.4.25
    INFO [11/23/20 7:07:18:00] Direct commit on master 83f74765b28260db1a0d5a24286efcd507e182ab incremented base versions Patch, now 1.4.26
    INFO [11/23/20 7:07:18:00] Direct commit on master 47a3aa745d92aa3115cd21d1a33ba510315f3481 incremented base versions Patch, now 1.4.27
    INFO [11/23/20 7:07:18:00] Direct commit on master 98e39958d0dc7d40cd923899bda9484a07c72ea9 incremented base versions Patch, now 1.4.28
    INFO [11/23/20 7:07:18:00] Direct commit on master 339784e01d84b92d6c6e69c433bb3448061da8d0 incremented base versions Patch, now 1.4.29
    INFO [11/23/20 7:07:18:00] Direct commit on master 26e7cfe90e4e3e9c77f6c57d8a30a9a3d774bc82 incremented base versions Patch, now 1.4.30
    INFO [11/23/20 7:07:18:00] Direct commit on master c0a0f4155fa28b9b8d4a7306738f8e0b41cae13c incremented base versions Patch, now 1.4.31
    INFO [11/23/20 7:07:18:00] Direct commit on master a72e03fef0e802c2644b551138e90c2e2ab88cef incremented base versions Patch, now 1.4.32
    INFO [11/23/20 7:07:18:00] Direct commit on master 8f8041c23ee51ef6d7a3196b08cecf67ad3c9ea3 incremented base versions Patch, now 1.4.33
    INFO [11/23/20 7:07:18:00] Direct commit on master febc70a9e2c52cefd208d71f04a24396ec85d1f8 incremented base versions Patch, now 1.4.34
    INFO [11/23/20 7:07:18:00] Direct commit on master 0a2780052077d82de5776c5b03b577a6836f5e99 incremented base versions Patch, now 1.4.35
    INFO [11/23/20 7:07:18:00] Direct commit on master e68ad22c8131886372334650c5e68d11961b93fe incremented base versions Patch, now 1.4.36
    INFO [11/23/20 7:07:18:02] Direct commit on master 8e8a04bab0cdf9099e335890cf4aebbe71fd4439 incremented base versions Patch, now 1.4.37
    INFO [11/23/20 7:07:18:02] Direct commit on master c8b231de21e1f15de047b2c5bfcadcf8163331b4 incremented base versions Patch, now 1.4.38
    INFO [11/23/20 7:07:18:02] Merge commit 57eda349702d826d1980d2e3911e330d879067fb incremented base versions Minor, now 1.5.0
    INFO [11/23/20 7:07:18:02] Direct commit on master c6ea5abb9c0f6c1d5ac9f421be1f709506237d35 incremented base versions Patch, now 1.5.1
    INFO [11/23/20 7:07:18:02] Direct commit on master eb254a802df142a0e19a290c91b91f5c94c44a9c incremented base versions Patch, now 1.5.2
    INFO [11/23/20 7:07:18:02] Direct commit on master 7ca1c10845587dbcb3c4b0914793185857c3929a incremented base versions Patch, now 1.5.3
    INFO [11/23/20 7:07:18:02] Direct commit on master fcb7774f4343178eb3a50b0b9c63f9e5a4a83369 incremented base versions Patch, now 1.5.4
    INFO [11/23/20 7:07:18:02] Direct commit on master e1e8c42e017d9c2156550794225ba71073fc47ff incremented base versions Patch, now 1.5.5
    INFO [11/23/20 7:07:18:02] Direct commit on master db5d837460cbf6be38bca40597abde7653452d57 incremented base versions Patch, now 1.5.6
    INFO [11/23/20 7:07:18:02] Direct commit on master 103520bfeeb68f9dc987c2a5f7f74a82247e0bbb incremented base versions Patch, now 1.5.7
    INFO [11/23/20 7:07:18:03] Direct commit on master 1b95e7175d36314f4db690a5f6b92311b00b6f58 incremented base versions Patch, now 1.5.8
    INFO [11/23/20 7:07:18:03] Direct commit on master 03ec76ba4b14070386d0b56d64810c405dc755d2 incremented base versions Patch, now 1.5.9
    INFO [11/23/20 7:07:18:03] Direct commit on master f86e96d77c14935865392132af7845c345d1e3d5 incremented base versions Patch, now 1.5.10
    INFO [11/23/20 7:07:18:03] Merge commit c0c2882c4883136025d85a05c4ee5d454806d911 incremented base versions Minor, now 1.6.0
    INFO [11/23/20 7:07:18:03] Direct commit on master 7b55e0260c80d83aa128d18afdfcc883270d87fd incremented base versions Patch, now 1.6.1
    INFO [11/23/20 7:07:18:04] Direct commit on master 3043d3586894d8d5d1a1516753b6109b5cc57f01 incremented base versions Patch, now 1.6.2
    INFO [11/23/20 7:07:18:04] Direct commit on master d47c129ab19cc38893fbd661058509ed6e0e48a5 incremented base versions Patch, now 1.6.3
    INFO [11/23/20 7:07:18:04] Direct commit on master 2a67192afc1da97f080471c02a153c7cf19befcd incremented base versions Patch, now 1.6.4
    INFO [11/23/20 7:07:18:04] Direct commit on master 77bef6556cd87ade56f610add96db2044be02230 incremented base versions Patch, now 1.6.5
    INFO [11/23/20 7:07:18:04] Direct commit on master b14dceac53648e9b279a691757a6de67e8cc5429 incremented base versions Patch, now 1.6.6
    INFO [11/23/20 7:07:18:04] Direct commit on master 990d0bbd45f0a2e88c56159de39c0d9d6cce15ec incremented base versions Patch, now 1.6.7
    INFO [11/23/20 7:07:18:04] Direct commit on master 7d271f8e3a608f5effdd8d45d3719f2a021cb2a0 incremented base versions Patch, now 1.6.8
    INFO [11/23/20 7:07:18:04] Direct commit on master 58d633788164e5e01cda9d34ab490cdd03af7d95 incremented base versions Patch, now 1.6.9
    INFO [11/23/20 7:07:18:04] Direct commit on master 4357c863ea1f4cc1aef12ec942afe498d06383ac incremented base versions Patch, now 1.6.10
    INFO [11/23/20 7:07:18:04] Direct commit on master 8d0dac61b68d477c2aacc0a0dd854993fd84698f incremented base versions Patch, now 1.6.11
    INFO [11/23/20 7:07:18:04] Direct commit on master 704a0d040082ecc435d4b3c9e008f74138be1eb6 incremented base versions Patch, now 1.6.12
    INFO [11/23/20 7:07:18:05] Direct commit on master 86fd1e22a6077fc7bb903ce61151532ddccf1c5c incremented base versions Patch, now 1.6.13
    INFO [11/23/20 7:07:18:05] Direct commit on master 1d6dfd09c59d0c3828548e390a6d70f6969cf221 incremented base versions Patch, now 1.6.14
    INFO [11/23/20 7:07:18:05] Direct commit on master 783662981d96c74f5e0e8a2651a0906c3eb8520b incremented base versions Patch, now 1.6.15
    INFO [11/23/20 7:07:18:05] Direct commit on master 16d74d7efe057bd1999faf7782344cff3f09e40c incremented base versions Patch, now 1.6.16
    INFO [11/23/20 7:07:18:05] Direct commit on master 87e0c1134bbfea54bd350c165287b7c3a03f6eac incremented base versions Patch, now 1.6.17
    INFO [11/23/20 7:07:18:05] Direct commit on master 349b33465755cf3990d656e73531e47238e5f72a incremented base versions Patch, now 1.6.18
    INFO [11/23/20 7:07:18:05] Direct commit on master 13ae2b7acf6f9787e51a5dbd1847192bae383336 incremented base versions Patch, now 1.6.19
    INFO [11/23/20 7:07:18:05] Direct commit on master 3d3af8a31e374673bd1c1a2c14bddea9793ef558 incremented base versions Patch, now 1.6.20
    INFO [11/23/20 7:07:18:07] Direct commit on master 402faa873a07fc33038e58cfa35c54083d5d72c3 incremented base versions Patch, now 1.6.21
    INFO [11/23/20 7:07:18:07] Direct commit on master 411b0008bd864d7c7a1823e87bcddb2c399cbf8d incremented base versions Patch, now 1.6.22
    INFO [11/23/20 7:07:18:07] Direct commit on master 6fd9dde0d94fd7c51257069e4e7ca1cb19ab0169 incremented base versions Patch, now 1.6.23
    INFO [11/23/20 7:07:18:07] Direct commit on master 43cae9edbfe3d4ae9976f522162b681707372241 incremented base versions Patch, now 1.6.24
    INFO [11/23/20 7:07:18:07] Direct commit on master c2764e032dfe909827f39799a9dc8862a0a72788 incremented base versions Patch, now 1.6.25
    INFO [11/23/20 7:07:18:07] Direct commit on master 3284c2ad1b3c9d7617376753fc9168a961513f3f incremented base versions Patch, now 1.6.26
    INFO [11/23/20 7:07:18:07] Direct commit on master 4b7555c758d4a74ceff87c10e12f15456539de48 incremented base versions Patch, now 1.6.27
    INFO [11/23/20 7:07:18:07] Direct commit on master 0b720d194751d159180e36f50345f293526a4400 incremented base versions Patch, now 1.6.28
    INFO [11/23/20 7:07:18:07] Direct commit on master 51d09c47e678c3e8c8d2630eb785eee54420a994 incremented base versions Patch, now 1.6.29
    INFO [11/23/20 7:07:18:07] Direct commit on master 7d9f6f532b7d44fe9c42e656166a35a253bb672b incremented base versions Patch, now 1.6.30
    INFO [11/23/20 7:07:18:08] 98 commits found between 7d9f6f532b7d44fe9c42e656166a35a253bb672b and 9a89c7bb36c083b99a7677783fb14a6bee5becc0
    INFO [11/23/20 7:07:18:09] Performing Minor increment for current branch 
  INFO [11/23/20 7:07:18:10] End: Using mainline development mode to calculate current version (Took: 190.73ms)
  INFO [11/23/20 7:07:18:10] Begin: Getting version tags from branch 'refs/heads/develop'.
  INFO [11/23/20 7:07:18:11] End: Getting version tags from branch 'refs/heads/develop'. (Took: 12.52ms)
{
  "Major":1,
  "Minor":7,
  "Patch":0,
  "PreReleaseTag":"alpha.98",
  "PreReleaseTagWithDash":"-alpha.98",
  "PreReleaseLabel":"alpha",
  "PreReleaseNumber":98,
  "WeightedPreReleaseNumber":98,
  "BuildMetaData":"",
  "BuildMetaDataPadded":"",
  "FullBuildMetaData":"Branch.develop.Sha.9a89c7bb36c083b99a7677783fb14a6bee5becc0",
  "MajorMinorPatch":"1.7.0",
  "SemVer":"1.7.0-alpha.98",
  "LegacySemVer":"1.7.0-alpha98",
  "LegacySemVerPadded":"1.7.0-alpha0098",
  "AssemblySemVer":"1.7.0.0",
  "AssemblySemFileVer":"1.7.0.0",
  "FullSemVer":"1.7.0-alpha.98",
  "InformationalVersion":"1.7.0-alpha.98+Branch.develop.Sha.9a89c7bb36c083b99a7677783fb14a6bee5becc0",
  "BranchName":"develop",
  "EscapedBranchName":"develop",
  "Sha":"9a89c7bb36c083b99a7677783fb14a6bee5becc0",
  "ShortSha":"9a89c7b",
  "NuGetVersionV2":"1.7.0-alpha0098",
  "NuGetVersion":"1.7.0-alpha0098",
  "NuGetPreReleaseTagV2":"alpha0098",
  "NuGetPreReleaseTag":"alpha0098",
  "VersionSourceSha":"7d9f6f532b7d44fe9c42e656166a35a253bb672b",
  "CommitsSinceVersionSource":98,
  "CommitsSinceVersionSourcePadded":"0098",
  "CommitDate":"2020-11-22"
}
  INFO [11/23/20 7:07:18:15] Done writing 

Context

CI/CD does not work.

Your Environment

https://github.com/ptr727/Utilities
https://github.com/ptr727/Utilities/blob/main/.github/workflows/BuildPublishPipeline.yml

@asbjornu
Copy link
Member

How does your GitVersion.yml file look like?

@asbjornu
Copy link
Member

If you're using mode: Mainline and next-version, this is a duplicate of #2441 and you should remove next-version and use git tag instead.

@ptr727
Copy link
Author

ptr727 commented Nov 30, 2020

Here:
https://github.com/ptr727/Utilities/blob/develop/gitversion.yml

I'll try to remove next version and report back tomorrow.

@ptr727
Copy link
Author

ptr727 commented Nov 30, 2020

I removed next-version, seems to increment again on commits, but my versioning is now several versions behind.
Agree with sentiment in #2441 that this is a breaking change.

@asbjornu
Copy link
Member

I agree this is a breaking change, but we won't bump to version 6 and we won't retract this change. The previous functionality of next-version with mode: Mainline was a bug, not a feature. Please try adding a git tag on the main or master branch corresponding to the version you want as a base and report back whether it helps.

@ptr727
Copy link
Author

ptr727 commented Nov 30, 2020

I tried creating empty commits with +semver commands, but it seems that they are ignored by gitversion.
I resorted to creating a tag to get the version to bump, ugly since thus is a nuget workflow and I don't use tags, but I did get the version bumped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants