From f5bdb61b3389ec350da5aafb68c8502b63e81140 Mon Sep 17 00:00:00 2001 From: Maxim Lobanov Date: Mon, 21 Dec 2020 20:38:36 +0300 Subject: [PATCH] Update go-parser.psm1 --- get-new-tool-versions/parsers/go-parser.psm1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/get-new-tool-versions/parsers/go-parser.psm1 b/get-new-tool-versions/parsers/go-parser.psm1 index 76c7130..19f3a21 100644 --- a/get-new-tool-versions/parsers/go-parser.psm1 +++ b/get-new-tool-versions/parsers/go-parser.psm1 @@ -20,6 +20,10 @@ class GoVersionsParser: BaseVersionsParser { } hidden [bool] ShouldIncludeVersion([SemVer]$Version) { + if ($Version.PreReleaseLabel) { + return $false + } + # For Go, we include all versions greater than 1.12 return $Version -gt [SemVer]"1.12.0" }