diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:36:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:36:04 +0000 |
commit | b09c6d56832eb1718c07d74abf3bc6ae3fe4e030 (patch) | |
tree | d2caec2610d4ea887803ec9e9c3cd77136c448ba /dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists | |
parent | Initial commit. (diff) | |
download | icingadb-b09c6d56832eb1718c07d74abf3bc6ae3fe4e030.tar.xz icingadb-b09c6d56832eb1718c07d74abf3bc6ae3fe4e030.zip |
Adding upstream version 1.1.0.upstream/1.1.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists')
4 files changed, 88 insertions, 0 deletions
diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists/alreadyexists_suggest_major.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists/alreadyexists_suggest_major.test new file mode 100644 index 0000000..bea8be6 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists/alreadyexists_suggest_major.test @@ -0,0 +1,24 @@ +mod=example.com/basic +base=v1.0.1 +success=false +# A() was removed, which is a breaking change: it shouldn't try to suggest a +# higher version. +-- want -- +# example.com/basic/a +## incompatible changes +A: removed +## compatible changes +B: added + +# summary +Cannot suggest a release version. +Incompatible changes were detected. +-- go.mod -- +module example.com/basic + +go 1.12 +-- a/a.go -- +package a + +func B() int { return 0 } + diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists/alreadyexists_suggest_minor.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists/alreadyexists_suggest_minor.test new file mode 100644 index 0000000..40eda64 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists/alreadyexists_suggest_minor.test @@ -0,0 +1,23 @@ +mod=example.com/basic +base=v0.0.1 +success=false +# B() was added, so now it should suggest a new minor version. But, there's a +# later version that already exists: so it should not try to suggest anything at +# all. +-- want -- +# example.com/basic/a +## compatible changes +B: added + +# 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 0 } +func B() int { return 0 } diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists/alreadyexists_suggest_patch.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists/alreadyexists_suggest_patch.test new file mode 100644 index 0000000..209d9a9 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists/alreadyexists_suggest_patch.test @@ -0,0 +1,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 } diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists/alreadyexists_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists/alreadyexists_verify.test new file mode 100644 index 0000000..8ba7cfc --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/alreadyexists/alreadyexists_verify.test @@ -0,0 +1,18 @@ +mod=example.com/basic +base=v0.0.1 +release=v0.1.0 +success=false +# The contents below are a copy of the v0.0.1 contents - nothing has changed. +# But v0.1.0 already exists, so it should present a diagnostic. +-- want -- +# summary +v0.1.0 is not a valid semantic version for this release. +version v0.1.0 already exists +-- go.mod -- +module example.com/basic + +go 1.12 +-- a/a.go -- +package a + +func A() int { return 0 } |