|
|
|
|
|
by MetaCosm
4763 days ago
|
|
What? It ONLY looks for localized copies. When you have
import "github.com/gorilla/mux" it will look in $GOROOT/src/pkg/github.com/gorilla/mux
and
$GOPATH/src/github.com/gorilla/mux if it is missing, you can fulfill it with go get github.com/gorilla/mux which will place it in the first place in $GOPATH What are you talking about breaking with distributed teams? Since $GOPATH/src/github.com/gorilla/mux is in source control you NEED NOTHING and it will be a known working git clone. EDIT: Additionally, it will never auto-update those dependencies (and break your build) unless you explicitly tell it to with "go get -u". |
|
BUT, what you are describing is exactly how the Haunt guys used Go and consequently the issues they have run into. Please re-read the update from Rick and read my comments again, you should then understand the issue and why changing the import path to a fork/clone/localized copy is beneficial (though not required).