Updated to Go 1.20

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
ItalyPaleAle 2023-02-22 21:19:41 +00:00
parent 05425fef32
commit a583271b3f
49 changed files with 51 additions and 55 deletions

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/build-tools
go 1.19
go 1.20
require (
github.com/invopop/jsonschema v0.6.0

View File

@ -1,6 +1,6 @@
module github/dapr/workflow/worker
go 1.18
go 1.20
require (
github.com/zouyx/agollo/v3 v3.4.5

View File

@ -30,7 +30,7 @@ on:
env:
# Only specify a major version, such as 1.20
GO_VERSION: '1.19'
GO_VERSION: '1.20'
jobs:
# Based on whether this is a PR or a scheduled run, we will run a different

View File

@ -62,11 +62,11 @@ jobs:
runs-on: ${{ matrix.os }}
needs: post-comment
env:
GOVER: "1.19"
GOVER: "1.20"
GOOS: ${{ matrix.target_os }}
GOARCH: ${{ matrix.target_arch }}
GOPROXY: https://proxy.golang.org
GOLANGCI_LINT_VER: "v1.51.0"
GOLANGCI_LINT_VER: "v1.51.2"
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]

View File

@ -28,11 +28,11 @@ jobs:
name: Build linux_amd64 binaries
runs-on: ubuntu-latest
env:
GOVER: "1.19"
GOVER: "1.20"
GOOS: linux
GOARCH: amd64
GOPROXY: https://proxy.golang.org
GOLANGCI_LINT_VER: "v1.51.0"
GOLANGCI_LINT_VER: "v1.51.2"
steps:
- name: Set up Go ${{ env.GOVER }}
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}

View File

@ -28,10 +28,6 @@ on:
- 'master'
- 'release-*'
env:
# Only specify a major version, such as 1.20
GO_VERSION: '1.19'
jobs:
# Based on whether this is a PR or a scheduled run, we will run a different
# subset of the conformance tests. This allows all the tests not requiring
@ -206,7 +202,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '^${{ env.GO_VERSION }}'
go-version-file: 'go.mod'
- name: Install Node.js ${{ matrix.nodejs-version }}
if: matrix.nodejs-version != ''

View File

@ -128,7 +128,7 @@ define modtidy-target
.PHONY: modtidy-$(1)
modtidy-$(1):
@echo $(shell dirname $(1))
@cd $(shell dirname $(1)); go mod tidy -compat=1.19 || { echo "There was an error in running go mod tidy for this file,"; exit 1;}; cd -
@cd $(shell dirname $(1)); CGO_ENABLED=$(CGO) go mod tidy -compat=1.20 || { echo "There was an error in running go mod tidy for this file,"; exit 1;}; cd -
endef
define replaceruntime-dapr

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib
go 1.19
go 1.20
require (
cloud.google.com/go/datastore v1.10.0

View File

@ -1,5 +1,5 @@
module github.com/dapr/components-contrib/middleware/wasm/example
go 1.19
go 1.20
require github.com/http-wasm/http-wasm-guest-tinygo v0.1.0

View File

@ -1,5 +1,5 @@
module github.com/dapr/components-contrib/middleware/wasm/internal
go 1.19
go 1.20
require github.com/http-wasm/http-wasm-guest-tinygo v0.1.0

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/bindings/azure/blobstorage
go 1.19
go 1.20
require (
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.0.0

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/bindings/azure/cosmosdb
go 1.19
go 1.20
require (
github.com/a8m/documentdb v1.3.1-0.20220405205223-5b41ba0aaeb1

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/bindings/azure/eventhubs
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/bindings/azure/servicebusqueues
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/bindings/azure/storagequeues
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/bindings/cron
go 1.19
go 1.20
require (
github.com/benbjohnson/clock v1.3.0

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/bindings/dubbo
go 1.19
go 1.20
require (
dubbo.apache.org/dubbo-go/v3 v3.0.3-0.20230118042253-4f159a2b38f3

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/bindings/kafka
go 1.19
go 1.20
require (
github.com/Shopify/sarama v1.38.1

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/bindings/localstorage
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/bindings/nacos
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/postgresql
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/binding/rabbitmq
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/bindings/redis
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification
go 1.19
go 1.20
require (
github.com/cenkalti/backoff/v4 v4.2.0

View File

@ -1,6 +1,6 @@
module snssqs_test
go 1.19
go 1.20
replace github.com/dapr/components-contrib => ../../../../..

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/pubsub/azure/eventhubs
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module servicebus_test
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/pubsub/kafka
go 1.19
go 1.20
require (
github.com/Shopify/sarama v1.38.1

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/pubsub/mqtt3
go 1.19
go 1.20
require (
github.com/cenkalti/backoff/v4 v4.2.0

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/pubsub/pulsar
go 1.19
go 1.20
replace github.com/dapr/components-contrib/tests/certification => ../../

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/pubsub/rabbitmq
go 1.19
go 1.20
require (
github.com/cenkalti/backoff/v4 v4.2.0

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/secretstores/azure/keyvault
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/secretstores/hashicorp/vault
go 1.18
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/secretstores/local/env
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/secretstores/local/file
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/aws/dynamodb
go 1.19
go 1.20
replace github.com/dapr/components-contrib => ../../../../..

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/azure/blobstorage
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/azure/cosmosdb
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/azure/tablestorage
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/cassandra
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/cockroachdb
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/memcached
go 1.18
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/mongodb
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/mysql
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/postgresql
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/redis
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/sqlite
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/certification/state/sqlserver
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.2

View File

@ -1,6 +1,6 @@
module github.com/dapr/components-contrib/tests/e2e/pubsub/jetstream
go 1.19
go 1.20
require (
github.com/dapr/components-contrib v1.10.0-rc.1.0.20230217001905-83ebec68c13e