update go1.21 (#18184)

* build: update to go1.21

* go: eliminate helpers in favor of min/max

* build: run go mod tidy

* build: swap depguard for semgrep

* command: fixup broken tls error check on go1.21
This commit is contained in:
Seth Hoenig
2023-08-14 08:43:27 -05:00
committed by GitHub
parent fd1ae3427b
commit d9341f0664
27 changed files with 73 additions and 126 deletions

View File

@@ -21,7 +21,7 @@ case $(arch) in
esac
function install_go() {
local go_version="1.20.6"
local go_version="1.21.0"
local download="https://storage.googleapis.com/golang/go${go_version}.linux-${ARCH}.tar.gz"
if go version 2>&1 | grep -q "${go_version}"; then

View File

@@ -56,7 +56,7 @@ REPO_PATH="${TMP_WORKSPACE}/gopath/src/github.com/hashicorp/nomad"
mkdir -p "${TMP_WORKSPACE}/tmp"
install_go() {
local go_version="1.20.6"
local go_version="1.21.0"
local download=
download="https://storage.googleapis.com/golang/go${go_version}.darwin-amd64.tar.gz"