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

Issue 4515180: code review 4515180: goinstall: use go/make package to scan and build packages (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by adg
Modified:
12 years, 10 months ago
Reviewers:
CC:
rsc, niemeyer, kevlar, golang-dev
Visibility:
Public.

Description

goinstall: use go/make package to scan and build packages

Patch Set 1 #

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

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

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

Total comments: 1

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

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

Total comments: 3

Patch Set 7 : diff -r 1ed4cce53a65 https://go.googlecode.com/hg/ #

Total comments: 7

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

Total comments: 5

Patch Set 9 : diff -r 1122ce9d53f0 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r 1122ce9d53f0 https://go.googlecode.com/hg/ #

Total comments: 16

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -644 lines) Patch
M src/cmd/goinstall/Makefile View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -18 lines 0 comments Download
M src/cmd/goinstall/doc.go View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/goinstall/main.go View 1 2 3 4 5 6 7 8 9 10 4 chunks +43 lines, -25 lines 0 comments Download
R src/cmd/goinstall/make.go View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -168 lines 0 comments Download
R src/cmd/goinstall/parse.go View 1 1 chunk +0 lines, -172 lines 0 comments Download
R src/cmd/goinstall/path.go View 1 1 chunk +0 lines, -149 lines 0 comments Download
R src/cmd/goinstall/syslist_test.go View 1 1 chunk +0 lines, -61 lines 0 comments Download
M src/pkg/Makefile View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/go/build/build.go View 1 2 3 4 5 6 7 8 9 10 7 chunks +147 lines, -25 lines 0 comments Download
M src/pkg/go/build/build_test.go View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -20 lines 0 comments Download
M src/pkg/go/build/dir.go View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -6 lines 0 comments Download

Messages

Total messages: 19
adg
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 11 months ago (2011-06-02 10:52:07 UTC) #1
adg
Not ready for an in-depth review; more of a companion piece to the main action ...
12 years, 11 months ago (2011-06-02 10:53:51 UTC) #2
rsc
http://codereview.appspot.com/4515180/diff/7001/src/cmd/goinstall/main.go File src/cmd/goinstall/main.go (right): http://codereview.appspot.com/4515180/diff/7001/src/cmd/goinstall/main.go#newcode12 src/cmd/goinstall/main.go:12: gomake "go/make" Ugh. I missed that the package was ...
12 years, 11 months ago (2011-06-03 18:43:04 UTC) #3
niemeyer
> Ugh. I missed that the package was called make. > What about go/build ? ...
12 years, 11 months ago (2011-06-03 19:02:08 UTC) #4
rsc
> If the intention is to have this being the merger of goinstall and make, ...
12 years, 11 months ago (2011-06-03 19:04:23 UTC) #5
niemeyer
> That's not the intention. There will be a separate gomake command. > This is ...
12 years, 11 months ago (2011-06-03 19:10:36 UTC) #6
adg
This is ready for review, now. On 2011/06/03 18:43:04, rsc wrote: > src/cmd/goinstall/main.go:12: gomake "go/make" ...
12 years, 11 months ago (2011-06-07 00:24:14 UTC) #7
niemeyer
LGTM. Only some minor observations: http://codereview.appspot.com/4515180/diff/13001/src/cmd/goinstall/main.go File src/cmd/goinstall/main.go (right): http://codereview.appspot.com/4515180/diff/13001/src/cmd/goinstall/main.go#newcode165 src/cmd/goinstall/main.go:165: visit[pkg] = done Nice. ...
12 years, 11 months ago (2011-06-07 01:11:48 UTC) #8
adg
On 7 June 2011 11:11, <n13m3y3r@gmail.com> wrote: > http://codereview.appspot.com/4515180/diff/13001/src/cmd/goinstall/make.go#newcode36 > src/cmd/goinstall/make.go:36: if err = c.Clean(dir); ...
12 years, 11 months ago (2011-06-07 01:18:03 UTC) #9
niemeyer
> Yes. What's missing from this CL is incremental building, and I don't > think ...
12 years, 11 months ago (2011-06-07 01:30:09 UTC) #10
kevlar
> > That's what make does, so it should be a safe first step. It ...
12 years, 11 months ago (2011-06-07 01:37:40 UTC) #11
adg
On 7 June 2011 11:30, <n13m3y3r@gmail.com> wrote: >> The strategy I intend to employ is ...
12 years, 11 months ago (2011-06-07 06:33:48 UTC) #12
niemeyer
Still looks good. Some additional input: http://codereview.appspot.com/4515180/diff/22001/src/cmd/goinstall/main.go File src/cmd/goinstall/main.go (right): http://codereview.appspot.com/4515180/diff/22001/src/cmd/goinstall/main.go#newcode41 src/cmd/goinstall/main.go:41: noInstall = flag.Bool("noinstall", ...
12 years, 11 months ago (2011-06-07 13:34:14 UTC) #13
adg
http://codereview.appspot.com/4515180/diff/22001/src/pkg/go/build/build.go File src/pkg/go/build/build.go (right): http://codereview.appspot.com/4515180/diff/22001/src/pkg/go/build/build.go#newcode108 src/pkg/go/build/build.go:108: fn := file On 2011/06/07 13:34:14, niemeyer wrote: > ...
12 years, 11 months ago (2011-06-08 00:49:54 UTC) #14
rsc
This is pretty close but not quite there yet. It's possible there should be a ...
12 years, 11 months ago (2011-06-08 02:59:28 UTC) #15
adg
PTAL
12 years, 11 months ago (2011-06-09 04:33:40 UTC) #16
rsc
LGTM http://codereview.appspot.com/4515180/diff/35001/src/cmd/goinstall/main.go File src/cmd/goinstall/main.go (right): http://codereview.appspot.com/4515180/diff/35001/src/cmd/goinstall/main.go#newcode211 src/cmd/goinstall/main.go:211: if !errors { All this nesting was to ...
12 years, 10 months ago (2011-06-14 17:31:55 UTC) #17
adg
*** Submitted as http://code.google.com/p/go/source/detail?r=1186c55642f3 *** goinstall: use go/make package to scan and build packages R=rsc, ...
12 years, 10 months ago (2011-06-15 03:28:47 UTC) #18
adg
12 years, 10 months ago (2011-06-15 04:30:04 UTC) #19
On 15 June 2011 13:28,  <adg@golang.org> wrote:
> It only happens once. If I do it again at some later stage, I'll add a
> method. Same for Output.

This comment is out of date. I made it a method.
Sign in to reply to this message.

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