mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
fix semver version check - 0.0.1 is now allowed with a release label
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user