mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 11:41:23 +00:00
Update go-parser.psm1
This commit is contained in:
@@ -20,6 +20,10 @@ class GoVersionsParser: BaseVersionsParser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hidden [bool] ShouldIncludeVersion([SemVer]$Version) {
|
hidden [bool] ShouldIncludeVersion([SemVer]$Version) {
|
||||||
|
if ($Version.PreReleaseLabel) {
|
||||||
|
return $false
|
||||||
|
}
|
||||||
|
|
||||||
# For Go, we include all versions greater than 1.12
|
# For Go, we include all versions greater than 1.12
|
||||||
return $Version -gt [SemVer]"1.12.0"
|
return $Version -gt [SemVer]"1.12.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user