GO test gives a very strange error - cannot find command-line package-a / vendor

I have an update for GO 1.6, and now I get a very strange error on startup go test

pawel@pawel:~/work/src/...../web/workers$ go test email_test.go 
# command-line-arguments
email_test.go:16:2: cannot find package "command-line-a/vendor/github.com/jpoehls/gophermail" in any of:
    /usr/local/go/src/command-line-a/vendor/github.com/jpoehls/gophermail (from $GOROOT)
    /home/pawel/work/src/command-line-a/vendor/github.com/jpoehls/gophermail (from $GOPATH)
    /home/pawel/work/src/...../web/_vendor/src/command-line-a/vendor/github.com/jpoehls/gophermail
FAIL    command-line-arguments [setup failed]

I also tried running it with go test email_test.go email.go, but the result will be the same. I grep for the "command line" in my project and provider and did not find it.

The launch is go run email.goworking correctly. My project dependencies are in the directory vendor(which is one level higher), it containsgithub.com/jpoehls/gophermail

+4
source share
1 answer

@volker , , . go test, .

, , ​​ .

+3

All Articles