Adrian Stobbe

Go get private modules

0 minutes (98 words)

When using a private repository in a Go project, you need to provide authentication. This is straightforward and documented](

On Mac, other than using an netrc file you can use the OSX toolchain.

git config --global credential.helper osxkeychain

Moreover, and this was not clearly documented for me, you also need to tell go get that it is working with a private module, so that it doesn’t try to check against the public checksum database at

go env -w GOPRIVATE={private_repo}


Tags: #TIL