From ca71471cbd9893f2510c06ecd14225751d6b8116 Mon Sep 17 00:00:00 2001 From: Marco Franzen Date: Thu, 5 Sep 2024 18:00:19 +0200 Subject: [PATCH] fix semver version check - 0.0.1 is now allowed with a release label --- src/vpk/Velopack.Vpk/Commands/SystemCommandLineExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vpk/Velopack.Vpk/Commands/SystemCommandLineExtensions.cs b/src/vpk/Velopack.Vpk/Commands/SystemCommandLineExtensions.cs index 3fea07eb..92133d4a 100644 --- a/src/vpk/Velopack.Vpk/Commands/SystemCommandLineExtensions.cs +++ b/src/vpk/Velopack.Vpk/Commands/SystemCommandLineExtensions.cs @@ -293,7 +293,7 @@ internal static class SystemCommandLineExtensions string version = result.Tokens[i].Value; //TODO: This is duplicating NugetUtil.ThrowIfVersionNotSemverCompliant if (SemanticVersion.TryParse(version, out var parsed)) { - if (parsed < new SemanticVersion(0, 0, 1)) { + if (parsed < new SemanticVersion(0, 0, 1, parsed.Release)) { result.AddError($"{result.IdentifierToken.Value} contains an invalid package version '{version}', it must be >= 0.0.1."); break; }