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

Issue 42910043: code review 42910043: cmd/go: avoid use of 'go tool pack' (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by rsc
Modified:
11 years, 7 months ago
Reviewers:
r, dave, 0intro
CC:
iant, r, golang-dev
Visibility:
Public.

Description

cmd/go: avoid use of 'go tool pack' All packages now use the -pack option to the compiler. For a pure Go package, that's enough. For a package with additional C and assembly files, the extra archive entries can be added directly (by concatenation) instead of by invoking go tool pack. These changes make it possible to rewrite cmd/pack in Go.

Patch Set 1 #

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

Total comments: 10

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -14 lines) Patch
M src/cmd/go/build.go View 1 2 13 chunks +128 lines, -14 lines 0 comments Download

Messages

Total messages: 17
rsc
Hello iant, r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 7 months ago (2013-12-16 18:08:22 UTC) #1
r
LGTM https://codereview.appspot.com/42910043/diff/20001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/42910043/diff/20001/src/cmd/go/build.go#newcode1608 src/cmd/go/build.go:1608: if internalPack && cmd == "rqP" { the ...
11 years, 7 months ago (2013-12-16 19:14:12 UTC) #2
iant
https://codereview.appspot.com/42910043/diff/20001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/42910043/diff/20001/src/cmd/go/build.go#newcode1593 src/cmd/go/build.go:1593: const internalPack = true Do you want this to ...
11 years, 7 months ago (2013-12-17 01:09:36 UTC) #3
rsc
https://codereview.appspot.com/42910043/diff/20001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/42910043/diff/20001/src/cmd/go/build.go#newcode1593 src/cmd/go/build.go:1593: const internalPack = true On 2013/12/17 01:09:36, iant wrote: ...
11 years, 7 months ago (2013-12-18 02:40:02 UTC) #4
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=4bdb5c0bd2be *** cmd/go: avoid use of 'go tool pack' All packages now ...
11 years, 7 months ago (2013-12-18 02:44:40 UTC) #5
0intro
It seems this change broke the build on the Plan 9 builder, but running ./all.rc ...
11 years, 7 months ago (2013-12-18 09:53:29 UTC) #6
dave_cheney.net
Interesting. That would probably be the first package that contains ASM but not c code. ...
11 years, 7 months ago (2013-12-18 10:19:39 UTC) #7
0intro
I've tracked down the issue. The builder ends with files named "/tmp/gobuilder/plan9-386-cnielsen-b77dd2c5702d/go/pkg/plan9_386/math.a" instead of "math.a" ...
11 years, 7 months ago (2013-12-18 20:20:26 UTC) #8
rsc
On Wed, Dec 18, 2013 at 3:20 PM, <0intro@gmail.com> wrote: > I've tracked down the ...
11 years, 7 months ago (2013-12-18 20:36:21 UTC) #9
0intro
> But are you saying that in /tmp/go-buildxxx there is a single file with slashes ...
11 years, 7 months ago (2013-12-18 20:41:37 UTC) #10
rsc
Sorry, I phrased the question badly. I was really just asking if the file name ...
11 years, 7 months ago (2013-12-18 20:51:43 UTC) #11
rsc
Oh, and I apologize for the trouble you are going to have removing those files. ...
11 years, 7 months ago (2013-12-18 20:52:04 UTC) #12
0intro
I don't think the problem is related to os.Rename. It seems to correctly return an ...
11 years, 7 months ago (2013-12-18 22:01:34 UTC) #13
0intro
I'm now able to reproduce the problem. The function os.Rename doesn't return a proper error ...
11 years, 7 months ago (2013-12-18 22:48:26 UTC) #14
0intro
I propose CL 43480050 to work around this issue. Fossil should probably be fixed too. ...
11 years, 7 months ago (2013-12-18 23:57:12 UTC) #15
rsc
Thanks. You should also fix os.rename. If newname has slashes, the directory part must be ...
11 years, 7 months ago (2013-12-18 23:59:08 UTC) #16
0intro
11 years, 7 months ago (2013-12-19 06:45:47 UTC) #17
Message was sent while issue was closed.
I've just created CL 44080046.
Sign in to reply to this message.

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