...

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

Documentation: cmd/go/testdata/script

     1# If an import declaration is an absolute path, most commands should report
     2# an error instead of going into an infinite loop.
     3# Verifies golang.org/issue/42891.
     4go list .
     5stdout '^m$'
     6
     7-- go.mod --
     8module m
     9
    10go 1.16
    11-- m.go --
    12package m
    13
    14import "/"

View as plain text