summaryrefslogtreecommitdiffstats
path: root/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists/alreadyexists_suggest_patch.test
blob: 209d9a954e5104fba2216d743162bff7da1c594a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
mod=example.com/basic
base=v0.1.0
success=false
# A() was changed in a small way, so now it should suggest a new patch version.
# But, there's a later version that already exists: so it should not try to
# suggest anything at all.
-- want --
# summary
Cannot suggest a release version.
Can only suggest a release version when compared against the most recent version of this major: v0.1.2.
-- go.mod --
module example.com/basic

go 1.12
-- a/a.go --
package a

func A() int { return 1 }
func A2() int { return 2 }
-- b/b.go --
package b

func B() int { return 3 }