aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_list_test_cycle.txt
blob: 755e50b07677c289c486e700759197b6efea162a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# https://golang.org/issue/45863: a typo in a test package leading to an
# import cycle should be diagnosed, instead of causing an infinite loop.
# The failure mode of this test prior to the fix was a timeout or OOM crash.

go list -e -test -deps ./datastore/sql

-- go.mod --
module golang.org/issue45863

go 1.17
-- datastore/datastore_health.go --
package datastore

import (
	"golang.org/issue45863/datastore"
	"golang.org/issue45863/datastore/sql"
)
-- datastore/sql/sql.go --
package sql
-- datastore/sql/sql_test.go --
package sql

import _ "golang.org/issue45863/datastore"