...

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

Documentation: cmd/go/testdata/script

     1# Test that wildcards don't look in useless directories.
     2
     3# First make sure that badpkg fails the list of '...'.
     4! go list ./...
     5stderr badpkg
     6
     7# Check that the list of './goodpkg...' succeeds. That implies badpkg was skipped.
     8go list ./goodpkg...
     9
    10-- go.mod --
    11module m
    12
    13go 1.16
    14-- goodpkg/x.go --
    15package goodpkg
    16-- badpkg/x.go --
    17pkg badpkg

View as plain text