...

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

Documentation: cmd/go/testdata/script

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

View as plain text