build: upgrade to go1.22 (#20066)

* build: upgrade to go1.22

* add cl

* build: use codecgen from go-msgpack v1.1.5+base32 and stringer 0.18.0

for compatability with go1.22

* ci: update golangci-lint to 1.56.2

* build: update hclogvet for go1.22

* build: bump to go1.22.1
This commit is contained in:
Seth Hoenig
2024-03-06 09:54:04 -06:00
committed by GitHub
parent 67554b8f91
commit 55b0795866
8 changed files with 17 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ case $(arch) in
esac
function install_go() {
local go_version="1.21.6"
local go_version="1.22.1"
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.21.6"
local go_version="1.22.1"
local download=
download="https://storage.googleapis.com/golang/go${go_version}.darwin-amd64.tar.gz"