I\'m trying to understand how to work with Golang and forks. The situation is the following, I\'m writing a library project which depends on library github.co
If you look at the help you will see this:
<import path>[:alt source URL][@<constraint>]
So to add github.com/foo/bar from location github.com/fork/bar you have to add it like this:
dep ensure -add github.com/foo/bar:github.com/fork/bar
The source location will be added as source attribute in the Gopkg.toml.
Gopkg docs for dependency rules constraint and override