go: cmd/go: don't warn about "no non-test Go files" when building/installing wildcard

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.9.1 darwin/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

GOARCH=“amd64” GOBIN=“/Users/clint/code/go/bin” GOEXE=“” GOHOSTARCH=“amd64” GOHOSTOS=“darwin” GOOS=“darwin” GOPATH=“/Users/clint/code/go” GORACE=“” GOROOT=“/usr/local/Cellar/go/1.9.1/libexec” GOTOOLDIR=“/usr/local/Cellar/go/1.9.1/libexec/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/tr/j87dsghd3fsdh1m98b76fjrw0000gn/T/go-build293369783=/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 did you do?

  • cd $GOPATH
  • go get github.com/clintmod/goBuildBug
  • cd $GOPATH/src/github.com/clintmod/goBuildBug
  • go install ./...

What did you expect to see?

The build to succeed.

What did you see instead?

go build github.com/clintmod/goBuildBug/tests: no non-test Go files in github.com/clintmod/goBuildBug/tests

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

can we reopen? I was correcting the bad path in the steps to repro… the expected behavior is that the build should not fail because there are only test files in the dir.