From 7c1841fb2a5668ce560a8f0ff1253bfb2e70def7 Mon Sep 17 00:00:00 2001 From: Icarus Sparry Date: Tue, 26 Jan 2010 13:15:59 -0800 Subject: [PATCH] gotest still assumes that gopack is in your PATH If your $PATH does not include $GOBIN then the build fails at the first *.a file, which is probably when running the tests for tar R=rsc CC=golang-dev https://golang.org/cl/193066 --- src/cmd/gotest/gotest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest index b975513095c..e6e9f16f5f4 100755 --- a/src/cmd/gotest/gotest +++ b/src/cmd/gotest/gotest @@ -119,7 +119,7 @@ nmgrep() { # Figure out pkg. case "$i" in *.a) - pkg=$(gopack p $i __.PKGDEF | sed -n 's/^package //p' | sed 1q) + pkg=$("$GOBIN"/gopack p $i __.PKGDEF | sed -n 's/^package //p' | sed 1q) ;; *) pkg=$(sed -n 's/^ .* in package "\(.*\)".*/\1/p' $i | sed 1q)