Gopath detection and support for godep. Closes #425#429
Merged
Conversation
This PR includes new features and improvements which brings better support for multiple GOPATHs and tools that support this (such as godep). This also creates a foundation for other new project based building tools, such as gb. The changes are : * A new :GoPath command that displays the current set GOPATH. It changes the current GOPATH when an argument is passed, i.e: :GoPath /home/fatih/mypath * A new :GoPathClear command that clears the previous set GOPATH via :GoPath and restores it to the initial GOPATH value. the current set GOPATH. * A new go_autodetect_gopath setting. This is enabled by default. When enabled, vim-go automatically modifies the GOPATH if a project uses a certain package tool (such as godep). For now only godep is supported. If a user edits a file and invokes any vim-go command, such as :GoDef, :GoBuild, etc.. the GOPATH will include the Godeps folder. For example any go-to-definition via :GoDef will jump to the source code inside Godeps. * Changes to vim-go code base to have better support for multiple OS.
Closed
Clean up plugin/go.vim. Everything is now much more cleaner.
Owner
Author
|
This is good to go. I'll merge it. |
fatih
added a commit
that referenced
this pull request
May 22, 2015
Gopath detection and support for godep. Closes #425
|
you are awesome! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR includes new features and improvements which brings better support for multiple
GOPATHs and tools that support this (such asgodep). This also creates a foundation for other new project based building tools, such asgb.The changes are :
:GoPathcommand that displays the current setGOPATH. It changes the currentGOPATHwhen an argument is passed, i.e::GoPath /home/fatih/mypath:GoPathClearcommand that clears the previous setGOPATHvia:GoPathand restores it to the initialGOPATHvalue. the current setGOPATH.go_autodetect_gopathsetting. This is enabled by default. When enabled, vim-go automatically modifies theGOPATHif a project uses a certain package tool (such asgodep). For now onlygodepis supported and any directory which has the/srcbut is absent inGOPATH. If a user edits a file and invokes anyvim-gocommand, such as:GoDef,:GoBuild, etc.. theGOPATHwill include theGodepsfolder. For example any go-to-definition via:GoDefwill jump to the source code insideGodeps.