...

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

Documentation: cmd/go/testdata/script

     1env GO111MODULE=off
     2
     3! go build selfimport
     4stderr -count=1 'import cycle not allowed'
     5
     6# 'go list' shouldn't hang forever.
     7go list -e -json selfimport
     8
     9-- $GOPATH/src/selfimport/selfimport.go --
    10package selfimport
    11
    12import "selfimport"

View as plain text