Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(893)

Issue 4626064: code review 4626064: goinstall: Add support for generic hosts using special ... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by quantumfyre
Modified:
12 years, 10 months ago
Reviewers:
gustavo, niemeyer
CC:
adg, rsc, golang-dev
Visibility:
Public.

Description

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).

Patch Set 1 #

Patch Set 2 : diff -r 1cad1e8470ba https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 1cad1e8470ba https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 4 : diff -r 49afab7d8d33 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 49afab7d8d33 https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 6 : diff -r 49afab7d8d33 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -8 lines) Patch
M src/cmd/goinstall/download.go View 1 2 3 4 5 9 chunks +47 lines, -8 lines 0 comments Download

Messages

Total messages: 33
quantumfyre
Hello adg@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 10 months ago (2011-06-21 20:38:52 UTC) #1
quantumfyre
On Tue, 21 Jun 2011 20:38:52 +0000, julian@quantumfyre.co.uk wrote: > Reviewers: adg, rsc, > > ...
12 years, 10 months ago (2011-06-27 14:11:22 UTC) #2
rsc
> Are there any comments on this? Is it work pursuing? It's worth pursuing. I ...
12 years, 10 months ago (2011-06-27 14:37:33 UTC) #3
adg
Thanks for this. http://codereview.appspot.com/4626064/diff/4001/src/cmd/goinstall/download.go File src/cmd/goinstall/download.go (right): http://codereview.appspot.com/4626064/diff/4001/src/cmd/goinstall/download.go#newcode154 src/cmd/goinstall/download.go:154: func tryCommand(v *vcs, prefix string) *vcsMatch ...
12 years, 10 months ago (2011-06-27 23:59:41 UTC) #4
rsc
> Should some of this be parallelized? Perhaps we should try different > protocols simultaneously, ...
12 years, 10 months ago (2011-06-28 00:00:53 UTC) #5
adg
On 28 June 2011 10:00, Russ Cox <rsc@golang.org> wrote: >> Should some of this be ...
12 years, 10 months ago (2011-06-28 00:47:44 UTC) #6
quantumfyre
http://codereview.appspot.com/4626064/diff/4001/src/cmd/goinstall/download.go File src/cmd/goinstall/download.go (right): http://codereview.appspot.com/4626064/diff/4001/src/cmd/goinstall/download.go#newcode168 src/cmd/goinstall/download.go:168: func findTools() { On 2011/06/27 23:59:41, adg wrote: > ...
12 years, 10 months ago (2011-06-28 11:47:29 UTC) #7
rsc
On 2011/06/28 11:47:29, quantumfyre wrote: > http://codereview.appspot.com/4626064/diff/4001/src/cmd/goinstall/download.go > File src/cmd/goinstall/download.go (right): > > http://codereview.appspot.com/4626064/diff/4001/src/cmd/goinstall/download.go#newcode168 > ...
12 years, 10 months ago (2011-06-28 12:07:11 UTC) #8
quantumfyre
On 2011/06/28 12:07:11, rsc wrote: > On 2011/06/28 11:47:29, quantumfyre wrote: > > http://codereview.appspot.com/4626064/diff/4001/src/cmd/goinstall/download.go > ...
12 years, 10 months ago (2011-06-28 12:54:54 UTC) #9
quantumfyre
On 2011/06/28 12:54:54, quantumfyre wrote: > On 2011/06/28 12:07:11, rsc wrote: > > On 2011/06/28 ...
12 years, 10 months ago (2011-06-28 12:59:08 UTC) #10
rsc
Even so, I don't see how the error handling is different. err := try(first url) ...
12 years, 10 months ago (2011-06-28 13:07:29 UTC) #11
quantumfyre
Hello adg@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 10 months ago (2011-06-29 21:50:25 UTC) #12
quantumfyre
Hello adg@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 10 months ago (2011-06-29 21:51:41 UTC) #13
adg
http://codereview.appspot.com/4626064/diff/15001/src/cmd/goinstall/download.go File src/cmd/goinstall/download.go (right): http://codereview.appspot.com/4626064/diff/15001/src/cmd/goinstall/download.go#newcode150 src/cmd/goinstall/download.go:150: func tryCommand(v *vcs, prefix string) *vcsMatch { s/tryCommand/findRepo/ http://codereview.appspot.com/4626064/diff/15001/src/cmd/goinstall/download.go#newcode158 ...
12 years, 10 months ago (2011-06-30 01:04:31 UTC) #14
quantumfyre
Hello adg@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 10 months ago (2011-06-30 07:39:51 UTC) #15
adg
LGTM
12 years, 10 months ago (2011-06-30 08:54:31 UTC) #16
adg
*** Submitted as http://code.google.com/p/go/source/detail?r=c78e6a668db0 *** goinstall: Add support for generic hosts using special import form ...
12 years, 10 months ago (2011-06-30 08:55:06 UTC) #17
gustavo_niemeyer.net
> If there is enough work for parallelization > then we are doing something wrong. ...
12 years, 10 months ago (2011-06-30 10:07:28 UTC) #18
adg
On 30 June 2011 20:07, Gustavo Niemeyer <gustavo@niemeyer.net> wrote: >> If there is enough work ...
12 years, 10 months ago (2011-06-30 10:23:22 UTC) #19
gustavo_niemeyer.net
> What if there were a host cache that recorded which protocol works > with ...
12 years, 10 months ago (2011-06-30 10:35:35 UTC) #20
quantumfyre
On Thu, 30 Jun 2011 11:35:13 +0100, Gustavo Niemeyer wrote: >> What if there were ...
12 years, 10 months ago (2011-06-30 10:49:59 UTC) #21
gustavo_niemeyer.net
> What's the scale of the problem? Are we talking 30 seconds vs 2 minutes? ...
12 years, 10 months ago (2011-06-30 10:56:38 UTC) #22
quantumfyre
On Thu, 30 Jun 2011 11:56:16 +0100, Gustavo Niemeyer wrote: >> What's the scale of ...
12 years, 10 months ago (2011-06-30 11:09:30 UTC) #23
rsc
On Thu, Jun 30, 2011 at 06:07, Gustavo Niemeyer <gustavo@niemeyer.net> wrote: >> If there is ...
12 years, 10 months ago (2011-06-30 11:50:13 UTC) #24
gustavo_niemeyer.net
Sorry, I'm probably the one missing something then. I'm in a sprint and following as ...
12 years, 10 months ago (2011-06-30 15:41:50 UTC) #25
niemeyer
> Please give an example where an import line triggers trying > *multiple* revision control ...
12 years, 10 months ago (2011-06-30 19:33:58 UTC) #26
rsc
> Ok, just had a chance to review the code now. Indeed my > comment ...
12 years, 10 months ago (2011-06-30 19:53:38 UTC) #27
gustavo_niemeyer.net
> I think you missed the part where foo.vcs/bar means > to checkout foo.vcs, *or ...
12 years, 10 months ago (2011-06-30 20:13:23 UTC) #28
rsc
> Got that. I was actually suggesting that we use a field like > > ...
12 years, 10 months ago (2011-06-30 20:19:02 UTC) #29
gustavo_niemeyer.net
> They should all be consistent, but I'd be happy to > make them all ...
12 years, 10 months ago (2011-06-30 20:24:33 UTC) #30
rsc
> Ok.. I can see that consistency is important for documenting the > behavior and ...
12 years, 10 months ago (2011-06-30 20:27:08 UTC) #31
quantumfyre
On Thu, 30 Jun 2011 21:24:11 +0100, Gustavo Niemeyer wrote: >> They should all be ...
12 years, 10 months ago (2011-06-30 21:00:37 UTC) #32
gustavo_niemeyer.net
12 years, 10 months ago (2011-07-03 21:37:24 UTC) #33
> When using the git:// protocol, a repository example.com/foo.git can be
> accessed as example.com/foo, so it's only git over http:// that would have
> to make an extra hit ...

Ok, it'd definitely be good to invert the order then, and it looks
like Andrew has already done so in a following revision.  Thanks all.

-- 
Gustavo Niemeyer
http://niemeyer.net
http://niemeyer.net/blog
http://niemeyer.net/twitter
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b