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

Issue 5600048: code review 5600048: go: improvements (Closed)

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

Description

go: improvements Add 'go clean'. Make 'go build' write to pkgname, not a.out. Make 'go test -c' write to pkgname.test, not test.out. Make 'go install' write alternate binaries to .../bin/goos_goarch/.

Patch Set 1 #

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

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -37 lines) Patch
M src/cmd/go/build.go View 1 2 11 chunks +23 lines, -18 lines 0 comments Download
A src/cmd/go/clean.go View 1 2 3 4 1 chunk +195 lines, -0 lines 0 comments Download
M src/cmd/go/doc.go View 1 2 3 9 chunks +70 lines, -10 lines 0 comments Download
M src/cmd/go/main.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/go/pkg.go View 1 2 4 chunks +8 lines, -0 lines 0 comments Download
M src/cmd/go/test.go View 1 2 9 chunks +18 lines, -8 lines 0 comments Download
M src/cmd/go/testflag.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
13 years, 5 months ago (2012-01-31 04:22:06 UTC) #1
rsc
Sorry, the removed Makefile belongs in 5601057. Will move.
13 years, 5 months ago (2012-01-31 04:25:15 UTC) #2
r
LGTM
13 years, 5 months ago (2012-01-31 04:28:24 UTC) #3
rsc
*** Submitted as b479bc080ad9 *** go: improvements Add 'go clean'. Make 'go build' write to ...
13 years, 5 months ago (2012-01-31 04:42:40 UTC) #4
rog
i was mildly surprised to see that "go clean x" doesn't remove the installed package ...
13 years, 5 months ago (2012-01-31 08:57:04 UTC) #5
bsiegert
On Tue, Jan 31, 2012 at 09:57, roger peppe <rogpeppe@gmail.com> wrote: > i was mildly ...
13 years, 5 months ago (2012-01-31 14:56:56 UTC) #6
rsc
On Tue, Jan 31, 2012 at 03:57, roger peppe <rogpeppe@gmail.com> wrote: > i was mildly ...
13 years, 5 months ago (2012-01-31 15:01:22 UTC) #7
rog
On 31 January 2012 15:01, Russ Cox <rsc@golang.org> wrote: > On Tue, Jan 31, 2012 ...
13 years, 5 months ago (2012-01-31 15:47:44 UTC) #8
rsc
13 years, 5 months ago (2012-01-31 15:49:27 UTC) #9
> yes that's true.
>
> now that go install builds stuff recursively by default,
> the installed status (or not) of a package feels much
> less important - the files in $GOPATH/pkg feel
> akin to the temporary files created by make in a package's
> directory - they're just a cache, and it's useful to
> be able to clean caches.
>
> that's probably the wrong way to look at it, but i
> think that's why i felt surprised.

go clean is intended as the opposite of go build,
and in that light i think it fits perfectly.
if you want to be the opposite of go install,
you can use go clean -i, or if you are feeling
particularly aggressive, go clean -i -r.
it's not really tenable to be exactly 1:1.
Sign in to reply to this message.

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