Go build error:<dir>中没有非测试Go文件

Cli*_*ntm 5 compiler-errors build go

尝试go build ./...从$ GOPATH/src 运行时出错.

no non-test Go files in <dir>
Run Code Online (Sandbox Code Playgroud)

错误是正确的,没有测试文件,<dir>但为什么会导致编译错误?这是一个错误吗?

Cli*_*ntm 5

称其为 bug\xe2\x80\xa6,如果测试编译,构建不应失败。在此提交: https: //github.com/golang/go/issues/22409

\n\n

我提交的错误是https://github.com/golang/go/issues/8279的重复,看起来它在 1.3 中被破坏了。

\n