...

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

Documentation: cmd/go/testdata/script

     1env GO111MODULE=off
     2
     3# issue 29899: handling files with non-Go extension
     4go list -e -test -json -- c.c x.go
     5stdout '"Err": "named files must be .go files: c.c"'
     6
     7! go list -test -json -- c.c x.go
     8stderr '^named files must be \.go files: c\.c$'
     9
    10-- x.go --
    11package main
    12-- c.c --
    13package c

View as plain text