Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github/workflows: fix gotip tests on Windows #623

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

0x2b3bfa0
Copy link
Contributor

@0x2b3bfa0 0x2b3bfa0 commented Feb 28, 2025

Default GitHub Actions Windows runners ship with several Go versions installed out of the box; $env:PATH contains C:\hostedtoolcache\windows\go\1.21.13\x64\bin by default.

While actions/setup-go installs Go 1.24.0 (stable) and prepends C:\hostedtoolcache\windows\go\1.24.0\x64\bin to $env:PATH as expected, it's not being detected by make.bat as the preferred Go version for the bootstrap toolchain.

Due to a bug1 in src/make.bat, the last Go in $env:PATH will take precedence over the first one, causing GOROOT_BOOTSTRAP to use the old Go 1.21.13 instead of 1.24.0.

Since CL 606156, Go depends on 1.22.6 or later for bootstrap, and that's why the workflow is broken.

Footnotes

  1. See https://go-review.googlesource.com/c/go/+/653535.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant