Merge pull request #17221 from minikube-bot/auto_bump_golang_version-a46ec98
Update go from 1.20.7 to 1.21.1pull/17233/head
commit
a1a5672800
|
@ -12,7 +12,7 @@ on:
|
||||||
- "!deploy/iso/**"
|
- "!deploy/iso/**"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- master
|
- master
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ on:
|
||||||
- deleted
|
- deleted
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- 'v*-beta.*'
|
- 'v*-beta.*'
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ on:
|
||||||
- "!deploy/iso/**"
|
- "!deploy/iso/**"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ on:
|
||||||
- "!deploy/iso/**"
|
- "!deploy/iso/**"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 2,14 * * *"
|
- cron: "0 2,14 * * *"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 2,14 * * *"
|
- cron: "0 2,14 * * *"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ on:
|
||||||
types: [released]
|
types: [released]
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- "translations/**"
|
- "translations/**"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 3"
|
- cron: "0 10 * * 3"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 5"
|
- cron: "0 10 * * 5"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 3"
|
- cron: "0 10 * * 3"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 4"
|
- cron: "0 10 * * 4"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 9 * * 1"
|
- cron: "0 9 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 9 * * 1"
|
- cron: "0 9 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 8 * * 1"
|
- cron: "0 8 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 6 * * 1"
|
- cron: "0 6 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 6 * * 1"
|
- cron: "0 6 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 2"
|
- cron: "0 10 * * 2"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 10 * * 1"
|
- cron: "0 10 * * 1"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- cron: "0 0 2 * *"
|
- cron: "0 0 2 * *"
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
GO_VERSION: '1.20.7'
|
GO_VERSION: '1.21.1'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -34,9 +34,9 @@ RPM_REVISION ?= 0
|
||||||
|
|
||||||
# used by hack/jenkins/release_build_and_upload.sh and KVM_BUILD_IMAGE, see also BUILD_IMAGE below
|
# used by hack/jenkins/release_build_and_upload.sh and KVM_BUILD_IMAGE, see also BUILD_IMAGE below
|
||||||
# update this only by running `make update-golang-version`
|
# update this only by running `make update-golang-version`
|
||||||
GO_VERSION ?= 1.20.7
|
GO_VERSION ?= 1.21.1
|
||||||
# update this only by running `make update-golang-version`
|
# update this only by running `make update-golang-version`
|
||||||
GO_K8S_VERSION_PREFIX ?= v1.27.0
|
GO_K8S_VERSION_PREFIX ?= v1.29.0
|
||||||
|
|
||||||
# replace "x.y.0" => "x.y". kube-cross and go.dev/dl use different formats for x.y.0 go versions
|
# replace "x.y.0" => "x.y". kube-cross and go.dev/dl use different formats for x.y.0 go versions
|
||||||
KVM_GO_VERSION ?= $(GO_VERSION:.0=)
|
KVM_GO_VERSION ?= $(GO_VERSION:.0=)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
FROM golang:1.20.7
|
FROM golang:1.21.1
|
||||||
ADD auto-pause-hook /auto-pause-hook
|
ADD auto-pause-hook /auto-pause-hook
|
||||||
|
|
|
@ -18,3 +18,4 @@ sha256 9f34ace128764b7a3a4b238b805856cc1b2184304df9e5690825b0710f4202d6 go1.20
|
||||||
sha256 9a15c133ba2cfafe79652f4815b62e7cfc267f68df1b9454c6ab2a3ca8b96a88 go1.20.5.src.tar.gz
|
sha256 9a15c133ba2cfafe79652f4815b62e7cfc267f68df1b9454c6ab2a3ca8b96a88 go1.20.5.src.tar.gz
|
||||||
sha256 62ee5bc6fb55b8bae8f705e0cb8df86d6453626b4ecf93279e2867092e0b7f70 go1.20.6.src.tar.gz
|
sha256 62ee5bc6fb55b8bae8f705e0cb8df86d6453626b4ecf93279e2867092e0b7f70 go1.20.6.src.tar.gz
|
||||||
sha256 2c5ee9c9ec1e733b0dbbc2bdfed3f62306e51d8172bf38f4f4e542b27520f597 go1.20.7.src.tar.gz
|
sha256 2c5ee9c9ec1e733b0dbbc2bdfed3f62306e51d8172bf38f4f4e542b27520f597 go1.20.7.src.tar.gz
|
||||||
|
sha256 bfa36bf75e9a1e9cbbdb9abcf9d1707e479bd3a07880a8ae3564caee5711cb99 go1.21.1.src.tar.gz
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
# this ARG needs to be global to use it in `FROM` & is updated for new versions of ubuntu:jammy-*
|
# this ARG needs to be global to use it in `FROM` & is updated for new versions of ubuntu:jammy-*
|
||||||
ARG UBUNTU_JAMMY_IMAGE="ubuntu:jammy-20230816"
|
ARG UBUNTU_JAMMY_IMAGE="ubuntu:jammy-20230816"
|
||||||
# multi-stage docker build so we can build auto-pause for arm64
|
# multi-stage docker build so we can build auto-pause for arm64
|
||||||
FROM golang:1.20.7 as auto-pause
|
FROM golang:1.21.1 as auto-pause
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
# auto-pause depends on core minikube code so we need to pass the whole source code as the context
|
# auto-pause depends on core minikube code so we need to pass the whole source code as the context
|
||||||
# copy in the minimal amount of source code possible
|
# copy in the minimal amount of source code possible
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,6 +1,6 @@
|
||||||
module k8s.io/minikube
|
module k8s.io/minikube
|
||||||
|
|
||||||
go 1.20
|
go 1.21
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cloud.google.com/go/storage v1.33.0
|
cloud.google.com/go/storage v1.33.0
|
||||||
|
|
|
@ -31,7 +31,7 @@ AddToPathIfMissing -pathToAdd "C:\Program Files\Go\bin" -scope "Machine"
|
||||||
AddToPathIfMissing -pathToAdd "$HOME\go\bin" -scope "User"
|
AddToPathIfMissing -pathToAdd "$HOME\go\bin" -scope "User"
|
||||||
|
|
||||||
# Download Go
|
# Download Go
|
||||||
$GoVersion = "1.20.7"
|
$GoVersion = "1.21.1"
|
||||||
$CurrentGo = go version
|
$CurrentGo = go version
|
||||||
if ((!$?) -or ($CurrentGo -NotLike "*$GoVersion*")) {
|
if ((!$?) -or ($CurrentGo -NotLike "*$GoVersion*")) {
|
||||||
(New-Object Net.WebClient).DownloadFile("https://go.dev/dl/go$GoVersion.windows-amd64.zip", "$env:TEMP\golang.zip")
|
(New-Object Net.WebClient).DownloadFile("https://go.dev/dl/go$GoVersion.windows-amd64.zip", "$env:TEMP\golang.zip")
|
||||||
|
|
|
@ -22,7 +22,7 @@ if (($# < 1)); then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VERSION_TO_INSTALL=1.20.7
|
VERSION_TO_INSTALL=1.21.1
|
||||||
INSTALL_PATH=${1}
|
INSTALL_PATH=${1}
|
||||||
|
|
||||||
function current_arch() {
|
function current_arch() {
|
||||||
|
|
Loading…
Reference in New Issue