...

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

Documentation: cmd/go/testdata/script

     1# mod_import_cycle covers this error in module mode.
     2env GO111MODULE=off
     3
     4! go build selfimport
     5stderr -count=1 'import cycle not allowed'
     6
     7go list -e -f '{{.Error}}' selfimport # Don't hang forever
     8stdout -count=1 'import cycle not allowed'
     9
    10-- selfimport/selfimport.go --
    11package selfimport
    12
    13import "selfimport"

View as plain text