From 7298f99c273163b9cac46867f30112c6fb94f0a7 Mon Sep 17 00:00:00 2001 From: Robert van Gent Date: Wed, 9 Aug 2023 09:46:14 -0700 Subject: [PATCH] all: update to go 1.21 (#3301) --- .github/workflows/tests.yml | 4 ++-- docstore/mongodocstore/go.mod | 2 +- go.mod | 2 +- internal/testing/runchecks.sh | 2 +- internal/website/go.mod | 2 +- pubsub/kafkapubsub/go.mod | 2 +- pubsub/natspubsub/go.mod | 2 +- pubsub/rabbitpubsub/go.mod | 2 +- runtimevar/etcdvar/go.mod | 2 +- samples/go.mod | 2 +- secrets/hashivault/go.mod | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3a7840dbb3..f71c8aae13 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,9 +24,9 @@ jobs: os: [ubuntu-latest, macos-latest] # When updating this, make sure to also update the # latest_go_version variable in internal/testing/runchecks.sh. - go-version: [1.20.x] + go-version: [1.21.x] include: - - go-version: 1.19.x + - go-version: 1.20.x os: ubuntu-latest runs-on: ${{ matrix.os }} diff --git a/docstore/mongodocstore/go.mod b/docstore/mongodocstore/go.mod index e3b31911a7..b832892868 100644 --- a/docstore/mongodocstore/go.mod +++ b/docstore/mongodocstore/go.mod @@ -14,7 +14,7 @@ module gocloud.dev/docstore/mongodocstore -go 1.19 +go 1.20 require ( github.com/google/go-cmp v0.5.9 diff --git a/go.mod b/go.mod index 2860ce7120..1eadc1d78b 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ module gocloud.dev -go 1.19 +go 1.20 require ( cloud.google.com/go/compute/metadata v0.2.3 diff --git a/internal/testing/runchecks.sh b/internal/testing/runchecks.sh index 683db3affb..e3a1f523c1 100755 --- a/internal/testing/runchecks.sh +++ b/internal/testing/runchecks.sh @@ -44,7 +44,7 @@ rootdir="$(pwd)" # new Go version. Some checks below we only run # for the latest Go version. latest_go_version=0 -if [[ $(go version) == *go1\.20* ]]; then +if [[ $(go version) == *go1\.21* ]]; then latest_go_version=1 fi diff --git a/internal/website/go.mod b/internal/website/go.mod index 14b17b3571..4afb494b26 100644 --- a/internal/website/go.mod +++ b/internal/website/go.mod @@ -1,6 +1,6 @@ module gocloud.dev/internal/website -go 1.19 +go 1.20 require ( github.com/google/go-cmp v0.5.6 diff --git a/pubsub/kafkapubsub/go.mod b/pubsub/kafkapubsub/go.mod index 097eca42e0..5ec3cb63ee 100644 --- a/pubsub/kafkapubsub/go.mod +++ b/pubsub/kafkapubsub/go.mod @@ -14,7 +14,7 @@ module gocloud.dev/pubsub/kafkapubsub -go 1.19 +go 1.20 require ( github.com/Shopify/sarama v1.38.1 diff --git a/pubsub/natspubsub/go.mod b/pubsub/natspubsub/go.mod index f37367743e..19f59cf31c 100644 --- a/pubsub/natspubsub/go.mod +++ b/pubsub/natspubsub/go.mod @@ -14,7 +14,7 @@ module gocloud.dev/pubsub/natspubsub -go 1.19 +go 1.20 require ( github.com/google/go-cmp v0.5.9 diff --git a/pubsub/rabbitpubsub/go.mod b/pubsub/rabbitpubsub/go.mod index a0809ebb9b..ea57af054a 100644 --- a/pubsub/rabbitpubsub/go.mod +++ b/pubsub/rabbitpubsub/go.mod @@ -14,7 +14,7 @@ module gocloud.dev/pubsub/rabbitpubsub -go 1.19 +go 1.20 require ( github.com/rabbitmq/amqp091-go v1.8.1 diff --git a/runtimevar/etcdvar/go.mod b/runtimevar/etcdvar/go.mod index 52b167d10c..7246481a1e 100644 --- a/runtimevar/etcdvar/go.mod +++ b/runtimevar/etcdvar/go.mod @@ -14,7 +14,7 @@ module gocloud.dev/runtimevar/etcdvar -go 1.19 +go 1.20 require ( github.com/google/go-cmp v0.5.9 diff --git a/samples/go.mod b/samples/go.mod index f547e82c99..384b8f8267 100644 --- a/samples/go.mod +++ b/samples/go.mod @@ -14,7 +14,7 @@ module gocloud.dev/samples -go 1.19 +go 1.20 require ( contrib.go.opencensus.io/exporter/stackdriver v0.13.14 diff --git a/secrets/hashivault/go.mod b/secrets/hashivault/go.mod index dee98dfdc9..90c5df18df 100644 --- a/secrets/hashivault/go.mod +++ b/secrets/hashivault/go.mod @@ -14,7 +14,7 @@ module gocloud.dev/secrets/hashivault -go 1.19 +go 1.20 require ( github.com/hashicorp/vault/api v1.9.2