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

Issue 7094049: code review 7094049: cmd/go: add helpful error message when vcs is not found.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by stratus
Modified:
12 years, 1 month ago
Reviewers:
bradfitz
CC:
bradfitz, minux1, rsc, golang-dev
Visibility:
Public.

Description

cmd/go: add helpful error message when vcs is not found. Fixes issue 4652.

Patch Set 1 #

Patch Set 2 : diff -r 5ed75df2468c https://code.google.com/p/go #

Patch Set 3 : diff -r 5ed75df2468c https://code.google.com/p/go #

Patch Set 4 : diff -r 5ed75df2468c https://code.google.com/p/go #

Total comments: 2

Patch Set 5 : diff -r 5ed75df2468c https://code.google.com/p/go #

Total comments: 1

Patch Set 6 : diff -r 20f79f2809b7 https://code.google.com/p/go #

Patch Set 7 : diff -r 20f79f2809b7 https://code.google.com/p/go #

Total comments: 1

Patch Set 8 : diff -r 20f79f2809b7 https://code.google.com/p/go #

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

Messages

Total messages: 17
stratus
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
12 years, 2 months ago (2013-01-12 06:18:38 UTC) #1
minux1
https://codereview.appspot.com/7094049/diff/4002/src/cmd/go/vcs.go File src/cmd/go/vcs.go (right): https://codereview.appspot.com/7094049/diff/4002/src/cmd/go/vcs.go#newcode183 src/cmd/go/vcs.go:183: _, err := os.Stat(v.cmd) you need to use os/exec.LookPath ...
12 years, 2 months ago (2013-01-12 07:55:42 UTC) #2
bradfitz
I don't think this is sufficient. The user who was confused didn't know that hg ...
12 years, 2 months ago (2013-01-12 07:55:52 UTC) #3
stratus
Thanks for your prompt review. I've updated the patchset using exec.LookPath() and the suggested message. ...
12 years, 2 months ago (2013-01-12 19:42:19 UTC) #4
rsc
https://codereview.appspot.com/7094049/diff/4/src/cmd/go/vcs.go File src/cmd/go/vcs.go (right): https://codereview.appspot.com/7094049/diff/4/src/cmd/go/vcs.go#newcode185 src/cmd/go/vcs.go:185: fmt.Fprintf(os.Stderr, fmt.Fprintf(os.Stderr, "go: missing %s command. See http://golang.org/s/gogetcmd\n", v.name)
12 years, 1 month ago (2013-01-18 20:23:59 UTC) #5
bradfitz
On Fri, Jan 18, 2013 at 12:23 PM, <rsc@golang.org> wrote: > > https://codereview.appspot.**com/7094049/diff/4/src/cmd/go/**vcs.go<https://codereview.appspot.com/7094049/diff/4/src/cmd/go/vcs.go> > File ...
12 years, 1 month ago (2013-01-19 16:51:43 UTC) #6
minux1
this issue has been sat idle for 8 days, perhaps we can just submit after ...
12 years, 1 month ago (2013-01-27 11:21:09 UTC) #7
bradfitz
No CLA has been submitted. On Sun, Jan 27, 2013 at 3:21 AM, <minux.ma@gmail.com> wrote: ...
12 years, 1 month ago (2013-01-27 17:28:23 UTC) #8
rsc
stratus, please complete a CLA as described at http://golang.org/doc/contribute.html#copyright Thanks.
12 years, 1 month ago (2013-01-28 17:56:46 UTC) #9
rsc
Never mind, I see that you've done that now.
12 years, 1 month ago (2013-01-28 18:03:10 UTC) #10
stratus
Hi Russ, I don't remember completing a CLA. Do I need to do that even ...
12 years, 1 month ago (2013-01-29 04:44:58 UTC) #11
bradfitz
No, you don't. I've already added you to the CONTRIBUTORS file in https://code.google.com/p/go/source/detail?r=646ee022106 On Mon, ...
12 years, 1 month ago (2013-01-29 04:49:13 UTC) #12
stratus
Thanks Brad. I've changed it to fit Russ' comments. PTAL. On Mon, Jan 28, 2013 ...
12 years, 1 month ago (2013-01-29 05:34:07 UTC) #13
bradfitz
https://codereview.appspot.com/7094049/diff/16002/src/cmd/go/vcs.go File src/cmd/go/vcs.go (right): https://codereview.appspot.com/7094049/diff/16002/src/cmd/go/vcs.go#newcode188 src/cmd/go/vcs.go:188: } do we want a "return nil, err" here? ...
12 years, 1 month ago (2013-01-29 05:47:02 UTC) #14
stratus
Good point, Brad. I've add a "return nil ,err". On Mon, Jan 28, 2013 at ...
12 years, 1 month ago (2013-01-29 06:03:03 UTC) #15
bradfitz
LGTM On Mon, Jan 28, 2013 at 10:02 PM, Gustavo Franco <gustavorfranco@gmail.com>wrote: > Good point, ...
12 years, 1 month ago (2013-01-29 16:19:46 UTC) #16
bradfitz
12 years, 1 month ago (2013-01-29 16:20:47 UTC) #17
*** Submitted as https://code.google.com/p/go/source/detail?r=8790eb7f7e52 ***

cmd/go: add helpful error message when vcs is not found.
Fixes issue 4652.

R=bradfitz, minux.ma, rsc
CC=golang-dev
https://codereview.appspot.com/7094049

Committer: Brad Fitzpatrick <bradfitz@golang.org>
Sign in to reply to this message.

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