summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/testdata/script/issue53586.txt
blob: db405cd9e49375dd2504a9aa1f01507c03b9a3a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[short] skip  # sleeps to make mtime cacheable

go mod init example

cd subdir
go mod init example/subdir
sleep 2s  # allow go.mod mtime to be cached

go list -f '{{.Dir}}: {{.ImportPath}}' ./pkg
stdout $PWD${/}pkg': example/subdir/pkg$'

rm go.mod  # expose ../go.mod

go list -f '{{.Dir}}: {{.ImportPath}}' ./pkg
stdout $PWD${/}pkg': example/subdir/pkg$'

-- subdir/pkg/pkg.go --
package pkg