diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2013-08-07 13:49:37 -0700 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2013-08-07 13:49:37 -0700 |
commit | 46e751e320bb31483ba3606a574188eb67bfdd30 (patch) | |
tree | 2252a4bedba413799d4213afaa3bc45e85ffb372 /src/run.bash | |
parent | 45d7967c46ce70701ec3b4f1d7242e657532ce1c (diff) | |
download | go-46e751e320bb31483ba3606a574188eb67bfdd30.tar.gz |
build: change how cmd/api is run in run.bash and run.bat
In prep for Robert's forthcoming cmd/api rewrite which
depends on the go.tools subrepo, we'll need to be more
careful about how and when we run cmd/api.
Rather than implement this policy in both run.bash and
run.bat, this change moves the policy and mechanism into
cmd/api/run.go, which will then evolve.
The plan is in a TODO in run.go.
R=golang-dev, gri
CC=golang-dev
https://codereview.appspot.com/12482044
Diffstat (limited to 'src/run.bash')
-rwxr-xr-x | src/run.bash | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/run.bash b/src/run.bash index ded465b66..178290327 100755 --- a/src/run.bash +++ b/src/run.bash @@ -180,12 +180,9 @@ unset GOMAXPROCS time go run run.go || exit 1 ) || exit $? -if [ -d "$GOROOT/src/cmd/api" ] -then - echo - echo '# Checking API compatibility.' - go tool api -c $GOROOT/api/go1.txt,$GOROOT/api/go1.1.txt -next $GOROOT/api/next.txt -except $GOROOT/api/except.txt -fi +echo +echo '# Checking API compatibility.' +go run --tags=from_src_run $GOROOT/src/cmd/api/run.go echo echo ALL TESTS PASSED |