1 ! go get -v example.net/a@v0.1.0
2 ! stderr panic
3 stderr 'example.net/d@v0.1.0 requires\n\texample.net/invalid'
4
5 -- go.mod --
6 module example
7
8 replace (
9 example.net/a v0.1.0 => ./a
10 example.net/b v0.1.0 => ./b1
11 example.net/b v0.2.0 => ./b2
12 example.net/c v0.1.0 => ./c1
13 example.net/c v0.2.0 => ./c2
14 example.net/d v0.1.0 => ./d
15 )
16
17 require (
18 example.net/b v0.1.0
19 )
20 -- a/go.mod --
21 module example.net/a
22
23 go 1.18
24
25 require example.net/b v0.2.0
26 -- a/a.go --
27 package a
28
29 import _ "example.net/b"
30 -- b1/go.mod --
31 module example.net/b
32
33 go 1.16
34 -- b1/b.go --
35 package b
36 -- b2/go.mod --
37 module example.net/b
38
39 go 1.16
40
41 require example.net/c v0.2.0
42 -- b2/b.go --
43 package b
44 -- b2/b_test.go --
45 package b_test
46
47 import _ "example.net/c"
48 -- c1/go.mod --
49 module example.net/c
50
51 go 1.18
52 -- c1/c.go --
53 package c
54 -- c2/go.mod --
55 module example.net/c
56
57 go 1.18
58
59 require example.net/d v0.1.0
60 -- c2/c.go --
61 package c
62 -- c2/c_test.go --
63 package c_test
64
65 import _ "example.net/d"
66 -- d/go.mod --
67 module example.net/d
68
69 go 1.18
70
71 require example.net/invalid v0.1.0
72 -- d/d.go --
73 package d
74 -- d/d_test.go --
75 package d
76
77 import _ "example.net/invalid"
78
View as plain text