-
Notifications
You must be signed in to change notification settings - Fork 2
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
error: cannot find GOROOT directory: /opt/hostedtoolcache/go/1.13.15/x64 #13
Comments
Same here, it fails for me too. |
I did thanks |
Good question ;) I'll check it in the next days |
@pashagolub I can't find where this reference to |
Sorry. No idea. But my other projects suffers from the very same error: https://github.com/cybertec-postgresql/pg_timetable/runs/6518909375 |
In my case I solved it by adding this as a step before
|
I was able to reproduce the problem as follows:
This results in warnings like:
However, if |
because the invoked gcov2lcov uses golang API functions that rely on GOROOT (i.e. build.Import, which calls https://cs.opensource.google/go/go/+/refs/tags/go1.18.2:src/go/build/build.go;drc=0a1a092c4b56a1d4033372fbd07924dad8cbb50b;l=544) Up to version v3 of the github setup-go action, the GOROOT variable was automatically set. But that changed with v3 of the setup-go action, and that's why we now set GOROOT.
@pashagolub I fixed the problem by always setting |
One of the latest runs of my workflow failed:
Is it because runner doesn't have Go v1.13 installed anymore?
The text was updated successfully, but these errors were encountered: