updating go to 1.19.1 (#17053)

This commit is contained in:
akshya96 2022-09-07 16:13:33 -07:00 committed by GitHub
parent 41164a462f
commit ab1e264f0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 22 additions and 22 deletions

22
.circleci/config.yml generated
View file

@ -120,12 +120,12 @@ jobs:
environment: environment:
- CIRCLECI_CLI_VERSION: 0.1.5546 - CIRCLECI_CLI_VERSION: 0.1.5546
- GO_TAGS: '' - GO_TAGS: ''
- GO_VERSION: 1.18.5 - GO_VERSION: 1.19.1
- GOFUMPT_VERSION: 0.2.1 - GOFUMPT_VERSION: 0.2.1
- GOTESTSUM_VERSION: 0.5.2 - GOTESTSUM_VERSION: 0.5.2
test-go-remote-docker: test-go-remote-docker:
docker: docker:
- image: docker.mirror.hashicorp.services/cimg/go:1.18.5 - image: docker.mirror.hashicorp.services/cimg/go:1.19.1
resource_class: medium resource_class: medium
working_directory: /home/circleci/go/src/github.com/hashicorp/vault working_directory: /home/circleci/go/src/github.com/hashicorp/vault
parallelism: 8 parallelism: 8
@ -259,7 +259,7 @@ jobs:
-e NO_PROXY \ -e NO_PROXY \
-e VAULT_TEST_LOG_DIR=/tmp/testlogs \ -e VAULT_TEST_LOG_DIR=/tmp/testlogs \
--network ${TEST_DOCKER_NETWORK_NAME} \ --network ${TEST_DOCKER_NETWORK_NAME} \
docker.mirror.hashicorp.services/cimg/go:1.18.5 \ docker.mirror.hashicorp.services/cimg/go:1.19.1 \
tail -f /dev/null)" tail -f /dev/null)"
mkdir workspace mkdir workspace
echo ${CONTAINER_ID} > workspace/container_id echo ${CONTAINER_ID} > workspace/container_id
@ -362,12 +362,12 @@ jobs:
environment: environment:
- CIRCLECI_CLI_VERSION: 0.1.5546 - CIRCLECI_CLI_VERSION: 0.1.5546
- GO_TAGS: '' - GO_TAGS: ''
- GO_VERSION: 1.18.5 - GO_VERSION: 1.19.1
- GOFUMPT_VERSION: 0.2.1 - GOFUMPT_VERSION: 0.2.1
- GOTESTSUM_VERSION: 0.5.2 - GOTESTSUM_VERSION: 0.5.2
test-go-race: test-go-race:
docker: docker:
- image: docker.mirror.hashicorp.services/cimg/go:1.18.5 - image: docker.mirror.hashicorp.services/cimg/go:1.19.1
resource_class: xlarge resource_class: xlarge
working_directory: /home/circleci/go/src/github.com/hashicorp/vault working_directory: /home/circleci/go/src/github.com/hashicorp/vault
parallelism: 8 parallelism: 8
@ -497,7 +497,7 @@ jobs:
-e NO_PROXY \ -e NO_PROXY \
-e VAULT_TEST_LOG_DIR=/tmp/testlogs \ -e VAULT_TEST_LOG_DIR=/tmp/testlogs \
--network ${TEST_DOCKER_NETWORK_NAME} \ --network ${TEST_DOCKER_NETWORK_NAME} \
docker.mirror.hashicorp.services/cimg/go:1.18.5 \ docker.mirror.hashicorp.services/cimg/go:1.19.1 \
tail -f /dev/null)" tail -f /dev/null)"
mkdir workspace mkdir workspace
echo ${CONTAINER_ID} > workspace/container_id echo ${CONTAINER_ID} > workspace/container_id
@ -557,7 +557,7 @@ jobs:
- GO_TAGS: '' - GO_TAGS: ''
test-go: test-go:
docker: docker:
- image: docker.mirror.hashicorp.services/cimg/go:1.18.5 - image: docker.mirror.hashicorp.services/cimg/go:1.19.1
resource_class: large resource_class: large
working_directory: /home/circleci/go/src/github.com/hashicorp/vault working_directory: /home/circleci/go/src/github.com/hashicorp/vault
parallelism: 8 parallelism: 8
@ -687,7 +687,7 @@ jobs:
-e NO_PROXY \ -e NO_PROXY \
-e VAULT_TEST_LOG_DIR=/tmp/testlogs \ -e VAULT_TEST_LOG_DIR=/tmp/testlogs \
--network ${TEST_DOCKER_NETWORK_NAME} \ --network ${TEST_DOCKER_NETWORK_NAME} \
docker.mirror.hashicorp.services/cimg/go:1.18.5 \ docker.mirror.hashicorp.services/cimg/go:1.19.1 \
tail -f /dev/null)" tail -f /dev/null)"
mkdir workspace mkdir workspace
echo ${CONTAINER_ID} > workspace/container_id echo ${CONTAINER_ID} > workspace/container_id
@ -848,12 +848,12 @@ jobs:
environment: environment:
- CIRCLECI_CLI_VERSION: 0.1.5546 - CIRCLECI_CLI_VERSION: 0.1.5546
- GO_TAGS: '' - GO_TAGS: ''
- GO_VERSION: 1.18.5 - GO_VERSION: 1.19.1
- GOFUMPT_VERSION: 0.2.1 - GOFUMPT_VERSION: 0.2.1
- GOTESTSUM_VERSION: 0.5.2 - GOTESTSUM_VERSION: 0.5.2
test-go-race-remote-docker: test-go-race-remote-docker:
docker: docker:
- image: docker.mirror.hashicorp.services/cimg/go:1.18.5 - image: docker.mirror.hashicorp.services/cimg/go:1.19.1
resource_class: medium resource_class: medium
working_directory: /home/circleci/go/src/github.com/hashicorp/vault working_directory: /home/circleci/go/src/github.com/hashicorp/vault
parallelism: 8 parallelism: 8
@ -987,7 +987,7 @@ jobs:
-e NO_PROXY \ -e NO_PROXY \
-e VAULT_TEST_LOG_DIR=/tmp/testlogs \ -e VAULT_TEST_LOG_DIR=/tmp/testlogs \
--network ${TEST_DOCKER_NETWORK_NAME} \ --network ${TEST_DOCKER_NETWORK_NAME} \
docker.mirror.hashicorp.services/cimg/go:1.18.5 \ docker.mirror.hashicorp.services/cimg/go:1.19.1 \
tail -f /dev/null)" tail -f /dev/null)"
mkdir workspace mkdir workspace
echo ${CONTAINER_ID} > workspace/container_id echo ${CONTAINER_ID} > workspace/container_id

View file

@ -14,7 +14,7 @@ parameters:
default: false default: false
go_image: go_image:
type: string type: string
default: "docker.mirror.hashicorp.services/cimg/go:1.18.5" default: "docker.mirror.hashicorp.services/cimg/go:1.19.1"
use_docker: use_docker:
type: boolean type: boolean
default: false default: false

View file

@ -4,7 +4,7 @@ go-machine:
shell: /usr/bin/env bash -euo pipefail -c shell: /usr/bin/env bash -euo pipefail -c
environment: environment:
CIRCLECI_CLI_VERSION: 0.1.5546 # Pin CircleCI CLI to patch version (ex: 1.2.3) CIRCLECI_CLI_VERSION: 0.1.5546 # Pin CircleCI CLI to patch version (ex: 1.2.3)
GO_VERSION: 1.18.5 # Pin Go to patch version (ex: 1.2.3) GO_VERSION: 1.19.1 # Pin Go to patch version (ex: 1.2.3)
GOTESTSUM_VERSION: 0.5.2 # Pin gotestsum to patch version (ex: 1.2.3) GOTESTSUM_VERSION: 0.5.2 # Pin gotestsum to patch version (ex: 1.2.3)
GOFUMPT_VERSION: 0.2.1 # Pin gofumpt to patch version (ex: 1.2.3) GOFUMPT_VERSION: 0.2.1 # Pin gofumpt to patch version (ex: 1.2.3)
GO_TAGS: "" GO_TAGS: ""
@ -30,7 +30,7 @@ semgrep:
docker-env-go-test-remote-docker: docker-env-go-test-remote-docker:
resource_class: medium resource_class: medium
docker: docker:
- image: "docker.mirror.hashicorp.services/cimg/go:1.18.5" - image: "docker.mirror.hashicorp.services/cimg/go:1.19.1"
environment: environment:
CIRCLECI_CLI_VERSION: 0.1.5546 # Pin CircleCI CLI to patch version (ex: 1.2.3) CIRCLECI_CLI_VERSION: 0.1.5546 # Pin CircleCI CLI to patch version (ex: 1.2.3)
GO_TAGS: "" GO_TAGS: ""
@ -38,7 +38,7 @@ docker-env-go-test-remote-docker:
docker-env-go-test: docker-env-go-test:
resource_class: large resource_class: large
docker: docker:
- image: "docker.mirror.hashicorp.services/cimg/go:1.18.5" - image: "docker.mirror.hashicorp.services/cimg/go:1.19.1"
environment: environment:
CIRCLECI_CLI_VERSION: 0.1.5546 # Pin CircleCI CLI to patch version (ex: 1.2.3) CIRCLECI_CLI_VERSION: 0.1.5546 # Pin CircleCI CLI to patch version (ex: 1.2.3)
GO_TAGS: "" GO_TAGS: ""
@ -46,7 +46,7 @@ docker-env-go-test:
docker-env-go-test-race: docker-env-go-test-race:
resource_class: xlarge resource_class: xlarge
docker: docker:
- image: "docker.mirror.hashicorp.services/cimg/go:1.18.5" - image: "docker.mirror.hashicorp.services/cimg/go:1.19.1"
environment: environment:
CIRCLECI_CLI_VERSION: 0.1.5546 # Pin CircleCI CLI to patch version (ex: 1.2.3) CIRCLECI_CLI_VERSION: 0.1.5546 # Pin CircleCI CLI to patch version (ex: 1.2.3)
GO_TAGS: "" GO_TAGS: ""

