]> Cypherpunks repositories - gostls13.git/commit
go/build: add dependency test
authorRuss Cox <rsc@golang.org>
Tue, 6 Mar 2012 04:13:00 +0000 (23:13 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 6 Mar 2012 04:13:00 +0000 (23:13 -0500)
commit88e86936be8eb4d2c2ed8a0ad4c74d743dff1cc9
tree1cc252b54f44570d19be008234cf67b7f54f30bd
parent98c1baff6f51a2900f38b35e52f6519730c604c4
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)

R=golang-dev, bradfitz, gri, r
CC=golang-dev
https://golang.org/cl/5732062
src/pkg/go/build/deps_test.go [new file with mode: 0644]