]> Cypherpunks repositories - gostls13.git/commit
cmd/go: be more precise when a directory cannot be built
authorRuss Cox <rsc@golang.org>
Thu, 22 Jun 2017 23:02:35 +0000 (19:02 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 23 Jun 2017 15:02:32 +0000 (15:02 +0000)
commit3445ece2128b0721cae4f6e84b159539acd314ef
tree889c0d94a02bdc498955e065d461648adfacc30c
parentf3e82e045e7e2d95f416801aa07a82a3e1338d77
cmd/go: be more precise when a directory cannot be built

Maybe there are no Go files at all.
Maybe they are all excluded by build constraints.
Maybe there are only test Go files.
Be specific.

Fixes #17008.
Fixes parts of #20760.

Change-Id: If6ac82ba0ed437772e76e06763263747d3bc4f65
Reviewed-on: https://go-review.googlesource.com/46427
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/work/build.go
src/cmd/go/testdata/src/exclude/empty/x.txt [new file with mode: 0644]
src/cmd/go/testdata/src/exclude/ignore/_x.go [new file with mode: 0644]
src/cmd/go/testdata/src/exclude/x.go [new file with mode: 0644]
src/cmd/go/testdata/src/exclude/x_linux.go [new file with mode: 0644]