-
Notifications
You must be signed in to change notification settings - Fork 492
Usage examples? #37
Comments
Try |
EDIT: @dsymonds I also thought maybe some GOHOME or something isn't setup, but I've followed https://golang.org/doc/install and didn't see anything like that, also looked at https://github.com/golang/lint/blob/master/README.md and followed usage/installation with no luck yet. EDIT: Also made sure go's binary folder is in my PATH EDIT: Checked my GOPATH and GOBIN they are empty, so I'll set those up and report back
Followed https://github.com/golang/go/wiki/SettingGOPATH to setup GOPATH Followed this Stack Overflow answer that explains the setup/problem most have with GOPATH/GOBIN: https://stackoverflow.com/questions/25216765/gobin-not-set-cannot-run-go-install Ended up setting the following in my
Then activating that by running Now they appear correct
Tried install again, still no luck... 🤕
EDIT: Also tried the slightly different install from the README.md of this repo.
No bananas 🍌 I found it!
🌟 ⭐ 🌟 ⭐ 🌟 ⭐ 🌟 ⭐ Okay solution is: First ensure your GOPATH and GOBIN are fully setup. Ended up setting the following in my
Then activating that by running Next, install golint with Lastly, you can run golint by doing the following: Run 🌟 ⭐ 🌟 ⭐ 🌟 ⭐ 🌟 ⭐ |
@jyaunches I've investigated this issue, and posted my solution / results. Also tagging @crunchytom, @Rambatino, @micky2be, @icambridge and @colinster from #171 because I started on that issue, and then came here. @dsymonds Responding to your comments on #171 about "its not up to golint to explain this". Explanation and information is vital to open source. Teaching people, growing a healthy community, even if it takes time out of your day. Now I have my solution above that explains the whole process I used to troubleshoot and simply what I did to fix it. Indeed you are correct this is something that deals with |
simply add golint binary path in PATH var like |
|
@yzrds can you provide the output of the commands that "didn't work" maybe I can help you out then. |
Hi there. I'm new to Go and am trying to run go lint on a program I'm writing. I'd like clarification on the usage of this library from the command-line.
I've verified the installation went to the directory: go/src/github.com/golang/lint
If I'm in the directory of the code I'm working on (/go/src/github.com/jyaunches/my_program), should I be able to run lint with:
??
When I do this, I get:
I'm thinking maybe my Go installation isn't completely hooked up properly.. but as I can't find exact usage examples, I thought I would check.
Thanks!
The text was updated successfully, but these errors were encountered: