...

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

Documentation: cmd/go/testdata/script

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

View as plain text