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:
Brad Davidson
2022-04-05 13:13:48 -07:00
committed by Brad Davidson
parent e6385b2341
commit c8447dca56
24 changed files with 32 additions and 23 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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
# ---

View File

@@ -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
# ---