1 # Regression test for https://go.dev/issue/60490: 'go get' should not cause an
2 # infinite loop for cycles introduced in the pruned module graph.
3
4 go get example.net/c@v0.1.0
5
6 -- go.mod --
7 module example
8
9 go 1.19
10
11 require (
12 example.net/a v0.1.0
13 example.net/b v0.1.0
14 )
15
16 replace (
17 example.net/a v0.1.0 => ./a1
18 example.net/a v0.2.0 => ./a2
19 example.net/b v0.1.0 => ./b1
20 example.net/b v0.2.0 => ./b2
21 example.net/c v0.1.0 => ./c1
22 )
23 -- a1/go.mod --
24 module example.net/a
25
26 go 1.19
27 -- a2/go.mod --
28 module example.net/a
29
30 go 1.19
31
32 require example.net/b v0.2.0
33 -- b1/go.mod --
34 module example.net/b
35
36 go 1.19
37 -- b2/go.mod --
38 module example.net/b
39
40 go 1.19
41
42 require example.net/a v0.2.0
43 -- c1/go.mod --
44 module example.net/c
45
46 go 1.19
47
48 require example.net/a v0.2.0
49
View as plain text