From 08b7d4084f7d55d88e57569f82627e4d8cb514ee Mon Sep 17 00:00:00 2001 From: letmerecall Date: Fri, 24 Feb 2023 19:21:23 +0530 Subject: [PATCH 1/6] Upgrade go version Signed-off-by: letmerecall --- .github/workflows/dapr_cli.yaml | 2 +- .github/workflows/kind_e2e.yaml | 2 +- .github/workflows/self_hosted_e2e.yaml | 2 +- .github/workflows/upgrade_e2e.yaml | 2 +- Makefile | 2 +- docs/development/development.md | 2 +- go.mod | 2 +- tests/apps/emit-metrics/go.mod | 2 +- tests/apps/processor/go.mod | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dapr_cli.yaml b/.github/workflows/dapr_cli.yaml index 5c8242957..94693bd33 100644 --- a/.github/workflows/dapr_cli.yaml +++ b/.github/workflows/dapr_cli.yaml @@ -29,7 +29,7 @@ jobs: name: Build ${{ matrix.target_os }}_${{ matrix.target_arch }} binaries runs-on: ${{ matrix.os }} env: - GOVER: 1.19.6 + GOVER: 1.20 GOLANG_CI_LINT_VER: v1.49.0 GOOS: ${{ matrix.target_os }} GOARCH: ${{ matrix.target_arch }} diff --git a/.github/workflows/kind_e2e.yaml b/.github/workflows/kind_e2e.yaml index 3301bc004..f6a2412b4 100644 --- a/.github/workflows/kind_e2e.yaml +++ b/.github/workflows/kind_e2e.yaml @@ -50,7 +50,7 @@ jobs: name: E2E tests for K8s (KinD) runs-on: ubuntu-latest env: - GOVER: 1.19.6 + GOVER: 1.20 DAPR_RUNTIME_PINNED_VERSION: 1.10.0 DAPR_DASHBOARD_PINNED_VERSION: 0.12.0 DAPR_RUNTIME_LATEST_STABLE_VERSION: diff --git a/.github/workflows/self_hosted_e2e.yaml b/.github/workflows/self_hosted_e2e.yaml index b82cc911c..c47d76927 100644 --- a/.github/workflows/self_hosted_e2e.yaml +++ b/.github/workflows/self_hosted_e2e.yaml @@ -35,7 +35,7 @@ jobs: name: Run Self-Hosted E2E tests in ${{ matrix.target_os }}_${{ matrix.target_arch }}_${{ matrix.dapr_install_mode }} runs-on: ${{ matrix.os }} env: - GOVER: 1.19.6 + GOVER: 1.20 GOOS: ${{ matrix.target_os }} GOARCH: ${{ matrix.target_arch }} GOPROXY: https://proxy.golang.org diff --git a/.github/workflows/upgrade_e2e.yaml b/.github/workflows/upgrade_e2e.yaml index 018f0c459..f267229da 100644 --- a/.github/workflows/upgrade_e2e.yaml +++ b/.github/workflows/upgrade_e2e.yaml @@ -50,7 +50,7 @@ jobs: name: Upgrade path tests (KinD) runs-on: ubuntu-latest env: - GOVER: 1.19.6 + GOVER: 1.20 strategy: fail-fast: false # Keep running if one leg fails. matrix: diff --git a/Makefile b/Makefile index 90df0ea35..8e2b1ff00 100644 --- a/Makefile +++ b/Makefile @@ -200,7 +200,7 @@ e2e-build-run-sh: build test-e2e-sh ################################################################################ .PHONY: modtidy modtidy: - go mod tidy -compat=1.19 + go mod tidy -compat=1.20 ################################################################################ # Target: check-diff # diff --git a/docs/development/development.md b/docs/development/development.md index 210a55373..c4e0b1872 100644 --- a/docs/development/development.md +++ b/docs/development/development.md @@ -7,7 +7,7 @@ This document helps you get started developing Dapr CLI. If you find any problem ### Linux and MacOS -1. The Go language environment `1.19` [(instructions)](https://golang.org/doc/install#tarball). +1. The Go language environment `1.20` [(instructions)](https://golang.org/doc/install#tarball). * Make sure that your GOPATH and PATH are configured correctly ```bash export GOPATH=~/go diff --git a/go.mod b/go.mod index 206578d4e..8dc4e115b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/dapr/cli -go 1.19 +go 1.20 require ( github.com/Azure/go-autorest/autorest v0.11.28 // indirect diff --git a/tests/apps/emit-metrics/go.mod b/tests/apps/emit-metrics/go.mod index 2b114ab20..1d7104a25 100644 --- a/tests/apps/emit-metrics/go.mod +++ b/tests/apps/emit-metrics/go.mod @@ -1,3 +1,3 @@ module emit-metrics -go 1.19 +go 1.20 diff --git a/tests/apps/processor/go.mod b/tests/apps/processor/go.mod index 116fdbb5b..b0d715645 100644 --- a/tests/apps/processor/go.mod +++ b/tests/apps/processor/go.mod @@ -1,3 +1,3 @@ module processor -go 1.19 +go 1.20 From 575e28bbde6d7cb5758aae039d32d92b53be6f77 Mon Sep 17 00:00:00 2001 From: letmerecall Date: Sat, 25 Feb 2023 13:24:10 +0530 Subject: [PATCH 2/6] Upgrade go patch version to get through ci cache Signed-off-by: letmerecall --- .github/workflows/dapr_cli.yaml | 2 +- .github/workflows/kind_e2e.yaml | 2 +- .github/workflows/self_hosted_e2e.yaml | 2 +- .github/workflows/upgrade_e2e.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dapr_cli.yaml b/.github/workflows/dapr_cli.yaml index 94693bd33..b0fb30e9a 100644 --- a/.github/workflows/dapr_cli.yaml +++ b/.github/workflows/dapr_cli.yaml @@ -29,7 +29,7 @@ jobs: name: Build ${{ matrix.target_os }}_${{ matrix.target_arch }} binaries runs-on: ${{ matrix.os }} env: - GOVER: 1.20 + GOVER: 1.20.1 GOLANG_CI_LINT_VER: v1.49.0 GOOS: ${{ matrix.target_os }} GOARCH: ${{ matrix.target_arch }} diff --git a/.github/workflows/kind_e2e.yaml b/.github/workflows/kind_e2e.yaml index f6a2412b4..c6b334793 100644 --- a/.github/workflows/kind_e2e.yaml +++ b/.github/workflows/kind_e2e.yaml @@ -50,7 +50,7 @@ jobs: name: E2E tests for K8s (KinD) runs-on: ubuntu-latest env: - GOVER: 1.20 + GOVER: 1.20.1 DAPR_RUNTIME_PINNED_VERSION: 1.10.0 DAPR_DASHBOARD_PINNED_VERSION: 0.12.0 DAPR_RUNTIME_LATEST_STABLE_VERSION: diff --git a/.github/workflows/self_hosted_e2e.yaml b/.github/workflows/self_hosted_e2e.yaml index c47d76927..721f38db7 100644 --- a/.github/workflows/self_hosted_e2e.yaml +++ b/.github/workflows/self_hosted_e2e.yaml @@ -35,7 +35,7 @@ jobs: name: Run Self-Hosted E2E tests in ${{ matrix.target_os }}_${{ matrix.target_arch }}_${{ matrix.dapr_install_mode }} runs-on: ${{ matrix.os }} env: - GOVER: 1.20 + GOVER: 1.20.1 GOOS: ${{ matrix.target_os }} GOARCH: ${{ matrix.target_arch }} GOPROXY: https://proxy.golang.org diff --git a/.github/workflows/upgrade_e2e.yaml b/.github/workflows/upgrade_e2e.yaml index f267229da..a549fb55a 100644 --- a/.github/workflows/upgrade_e2e.yaml +++ b/.github/workflows/upgrade_e2e.yaml @@ -50,7 +50,7 @@ jobs: name: Upgrade path tests (KinD) runs-on: ubuntu-latest env: - GOVER: 1.20 + GOVER: 1.20.1 strategy: fail-fast: false # Keep running if one leg fails. matrix: From 1233d8acc5dd8c1ad10d5cb9e0c556a536c1c218 Mon Sep 17 00:00:00 2001 From: letmerecall Date: Tue, 28 Feb 2023 00:17:55 +0530 Subject: [PATCH 3/6] Format error message correctly Signed-off-by: letmerecall --- pkg/standalone/uninstall.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/standalone/uninstall.go b/pkg/standalone/uninstall.go index 21ce3272a..26427aadb 100644 --- a/pkg/standalone/uninstall.go +++ b/pkg/standalone/uninstall.go @@ -112,7 +112,7 @@ func Uninstall(uninstallAll bool, dockerNetwork string, containerRuntime string, } for _, e := range containerErrs { - err = fmt.Errorf("%w \n %s", err, e) + err = fmt.Errorf("%w \n %w", err, e) } return err } From 901fd4481bd4b52a0fefe5f559520ddd674f2ad4 Mon Sep 17 00:00:00 2001 From: letmerecall Date: Thu, 2 Mar 2023 00:22:56 +0530 Subject: [PATCH 4/6] Setup go from go.mod Signed-off-by: letmerecall --- .github/workflows/dapr_cli.yaml | 18 +++++++++--------- .github/workflows/kind_e2e.yaml | 10 +++++----- .github/workflows/self_hosted_e2e.yaml | 18 +++++++++--------- .github/workflows/upgrade_e2e.yaml | 11 +++++------ 4 files changed, 28 insertions(+), 29 deletions(-) diff --git a/.github/workflows/dapr_cli.yaml b/.github/workflows/dapr_cli.yaml index 680355c13..756b06682 100644 --- a/.github/workflows/dapr_cli.yaml +++ b/.github/workflows/dapr_cli.yaml @@ -29,7 +29,6 @@ jobs: name: Build ${{ matrix.target_os }}_${{ matrix.target_arch }} binaries runs-on: ${{ matrix.os }} env: - GOVER: 1.20.1 GOLANG_CI_LINT_VER: v1.51.2 GOOS: ${{ matrix.target_os }} GOARCH: ${{ matrix.target_arch }} @@ -57,10 +56,11 @@ jobs: - os: macOS-latest target_arch: arm steps: - - name: Set up Go ${{ env.GOVER }} + - name: Set up Go uses: actions/setup-go@v3 + id: setup-go with: - go-version: ${{ env.GOVER }} + go-version-file: 'go.mod' - name: Check out code into the Go module directory uses: actions/checkout@v3 - name: Cache Go modules (Linux) @@ -70,9 +70,9 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }} + key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}- + ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}- - name: Cache Go modules (Windows) if: matrix.target_os == 'windows' uses: actions/cache@v3 @@ -80,9 +80,9 @@ jobs: path: | ~\AppData\Local\go-build ~\go\pkg\mod - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }} + key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}- + ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}- - name: Cache Go modules (macOS) if: matrix.target_os == 'darwin' uses: actions/cache@v3 @@ -90,9 +90,9 @@ jobs: path: | ~/Library/Caches/go-build ~/go/pkg/mod - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }} + key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}- + ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}- - name: Run golangci-lint if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux' uses: golangci/golangci-lint-action@v3.2.0 diff --git a/.github/workflows/kind_e2e.yaml b/.github/workflows/kind_e2e.yaml index 3ab98870c..237468a8e 100644 --- a/.github/workflows/kind_e2e.yaml +++ b/.github/workflows/kind_e2e.yaml @@ -50,7 +50,6 @@ jobs: name: E2E tests for K8s (KinD) runs-on: ubuntu-latest env: - GOVER: 1.20.1 DAPR_RUNTIME_PINNED_VERSION: 1.10.0 DAPR_DASHBOARD_PINNED_VERSION: 0.12.0 DAPR_RUNTIME_LATEST_STABLE_VERSION: @@ -80,10 +79,11 @@ jobs: kind-version: v0.16.0 kind-image-sha: sha256:9be91e9e9cdf116809841fc77ebdb8845443c4c72fe5218f3ae9eb57fdb4bace steps: - - name: Set up Go ${{ env.GOVER }} + - name: Set up Go uses: actions/setup-go@v3 + id: setup-go with: - go-version: ${{ env.GOVER }} + go-version-file: 'go.mod' - name: Check out code onto GOPATH uses: actions/checkout@v3 with: @@ -94,9 +94,9 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ matrix.k8s-version }}-${{ matrix.kind-version }}-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }} + key: ${{ matrix.k8s-version }}-${{ matrix.kind-version }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ matrix.k8s-version }}-${{ matrix.kind-version }}-go-${{ env.GOVER }}- + ${{ matrix.k8s-version }}-${{ matrix.kind-version }}-go-${{ steps.setup-go.outputs.go-version }}- - name: Configure KinD # Generate a KinD configuration file that uses: diff --git a/.github/workflows/self_hosted_e2e.yaml b/.github/workflows/self_hosted_e2e.yaml index e38d6b0ee..df458975e 100644 --- a/.github/workflows/self_hosted_e2e.yaml +++ b/.github/workflows/self_hosted_e2e.yaml @@ -35,7 +35,6 @@ jobs: name: Run Self-Hosted E2E tests in ${{ matrix.target_os }}_${{ matrix.target_arch }}_${{ matrix.dapr_install_mode }} runs-on: ${{ matrix.os }} env: - GOVER: 1.20.1 GOOS: ${{ matrix.target_os }} GOARCH: ${{ matrix.target_arch }} GOPROXY: https://proxy.golang.org @@ -60,10 +59,11 @@ jobs: - os: windows-latest dapr_install_mode: complete steps: - - name: Set up Go ${{ env.GOVER }} + - name: Set up Go uses: actions/setup-go@v3 + id: setup-go with: - go-version: ${{ env.GOVER }} + go-version-file: 'go.mod' - name: Check out code into the Go module directory uses: actions/checkout@v3 - name: Cache Go modules (Linux) @@ -73,9 +73,9 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }} + key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}- + ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}- - name: Cache Go modules (Windows) if: matrix.target_os == 'windows' uses: actions/cache@v3 @@ -83,9 +83,9 @@ jobs: path: | ~\AppData\Local\go-build ~\go\pkg\mod - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }} + key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}- + ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}- - name: Cache Go modules (macOS) if: matrix.target_os == 'darwin' uses: actions/cache@v3 @@ -93,9 +93,9 @@ jobs: path: | ~/Library/Caches/go-build ~/go/pkg/mod - key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }} + key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}- + ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ steps.setup-go.outputs.go-version }}- - name: Install podman - MacOS if: matrix.os == 'macos-latest' && matrix.dapr_install_mode == 'complete' run: | diff --git a/.github/workflows/upgrade_e2e.yaml b/.github/workflows/upgrade_e2e.yaml index 929c11791..3b6685055 100644 --- a/.github/workflows/upgrade_e2e.yaml +++ b/.github/workflows/upgrade_e2e.yaml @@ -49,8 +49,6 @@ jobs: kubernetes-e2e: name: Upgrade path tests (KinD) runs-on: ubuntu-latest - env: - GOVER: 1.20.1 strategy: fail-fast: false # Keep running if one leg fails. matrix: @@ -75,10 +73,11 @@ jobs: kind-version: v0.16.0 kind-image-sha: sha256:9be91e9e9cdf116809841fc77ebdb8845443c4c72fe5218f3ae9eb57fdb4bace steps: - - name: Set up Go ${{ env.GOVER }} + - name: Set up Go uses: actions/setup-go@v3 + id: setup-go with: - go-version: ${{ env.GOVER }} + go-version-file: 'go.mod' - name: Check out code onto GOPATH uses: actions/checkout@v3 with: @@ -89,9 +88,9 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ matrix.k8s-version }}-${{ matrix.kind-version }}-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }} + key: ${{ matrix.k8s-version }}-${{ matrix.kind-version }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ matrix.k8s-version }}-${{ matrix.kind-version }}-go-${{ env.GOVER }}- + ${{ matrix.k8s-version }}-${{ matrix.kind-version }}-go-${{ steps.setup-go.outputs.go-version }}- - name: Configure KinD From 136307929c7c1ff59dc4bfc0656f9b750caa0353 Mon Sep 17 00:00:00 2001 From: letmerecall Date: Thu, 2 Mar 2023 00:35:36 +0530 Subject: [PATCH 5/6] Fix workflow, checkout code before go setup Signed-off-by: letmerecall --- .github/workflows/dapr_cli.yaml | 4 ++-- .github/workflows/kind_e2e.yaml | 8 ++++---- .github/workflows/self_hosted_e2e.yaml | 4 ++-- .github/workflows/upgrade_e2e.yaml | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dapr_cli.yaml b/.github/workflows/dapr_cli.yaml index 756b06682..2a553c0c3 100644 --- a/.github/workflows/dapr_cli.yaml +++ b/.github/workflows/dapr_cli.yaml @@ -56,13 +56,13 @@ jobs: - os: macOS-latest target_arch: arm steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 - name: Set up Go uses: actions/setup-go@v3 id: setup-go with: go-version-file: 'go.mod' - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - name: Cache Go modules (Linux) if: matrix.target_os == 'linux' uses: actions/cache@v3 diff --git a/.github/workflows/kind_e2e.yaml b/.github/workflows/kind_e2e.yaml index 237468a8e..e3c48c074 100644 --- a/.github/workflows/kind_e2e.yaml +++ b/.github/workflows/kind_e2e.yaml @@ -79,15 +79,15 @@ jobs: kind-version: v0.16.0 kind-image-sha: sha256:9be91e9e9cdf116809841fc77ebdb8845443c4c72fe5218f3ae9eb57fdb4bace steps: + - name: Check out code onto GOPATH + uses: actions/checkout@v3 + with: + path: ./src/github.com/dapr/cli - name: Set up Go uses: actions/setup-go@v3 id: setup-go with: go-version-file: 'go.mod' - - name: Check out code onto GOPATH - uses: actions/checkout@v3 - with: - path: ./src/github.com/dapr/cli - name: Cache Go modules uses: actions/cache@v3 with: diff --git a/.github/workflows/self_hosted_e2e.yaml b/.github/workflows/self_hosted_e2e.yaml index df458975e..799b5683f 100644 --- a/.github/workflows/self_hosted_e2e.yaml +++ b/.github/workflows/self_hosted_e2e.yaml @@ -59,13 +59,13 @@ jobs: - os: windows-latest dapr_install_mode: complete steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 - name: Set up Go uses: actions/setup-go@v3 id: setup-go with: go-version-file: 'go.mod' - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - name: Cache Go modules (Linux) if: matrix.target_os == 'linux' uses: actions/cache@v3 diff --git a/.github/workflows/upgrade_e2e.yaml b/.github/workflows/upgrade_e2e.yaml index 3b6685055..dd203aeba 100644 --- a/.github/workflows/upgrade_e2e.yaml +++ b/.github/workflows/upgrade_e2e.yaml @@ -73,15 +73,15 @@ jobs: kind-version: v0.16.0 kind-image-sha: sha256:9be91e9e9cdf116809841fc77ebdb8845443c4c72fe5218f3ae9eb57fdb4bace steps: + - name: Check out code onto GOPATH + uses: actions/checkout@v3 + with: + path: ./src/github.com/dapr/cli - name: Set up Go uses: actions/setup-go@v3 id: setup-go with: go-version-file: 'go.mod' - - name: Check out code onto GOPATH - uses: actions/checkout@v3 - with: - path: ./src/github.com/dapr/cli - name: Cache Go modules uses: actions/cache@v3 with: From 9ec7e97d15b2f5e8bfecd69e53e03d6d3cb93333 Mon Sep 17 00:00:00 2001 From: letmerecall Date: Thu, 2 Mar 2023 01:05:52 +0530 Subject: [PATCH 6/6] Fix workflow Signed-off-by: letmerecall --- .github/workflows/kind_e2e.yaml | 2 +- .github/workflows/upgrade_e2e.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/kind_e2e.yaml b/.github/workflows/kind_e2e.yaml index e3c48c074..5f7afadbf 100644 --- a/.github/workflows/kind_e2e.yaml +++ b/.github/workflows/kind_e2e.yaml @@ -87,7 +87,7 @@ jobs: uses: actions/setup-go@v3 id: setup-go with: - go-version-file: 'go.mod' + go-version-file: './src/github.com/dapr/cli/go.mod' - name: Cache Go modules uses: actions/cache@v3 with: diff --git a/.github/workflows/upgrade_e2e.yaml b/.github/workflows/upgrade_e2e.yaml index dd203aeba..fefc9570d 100644 --- a/.github/workflows/upgrade_e2e.yaml +++ b/.github/workflows/upgrade_e2e.yaml @@ -81,7 +81,7 @@ jobs: uses: actions/setup-go@v3 id: setup-go with: - go-version-file: 'go.mod' + go-version-file: './src/github.com/dapr/cli/go.mod' - name: Cache Go modules uses: actions/cache@v3 with: