You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to build and verify artifacts using make all for the first time, there is a toolchain problem:
❯ make all
# Update root go modules
go mod tidy && go mod verify
all modules verified
cd tools; go mod tidy && go mod verify; cd ../
go: downloading go1.22 (darwin/arm64)
go: download go1.22 for darwin/arm64: toolchain not available
cd tools; GOBIN=/Users/jpmcb/workspace/ossf-scorecard/tools/bin go install github.com/golang/mock/mockgen
go: downloading go1.22 (darwin/arm64)
go: download go1.22 for darwin/arm64: toolchain not available
make: *** [/Users/jpmcb/workspace/ossf-scorecard/tools/bin/mockgen] Error 1
Primarily download go1.22 for darwin/arm64: toolchain not available in the tools Go module:
Seems there was a change after Go 1.21 that prefers the X.Y.Z directive format: golang/go#62278 (comment) 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.
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:scorecard/tools/go.mod
Line 3 in b48bdbf
"1.22" is not a valid Go version and is not recognized by the toolchain as a valid version to download:
golang/go#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
changesThe text was updated successfully, but these errors were encountered: