]> Cypherpunks repositories - gostls13.git/commit
goinstall: Add support for generic hosts using special import form
authorJulian Phillips <julian@quantumfyre.co.uk>
Thu, 30 Jun 2011 08:54:53 +0000 (18:54 +1000)
committerAndrew Gerrand <adg@golang.org>
Thu, 30 Jun 2011 08:54:53 +0000 (18:54 +1000)
commit8ffbc4016a061015afe74fb5386c1938338dac03
tree97524fe99a436e4d3933a213d85c7382e4e3d516
parent369418d29c00e96af3033afba6c3a49eb5d06175
goinstall: Add support for generic hosts using special import form

This change extends goinstall to support "magic" package names of the
form:
        <host>/<repo>.<vcs>/<path>

Where <host> is the hostname, <repo> the path to the repository, <vcs>
the type of vcs (git, hg, bzr or svn), and <path> is the path inside the
repository that contains the source code for the package.

For example: "example.com/pub/foo.hg/src" means download the Mercurial
repository at either pub/foo.hg or pub/foo from example.com and then
build and install the source files from src inside the repository
checkout.

Repositories on the built-in hostings sites (github, bitbucket,
launchpad and googlecode) must still use the old form (i.e.
github.com/xxx/yyy.git/src will be rejected).

R=adg, rsc
CC=golang-dev
https://golang.org/cl/4626064
src/cmd/goinstall/download.go