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

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

View as plain text