Skip to content

Commit

Permalink
Merge pull request #704 from aaubry/fix-prereleases-on-artifactory
Browse files Browse the repository at this point in the history
Ensure that pre-releases are always in lower case
  • Loading branch information
aaubry committed Jul 19, 2022
2 parents 1ca20f4 + ac2978c commit ceacbdd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/build/BuildDefinition.cs
Expand Up @@ -65,6 +65,11 @@ public static GitVersion ResolveVersion(Options options, PreviousReleases releas
jsonOptions.Converters.Add(new AutoNumberToStringConverter());

version = JsonSerializer.Deserialize<GitVersion>(versionJson, jsonOptions);

// Workaround to prevent issues with some consumers of the NuGet API that build
// links manually instead of following the links that come in the response.
// https://github.com/aaubry/YamlDotNet/issues/703
version.PreReleaseLabel = version.PreReleaseLabel?.ToLowerInvariant();
}

if (version.CommitsSinceVersionSource > 0 && version.Equals(releases.Latest))
Expand Down

0 comments on commit ceacbdd

Please sign in to comment.