Replies: 3 comments 5 replies
-
The documentation says:
The problem might be that your git repository is in a detched state. The current branch will be normally set on the build process or detect on the normalization process. Anyway, following issue might be related: |
Beta Was this translation helpful? Give feedback.
-
Hey I'll try check but it's even worse from this point where I started looking https://github.com/InfinityFlowApp/temporal-migrator/actions/runs/11038741259/job/30662653758 where tag wasn't even considered, and release was done instead of pre-release |
Beta Was this translation helpful? Give feedback.
-
Running locally I get these results
{
"AssemblySemFileVer": "0.1.0.0",
"AssemblySemVer": "0.1.0.0",
"BranchName": "(no branch)",
"BuildMetaData": 17,
"CommitDate": "2024-09-24",
"CommitsSinceVersionSource": 17,
"EscapedBranchName": "-no-branch-",
"FullBuildMetaData": "17.Branch.-no-branch-.Sha.b3433d121ecb30444da2ef302c14cbc6bbec3b21",
"FullSemVer": "0.1.0--no-branch-.1+17",
"InformationalVersion": "0.1.0--no-branch-.1+17.Branch.-no-branch-.Sha.b3433d121ecb30444da2ef302c14cbc6bbec3b21",
"Major": 0,
"MajorMinorPatch": "0.1.0",
"Minor": 1,
"Patch": 0,
"PreReleaseLabel": "-no-branch-",
"PreReleaseLabelWithDash": "--no-branch-",
"PreReleaseNumber": 1,
"PreReleaseTag": "-no-branch-.1",
"PreReleaseTagWithDash": "--no-branch-.1",
"SemVer": "0.1.0--no-branch-.1",
"Sha": "b3433d121ecb30444da2ef302c14cbc6bbec3b21",
"ShortSha": "b3433d1",
"UncommittedChanges": 1,
"VersionSourceSha": "",
"WeightedPreReleaseNumber": 1
} |
Beta Was this translation helpful? Give feedback.
-
Prerequisites
GitVersion package
GitVersion.MsBuild
GitVersion version
6.0.2
Operating system
Windows
What are you seeing?
Trying to update from 5.12.0
When packing a library for a checked out tag I see "--no-branch-" label, even when setting label
What is expected?
if I am on the tag e.g. 'v0.1.0-rc.1' I expect this version to be outputted when packing a nuget library
Steps to Reproduce
Make a tag
dotnet pack
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
No response
Beta Was this translation helpful? Give feedback.
All reactions