| 1 |
cd thirteen |
| 2 |
! go list -deps |
| 3 |
stderr '(Go version in go.mod is 1.13, so vendor directory was not used.)' |
| 4 |
|
| 5 |
cd ../unspecified |
| 6 |
! go list -deps |
| 7 |
stderr '(Go version in go.mod is unspecified, so vendor directory was not used.)' |
| 8 |
|
| 9 |
-- thirteen/foo.go -- |
| 10 |
package foo |
| 11 |
|
| 12 |
import _ "github.com/foo/bar" |
| 13 |
-- thirteen/go.mod -- |
| 14 |
module example.com |
| 15 |
|
| 16 |
go 1.13 |
| 17 |
-- thirteen/vendor/github.com/foo/bar/bar.go -- |
| 18 |
package bar |
| 19 |
-- unspecified/foo.go -- |
| 20 |
package foo |
| 21 |
|
| 22 |
import _ "github.com/foo/bar" |
| 23 |
-- unspecified/go.mod -- |
| 24 |
module example.com |
| 25 |
-- unspecified/vendor/github.com/foo/bar/bar.go -- |
| 26 |
package bar |