1 # https://golang.org/issue/45932: "indirect" comments missing spaces
2 # should not be corrupted when the comment is removed.
3
4 go mod tidy
5 cmp go.mod go.mod.direct
6
7 -- go.mod --
8 module example.net/m
9
10 go 1.16
11
12 require example.net/x v0.1.0 //indirect
13
14 replace example.net/x v0.1.0 => ./x
15 -- go.mod.direct --
16 module example.net/m
17
18 go 1.16
19
20 require example.net/x v0.1.0
21
22 replace example.net/x v0.1.0 => ./x
23 -- m.go --
24 package m
25 import _ "example.net/x"
26
27 -- x/go.mod --
28 module example.net/x
29
30 go 1.16
31 -- x/x.go --
32 package x
33
View as plain text