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

Issue 5483069: code review 5483069: go: implement build, install (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:
rog, adg1, adg, golang-dev
Visibility:
Public.

Description

go: implement build, install, run clean is gone; all the intermediate files are created in a temporary tree that is wiped when the command ends. Not using go/build's Script because it is not well aligned with this API. The various builder methods are copied from go/build and adapted. Probably once we delete goinstall we can delete the Script API too.

Patch Set 1 #

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

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

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

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

Total comments: 23

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

Total comments: 2

Patch Set 7 : diff -r 98bda65929b6 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r f656b151c693 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+778 lines, -82 lines) Patch
M src/cmd/cgo/gcc.go View 1 2 3 4 5 4 chunks +11 lines, -9 lines 0 comments Download
M src/cmd/cgo/main.go View 1 2 3 4 5 6 7 2 chunks +9 lines, -3 lines 0 comments Download
M src/cmd/cgo/out.go View 1 2 3 4 5 6 7 7 chunks +21 lines, -15 lines 0 comments Download
M src/cmd/go/Makefile View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M src/cmd/go/build.go View 1 2 3 4 5 6 3 chunks +577 lines, -12 lines 0 comments Download
R src/cmd/go/clean.go View 1 2 3 4 5 1 chunk +0 lines, -31 lines 0 comments Download
M src/cmd/go/list.go View 1 1 chunk +9 lines, -2 lines 0 comments Download
M src/cmd/go/main.go View 1 2 3 4 5 6 chunks +72 lines, -6 lines 0 comments Download
M src/cmd/go/pkg.go View 1 2 3 4 5 6 6 chunks +31 lines, -3 lines 0 comments Download
A src/cmd/go/run.go View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 13
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 5 months ago (2011-12-14 05:25:17 UTC) #1
rog
looks good. any plans for some tests? http://codereview.appspot.com/5483069/diff/5002/src/cmd/go/build.go File src/cmd/go/build.go (right): http://codereview.appspot.com/5483069/diff/5002/src/cmd/go/build.go#newcode231 src/cmd/go/build.go:231: obj := ...
12 years, 5 months ago (2011-12-14 10:41:28 UTC) #2
rsc
R=adg?
12 years, 5 months ago (2011-12-14 16:08:12 UTC) #3
adg1
On it. On Thursday, December 15, 2011, Russ Cox <rsc@golang.org> wrote: > R=adg? >
12 years, 5 months ago (2011-12-14 20:59:15 UTC) #4
adg
http://codereview.appspot.com/5483069/diff/5002/src/cmd/cgo/main.go File src/cmd/cgo/main.go (right): http://codereview.appspot.com/5483069/diff/5002/src/cmd/cgo/main.go#newcode138 src/cmd/cgo/main.go:138: flag.StringVar(&objDir, "objdir", "", "object directory") It would be nice ...
12 years, 5 months ago (2011-12-14 22:00:39 UTC) #5
adg
http://codereview.appspot.com/5483069/diff/5002/src/cmd/go/build.go File src/cmd/go/build.go (right): http://codereview.appspot.com/5483069/diff/5002/src/cmd/go/build.go#newcode291 src/cmd/go/build.go:291: if err := b.gopack(obj, a.targ, objects); err != nil ...
12 years, 5 months ago (2011-12-14 22:18:31 UTC) #6
rsc
PTAL http://codereview.appspot.com/5483069/diff/5002/src/cmd/cgo/main.go File src/cmd/cgo/main.go (right): http://codereview.appspot.com/5483069/diff/5002/src/cmd/cgo/main.go#newcode138 src/cmd/cgo/main.go:138: flag.StringVar(&objDir, "objdir", "", "object directory") On 2011/12/14 22:00:39, ...
12 years, 5 months ago (2011-12-14 22:47:07 UTC) #7
adg
http://codereview.appspot.com/5483069/diff/2007/src/cmd/go/build.go File src/cmd/go/build.go (right): http://codereview.appspot.com/5483069/diff/2007/src/cmd/go/build.go#newcode56 src/cmd/go/build.go:56: if len(args) > 0 && strings.HasSuffix(args[0], ".go") { some ...
12 years, 5 months ago (2011-12-14 23:04:33 UTC) #8
rsc
On Wed, Dec 14, 2011 at 18:04, <adg@golang.org> wrote: > some external package paths end ...
12 years, 5 months ago (2011-12-15 02:55:51 UTC) #9
rsc
PTAL
12 years, 5 months ago (2011-12-15 03:10:05 UTC) #10
adg
LGTM
12 years, 5 months ago (2011-12-15 03:16:20 UTC) #11
adg
On 2011/12/15 02:55:51, rsc wrote: > On Wed, Dec 14, 2011 at 18:04, <mailto:adg@golang.org> wrote: ...
12 years, 5 months ago (2011-12-15 03:16:35 UTC) #12
rsc
12 years, 5 months ago (2011-12-15 03:42:52 UTC) #13
*** Submitted as http://code.google.com/p/go/source/detail?r=533d76fb35b1 ***

go: implement build, install, run

clean is gone; all the intermediate files are created
in a temporary tree that is wiped when the command ends.

Not using go/build's Script because it is not well aligned
with this API.  The various builder methods are copied from
go/build and adapted.  Probably once we delete goinstall
we can delete the Script API too.

R=rogpeppe, adg, adg
CC=golang-dev
http://codereview.appspot.com/5483069
Sign in to reply to this message.

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