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

Issue 5604048: code review 5604048: cmd/go: improvements (Closed)

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

Description

cmd/go: improvements Print all the syntax errors. Fixes issue 2811. Change Windows binary removal strategy. This should keep the temporary files closer to the binaries they are for, which will make it more likely that the rename is not cross-device and also make it easier to clean them up. Fixes issue 2604 (as much as we can). The standard build does not use the go command to install the go command anymore, so issue 2604 is less of a concern than it originally was. (It uses the go_bootstrap command to install the go command.) Buffer 'go list' output.

Patch Set 1 #

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

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

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

Total comments: 2

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+465 lines, -463 lines) Patch
M src/buildscript/darwin_386.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/buildscript/darwin_amd64.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/buildscript/freebsd_386.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/buildscript/freebsd_amd64.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/buildscript/linux_386.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/buildscript/linux_amd64.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/buildscript/linux_arm.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/buildscript/netbsd_386.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/buildscript/netbsd_amd64.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/buildscript/openbsd_386.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/buildscript/openbsd_amd64.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/buildscript/plan9_386.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/buildscript/windows_386.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/buildscript/windows_amd64.sh View 1 2 3 4 5 3 chunks +30 lines, -30 lines 0 comments Download
M src/cmd/go/build.go View 1 2 3 4 2 chunks +19 lines, -39 lines 0 comments Download
M src/cmd/go/list.go View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M src/cmd/go/pkg.go View 1 2 chunks +16 lines, -0 lines 0 comments Download
M src/cmd/go/tool.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 3 months ago (2012-01-31 23:17:30 UTC) #1
bradfitz
http://codereview.appspot.com/5604048/diff/1003/src/cmd/go/build.go File src/cmd/go/build.go (right): http://codereview.appspot.com/5604048/diff/1003/src/cmd/go/build.go#newcode720 src/cmd/go/build.go:720: if _, err := os.Stat(dst + "~"); err != ...
12 years, 3 months ago (2012-01-31 23:21:19 UTC) #2
rsc
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 3 months ago (2012-01-31 23:39:27 UTC) #3
r
LGTM after bradfitz's comments
12 years, 3 months ago (2012-01-31 23:39:55 UTC) #4
rsc
12 years, 3 months ago (2012-01-31 23:44:23 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=64f5d54408cc ***

cmd/go: improvements

Print all the syntax errors.  Fixes issue 2811.

Change Windows binary removal strategy.
This should keep the temporary files closer to
the binaries they are for, which will make it
more likely that the rename is not cross-device
and also make it easier to clean them up.
Fixes issue 2604 (as much as we can).

The standard build does not use the go command
to install the go command anymore, so issue 2604
is less of a concern than it originally was.
(It uses the go_bootstrap command to install
the go command.)

Buffer 'go list' output.

R=golang-dev, bradfitz, r
CC=golang-dev
http://codereview.appspot.com/5604048
Sign in to reply to this message.

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