View file

@ -14,7 +14,7 @@ EXTERNAL_TOOLS=\
GOFMT_FILES?=$$(find . -name '*.go' | grep -v pb.go | grep -v vendor) GOFMT_FILES?=$$(find . -name '*.go' | grep -v pb.go | grep -v vendor)
GO_VERSION_MIN=1.18.5 GO_VERSION_MIN=1.19.1
GO_CMD?=go GO_CMD?=go
CGO_ENABLED?=0 CGO_ENABLED?=0
ifneq ($(FDB_ENABLED), ) ifneq ($(FDB_ENABLED), )

View file

@ -71,7 +71,7 @@ Developing Vault
If you wish to work on Vault itself or any of its built-in systems, you'll If you wish to work on Vault itself or any of its built-in systems, you'll
first need [Go](https://www.golang.org) installed on your machine. Go version first need [Go](https://www.golang.org) installed on your machine. Go version
1.18.5+ is *required*. 1.19.1+ is *required*.
For local dev first make sure Go is properly installed, including setting up a For local dev first make sure Go is properly installed, including setting up a
[GOPATH](https://golang.org/doc/code.html#GOPATH). Ensure that `$GOPATH/bin` is in [GOPATH](https://golang.org/doc/code.html#GOPATH). Ensure that `$GOPATH/bin` is in

View file

@ -1,3 +1,3 @@
```release-note:change ```release-note:change
core: Bump Go version to 1.18.5. core: Bump Go version to 1.19.1.
``` ```

2
go.mod
View file

@ -1,6 +1,6 @@
module github.com/hashicorp/vault module github.com/hashicorp/vault
go 1.18 go 1.19
replace github.com/hashicorp/vault/api => ./api replace github.com/hashicorp/vault/api => ./api

View file

@ -1,6 +1,6 @@
# Multi-stage builder to avoid polluting users environment with wrong # Multi-stage builder to avoid polluting users environment with wrong
# architecture binaries. # architecture binaries.
ARG VERSION=1.18.5 ARG VERSION=1.19.1
FROM golang:${VERSION} AS builder FROM golang:${VERSION} AS builder

View file

@ -2,7 +2,7 @@
# architecture binaries. This file only currently works for linux/amd64. # architecture binaries. This file only currently works for linux/amd64.
FROM debian:buster AS builder FROM debian:buster AS builder
ARG VERSION=1.18.5 ARG VERSION=1.19.1
ARG CGO_ENABLED=0 ARG CGO_ENABLED=0
ARG BUILD_TAGS ARG BUILD_TAGS
ENV JOBS=2 ENV JOBS=2