-
Notifications
You must be signed in to change notification settings - Fork 534
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
Binaries installed via go install
are not accessible on path
#27
Comments
actually after further investigation it looks like the env and path are already getting set, but to the wrong values. Below are some screenshots of the MacOS setup. If we look at |
I agree this should work by default but for now you can add to each step:
See https://presstige.io/p/Using-GitHub-Actions-with-Go-2ca9744b531f4f21bdae9976d1ccbb58#e86c1c15-6f43-4f43-935f-37895bd14208 for a fuller example (I use that for running staticcheck) (just a tip, I'm not the maintainer). |
Lines 119 to 121 in 75259a5
Should have an else and export the default |
In addition to that @devigned I think the ‘GOPATH’ statement two lines above that needs an ‘else’ |
Agreed. If nothing is overridden, Golang defaults should be honored. |
Duplicate of #14 |
Agreed. Will fix. |
This is hack for actions/setup-go#27
This should be fixed in @v2-beta version of this action. See #14 |
I just hit this problem and upgrading to v2-beta fixed this problem for me. |
Awesome to hear. I’ll probably release v2 Monday |
Nice! Thanks for putting this action together. I have been using it with a few projects. |
#### Changes - Upgrading go-setup action to v3 that has fix for actions/setup-go#27
Hi everyone, ressurecting the dead here...
I added to my action: and now it works fine. |
Hi,
I'm hoping to migrate my open source library from Travis to Github Actions, but I've hit a snag - I'm unable to run most of my build checks. I use golint and goimports, both tools installed via
go install
.These binaries are not found on any OS that I've tried, (windows, ubuntu, macOS) which led me to this repo where I discovered that GOBIN was not being added to PATH.
The fix should be as simple as adding GOPATH/bin to PATH
The text was updated successfully, but these errors were encountered: