From 0e4e5019c172d977be025695bc07bea0c021eef7 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Wed, 9 Aug 2023 12:48:08 +0200 Subject: [PATCH] add minor fix (#81) --- builders/go-builder.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builders/go-builder.psm1 b/builders/go-builder.psm1 index 0181040..e3c5814 100644 --- a/builders/go-builder.psm1 +++ b/builders/go-builder.psm1 @@ -58,7 +58,7 @@ class GoBuilder { $arch = ($this.Architecture -eq "x64") ? "amd64" : $this.Architecture $goPlatform = ($this.Platform -Match "win32") ? "windows" : $this.Platform $ArchiveType = ($this.Platform -Match "win32") ? "zip" : "tar.gz" - If ($this.Version.Build -eq "0") { + If ($this.Version.Build -eq "0" -and $this.Version -lt "1.21.0") { $goVersion = "go$($this.Version.ToString(2))" } else { $goVersion = "go$($this.Version.ToString(3))"