Skip to content

Commit

Permalink
Ensure that pre-releases are always in lower case
Browse files Browse the repository at this point in the history
This fixes Artifactory mirrors and #703.
  • Loading branch information
aaubry committed Jul 19, 2022
1 parent 1ca20f4 commit ac2978c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/build/BuildDefinition.cs
Original file line number Diff line number Diff line change
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 ac2978c

Please sign in to comment.