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

Issue 5708054: code review 5708054: cmd/go: fixes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by rsc
Modified:
13 years, 1 month ago
Reviewers:
mattn
CC:
golang-dev, dsymonds, r, rog
Visibility:
Public.

Description

cmd/go: fixes * Install tools into tool dir always (Fixes issue 3049. Fixes issue 2868. Fixes issue 2925.) * Make packages depend on compiler, linker (Fixes issue 3036.) * Do not recompile packages across roots (Fixes issue 3149.) * Allow use of binary-only packages (Fixes issue 2775.) * Avoid duplicate cgo dependencies (Fixes issue 3001.) * Show less in go get -x. (Fixes issue 2926.) * Do not force repo root for existing checkout (Fixes issue 2969.) * Show full syntax error list always (Fixes issue 2811.) * Clean arguments before processing (Fixes issue 3034.) * Add flags for compiler, linker arguments (Fixes issue 2996.) * Pass flags in make.bash (Fixes issue 3091.) * Unify build flags, defined in one place. * Clean up error messages (Fixes issue 3075. Fixes issue 2923.) * Support local import paths (Fixes issue 3118.) * Allow top-level package outside $GOPATH (Fixes issue 3009.) In addition to these fixes, all commands now take a list of go files as a way to specify a single package, just as go build and go run always have. This means you can: go list -json x.go go fix x.go go vet x.go go test x_test.go Preliminary tests in test.bash. Mainly testing things that the ordinary build does not. I don't mind if the script doesn't run on Windows. I expect that gccgo support is now broken, and I hope that people will feel free to file issues and/or send CLs to fix it. :-)

Patch Set 1 #

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

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

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

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

Total comments: 9

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+1037 lines, -588 lines) Patch
M src/cmd/go/build.go View 1 2 3 4 5 40 chunks +264 lines, -168 lines 0 comments Download
M src/cmd/go/clean.go View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M src/cmd/go/doc.go View 1 2 3 4 5 24 chunks +96 lines, -77 lines 0 comments Download
M src/cmd/go/fix.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/go/fmt.go View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M src/cmd/go/get.go View 1 2 5 chunks +34 lines, -14 lines 0 comments Download
M src/cmd/go/help.go View 1 2 3 4 5 3 chunks +13 lines, -6 lines 0 comments Download
M src/cmd/go/list.go View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/go/main.go View 1 2 8 chunks +25 lines, -24 lines 0 comments Download
M src/cmd/go/pkg.go View 1 2 3 4 5 12 chunks +366 lines, -225 lines 0 comments Download
M src/cmd/go/run.go View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
A src/cmd/go/test.bash View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
M src/cmd/go/test.go View 1 2 19 chunks +58 lines, -56 lines 0 comments Download
A src/cmd/go/testdata/errmsg/x.go View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A src/cmd/go/testdata/errmsg/x1_test.go View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A src/cmd/go/testdata/errmsg/x_test.go View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A src/cmd/go/testdata/local/easy.go View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A src/cmd/go/testdata/local/easysub/easysub.go View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A src/cmd/go/testdata/local/hard.go View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A src/cmd/go/testdata/local/sub/sub.go View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
A src/cmd/go/testdata/local/sub/sub/subsub.go View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M src/cmd/go/vcs.go View 1 2 3 4 5 2 chunks +33 lines, -0 lines 0 comments Download
M src/cmd/go/vet.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/make.bash View 1 2 2 chunks +25 lines, -2 lines 0 comments Download

Messages

Total messages: 12
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 1 month ago (2012-03-01 04:26:17 UTC) #1
dsymonds
Holy moley that's a lot of bug fixes.
13 years, 1 month ago (2012-03-01 04:28:37 UTC) #2
mikio
dependency issue? // run clean.bash, all.bash (snip) cmd/go /home/mikioh/go/src/cmd/go/build.go:97: undefined: build.Default /home/mikioh/go/src/cmd/go/pkg.go:63: undefined: build.Package /home/mikioh/go/src/cmd/go/pkg.go:74: ...
13 years, 1 month ago (2012-03-01 04:33:33 UTC) #3
rsc
Yes, you'll need 5713043 too.
13 years, 1 month ago (2012-03-01 04:35:16 UTC) #4
r
LGTM it does look good run go vet before submitting - lots of probably untested ...
13 years, 1 month ago (2012-03-01 04:55:37 UTC) #5
rog
happy to see these changes (particularly the one that will allow me to execute "go ...
13 years, 1 month ago (2012-03-01 09:54:58 UTC) #6
rsc
On Thu, Mar 1, 2012 at 04:54, <rogpeppe@gmail.com> wrote: > http://codereview.appspot.com/5708054/diff/6001/src/cmd/go/doc.go#newcode488 > src/cmd/go/doc.go:488: patterns. For ...
13 years, 1 month ago (2012-03-01 17:00:01 UTC) #7
rsc
On Wed, Feb 29, 2012 at 23:55, <r@golang.org> wrote: > LGTM > it does look ...
13 years, 1 month ago (2012-03-01 17:09:09 UTC) #8
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=a461bcce05f6 *** cmd/go: fixes * Install tools into tool dir always (Fixes ...
13 years, 1 month ago (2012-03-01 17:12:25 UTC) #9
mattn
This break on windows. ------------- WORK=C:\DOCUME~1\mattn\LOCALS~1\Temp\go-build794590762 mkdir -p $WORK\local\C:\temp\github\go-mattn\src\github.com\mattn\go-sqlite3\_obj\ mkdir C:\DOCUME~1\mattn\LOCALS~1\Temp\go-build794590762\local\C:: The filename, directory name, ...
13 years, 1 month ago (2012-03-02 10:50:08 UTC) #10
rsc
On Fri, Mar 2, 2012 at 05:50, <mattn.jp@gmail.com> wrote: > This break on windows. > ...
13 years, 1 month ago (2012-03-02 16:38:18 UTC) #11
mattn
13 years, 1 month ago (2012-03-04 13:52:24 UTC) #12
Don't mind. And thank you for working about this. :)

On Saturday, March 3, 2012 1:38:18 AM UTC+9, rsc wrote:
On Fri, Mar 2, 2012 at 05:50, <mattn.jp@gmail.com> wrote:
> This break on windows.
>
> -------------
> WORK=C:\DOCUME~1\mattn\LOCALS~1\Temp\go-build794590762
> mkdir -p
> $WORK\local\C:\temp\github\go-mattn\src\github.com\mattn\go-sqlite3\_obj\
> mkdir C:\DOCUME~1\mattn\LOCALS~1\Temp\go-build794590762\local\C:: The
> filename, directory name, or volume label syntax is incorrect.
> -------------

Sorry about that. That's issue 3169 and is today's project.
Sign in to reply to this message.

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