Skip to content

Commit 98bc8f1

Browse files
committed
PATCH: Add support for ARM64
On-behalf-of: @SAP [email protected] Signed-off-by: Marko Mudrinić <[email protected]>
1 parent f00c63d commit 98bc8f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/golang/install.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"os"
2222
"os/exec"
2323
"path/filepath"
24+
"runtime"
2425
"strings"
2526

2627
"github.com/golang/glog"
@@ -95,7 +96,7 @@ func installGoVersion(v, pth string) error {
9596
}
9697
defer os.RemoveAll(tmpPath)
9798

98-
cmd := exec.Command("/bin/bash", "-c", fmt.Sprintf("curl -SLf https://storage.googleapis.com/golang/go%s.linux-amd64.tar.gz | tar -xz --strip 1 -C %s", v, tmpPath))
99+
cmd := exec.Command("/bin/bash", "-c", fmt.Sprintf("curl -SLf https://storage.googleapis.com/golang/go%s.%s-%s.tar.gz | tar -xz --strip 1 -C %s", v, runtime.GOOS, runtime.GOARCH, tmpPath))
99100
cmd.Dir = tmpPath
100101
cmd.Stdout = os.Stdout
101102
cmd.Stderr = os.Stderr

0 commit comments

Comments
 (0)