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

Issue 4807048: code review 4807048: goinstall: error out with paths that end with '/' (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by tarm
Modified:
13 years, 8 months ago
Reviewers:
rsc
CC:
adg, tarmigan+golang_gmail.com, golang-dev
Visibility:
Public.

Description

goinstall: error out with paths that end with '/'

Patch Set 1 #

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

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

Patch Set 4 : diff -r 8ecb24f03c01 https://go.googlecode.com/hg/ #

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

Patch Set 6 : diff -r 5e1502ab5e21 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 5e1502ab5e21 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 5e1502ab5e21 https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r c85e630263ae https://go.googlecode.com/hg/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M src/cmd/goinstall/main.go View 1 2 3 4 5 1 chunk +6 lines, -0 lines 1 comment Download

Messages

Total messages: 19
tarm
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/
13 years, 9 months ago (2011-07-22 17:37:05 UTC) #1
rsc
> goinstall github.com/example/MyHotCmd/ > should work i disagree. why not spell this goinstall github.com/examples/MyHotCmd ? ...
13 years, 9 months ago (2011-07-22 23:26:54 UTC) #2
adg
On 23 July 2011 09:26, Russ Cox <rsc@golang.org> wrote: >> goinstall github.com/example/MyHotCmd/ >> should work ...
13 years, 9 months ago (2011-07-24 04:24:09 UTC) #3
tarm
Hello adg@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2011-08-16 19:09:09 UTC) #4
tarmigan+golang_gmail.com
On Sat, Jul 23, 2011 at 9:23 PM, Andrew Gerrand <adg@golang.org> wrote: > On 23 ...
13 years, 8 months ago (2011-08-16 19:09:16 UTC) #5
adg
I think it's better to do this check here: http://code.google.com/p/go/source/browse/src/cmd/goinstall/main.go#184 And you can just use ...
13 years, 8 months ago (2011-08-16 20:07:27 UTC) #6
tarm
On Tue, Aug 16, 2011 at 1:07 PM, Andrew Gerrand <adg@golang.org> wrote: > I think ...
13 years, 8 months ago (2011-08-16 20:47:58 UTC) #7
adg
Why only for commands? It's not valid to import a package with a trailing slash, ...
13 years, 8 months ago (2011-08-16 21:08:26 UTC) #8
tarm
Hello adg@golang.org, rsc@golang.org, tarmigan+golang@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2011-08-19 00:34:44 UTC) #9
adg
Is anyone else getting "Upload in progress." when they try to visit this URL? http://codereview.appspot.com/4807048/diff/22001/src/cmd/goinstall/main.go
13 years, 8 months ago (2011-08-20 23:44:42 UTC) #10
adg
Tarmigan, can you please run "hg upload" again? On 21 August 2011 09:44, Andrew Gerrand ...
13 years, 8 months ago (2011-08-21 00:01:09 UTC) #11
tarm
On Sat, Aug 20, 2011 at 5:00 PM, Andrew Gerrand <adg@golang.org> wrote: > Tarmigan, can ...
13 years, 8 months ago (2011-08-21 07:57:31 UTC) #12
adg
LGTM On 19 August 2011 10:34, <tarmigan@gmail.com> wrote: > Hello adg@golang.org, rsc@golang.org, tarmigan+golang@gmail.com (cc: > ...
13 years, 8 months ago (2011-08-21 10:26:54 UTC) #13
adg
*** Submitted as http://code.google.com/p/go/source/detail?r=ae3b2b092cf7 *** goinstall: error out with paths that end with '/' R=adg, ...
13 years, 8 months ago (2011-08-21 10:29:11 UTC) #14
rsc
http://codereview.appspot.com/4807048/diff/27001/src/cmd/goinstall/main.go File src/cmd/goinstall/main.go (right): http://codereview.appspot.com/4807048/diff/27001/src/cmd/goinstall/main.go#newcode186 src/cmd/goinstall/main.go:186: if _, f := filepath.Split(pkg); f == "" { ...
13 years, 8 months ago (2011-08-22 21:29:20 UTC) #15
tarmigan+golang_gmail.com
On Mon, Aug 22, 2011 at 2:29 PM, <rsc@golang.org> wrote: > > http://codereview.appspot.com/4807048/diff/27001/src/cmd/goinstall/main.go > File ...
13 years, 8 months ago (2011-08-22 21:43:55 UTC) #16
rsc
> Really? Windows users may goinstall from $GOPATH. Everywhere else in > main.go is using ...
13 years, 8 months ago (2011-08-22 21:52:15 UTC) #17
tarmigan+golang_gmail.com
On Mon, Aug 22, 2011 at 2:52 PM, Russ Cox <rsc@golang.org> wrote: >> Really? Windows ...
13 years, 8 months ago (2011-08-23 03:24:12 UTC) #18
rsc
13 years, 8 months ago (2011-08-23 03:25:36 UTC) #19
Code manipulating file names should use filepath.
Code manipulating import paths should use path.
The arguments to goinstall should be import paths.

Russ
Sign in to reply to this message.

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