Closed pickfire closed 3 years ago
Hey,
All go binaries are by default installed to $GOPATH/bin. It is common practice to add this location to your PATH. It is the responsibility of the user to do so.
There is no warning we could provide in the tooling, but we could add a note to our README. Feel free to open a PR if you are willing.
There is no warning we could provide in the tooling,
Why?
Actual behavior Mockgen was added in
~/src/go/bin/mockgen
by installing it withGO111MODULE=on go get github.com/golang/mock/mockgen@v1.4.4
, but no warnings were given that~/src/go/bin
is not part ofPATH
environment variables.Expected behavior A clear and concise warning should be given to users when installing.
To Reproduce Steps to reproduce the behavior
GO111MODULE=on go get github.com/golang/mock/mockgen@v1.4.4
Additional Information
Triage Notes for the Maintainers