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

Issue 4433047: code review 4433047: go/build: new package for building go programs (Closed)

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

Description

go/build: new package for building go programs

Patch Set 1 #

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

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

Total comments: 10

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

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

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

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

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

Total comments: 33

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

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

Total comments: 12

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

Total comments: 14

Patch Set 12 : diff -r bd3cf9bc3480 https://go.googlecode.com/hg/ #

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

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

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

Patch Set 16 : diff -r 88bcc11652b9 https://go.googlecode.com/hg/ #

Total comments: 7

Patch Set 17 : diff -r d9401fa9dc01 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+785 lines, -0 lines) Patch
M src/pkg/Makefile View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/go/build/Makefile View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +22 lines, -0 lines 0 comments Download
A src/pkg/go/build/build.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +268 lines, -0 lines 0 comments Download
A src/pkg/go/build/build_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +52 lines, -0 lines 0 comments Download
A src/pkg/go/build/cgotest/file.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +44 lines, -0 lines 0 comments Download
A src/pkg/go/build/dir.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +173 lines, -0 lines 0 comments Download
A src/pkg/go/build/path.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +163 lines, -0 lines 0 comments Download
A src/pkg/go/build/syslist_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 19
rsc
http://codereview.appspot.com/4433047/diff/4/src/pkg/go/make/build.go File src/pkg/go/make/build.go (right): http://codereview.appspot.com/4433047/diff/4/src/pkg/go/make/build.go#newcode20 src/pkg/go/make/build.go:20: switch runtime.GOARCH { wrong use os.Getenv("GOARCH") first. runtime.GOARCH describes ...
13 years ago (2011-04-17 13:40:24 UTC) #1
adg
http://codereview.appspot.com/4433047/diff/4/src/pkg/go/make/build.go File src/pkg/go/make/build.go (right): http://codereview.appspot.com/4433047/diff/4/src/pkg/go/make/build.go#newcode20 src/pkg/go/make/build.go:20: switch runtime.GOARCH { On 2011/04/17 13:40:24, rsc wrote: > ...
13 years ago (2011-04-18 03:27:33 UTC) #2
adg
Russ - go/make now builds packages with go, cgo, and assembly files. There's still some ...
12 years, 11 months ago (2011-05-24 07:41:04 UTC) #3
rsc
Let's talk about the build.go API in a bit. All the supporting stuff around it ...
12 years, 11 months ago (2011-05-25 22:22:45 UTC) #4
kevlar
FYI I'm quite looking forward to this utility :). http://codereview.appspot.com/4433047/diff/20001/src/pkg/go/make/dir.go File src/pkg/go/make/dir.go (right): http://codereview.appspot.com/4433047/diff/20001/src/pkg/go/make/dir.go#newcode36 src/pkg/go/make/dir.go:36: ...
12 years, 11 months ago (2011-05-26 01:02:08 UTC) #5
adg
PTAL http://codereview.appspot.com/4433047/diff/20001/src/pkg/go/make/Makefile File src/pkg/go/make/Makefile (right): http://codereview.appspot.com/4433047/diff/20001/src/pkg/go/make/Makefile#newcode17 src/pkg/go/make/Makefile:17: syslist.go: On 2011/05/25 22:22:45, rsc wrote: > syslist.go: ...
12 years, 11 months ago (2011-05-26 06:48:02 UTC) #6
bsiegert
On Thu, May 26, 2011 at 00:22, <rsc@golang.org> wrote: > http://codereview.appspot.com/4433047/diff/20001/src/pkg/go/make/build.go#newcode25 > src/pkg/go/make/build.go:25: var arch ...
12 years, 11 months ago (2011-05-26 11:29:48 UTC) #7
rsc
>> syslist.go: ../../../Make.inc Makefile > > Done, but why? Because the rule has no other ...
12 years, 11 months ago (2011-05-26 13:42:38 UTC) #8
kevlar
FYI http://codereview.appspot.com/4433047/diff/27002/src/pkg/go/make/build.go File src/pkg/go/make/build.go (right): http://codereview.appspot.com/4433047/diff/27002/src/pkg/go/make/build.go#newcode54 src/pkg/go/make/build.go:54: cmds = append(cmds, c) Is this not clearer ...
12 years, 11 months ago (2011-05-26 16:28:46 UTC) #9
rsc
looking good http://codereview.appspot.com/4433047/diff/27002/src/pkg/go/make/build.go File src/pkg/go/make/build.go (right): http://codereview.appspot.com/4433047/diff/27002/src/pkg/go/make/build.go#newcode52 src/pkg/go/make/build.go:52: var cmds []Cmd should be []*Cmd i ...
12 years, 11 months ago (2011-05-26 16:39:22 UTC) #10
adg
http://codereview.appspot.com/4433047/diff/27002/src/pkg/go/make/build.go File src/pkg/go/make/build.go (right): http://codereview.appspot.com/4433047/diff/27002/src/pkg/go/make/build.go#newcode52 src/pkg/go/make/build.go:52: var cmds []Cmd On 2011/05/26 16:39:22, rsc wrote: > ...
12 years, 11 months ago (2011-05-27 06:04:04 UTC) #11
rsc
http://codereview.appspot.com/4433047/diff/36001/src/pkg/go/make/build.go File src/pkg/go/make/build.go (right): http://codereview.appspot.com/4433047/diff/36001/src/pkg/go/make/build.go#newcode83 src/pkg/go/make/build.go:83: // builds will be relative to dir, so our ...
12 years, 11 months ago (2011-05-27 15:09:31 UTC) #12
adg
http://codereview.appspot.com/4433047/diff/36001/src/pkg/go/make/build.go File src/pkg/go/make/build.go (right): http://codereview.appspot.com/4433047/diff/36001/src/pkg/go/make/build.go#newcode83 src/pkg/go/make/build.go:83: // builds will be relative to dir, so our ...
12 years, 10 months ago (2011-05-30 00:30:09 UTC) #13
rsc
http://codereview.appspot.com/4433047/diff/36001/src/pkg/go/make/build.go File src/pkg/go/make/build.go (right): http://codereview.appspot.com/4433047/diff/36001/src/pkg/go/make/build.go#newcode97 src/pkg/go/make/build.go:97: } else { On 2011/05/30 00:30:09, adg wrote: > ...
12 years, 10 months ago (2011-05-30 19:41:37 UTC) #14
adg
http://codereview.appspot.com/4433047/diff/36001/src/pkg/go/make/build.go File src/pkg/go/make/build.go (right): http://codereview.appspot.com/4433047/diff/36001/src/pkg/go/make/build.go#newcode97 src/pkg/go/make/build.go:97: } else { On 2011/05/30 19:41:38, rsc wrote: > ...
12 years, 10 months ago (2011-05-30 23:36:43 UTC) #15
adg
PTAL I've added the GOPATH parsing stuff from goinstall to a new file path.go, and ...
12 years, 10 months ago (2011-06-02 10:51:35 UTC) #16
rsc
LGTM http://codereview.appspot.com/4433047/diff/17012/src/pkg/go/make/path.go File src/pkg/go/make/path.go (right): http://codereview.appspot.com/4433047/diff/17012/src/pkg/go/make/path.go#newcode17 src/pkg/go/make/path.go:17: // from the GOPATH environment variable at init. ...
12 years, 10 months ago (2011-06-03 18:42:09 UTC) #17
adg
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 10 months ago (2011-06-04 02:45:07 UTC) #18
adg
12 years, 10 months ago (2011-06-04 02:45:17 UTC) #19
*** Submitted as http://code.google.com/p/go/source/detail?r=0f1980acc591 ***

go/build: new package for building go programs

R=rsc
CC=golang-dev
http://codereview.appspot.com/4433047

http://codereview.appspot.com/4433047/diff/17012/src/pkg/go/make/path.go
File src/pkg/go/make/path.go (right):

http://codereview.appspot.com/4433047/diff/17012/src/pkg/go/make/path.go#newc...
src/pkg/go/make/path.go:20: // Root describes a GOPATH root.
On 2011/06/03 18:42:09, rsc wrote:
> s/Root/Tree/
> 
> This isn't about the root; it's about the tree.
> 
> // Tree describes a Go source tree, either $GOROOT or one from $GOPATH.

Done.

http://codereview.appspot.com/4433047/diff/17012/src/pkg/go/make/path.go#newc...
src/pkg/go/make/path.go:37: // SrcDir returns the directory inside this Root
On 2011/06/03 18:42:09, rsc wrote:
> // SrcDir returns the tree's package source directory.
> etc

Done.

http://codereview.appspot.com/4433047/diff/17012/src/pkg/go/make/path.go#newc...
src/pkg/go/make/path.go:88: // FindRoot takes an import or filesystem path and
returns the
On 2011/06/03 18:42:09, rsc wrote:
> FindTree

Done.
Sign in to reply to this message.

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