]> Cypherpunks repositories - gostls13.git/commit
goinstall: Add support for arbitary code repositories
authorJulian Phillips <julian@quantumfyre.co.uk>
Mon, 20 Jun 2011 03:00:43 +0000 (13:00 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 20 Jun 2011 03:00:43 +0000 (13:00 +1000)
commitc319fb07bcae09589f83f060a4fdfef93a521348
tree8a233cfa09157497ade88a6079439289f526467b
parent5e77b9d33470cd1faf4450880b4ebc543122f74f
goinstall: Add support for arbitary code repositories

Extend goinstall to support downloading from any hg/git/svn/bzr hosting
site, not just the standard ones.  The type of hosting is automatically
checked by trying all the tools, so the import statement looks like:

  import "example.com/mything"

Which will work for Mercurial (http), Subversion (http, svn), Git (http,
git) and Bazaar (http, bzr) hosting.

All the existing package imports will work through this new mechanism,
but the existing hard-coded host support is left in place to ensure
there is no change in behaviour.

R=golang-dev, bradfitz, fvbommel, go.peter.90, n13m3y3r, adg, duperray.olivier
CC=golang-dev
https://golang.org/cl/4650043
src/cmd/goinstall/download.go