-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: go test returns file not found in temporary directory when package contains no test files #19021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sorry for the noise, after flicking the build rev back and forth a few times I can no longer reproduce the issue |
This is very confusing. The same command entered with a delay, fails the first time, then works the second zapf(~/src/github.com/travisjeffery/jocko) % go test // a minute passes zapf(~/src/github.com/travisjeffery/jocko) % go test It's important to note that a small amount of time passes before running the command a second time. Even though no other process is run, the problem appears to fix itself. |
Further strangeness
|
I'm going to close this issue, I think it's a problem with this machine. |
Sorry for the noise, it turned out to be a badly written test On linux this would be a noon as /tmp us usually not owned by the user, but on OSX $TMP is a subdirectory of a larger temporary directory created on login. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?% go version
go version devel +3a20928 Fri Feb 10 05:05:59 2017 +0000 darwin/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/dfc"
GORACE=""
GOROOT="/Users/dfc/go"
GOTOOLDIR="/Users/dfc/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/lv/028ssy8n19v56_k2q43kkb5r0000gn/T/go-build210395899=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
% sw_vers -productVersion
10.11.6
What did you do?
What did you expect to see?
What did you see instead?
Note: go1.8rc3 returns
% go test .
can't load package: package p: no buildable Go source files in /Users/dfc/src/p
The text was updated successfully, but these errors were encountered: