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