...

Text file src/cmd/go/testdata/script/issue53586.txt

Documentation: cmd/go/testdata/script

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

View as plain text