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)