...

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

Documentation: cmd/go/testdata/script

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

View as plain text