-
Notifications
You must be signed in to change notification settings - Fork 104
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
lint target no longer works without $GOPATH #1373
Comments
Looks like this was changed recently by #1362 |
|
I did read that PR, but I don't see the connection. AFAICT the only requirement is for your $GOBIN to be in your $PATH. One does not need $GOPATH at all these days, it's optional. Am I missing something? |
Also, the code as is will still be incorrect if one's $GOBIN is set to something else than $GOPATH/bin. |
I don't see anything about not needing the $GOPATH...
So, I'm fine with defaulting it to |
This fails on my machine as well and I have GOPATH setup :( |
|
Wouldn't it be better to just use something like It's important everyone can use their own tools, their way, but I think we can make some reasonable assumptions here given how Go and their binaries tend to work. This will all even cause hell with VSCode which has a tools specific GOPATH as well, that some people use! While other languages are great at being hermetically sealed from their environments from both a binary and package perspective (really, any language with a sane package manager), Go isn't that language. We have plenty other things to do than continuously work around Go's annoying shortcomings. As part of that, we'd revert the changes in #1362. |
the issue I had ^^ was my env... I was looking at go 1.14 over the weekend. I am good either way. |
What happened:
Checked out
master
and ran:What you expected to happen:
Lint should pass on a clean repo.
How to reproduce it (as minimally and precisely as possible):
make lint
Anything else we need to know?:
GOPATH
set, which might be related.The text was updated successfully, but these errors were encountered: