golang.org/x/exp@v0.0.0-20240506185415-9bf2ced13842/cmd/gorelease/testdata/alreadyexists/alreadyexists_suggest_minor.test (about)

     1  mod=example.com/basic
     2  base=v0.0.1
     3  success=false
     4  # B() was added, so now it should suggest a new minor version. But, there's a
     5  # later version that already exists: so it should not try to suggest anything at
     6  # all.
     7  -- want --
     8  # example.com/basic/a
     9  ## compatible changes
    10  B: added
    11  
    12  # summary
    13  Cannot suggest a release version.
    14  Can only suggest a release version when compared against the most recent version of this major: v0.1.2.
    15  -- go.mod --
    16  module example.com/basic
    17  
    18  go 1.12
    19  -- a/a.go --
    20  package a
    21  
    22  func A() int { return 0 }
    23  func B() int { return 0 }