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
in v3 setup-go does not set GOROOT #278
Comments
Hello @shoenig! Could you please provide a public repository to reproduce the issue? |
Hi @e-korolevskii , I created this PR against a sample repository just to reproduce this issue We can see in the v1 version, And in the v3 version, The part where we set GOBIN=GOROOT/bin is just demonstrating why our builds are failing - we make use of GOROOT/bin as a user writable directory on PATH we can install Go tooling into to perform the build. |
@dmitry-shibanov what is the suggested workaround, then? We were using that exported environment variable, as it is particularly useful on Windows builders where mangling PATH is tedious. |
Okay |
This only leads to some compatibility problems, manually modified on the good. I think it should be reminded in README.md. |
I had a thought - what if That's really what we're trying to get at in our use of |
Hello @shoenig! As mentioned earlier, removing In the meantime, I will close this issue, feel free to ask additional questions here or create a new one. |
In case anyone else runs into this, we created https://github.com/hashicorp/setup-golang to get the behavior we really wanted (export a |
We are running into this after trying to fix the deprecation warnings named in https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
As @godcong noted at the bottom of #276
The setting of
GOROOT
is not happening anymore.This is breaking builds where we depend on
$GOROOT
being set and on the$PATH
.The text was updated successfully, but these errors were encountered: