Closed jpmcb closed 4 months ago
Seems there was a change after Go 1.21 that prefers the X.Y.Z
directive format: https://github.com/golang/go/issues/62278#issuecomment-1698829945 since X.Y
versions of Go are generally not downloadable or captureable by the automatic toolchain upgrading mechanisms.
Thanks for the report. Our CI (and likely all of the maintainer dev environments) is setup in a way that Go 1.22.x is already available, so I hadn't run into this.
Merging #4240 required me to take care of this anyway, but let me know if the issue persists after merged.
Fixed! Thanks @spencerschrock !! 🫡
Describe the bug
When attempting to build and verify artifacts using
make all
for the first time, there is a toolchain problem:Primarily
download go1.22 for darwin/arm64: toolchain not available
in the tools Go module:https://github.com/ossf/scorecard/blob/b48bdbf250dedadedb42934480bb885d756ead0c/tools/go.mod#L3
"1.22" is not a valid Go version and is not recognized by the toolchain as a valid version to download:
https://github.com/golang/go/issues/65568
Making this change fixed the problem and I was able to build:
Reproduction steps Steps to reproduce the behavior:
make all
tools
directoryExpected behavior
Should be able to clone repo and
make all
without toolchain failures or needing to makego.mod
changes