Skip to content
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

configure GOROOT with go env command #216

Merged
merged 6 commits into from May 3, 2021
Merged

configure GOROOT with go env command #216

merged 6 commits into from May 3, 2021

Conversation

shogo82148
Copy link
Owner

goveralls doesn't use the go list command but uses the go/build package.
go list sees the GOROOT environment value, and its default value is typically /usr/local/go.
But sometimes it isn't, e.g. the go command is built from the source and customized.

So if GOROOT is not configured, get its value by running go env GOROOT.

fixes #214

@coveralls
Copy link

coveralls commented May 3, 2021

Coverage Status

Coverage remained the same at 50.0% when pulling 3bf6e39 on configure-go-env into fcebdad on main.

@shogo82148 shogo82148 merged commit b1cfa5c into main May 3, 2021
@shogo82148 shogo82148 deleted the configure-go-env branch May 3, 2021 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

go: cannot find GOROOT directory: /usr/local/go
2 participants