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

Issue 7225074: code review 7225074: cmd/go: many bug fixes (Closed)

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

Description

cmd/go: many bug fixes * Reject import paths of the form cmd/x/y. * Reject 'go install' of command outside GOPATH * Clearer error rejecting 'go install' of package outside GOPATH. * Name temporary binary for first file in 'go run' list or for test. * Provide a way to pass -ldflags arguments with spaces. * Pass all Go files (even +build ignored ones) to go fix, go fmt, go vet. * Reject 'go run foo_test.go'. * Silence 'exit 1' prints from 'go tool' invocations. * Make go test -xxxprofile leave binary behind for analysis. * Reject ~ in GOPATH except on Windows. * Get a little less confused by symlinks. * Document that go test x y z runs three test binaries. * Fix go test -timeout=0. * Add -tags flag to 'go list'. * Use pkg/gccgo_$GOOS_$GOARCH for gccgo output. Fixes issue 3389. Fixes issue 3500. Fixes issue 3503. Fixes issue 3760. Fixes issue 3941. Fixes issue 4007. Fixes issue 4032. Fixes issue 4074. Fixes issue 4127. Fixes issue 4140. Fixes issue 4311. Fixes issue 4568. Fixes issue 4576. Fixes issue 4702.

Patch Set 1 #

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -70 lines) Patch
M src/cmd/go/build.go View 1 2 6 chunks +68 lines, -7 lines 0 comments Download
M src/cmd/go/doc.go View 1 2 7 chunks +22 lines, -11 lines 0 comments Download
M src/cmd/go/fix.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/go/fmt.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/go/get.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/go/list.go View 1 4 chunks +14 lines, -9 lines 0 comments Download
M src/cmd/go/main.go View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/cmd/go/pkg.go View 1 7 chunks +36 lines, -12 lines 0 comments Download
M src/cmd/go/run.go View 1 2 chunks +14 lines, -0 lines 0 comments Download
M src/cmd/go/test.bash View 1 3 chunks +82 lines, -2 lines 0 comments Download
M src/cmd/go/test.go View 1 2 7 chunks +24 lines, -6 lines 0 comments Download
M src/cmd/go/testflag.go View 1 2 3 chunks +15 lines, -3 lines 0 comments Download
M src/cmd/go/tool.go View 1 1 chunk +8 lines, -1 line 0 comments Download
M src/cmd/go/vet.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/go/build/build.go View 1 2 6 chunks +55 lines, -15 lines 0 comments Download

Messages

Total messages: 8
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 5 months ago (2013-01-31 06:59:01 UTC) #1
adg
Don't forget to run mkdoc.sh to bring doc.go up to speed.
12 years, 5 months ago (2013-01-31 07:07:59 UTC) #2
adg
The code all LGTM, but I'm not thrilled that this is one big ball of ...
12 years, 5 months ago (2013-01-31 07:21:43 UTC) #3
rsc
On 2013/01/31 07:21:43, adg wrote: > The code all LGTM, but I'm not thrilled that ...
12 years, 5 months ago (2013-01-31 07:22:56 UTC) #4
adg
On 31 January 2013 18:22, <rsc@golang.org> wrote: > No thanks, I'm going to bed. If ...
12 years, 5 months ago (2013-01-31 07:26:54 UTC) #5
rsc
On Wed, Jan 30, 2013 at 11:26 PM, Andrew Gerrand <adg@golang.org> wrote: > On 31 ...
12 years, 5 months ago (2013-01-31 07:34:39 UTC) #6
adg
LGTM Okay.
12 years, 5 months ago (2013-01-31 08:03:05 UTC) #7
rsc
12 years, 5 months ago (2013-01-31 16:06:43 UTC) #8
*** Submitted as https://code.google.com/p/go/source/detail?r=58e1987657d6 ***

cmd/go: many bug fixes

* Reject import paths of the form cmd/x/y.
* Reject 'go install' of command outside GOPATH
* Clearer error rejecting 'go install' of package outside GOPATH.
* Name temporary binary for first file in 'go run' list or for test.
* Provide a way to pass -ldflags arguments with spaces.
* Pass all Go files (even +build ignored ones) to go fix, go fmt, go vet.
* Reject 'go run foo_test.go'.
* Silence 'exit 1' prints from 'go tool' invocations.
* Make go test -xxxprofile leave binary behind for analysis.
* Reject ~ in GOPATH except on Windows.
* Get a little less confused by symlinks.
* Document that go test x y z runs three test binaries.
* Fix go test -timeout=0.
* Add -tags flag to 'go list'.
* Use pkg/gccgo_$GOOS_$GOARCH for gccgo output.

Fixes issue 3389.
Fixes issue 3500.
Fixes issue 3503.
Fixes issue 3760.
Fixes issue 3941.
Fixes issue 4007.
Fixes issue 4032.
Fixes issue 4074.
Fixes issue 4127.
Fixes issue 4140.
Fixes issue 4311.
Fixes issue 4568.
Fixes issue 4576.
Fixes issue 4702.

R=adg
CC=golang-dev
https://codereview.appspot.com/7225074
Sign in to reply to this message.

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