Recently in the study of using GODEP to manage Golang dependency packages, the following issues were encountered:
The project has dependencies on other packages that you edit, and the dependency package is in the same directory as the main package, so you can only generate a dependency package that you want to github.com when you execute GODEP save.
After analysis found: I usually put my own package into the goroot, so go compiler will think that I am editing the package is the System package, and then will not put my edited package into the Godep.json, my own editor of the package into the GOPATH/SRC can be.
Language is not particularly fluent, only as a record of their own, there are problems to find me to discuss
This article is from the "Linux related" blog, so be sure to keep this source http://diadia.blog.51cto.com/5440926/1774454
About the difference between Gopath and Goroot