Hi! I am new to this whole Git and Go stuff so I really don't know what's wrong. I've tried to search the web for 3 days to fix this problem but still I can't get it to work.
When I am running a dep command such as dep --version in GitBash it says bash: dep: command not found. The way I did was I ran "GitBash Here" inside my $GOPATH folder where I have 3 folders named "bin", "pkg" and "src" and wrote the command go get -u github.com/golang/dep/cmd/dep.
I got a folder inside my src which I'm suppose to get and a file called "dep.exe" in my bin folder. Next I am suppose to do dep init or dep --version but doesn't work either because the command wasn't found. So I opened up my Git CMD and went to the bin folder and ran the dep.exe through dep init command and it says "root project import: C:UsersLeonaGobin is not within any GOPATH/src". So what I did was I moved the file to inside the src folder and I could run but still the dep commands like dep --version didn't work through GitBash but they work through Git CMD.
What I am trying to say is what do I do after I downloaded it through the go get? I have set my enviroment as well.


Very thankful for any help!
/Leona
Both GOROOT/bin and GOPATH/bin should be in your PATH.
I see C:\Go\bin there but not C:\Users\Leona\Go\bin. In this last folder you'll have your dep.exe.
(Don't forget to restart your shell after changing environment variables)
Thank you so much. Can't believe such a small thing I missed that caused all of my confussion.
Works now!
LeOwnYa : Hi, i am facing the same issue. but i didn't get the solution.
Can you please show me step by step how to resolve it.
prefer screenshots. thank you in advance.
I had faced the same issue. The issue was solved when I did the solution as @andreynering defined above thanks. Add your gopath/bin folder path to the path variable, as well, inside the environmental variables panel.
Most helpful comment
Both
GOROOT/binandGOPATH/binshould be in your PATH.I see
C:\Go\binthere but notC:\Users\Leona\Go\bin. In this last folder you'll have yourdep.exe.(Don't forget to restart your shell after changing environment variables)