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

     1  env TESTGO_VERSION=go1.24
     2  
     3  go list -f '{{.Module.GoVersion}}'
     4  stdout 1.15
     5  
     6  go mod tidy
     7  go list -f '{{.Module.GoVersion}}'
     8  stdout 1.15
     9  
    10  go get example.com/a@v1.0.1
    11  go list -f '{{.Module.GoVersion}}'
    12  stdout 1.15
    13  
    14  go get example.com/a@v1.0.1 go@1.16
    15  go list -f '{{.Module.GoVersion}}'
    16  stdout 1.16
    17  
    18  -- go.mod --
    19  module m
    20  go 1.15
    21  
    22  require (
    23  	example.com/a v1.0.0
    24  	example.com/b v1.0.0
    25  )
    26  
    27  replace example.com/a v1.0.0 => ./a100
    28  replace example.com/a v1.0.1 => ./a101
    29  replace example.com/b v1.0.1 => ./b101
    30  replace example.com/b v1.0.0 => ./b100
    31  replace example.com/b v0.9.0 => ./b100
    32  
    33  -- x.go --
    34  package m
    35  
    36  import (
    37  	_ "example.com/a"
    38  	_ "example.com/b"
    39  )
    40  
    41  -- a100/go.mod --
    42  module example.com/a
    43  go 1.16
    44  
    45  require example.com/b v1.0.0
    46  
    47  -- a100/a.go --
    48  package a
    49  
    50  -- a101/go.mod --
    51  module example.com/a
    52  go 1.17
    53  
    54  require example.com/b v1.0.1
    55  
    56  -- a101/a.go --
    57  package a
    58  
    59  -- b100/go.mod --
    60  module example.com/b
    61  go 1.18
    62  
    63  -- b100/b.go --
    64  package b
    65  
    66  -- b101/go.mod --
    67  module example.com/b
    68  go 1.19
    69  
    70  -- b101/b.go --
    71  package b
    72  
    73  

View as plain text