Skip to content

Godeps/gb aware tools #425

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

Closed
fatih opened this issue May 14, 2015 · 7 comments
Closed

Godeps/gb aware tools #425

fatih opened this issue May 14, 2015 · 7 comments

Comments

@fatih
Copy link
Owner

fatih commented May 14, 2015

This is just an idea. vim-go should be able to detect Godeps, a gb project, and many other popular options and change the GOPATH automatically so tools like godef, gocode, oracle etc.. uses the intended vendorized source codes. I've played around it locally (not pushed yet), but it works quite perfect. I'll push with updates once I'm finished with it. Any feedback is welcome again here.

@fatih
Copy link
Owner Author

fatih commented May 14, 2015

I think we also should have a new :GoPath command that allows users to explicitly set their $GOPATH if they wish it.

@mariokostelac
Copy link

+1 for gb awareness. Thank you a lot for your contributions.

@fatih
Copy link
Owner Author

fatih commented May 18, 2015

Another workspace related tool: https://github.com/skelterjohn/wgo

@fatih
Copy link
Owner Author

fatih commented May 20, 2015

This is finished with: #429 and it works perfect for godep. Once we merge this, I'll work on adding gb detection.

@fatih fatih closed this as completed in c78f751 May 22, 2015
@davidbirdsong
Copy link

Did gb support ever get merged in? I've been using both gb and vim-go for roughly 2 years and I've yet to figure out how to get vim-go to know about the custom GOPATH under src and vendor/src in my gb project.

@bhcleek
Copy link
Collaborator

bhcleek commented Nov 13, 2017

It did get merged. g:go_autodetect_gopath is the option that controls whether it looks for src directories: https://github.com/fatih/vim-go/blob/master/doc/vim-go.txt#L1310-L1315.

But it may be removed completely soon: #1461 (comment). You may want to follow #1525.

@davidbirdsong
Copy link

davidbirdsong commented Nov 13, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants