dotnet / Nerdbank.GitVersioning

Stamp your assemblies, packages and more with a unique version generated from a single, simple version.json file and include git commit IDs for non-official builds.
https://www.nuget.org/packages/Nerdbank.GitVersioning
MIT License
1.32k stars 165 forks source link

nbgv tag command does not respect tagName setting #1060

Closed DmitryZhelnin closed 3 weeks ago

DmitryZhelnin commented 1 month ago

nbgv tag command always uses default setting "tagName" : "v{version}" and ignores any user defined patterns.

AArnott commented 3 weeks ago

You have to commit your version.json change before it applies. I can only repro your bug report if I haven't committed the change to tagName that I expect to see.

PS C:\Users\andarno\source\repos\Nerdbank.GitVersioning> nbgv tag
v3.7.0-alpha tag created at 2b6b66ab90b84cd2689e8dcffc6060919d2b0255.
Remember to push to a remote: git push origin v3.7.0-alpha
PS C:\Users\andarno\source\repos\Nerdbank.GitVersioning> git commit -am "change tag"
[detached HEAD 2d2e5c1a] change tag
 1 file changed, 1 insertion(+)
PS C:\Users\andarno\source\repos\Nerdbank.GitVersioning> nbgv tag
begin3.7.71-alphaend tag created at 2d2e5c1a30638bfc7df37aad96cf9e683646b931.
Remember to push to a remote: git push origin begin3.7.71-alphaend
DmitryZhelnin commented 3 weeks ago

Thank you for the reply. Turns out I had an old version of nbgv tool installed globally.