mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 21:59:29 +00:00
Bump golang to 1.18.1
Also update all use of 'go get' => 'go install', update CI tooling for 1.18 compatibility, and gofmt everything so lint passes. Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
committed by
Brad Davidson
parent
e6385b2341
commit
c8447dca56
@@ -15,7 +15,7 @@ EOF
|
||||
# ---
|
||||
. /tmp/docker-run
|
||||
# ---
|
||||
go get -u github.com/go-delve/delve/cmd/dlv
|
||||
go install -u github.com/go-delve/delve/cmd/dlv
|
||||
# ---
|
||||
cat <<EOF >/etc/profile.d/docker.sh
|
||||
export DOCKER_HOST=tcp://10.0.2.2:2375
|
||||
|
||||
@@ -13,7 +13,7 @@ sed -E 's|apk( -U)?( --no-cache)?( --repository [^ ]*)? add|yum install -y|g' -i
|
||||
sed -E 's/-dev/-devel/g' -i /tmp/docker-run
|
||||
. /tmp/docker-run
|
||||
# ---
|
||||
go get -u github.com/go-delve/delve/cmd/dlv
|
||||
go install -u github.com/go-delve/delve/cmd/dlv
|
||||
# ---
|
||||
# docker install instructions slightly changed from https://kubernetes.io/docs/setup/production-environment/container-runtimes/
|
||||
# default "exec-opts": ["native.cgroupdriver=cgroupfs"], and set "selinux-enabled": true
|
||||
|
||||
@@ -19,5 +19,5 @@ zypper -q install -y \
|
||||
sed -E 's|apk( -U)?( --no-cache)?( --repository [^ ]*)? add .*||g' -i /tmp/docker-run
|
||||
. /tmp/docker-run
|
||||
# ---
|
||||
go get -u github.com/go-delve/delve/cmd/dlv
|
||||
go install -u github.com/go-delve/delve/cmd/dlv
|
||||
# ---
|
||||
|
||||
@@ -36,5 +36,5 @@ apt-get install -y \
|
||||
zstd
|
||||
|
||||
# ---
|
||||
go get -u github.com/go-delve/delve/cmd/dlv
|
||||
go install -u github.com/go-delve/delve/cmd/dlv
|
||||
# ---
|
||||
|
||||
Reference in New Issue
Block a user