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