...

Text file src/golang.org/x/exp/cmd/gorelease/testdata/tidy/misleading_req.test

Documentation: golang.org/x/exp/cmd/gorelease/testdata/tidy

     1mod=example.com/tidy
     2base=none
     3success=false
     4-- go.mod --
     5module example.com/tidy
     6
     7go 1.12
     8
     9require (
    10  example.com/tidy/a v0.1.0 // actually transitively requires v0.2.0
    11  example.com/tidy/b v0.1.0
    12)
    13-- go.sum --
    14example.com/tidy/a v0.1.0 h1:hxFAdyLfJ6TV25ffYI2oA+g3ffLp+XJgo6lrVkT8ufU=
    15example.com/tidy/a v0.1.0/go.mod h1:/KTGkbP1cnyJLO5kGL/QSCswh5I8R66epCmEAxgAK+I=
    16example.com/tidy/b v0.1.0/go.mod h1:92saqyRYqaI4eqrr6LGMnPfBDXc2yofWznwSxsvqfEw=
    17example.com/tidy/b v0.2.0 h1:dSh97fZcMRg87GDb1Gqwy8/mebsrmE4kX3S7d+KeSZU=
    18example.com/tidy/b v0.2.0/go.mod h1:92saqyRYqaI4eqrr6LGMnPfBDXc2yofWznwSxsvqfEw=
    19-- tidy.go --
    20package tidy
    21
    22import _ "example.com/tidy/a"
    23import _ "example.com/tidy/b"
    24-- want --
    25# diagnostics
    26go.mod: the following requirements are needed
    27	example.com/tidy/b@v0.2.0
    28Run 'go mod tidy' to add missing requirements.
    29
    30# summary
    31Suggested version: v0.1.0

View as plain text