Skip to content

Commit f1d760d

Browse files
Set GOTOOLCHAIN to auto in Verify Release Workflows (#1853)
This pull request is a hotfix for pulumi/pulumi-tls#888. In all other workflows, we allow for Mise to install the Go version but we decided to keep the legacy implementation where we allow for the setup-go job to install the version instead. Setup-go shipped a change actions/setup-go#460 where the gotoolchain is now installed using `local` not `auto` and this keeps the verify-release workflow from installing a Go version other than the one set in the tool version. Update: It turns out that v1.22.x is not enough: https://github.com/pulumi/pulumi-gcp/actions/runs/19448883749/job/55655199413#step:17:54 > Error: exec: go: go.mod requires go >= 1.23.3 (running go 1.21.13; GOTOOLCHAIN=local) so rather than bumping the Go version, this pull request sets the go toolchain to `auto` so the workflow downloads it as before.
1 parent 0b6cc5f commit f1d760d

File tree

8 files changed

+24
-0
lines changed

8 files changed

+24
-0
lines changed

provider-ci/internal/pkg/templates/base/.github/workflows/verify-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ jobs:
126126
sdk/*.sum
127127
*.sum
128128
cache: true
129+
- name: Set Go Toolchain to auto explicitly
130+
run: |
131+
echo "GOTOOLCHAIN=auto" >> "$GITHUB_ENV"
129132
#{{- end }}#
130133
#{{- end }}#
131134
- name: Install Pulumi CLI

provider-ci/test-providers/acme/.github/workflows/verify-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ jobs:
100100
sdk/*.sum
101101
*.sum
102102
cache: true
103+
- name: Set Go Toolchain to auto explicitly
104+
run: |
105+
echo "GOTOOLCHAIN=auto" >> "$GITHUB_ENV"
103106
- name: Install Pulumi CLI
104107
uses: pulumi/actions@d7ceb0215da5a14ec84f50b703365ddf0194a9c8 # v6
105108
with:

provider-ci/test-providers/aws/.github/workflows/verify-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ jobs:
104104
sdk/*.sum
105105
*.sum
106106
cache: true
107+
- name: Set Go Toolchain to auto explicitly
108+
run: |
109+
echo "GOTOOLCHAIN=auto" >> "$GITHUB_ENV"
107110
- name: Install Pulumi CLI
108111
uses: pulumi/actions@d7ceb0215da5a14ec84f50b703365ddf0194a9c8 # v6
109112
with:

provider-ci/test-providers/cloudflare/.github/workflows/verify-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ jobs:
108108
sdk/*.sum
109109
*.sum
110110
cache: true
111+
- name: Set Go Toolchain to auto explicitly
112+
run: |
113+
echo "GOTOOLCHAIN=auto" >> "$GITHUB_ENV"
111114
- name: Install Pulumi CLI
112115
uses: pulumi/actions@d7ceb0215da5a14ec84f50b703365ddf0194a9c8 # v6
113116
with:

provider-ci/test-providers/docker/.github/workflows/verify-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ jobs:
120120
sdk/*.sum
121121
*.sum
122122
cache: true
123+
- name: Set Go Toolchain to auto explicitly
124+
run: |
125+
echo "GOTOOLCHAIN=auto" >> "$GITHUB_ENV"
123126
- name: Install Pulumi CLI
124127
uses: pulumi/actions@d7ceb0215da5a14ec84f50b703365ddf0194a9c8 # v6
125128
with:

provider-ci/test-providers/eks/.github/workflows/verify-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ jobs:
111111
sdk/*.sum
112112
*.sum
113113
cache: true
114+
- name: Set Go Toolchain to auto explicitly
115+
run: |
116+
echo "GOTOOLCHAIN=auto" >> "$GITHUB_ENV"
114117
- name: Install Pulumi CLI
115118
uses: pulumi/actions@d7ceb0215da5a14ec84f50b703365ddf0194a9c8 # v6
116119
with:

provider-ci/test-providers/terraform-module/.github/workflows/verify-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ jobs:
118118
sdk/*.sum
119119
*.sum
120120
cache: true
121+
- name: Set Go Toolchain to auto explicitly
122+
run: |
123+
echo "GOTOOLCHAIN=auto" >> "$GITHUB_ENV"
121124
- name: Install Pulumi CLI
122125
uses: pulumi/actions@d7ceb0215da5a14ec84f50b703365ddf0194a9c8 # v6
123126
with:

provider-ci/test-providers/xyz/.github/workflows/verify-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ jobs:
104104
sdk/*.sum
105105
*.sum
106106
cache: true
107+
- name: Set Go Toolchain to auto explicitly
108+
run: |
109+
echo "GOTOOLCHAIN=auto" >> "$GITHUB_ENV"
107110
- name: Install Pulumi CLI
108111
uses: pulumi/actions@d7ceb0215da5a14ec84f50b703365ddf0194a9c8 # v6
109112
with:

0 commit comments

Comments
 (0)