From a48ae19194b7e92bdda63fc930b0d28f70972104 Mon Sep 17 00:00:00 2001 From: Alan Parra Date: Tue, 29 Aug 2023 16:50:41 -0300 Subject: [PATCH 1/2] Use the Go 1.21.0 toolchain to build modules --- go.mod | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go.mod b/go.mod index 817b956ddc2a2..7614c87f7a76d 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/gravitational/teleport go 1.20 +toolchain go1.21.0 + require ( cloud.google.com/go/compute v1.23.0 cloud.google.com/go/compute/metadata v0.2.3 From b49cdddee9844a613dcaca78796f9c57b570ea26 Mon Sep 17 00:00:00 2001 From: Alan Parra Date: Tue, 29 Aug 2023 17:21:19 -0300 Subject: [PATCH 2/2] Don't attempt to use Go 1.19 in the root module --- .github/workflows/build-api.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build-api.yaml b/.github/workflows/build-api.yaml index 071e79205169a..70dd92525bb81 100644 --- a/.github/workflows/build-api.yaml +++ b/.github/workflows/build-api.yaml @@ -38,8 +38,5 @@ jobs: go-version-file: api/go.mod cache-dependency-path: api/go.sum - - name: Init workspace - run: go work init . ./api/ - - name: Build - run: go build ./api/... + run: cd api; go build ./...