-
Notifications
You must be signed in to change notification settings - Fork 23
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
Use existing dependency code source from the GOPATH #55
Comments
Do people still actively use GOPATH when developing code, though? I personally do all of my development in modules nowadays, and I expect GOPATH will be dropped in a couple of Go releases once modules are on by default. |
I think that there is still people that didn't move at all to modules. But maybe if we don't want to take the GOPATH in account anymore we can pass a flag that specifies in which directory to look for before cloning the dependency. What do you think? |
Old habits die hard. Also, I sometimes want to download code to poke around at it before I have an actual use for it anywhere. I currently put those things in my GOPATH. |
For control over the location of where FWIW - I always find myself doing |
gohack
should check if the dependency already exists in the GOPATH before cloning it into$HOME/gohack
.Let's say I have
github.com/heetch/felice
in my GOPATH.Instead of having:
I would have
The text was updated successfully, but these errors were encountered: