From 14f4047fadf67e2f8760d3024da1f6d16f07f836 Mon Sep 17 00:00:00 2001 From: Adarsh jaiswal Date: Wed, 13 Mar 2024 22:32:57 +0530 Subject: [PATCH] updated go version to 1.21 Signed-off-by: adarsh-jaiss --- .github/actions/setup/action.yaml | 2 +- .github/workflows/release.yml | 2 +- go.mod | 2 +- vendor/contrib.go.opencensus.io/exporter/ocagent/.travis.yml | 4 ++-- vendor/github.com/hashicorp/go-multierror/README.md | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index ac4a1b3e4..efafbb13e 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -6,7 +6,7 @@ runs: steps: - uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 1.21.x cache: true check-latest: true - uses: ko-build/setup-ko@v0.6 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad03531a5..21ad44371 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: '1.19.x' + go-version: '1.21.x' cache: true check-latest: true diff --git a/go.mod b/go.mod index ccc89fd4c..53ed992dc 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/shipwright-io/cli -go 1.20 +go 1.21 require ( github.com/google/go-containerregistry v0.19.1 diff --git a/vendor/contrib.go.opencensus.io/exporter/ocagent/.travis.yml b/vendor/contrib.go.opencensus.io/exporter/ocagent/.travis.yml index f53103b1a..96fbc6408 100644 --- a/vendor/contrib.go.opencensus.io/exporter/ocagent/.travis.yml +++ b/vendor/contrib.go.opencensus.io/exporter/ocagent/.travis.yml @@ -1,7 +1,7 @@ language: go go: - - 1.11.x + - 1.21.x go_import_path: contrib.go.opencensus.io/exporter/ocagent @@ -17,4 +17,4 @@ script: - if [ -n "$(gofmt -s -l $GO_FILES)" ]; then echo "gofmt the following files:"; gofmt -s -l $GO_FILES; exit 1; fi - go vet ./... - go test -v -race $PKGS # Run all the tests with the race detector enabled - - 'if [[ $TRAVIS_GO_VERSION = 1.8* ]]; then ! golint ./... | grep -vE "(_mock|_string|\.pb)\.go:"; fi' + - 'if [[ $TRAVIS_GO_VERSION = 1.21* ]]; then ! golint ./... | grep -vE "(_mock|_string|\.pb)\.go:"; fi' diff --git a/vendor/github.com/hashicorp/go-multierror/README.md b/vendor/github.com/hashicorp/go-multierror/README.md index 71dd308ed..78f98a37b 100644 --- a/vendor/github.com/hashicorp/go-multierror/README.md +++ b/vendor/github.com/hashicorp/go-multierror/README.md @@ -27,9 +27,9 @@ Install using `go get github.com/hashicorp/go-multierror`. Full documentation is available at https://pkg.go.dev/github.com/hashicorp/go-multierror -### Requires go version 1.13 or newer +### Requires go version 1.21 or newer -`go-multierror` requires go version 1.13 or newer. Go 1.13 introduced +`go-multierror` requires go version 1.21 or newer. Initially, Go 1.13 introduced [error wrapping](https://golang.org/doc/go1.13#error_wrapping), which this library takes advantage of.