...

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

Documentation: cmd/go/testdata/script

     1# Check that we don't get infinite recursion when loading a package with
     2# an import cycle and another error. Verifies #25830.
     3! go list
     4stderr 'found packages a \(a.go\) and b \(b.go\)'
     5
     6-- go.mod --
     7module errcycle
     8
     9go 1.16
    10-- a.go --
    11package a
    12
    13import _ "errcycle"
    14-- b.go --
    15package b

View as plain text