]> Cypherpunks repositories - gostls13.git/commit
goinstall: support GOPATH; building and installing outside the Go tree
authorAndrew Gerrand <adg@golang.org>
Wed, 27 Apr 2011 01:00:34 +0000 (11:00 +1000)
committerAndrew Gerrand <adg@golang.org>
Wed, 27 Apr 2011 01:00:34 +0000 (11:00 +1000)
commitca8a055f5cc7c1dfa0eb542c60071c7a24350f76
treec73299eb40d0af84e0f7887565e6900e2248e7b5
parent50e65ab30d013955ba46dc6b6c32a6181f3c53b0
goinstall: support GOPATH; building and installing outside the Go tree

For example, with GOPATH set like so
        GOPATH=/home/adg/gocode
And after creating some subdirectories
        mkdir /home/adg/gocode/{bin,pkg,src}

I can use goinstall to install the github.com/nf/goto web server,
which depends on the github.com/nf/stat package, with
        goinstall github.com/nf/goto

This downloads and installs all dependencies (that aren't already
installed) like so
        /home/adg/gocode/bin/goto
        /home/adg/gocode/pkg/darwin_amd64/github.com/nf/stat.a
        /home/adg/gocode/src/github.com/nf/goto/...
        /home/adg/gocode/src/github.com/nf/stat/...

R=rsc, niemeyer
CC=golang-dev
https://golang.org/cl/4438043
src/Make.cmd
src/Make.pkg
src/cmd/goinstall/Makefile
src/cmd/goinstall/download.go
src/cmd/goinstall/main.go
src/cmd/goinstall/make.go
src/cmd/goinstall/parse.go
src/cmd/goinstall/path.go [new file with mode: 0644]