Binaries installed via `go install` are not accessible on path
See original GitHub issueHi,
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
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:11 (3 by maintainers)
Top Results From Across the Web
How to properly install GO with paths and all? - Stack Overflow
2 Answers 2 · Install Go with the installer (Windows) or archive (extract into /usr/local on Linux/Mac). · When installing from archive, manually ......
Read more >1. Setting Up Your Go Environment - Learning Go [Book]
Go programs compile to a single binary and do not require any additional software to be installed in order to run them. Install...
Read more >go command - cmd/go - Go Packages
Install compiles and installs the packages named by the import paths. Executables are installed in the directory named by the GOBIN environment variable,...
Read more >Install Docker Engine from binaries
This page contains information on how to install Docker using binaries. These instructions are mostly suitable for testing purposes. We do not recommend ......
Read more >Installing pandoc
This will install pandoc, replacing older versions, and update your path to include the directory where pandoc's binaries are installed. If you prefer...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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).
Agreed. Will fix.