Q: unable to create release version from tag
See original GitHub issueI have a version.json
file that looks like this:
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "0.9",
"versionHeightOffset": 2,
"publicReleaseRefSpec": [
"^refs/tags/rel/\\d+\\.\\d+\\.\\d+"
]
}
When I try to build from a tag named rel/0.9.2
I expect the nuget package to be versioned 0.9.2
, but it is versioned 0.9.9-g3ed3d4226b
.
To reproduce:
git clone https://github.com/tmds/Tmds.DBus.git
cd Tmds.DBus/
git checkout bump_092
git tag rel/0.9.2
git checkout rel/0.9.2
dotnet pack -c Release src/Tmds.DBus
It’s not clear what I’m doing wrong, or maybe I misunderstand some fields in version.json
?
Issue Analytics
- State:
- Created 2 years ago
- Comments:24 (6 by maintainers)
Top Results From Across the Web
github error on create release: tag could not be ...
2 Answers 2 · I just tried tag name v1.2.0 with the same result. Does it matter how the files were tagged before...
Read more >Creating new version failed: Git tag not found · Issue #218 · ...
Try deleting the tag, force push away the release commit, and try again. The GitHub issues yesterday caused similar problems for me.
Read more >Unable to create release trigger based on Github tag
I want to create a release only when i create a release in github (it gets tagged with release . I tried to...
Read more >How to Manage Releases with Semantic Versioning and Git ...
Being able to easily manage and communicate changes in code ... how to use Git tags to easily tag a repository with a...
Read more >How to update a Github release? - Deployment
(this is a followup to my previous post) I would like my untagged commit builds to deploy to a GitHib release named like...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FYI, I tried a few formats with Nerdbank.GitVersioning v3.4.255 and no “publicReleaseRefSpec”:
So, it seems impossible to get the version height in both AssemblyFileVersion and AssemblyInformationalVersion while explicitly specifying three components of the version. I did not try
"nugetPackageVersion": { "semVer": 2 }
.Thinking about it more: it would be interesting to have the version height as the 4th version digit in this case.
This can work without an additional field when the user specifies a 3-number
version
.Maybe some part of .NET tooling would have issues with the 4-number version?