...

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

Documentation: cmd/go/testdata/script

     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
     4go get example.net/c@v0.1.0
     5
     6-- go.mod --
     7module example
     8
     9go 1.19
    10
    11require (
    12	example.net/a v0.1.0
    13	example.net/b v0.1.0
    14)
    15
    16replace (
    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 --
    24module example.net/a
    25
    26go 1.19
    27-- a2/go.mod --
    28module example.net/a
    29
    30go 1.19
    31
    32require example.net/b v0.2.0
    33-- b1/go.mod --
    34module example.net/b
    35
    36go 1.19
    37-- b2/go.mod --
    38module example.net/b
    39
    40go 1.19
    41
    42require example.net/a v0.2.0
    43-- c1/go.mod --
    44module example.net/c
    45
    46go 1.19
    47
    48require example.net/a v0.2.0

View as plain text