src/cmd/go/testdata/script/issue53586.txt
raw| 1 | [short] skip # sleeps to make mtime cacheable |
| 2 | |
| 3 | go mod init example |
| 4 | |
| 5 | cd subdir |
| 6 | go mod init example/subdir |
| 7 | sleep 2s # allow go.mod mtime to be cached |
| 8 | |
| 9 | go list -f '{{.Dir}}: {{.ImportPath}}' ./pkg |
| 10 | stdout $PWD${/}pkg': example/subdir/pkg$' |
| 11 | |
| 12 | rm go.mod # expose ../go.mod |
| 13 | |
| 14 | go list -f '{{.Dir}}: {{.ImportPath}}' ./pkg |
| 15 | stdout $PWD${/}pkg': example/subdir/pkg$' |
| 16 | |
| 17 | -- subdir/pkg/pkg.go -- |
| 18 | package pkg |