Skip to content
a Go tool to install a package with a specific import path
Find file
Failed to load latest commit information.
Makefile add makefile Update
install_as full path to go for install line where we overwrite GOPATH


go install a package under a specific import path


$ make


When building code for production you often want to have finer grain control over dependencies.

This tool allows you to go install packages, regardless of their source (private, etc.), into whatever import path you specify.


We have a private-repository on github, say and we want the import path to be bitly/simplejson for our Go client applications...

$ git clone
$ cd go-simplejson
$ go tool install_as --import-as=bitly/simplejson
Something went wrong with that request. Please try again.