You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
Invalid flag for go test doesn't give very useful error.
this works:
GOPATH=`pwd` go test ./...
this doesn't:
GOPATH=`pwd` go test -argh ./...
the problem is the error message:
can't load package: package .: no Go source files in /home/alberts/next.master
this becomes a problem when you start writing stuff like:
GOROOT=~/go GOPATH=~/foo TMPDIR=$GOPATH go test -v -c -keep foo
and you actually were supposed to write -work instead of -keep and then can't figure out
what's going on.
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
linux
Which revision are you using? (hg identify)
go version weekly.2012-03-04 +ee68d043e7f5
The text was updated successfully, but these errors were encountered:
I can't do anything about this. What if your test binary
defined a -argh flag that took ./... as its parameter?
When we see an unrecognized flag, we assume the package
list is over.
The only thing I can suggest is to get in the habit of writing
go test foo -v -c -short
instead of
go test -v -c -short foo
Russ
The text was updated successfully, but these errors were encountered: