| 1 |
! go build ./empty/test |
| 2 |
stderr 'no non-test Go files in ' |
| 3 |
|
| 4 |
! go build ./empty/xtest |
| 5 |
stderr 'no non-test Go files in ' |
| 6 |
|
| 7 |
! go build ./empty/testxtest |
| 8 |
stderr 'no non-test Go files in ' |
| 9 |
|
| 10 |
! go build ./exclude |
| 11 |
stderr 'build constraints exclude all Go files in ' |
| 12 |
|
| 13 |
! go build ./exclude/ignore |
| 14 |
stderr 'no Go files in ' |
| 15 |
|
| 16 |
! go build ./exclude/empty |
| 17 |
stderr 'no Go files in ' |
| 18 |
|
| 19 |
-- go.mod -- |
| 20 |
module m |
| 21 |
|
| 22 |
go 1.16 |
| 23 |
-- empty/test/test_test.go -- |
| 24 |
package p |
| 25 |
-- empty/testxtest/test_test.go -- |
| 26 |
package p |
| 27 |
-- empty/testxtest/xtest_test.go -- |
| 28 |
package p_test |
| 29 |
-- empty/xtest/xtest_test.go -- |
| 30 |
package p_test |
| 31 |
-- exclude/empty/x.txt -- |
| 32 |
-- exclude/ignore/_x.go -- |
| 33 |
package x |
| 34 |
-- exclude/x.go -- |
| 35 |
// +build linux,!linux |
| 36 |
|
| 37 |
package x |
| 38 |
-- exclude/x_linux.go -- |
| 39 |
// +build windows |
| 40 |
|
| 41 |
package x |