If you want to say, point to the local version of a dependency in Go rather than the one over the web, use the replace keyword. The replace line goes above your require statements, like so: module github.com/pselle/foo replace github.com/pselle/bar => /Users/pselle/Projects/bar require ( github.com/pselle/bar v1.0.0 ) And now when you compile this module (go install), it will use your local code r