-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Failed to load stdlib module when executing cyclonedx-gomod #423
Comments
There is nothing in cdx-gomod that relies on specific versions of Go, as it merely orchestrates calls to the To my understanding, merely listing modules should not build anything, but download sources of all dependencies in involved. So it's definitely odd if you're now getting errors due to builds failing. Can you try running the |
~/go/pkg/mod/golang.org/[email protected]/src /usr/local/go/bin/go list -mod readonly -json -m
go: downloading go1.22 (darwin/arm64)
go: download go1.22 for darwin/arm64: toolchain not available Although not the same, it may be related to golang/go#62278 when executing a go command in the goroot. |
I found I needed to make several improvements to get it to run right in my environment.
|
The issue I'm facing is that I have a CI with Go 1.21 that tries to generate the bom for an application that requires Go 1.22.
The error I get is the following:
While I'm not sure if it's a bug, the following behavior presents frictions with respect to the new policy in which Go 1.21+ version try to compile newer versions.
My goal is not to have to update de go version every time a release occur since now Go 1.21 and later will not try to compile code that requires a newer version of Go but instead download the corresponding toolchain.
The text was updated successfully, but these errors were encountered: