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

     1  # https://golang.org/issue/45863: a typo in a test package leading to an
     2  # import cycle should be diagnosed, instead of causing an infinite loop.
     3  # The failure mode of this test prior to the fix was a timeout or OOM crash.
     4  
     5  go list -e -test -deps ./datastore/sql
     6  
     7  -- go.mod --
     8  module golang.org/issue45863
     9  
    10  go 1.17
    11  -- datastore/datastore_health.go --
    12  package datastore
    13  
    14  import (
    15  	"golang.org/issue45863/datastore"
    16  	"golang.org/issue45863/datastore/sql"
    17  )
    18  -- datastore/sql/sql.go --
    19  package sql
    20  -- datastore/sql/sql_test.go --
    21  package sql
    22  
    23  import _ "golang.org/issue45863/datastore"
    24  

View as plain text