build: update golang version to 1.18.2

This PR update to Go 1.18.2. Also update the versions of hclfmt
and go-hclogfmt which includes newer dependencies necessary for dealing
with go1.18.

The hcl v2 branch is now 'nomad-v2.9.1+tweaks2', to include a fix for
newer macOS versions: 8927e75e82
This commit is contained in:
Seth Hoenig
2022-05-16 18:15:41 -05:00
parent 3f92745217
commit 04ceba2bfb
11 changed files with 23 additions and 47 deletions

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.17.9"
local go_version="1.18.2"
local download=
download="https://storage.googleapis.com/golang/go${go_version}.darwin-amd64.tar.gz"

View File

@@ -3,7 +3,7 @@
set -o errexit
function install_go() {
local go_version="1.17.9"
local go_version="1.18.2"
local download="https://storage.googleapis.com/golang/go${go_version}.linux-amd64.tar.gz"
if go version 2>&1 | grep -q "${go_version}"; then