]> Cypherpunks repositories - gostls13.git/commitdiff
gotest still assumes that gopack is in your PATH
authorIcarus Sparry <golang@icarus.freeuk.com>
Tue, 26 Jan 2010 21:15:59 +0000 (13:15 -0800)
committerRuss Cox <rsc@golang.org>
Tue, 26 Jan 2010 21:15:59 +0000 (13:15 -0800)
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

index b975513095ccd44280341a06850ccd31a433d601..e6e9f16f5f49e9779c033b59e3bb6f4c8e5c76e1 100755 (executable)
@@ -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)