-
Notifications
You must be signed in to change notification settings - Fork 114
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
update go 1.18 - no goversion found #57
Comments
Same error encountered in GitHub Actions. I had to downgrade to go 1.17.x for it to work |
Interesting - I see the error message on only a few other projects. Can you provide more details on how to reproduce please? |
Hello @josephspurrier! We faced the same issue, let me share some steps to reproduce. https://github.com/newrelic/infrastructure-agent/runs/6113650941?check_suite_focus=true Could you help us to understand what went wrong? Thank you 🙂 |
@brushknight Ah, it may be related to this change in the Go language: https://go.dev/doc/go-get-install-deprecation. Can you change this line to go install? https://github.com/newrelic/infrastructure-agent/blob/master/build/windows/build.ps1#L41 |
Same issue here, on Go 1.19.2: |
Can you try the fix in: #57 (comment)? |
That worked for Windows, but not for cross-compilation...so looks like it's just the instruction page perhaps that needs updating for Windows. Cross-compilation, at least on an M1 Mac, can't find the goversioninfo executable it seems. |
Are you able to post examples? Cross-compilation has its own challenges (different PATH variables, different Go versions, etc.) so I want to make sure it doesn't confuse the initial problem that Go changed how it works in newer versions which is not a bug with goversioninfo. |
To add to the discussion, we recently encountered the same problem in our project which uses cross-compile to build a Windows binary on Linux. goversioninfo was not found in PATH for Go version 1.18 and up. We finally fixed it with
|
2022/03/21 14:58:13 Error when extracting compiler information: no goversion found
The text was updated successfully, but these errors were encountered: