Skip to content

Failed to compile <package>: output file "<test binary>" could not be found #427

@Bo0mer

Description

@Bo0mer

My environment

I'm running using ginkgo 747514b.
Go version is go version go1.9.2 darwin/amd64
Go env:

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/borshukov/workspace/Go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/kj/ywpvnhgj1pbfyz61h8lvvbgm0000gn/T/go-build470251122=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"

What I'm trying to do

Run the following commands:

go get -u github.com/Bo0mer/ginko-failure-example/...
cd $GOPATH/src/github.com/Bo0mer/ginko-failure-example
ginkgo -r

What I expect to see

No failure as there are no test cases.

What I see instead

$ ginkgo -r
?   	github.com/Bo0mer/ginko-failure-example/integration	[no test files]

?   	github.com/Bo0mer/ginko-failure-example/integration	[no test files]

?   	github.com/Bo0mer/ginko-failure-example/integration	[no test files]

?   	github.com/Bo0mer/ginko-failure-example/integration	[no test files]

?   	github.com/Bo0mer/ginko-failure-example/integration	[no test files]

?   	github.com/Bo0mer/ginko-failure-example/integration	[no test files]

Failed to compile integration: output file "/var/folders/kj/ywpvnhgj1pbfyz61h8lvvbgm0000gn/T/ginkgo823659099/integration.test" could not be found
Ginkgo ran 1 suite in 720.425249ms
Test Suite Failed

I've tested the same sequence of commands, but using go test instead of ginkgo -r, and it works just fine:

$ go test ./...
?   	github.com/Bo0mer/ginko-failure-example/integration	[no test files]

I have not looked at ginkgo`s source code in order to troubleshoot the problem. I plan to do so tomorrow.

Thanks for your awesome work!
Ivan

Metadata

Metadata

Assignees

No one assigned

    Labels

    v2Issues that will be resolved by v2

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions