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

     1  # Modules were introduced in Go 1.11, but for various reasons users may
     2  # decide to declare a (much!) older go version in their go.mod file.
     3  # Modules with very old versions should not be rejected, and should have
     4  # the same module-graph semantics as in Go 1.11.
     5  
     6  cp go.mod go.mod.orig
     7  go mod tidy
     8  cmp go.mod go.mod.orig
     9  
    10  -- go.mod --
    11  module example.com/legacy/go1
    12  
    13  go 1.0
    14  
    15  require golang.org/x/text v0.3.0
    16  -- main.go --
    17  package main
    18  
    19  import _ "golang.org/x/text/language"
    20  
    21  func main() {}
    22  

View as plain text