src/cmd/go/testdata/script/list_ignore_modcache.txt
raw| 1 | # go list should skip 'ignore' directives for indexed modules in the module cache |
| 2 | # See golang.org/issue/42965 |
| 3 | |
| 4 | env GOMODCACHE=$WORK${/}modcache |
| 5 | go get example.com/ignore/[email protected] |
| 6 | go list -x example.com/ignore/... |
| 7 | stderr 'ignoring directory '$GOMODCACHE''${/}'example.com'${/}'[email protected]'${/}'foo' |
| 8 | |
| 9 | -- go.mod -- |
| 10 | module example |
| 11 | |
| 12 | go 1.24 |
| 13 | |
| 14 | -- main.go -- |
| 15 | package main |
| 16 | |
| 17 | func main() {} |