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

Issue 5732062: code review 5732062: go/build: add dependency test (Closed)

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

Description

go/build: add dependency test This exercises the Import function but more importantly gives us a place to write down the policy for dependencies within the Go tree. It also forces us to look at the dependencies, which may lead to adjustments. Surprises: - go/doc imports text/template, for HTMLEscape (could fix) - it is impossible to use math/big without fmt (unfixable) - it is impossible to use crypto/rand without math/big (unfixable)

Patch Set 1 : diff -r 733971e543a2 https://go.googlecode.com/hg/ #

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

Total comments: 6

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

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

Total comments: 2

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+403 lines, -0 lines) Patch
A src/pkg/go/build/deps_test.go View 1 2 3 4 1 chunk +403 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/
13 years, 2 months ago (2012-03-05 19:01:48 UTC) #1
bradfitz
LGTM On Mon, Mar 5, 2012 at 11:01 AM, <rsc@golang.org> wrote: > Reviewers: golang-dev_googlegroups.com, > ...
13 years, 2 months ago (2012-03-05 19:43:32 UTC) #2
gri
LGTM (code, not a judgement of the dep. hierarchy) http://codereview.appspot.com/5732062/diff/1002/src/pkg/go/build/deps_test.go File src/pkg/go/build/deps_test.go (right): http://codereview.appspot.com/5732062/diff/1002/src/pkg/go/build/deps_test.go#newcode328 src/pkg/go/build/deps_test.go:328: ...
13 years, 2 months ago (2012-03-05 19:49:30 UTC) #3
rsc
On Mon, Mar 5, 2012 at 14:49, <gri@golang.org> wrote: > this is only needed for ...
13 years, 2 months ago (2012-03-05 20:13:52 UTC) #4
rsc
ping r
13 years, 2 months ago (2012-03-05 22:08:00 UTC) #5
r
LGTM http://codereview.appspot.com/5732062/diff/1002/src/pkg/go/build/deps_test.go File src/pkg/go/build/deps_test.go (right): http://codereview.appspot.com/5732062/diff/1002/src/pkg/go/build/deps_test.go#newcode20 src/pkg/go/build/deps_test.go:20: // The map contains two kinds of entries: ...
13 years, 2 months ago (2012-03-06 03:22:23 UTC) #6
rsc
PTAL Updated table for unicode/* but more importantly extended test to try all goos/goarch/cgo combinations, ...
13 years, 2 months ago (2012-03-06 03:54:54 UTC) #7
r
LGTM http://codereview.appspot.com/5732062/diff/11002/src/pkg/go/build/deps_test.go File src/pkg/go/build/deps_test.go (right): http://codereview.appspot.com/5732062/diff/11002/src/pkg/go/build/deps_test.go#newcode345 src/pkg/go/build/deps_test.go:345: var gooses = []string{"darwin", "freebsd", "linux", "netbsd", "openbsd", ...
13 years, 2 months ago (2012-03-06 03:57:28 UTC) #8
bradfitz
LGTM but maybe spell out net's dependencies rather than just "L2", so we can watch ...
13 years, 2 months ago (2012-03-06 04:00:10 UTC) #9
bradfitz
http://codereview.appspot.com/5732062/diff/11002/src/pkg/go/build/deps_test.go File src/pkg/go/build/deps_test.go (right): http://codereview.appspot.com/5732062/diff/11002/src/pkg/go/build/deps_test.go#newcode23 src/pkg/go/build/deps_test.go:23: // 2) Upper-case keys define aliases for package sets, ...
13 years, 2 months ago (2012-03-06 04:01:31 UTC) #10
rsc
*** Submitted as e219970cdf9f *** go/build: add dependency test This exercises the Import function but ...
13 years, 2 months ago (2012-03-06 04:13:04 UTC) #11
rog
On 5 March 2012 19:01, <rsc@golang.org> wrote: > Surprises: > - it is impossible to ...
13 years, 2 months ago (2012-03-06 11:18:52 UTC) #12
rsc
13 years, 2 months ago (2012-03-06 14:25:33 UTC) #13
On Tue, Mar 6, 2012 at 06:18, roger peppe <rogpeppe@gmail.com> wrote:
> while the type dependency is unfixable, i wonder if it
> might be worth avoiding the calls to fmt.Fprintf.
>
> then one could use math/big without linking in
> all of fmt and reflect.

I'm not worried about it.
Sign in to reply to this message.

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