...
1env GO111MODULE=off
2! go test testdep/p1
3stderr 'package testdep/p1 \(test\)\n\timports testdep/p2\n\timports testdep/p3: build constraints exclude all Go files ' # check for full import stack
4! go vet testdep/p1
5stderr 'package testdep/p1 \(test\)\n\timports testdep/p2\n\timports testdep/p3: build constraints exclude all Go files ' # check for full import stack
6
7env GO111MODULE=on
8cd testdep
9! go test testdep/p1
10stderr 'package testdep/p1 \(test\)\n\timports testdep/p2\n\timports testdep/p3: build constraints exclude all Go files ' # check for full import stack
11! go vet testdep/p1
12stderr 'package testdep/p1 \(test\)\n\timports testdep/p2\n\timports testdep/p3: build constraints exclude all Go files ' # check for full import stack
13
14-- testdep/go.mod --
15module testdep
16
17go 1.16
18-- testdep/p1/p1.go --
19package p1
20-- testdep/p1/p1_test.go --
21package p1
22
23import _ "testdep/p2"
24-- testdep/p2/p2.go --
25package p2
26
27import _ "testdep/p3"
28-- testdep/p3/p3.go --
29// +build ignore
30
31package ignored
View as plain text