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/basic | |
parent | Initial commit. (diff) | |
download | icingadb-upstream.tar.xz icingadb-upstream.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/basic')
44 files changed, 536 insertions, 0 deletions
diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/README.txt b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/README.txt new file mode 100644 index 0000000..708a0c1 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/README.txt @@ -0,0 +1,11 @@ +Module example.com/basic tests basic functionality of gorelease. +It verifies that versions are correctly suggested or verified after +various changes. + +All revisions are stored in the mod directory. The same series of +changes is made across three major versions, v0, v1, and v2: + +vX.0.1 - simple package +vX.1.0 - compatible change: add a function and a package +vX.1.1 - internal change: function returns different value +vX.1.2 - incompatible change: delete a function and a package diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_compatible_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_compatible_suggest.test new file mode 100644 index 0000000..6560f55 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_compatible_suggest.test @@ -0,0 +1,15 @@ +mod=example.com/basic +version=v0.1.0 +base=v0.0.1 +proxyVersions=example.com/basic@v0.0.1 +-- want -- +# example.com/basic/a +## compatible changes +A2: added + +# example.com/basic/b +## compatible changes +package added + +# summary +Suggested version: v0.1.0 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_compatible_suggest_git.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_compatible_suggest_git.test new file mode 100644 index 0000000..080cafd --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_compatible_suggest_git.test @@ -0,0 +1,16 @@ +mod=example.com/basic +version=v0.1.0 +base=v0.0.1 +proxyVersions=example.com/basic@v0.0.1 +vcs=git +-- want -- +# example.com/basic/a +## compatible changes +A2: added + +# example.com/basic/b +## compatible changes +package added + +# summary +Suggested version: v0.1.0 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_compatible_suggest_hg.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_compatible_suggest_hg.test new file mode 100644 index 0000000..329ea88 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_compatible_suggest_hg.test @@ -0,0 +1,16 @@ +mod=example.com/basic +version=v0.1.0 +base=v0.0.1 +proxyVersions=example.com/basic@v0.0.1 +vcs=hg +-- want -- +# example.com/basic/a +## compatible changes +A2: added + +# example.com/basic/b +## compatible changes +package added + +# summary +Suggested version: v0.1.0 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_compatible_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_compatible_verify.test new file mode 100644 index 0000000..b5c726d --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_compatible_verify.test @@ -0,0 +1,16 @@ +mod=example.com/basic +version=v0.1.0 +base=v0.0.1 +release=v0.1.0 +proxyVersions=example.com/basic@v0.0.1 +-- want -- +# example.com/basic/a +## compatible changes +A2: added + +# example.com/basic/b +## compatible changes +package added + +# summary +v0.1.0 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_incompatible_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_incompatible_suggest.test new file mode 100644 index 0000000..d07a48f --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_incompatible_suggest.test @@ -0,0 +1,15 @@ +mod=example.com/basic +version=v0.1.2 +base=v0.1.1 +proxyVersions=example.com/basic@v0.1.1 +-- want -- +# example.com/basic/a +## incompatible changes +A2: removed + +# example.com/basic/b +## incompatible changes +package removed + +# summary +Suggested version: v0.2.0 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_incompatible_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_incompatible_verify.test new file mode 100644 index 0000000..b8355ea --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_incompatible_verify.test @@ -0,0 +1,16 @@ +mod=example.com/basic +version=v0.1.2 +base=v0.1.1 +release=v0.1.2 +proxyVersions=example.com/basic@v0.1.1 +-- want -- +# example.com/basic/a +## incompatible changes +A2: removed + +# example.com/basic/b +## incompatible changes +package removed + +# summary +v0.1.2 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_nobase_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_nobase_suggest.test new file mode 100644 index 0000000..b059fc0 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_nobase_suggest.test @@ -0,0 +1,6 @@ +mod=example.com/basic +version=v0.1.1 +base=none +-- want -- +# summary +Suggested version: v0.1.0 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_patch_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_patch_suggest.test new file mode 100644 index 0000000..a5f957a --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_patch_suggest.test @@ -0,0 +1,7 @@ +mod=example.com/basic +version=v0.1.1 +base=v0.1.0 +proxyVersions=example.com/basic@v0.1.0 +-- want -- +# summary +Suggested version: v0.1.1 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_patch_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_patch_verify.test new file mode 100644 index 0000000..d26ff70 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_patch_verify.test @@ -0,0 +1,8 @@ +mod=example.com/basic +version=v0.1.1 +base=v0.1.0 +release=v0.1.1 +proxyVersions=example.com/basic@v0.1.0 +-- want -- +# summary +v0.1.1 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_pre_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_pre_suggest.test new file mode 100644 index 0000000..ca45c40 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_pre_suggest.test @@ -0,0 +1,15 @@ +mod=example.com/basic +version=v0.1.2 +base=v0.1.1-pre +proxyVersions=example.com/basic@v0.1.1-pre +-- want -- +# example.com/basic/a +## incompatible changes +A2: removed + +# example.com/basic/b +## incompatible changes +package removed + +# summary +Suggested version: v0.1.1 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_v1_incompatible_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_v1_incompatible_verify.test new file mode 100644 index 0000000..7a68306 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v0_v1_incompatible_verify.test @@ -0,0 +1,15 @@ +mod=example.com/basic +version=v0.1.2 +base=v0.1.1 +release=v1.0.0 +-- want -- +# example.com/basic/a +## incompatible changes +A2: removed + +# example.com/basic/b +## incompatible changes +package removed + +# summary +v1.0.0 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_autobase_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_autobase_suggest.test new file mode 100644 index 0000000..100cc4c --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_autobase_suggest.test @@ -0,0 +1,6 @@ +mod=example.com/basic +version=v0.1.2 +-- want -- +# summary +Inferred base version: v1.1.2 +Suggested version: v1.1.3 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_autobase_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_autobase_verify.test new file mode 100644 index 0000000..6df9c6e --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_autobase_verify.test @@ -0,0 +1,7 @@ +mod=example.com/basic +version=v1.0.1 +release=v1.0.2 +-- want -- +# summary +Inferred base version: v1.0.1 +v1.0.2 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_compatible_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_compatible_suggest.test new file mode 100644 index 0000000..fe63e75 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_compatible_suggest.test @@ -0,0 +1,15 @@ +mod=example.com/basic +version=v1.1.0 +base=v1.0.1 +proxyVersions=example.com/basic@v1.0.1 +-- want -- +# example.com/basic/a +## compatible changes +A2: added + +# example.com/basic/b +## compatible changes +package added + +# summary +Suggested version: v1.1.0 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_compatible_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_compatible_verify.test new file mode 100644 index 0000000..f552aef --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_compatible_verify.test @@ -0,0 +1,16 @@ +mod=example.com/basic +version=v1.1.0 +base=v1.0.1 +release=v1.1.0 +proxyVersions=example.com/basic@v1.0.1 +-- want -- +# example.com/basic/a +## compatible changes +A2: added + +# example.com/basic/b +## compatible changes +package added + +# summary +v1.1.0 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_fork_base_modpath_version_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_fork_base_modpath_version_verify.test new file mode 100644 index 0000000..a662cb1 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_fork_base_modpath_version_verify.test @@ -0,0 +1,11 @@ +mod=example.com/basicfork +base=example.com/basic@v1.1.1 +version=v1.1.2 +release=v1.1.2 +proxyVersions=example.com/basic@v1.1.1 +-- want -- +# example.com/basic/a +## incompatible changes +A2: removed +## compatible changes +A3: added diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_fork_base_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_fork_base_verify.test new file mode 100644 index 0000000..ff3faab --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_fork_base_verify.test @@ -0,0 +1,15 @@ +# Compare a fork (with module path example.com/basic, downloaded from +# example.com/basicfork) with a local module (with module path +# example.com/basic). +mod=example.com/basic +version=v1.1.2 +base=example.com/basicfork@v1.1.2 +release=v1.1.3 +-- want -- +# example.com/basicfork/a +## incompatible changes +A3: removed + +# example.com/basicfork/b +## incompatible changes +package removed diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_incompatible_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_incompatible_suggest.test new file mode 100644 index 0000000..a955b10 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_incompatible_suggest.test @@ -0,0 +1,16 @@ +mod=example.com/basic +version=v1.1.2 +base=v1.1.1 +success=false +-- want -- +# example.com/basic/a +## incompatible changes +A2: removed + +# example.com/basic/b +## incompatible changes +package removed + +# summary +Cannot suggest a release version. +Incompatible changes were detected. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_incompatible_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_incompatible_verify.test new file mode 100644 index 0000000..655ed6a --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_incompatible_verify.test @@ -0,0 +1,18 @@ +mod=example.com/basic +version=v1.1.2 +base=v1.1.1 +success=false +release=v1.1.2 +proxyVersions=example.com/basic@v1.1.1 +-- want -- +# example.com/basic/a +## incompatible changes +A2: removed + +# example.com/basic/b +## incompatible changes +package removed + +# summary +v1.1.2 is not a valid semantic version for this release. +There are incompatible changes. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_patch_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_patch_suggest.test new file mode 100644 index 0000000..936f26a --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_patch_suggest.test @@ -0,0 +1,7 @@ +mod=example.com/basic +version=v1.1.1 +base=v1.1.0 +proxyVersions=example.com/basic@v1.1.0 +-- want -- +# summary +Suggested version: v1.1.1 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_patch_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_patch_verify.test new file mode 100644 index 0000000..f134744 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_patch_verify.test @@ -0,0 +1,8 @@ +mod=example.com/basic +version=v1.1.1 +base=v1.1.0 +release=v1.1.1 +proxyVersions=example.com/basic@v1.1.0 +-- want -- +# summary +v1.1.1 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_pre_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_pre_suggest.test new file mode 100644 index 0000000..c715603 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_pre_suggest.test @@ -0,0 +1,15 @@ +mod=example.com/basic +version=v1.1.2 +base=v1.1.1-pre +proxyVersions=example.com/basic@v1.1.1-pre +-- want -- +# example.com/basic/a +## incompatible changes +A2: removed + +# example.com/basic/b +## incompatible changes +package removed + +# summary +Suggested version: v1.1.1 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_querybase_higher.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_querybase_higher.test new file mode 100644 index 0000000..ba6838f --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_querybase_higher.test @@ -0,0 +1,7 @@ +mod=example.com/basic +version=v1.0.1 +release=v1.0.1 +base=>v1.0.1 +error=true +-- want -- +base version v1.1.0 (>v1.0.1) must be lower than release version v1.0.1 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_querybase_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_querybase_suggest.test new file mode 100644 index 0000000..c1dfb9d --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_querybase_suggest.test @@ -0,0 +1,8 @@ +mod=example.com/basic +version=v1.0.1 +base=version-1.0.1 +proxyVersions=example.com/basic@version-1.0.1,example.com/basic@v1.0.1 +-- want -- +# summary +Base version: v1.0.1 (version-1.0.1) +Suggested version: v1.0.2 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_querybase_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_querybase_verify.test new file mode 100644 index 0000000..9383c3f --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_querybase_verify.test @@ -0,0 +1,8 @@ +mod=example.com/basic +version=v1.0.1 +base=version-1.0.1 +release=v1.0.2 +-- want -- +# summary +Base version: v1.0.1 (version-1.0.1) +v1.0.2 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_modpath_query_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_modpath_query_verify.test new file mode 100644 index 0000000..ce6b674 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_modpath_query_verify.test @@ -0,0 +1,17 @@ +mod=example.com/basic/v2 +base=example.com/basic@>=v1.1.0 +version=v2.0.1 +release=v2.0.1 +proxyVersions=example.com/basic@v1.1.0 +-- want -- +# example.com/basic/a +## incompatible changes +A2: removed + +# example.com/basic/b +## incompatible changes +package removed + +# summary +Base version: example.com/basic@v1.1.0 (>=v1.1.0) +v2.0.1 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_modpath_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_modpath_suggest.test new file mode 100644 index 0000000..d70ecc9 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_modpath_suggest.test @@ -0,0 +1,17 @@ +mod=example.com/basic/v2 +base=example.com/basic +version=v2.1.0 +success=false +-- want -- +# example.com/basic/a +## compatible changes +A2: added + +# example.com/basic/v2/b +## compatible changes +package added + +# summary +Inferred base version: example.com/basic@v1.1.2 +Cannot suggest a release version. +Base module path is different from release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_modpath_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_modpath_verify.test new file mode 100644 index 0000000..85f7f86 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_modpath_verify.test @@ -0,0 +1,17 @@ +mod=example.com/basic/v2 +base=example.com/basic +version=v2.1.0 +release=v2.1.0 +proxyVersions=example.com/basic@v1.1.2 +-- want -- +# example.com/basic/a +## compatible changes +A2: added + +# example.com/basic/v2/b +## compatible changes +package added + +# summary +Inferred base version: example.com/basic@v1.1.2 +v2.1.0 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_modpath_version_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_modpath_version_verify.test new file mode 100644 index 0000000..63d3322 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_modpath_version_verify.test @@ -0,0 +1,16 @@ +mod=example.com/basic/v2 +base=example.com/basic@v1.1.0 +version=v2.0.1 +release=v2.0.1 +proxyVersions=example.com/basic@v1.1.0 +-- want -- +# example.com/basic/a +## incompatible changes +A2: removed + +# example.com/basic/b +## incompatible changes +package removed + +# summary +v2.0.1 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_version_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_version_suggest.test new file mode 100644 index 0000000..683bb33 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_version_suggest.test @@ -0,0 +1,8 @@ +mod=example.com/basic/v2 +base=v1.1.0 +version=v2.1.0 +success=false +-- want -- +# summary +Cannot suggest a release version. +Base module path is different from release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_version_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_version_verify.test new file mode 100644 index 0000000..bc8e31a --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_base_version_verify.test @@ -0,0 +1,7 @@ +mod=example.com/basic/v2 +base=v1.1.0 +version=v2.1.0 +release=v2.1.0 +-- want -- +# summary +v2.1.0 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_incompatible_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_incompatible_verify.test new file mode 100644 index 0000000..07bbde9 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v1_v2_incompatible_verify.test @@ -0,0 +1,18 @@ +mod=example.com/basic +version=v1.1.2 +base=v1.1.1 +release=v2.0.0 +success=false +-- want -- +# example.com/basic/a +## incompatible changes +A2: removed + +# example.com/basic/b +## incompatible changes +package removed + +# summary +v2.0.0 is not a valid semantic version for this release. +The module path does not end with the major version suffix /v2, +which is required for major versions v2 or greater. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_compatible_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_compatible_suggest.test new file mode 100644 index 0000000..86e60cb --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_compatible_suggest.test @@ -0,0 +1,15 @@ +mod=example.com/basic/v2 +version=v2.1.0 +base=v2.0.1 +proxyVersions=example.com/basic/v2@v2.0.1 +-- want -- +# example.com/basic/v2/a +## compatible changes +A2: added + +# example.com/basic/v2/b +## compatible changes +package added + +# summary +Suggested version: v2.1.0 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_compatible_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_compatible_verify.test new file mode 100644 index 0000000..79eca35 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_compatible_verify.test @@ -0,0 +1,16 @@ +mod=example.com/basic/v2 +version=v2.1.0 +base=v2.0.1 +release=v2.1.0 +proxyVersions=example.com/basic/v2@v2.0.1 +-- want -- +# example.com/basic/v2/a +## compatible changes +A2: added + +# example.com/basic/v2/b +## compatible changes +package added + +# summary +v2.1.0 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_incompatible_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_incompatible_suggest.test new file mode 100644 index 0000000..43aa3fe --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_incompatible_suggest.test @@ -0,0 +1,16 @@ +mod=example.com/basic/v2 +version=v2.1.2 +base=v2.1.1 +success=false +-- want -- +# example.com/basic/v2/a +## incompatible changes +A2: removed + +# example.com/basic/v2/b +## incompatible changes +package removed + +# summary +Cannot suggest a release version. +Incompatible changes were detected. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_incompatible_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_incompatible_verify.test new file mode 100644 index 0000000..68b7321 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_incompatible_verify.test @@ -0,0 +1,18 @@ +mod=example.com/basic/v2 +version=v2.1.2 +base=v2.1.1 +success=false +release=v2.1.2 +proxyVersions=example.com/basic/v2@v2.1.1 +-- want -- +# example.com/basic/v2/a +## incompatible changes +A2: removed + +# example.com/basic/v2/b +## incompatible changes +package removed + +# summary +v2.1.2 is not a valid semantic version for this release. +There are incompatible changes. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_nobase_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_nobase_suggest.test new file mode 100644 index 0000000..605edf9 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_nobase_suggest.test @@ -0,0 +1,6 @@ +mod=example.com/basic/v2 +version=v2.1.1 +base=none +-- want -- +# summary +Suggested version: v2.0.0 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_patch_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_patch_suggest.test new file mode 100644 index 0000000..b16a863 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_patch_suggest.test @@ -0,0 +1,7 @@ +mod=example.com/basic/v2 +version=v2.1.1 +base=v2.1.0 +proxyVersions=example.com/basic/v2@v2.1.0 +-- want -- +# summary +Suggested version: v2.1.1 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_patch_verify.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_patch_verify.test new file mode 100644 index 0000000..35d617a --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_patch_verify.test @@ -0,0 +1,8 @@ +mod=example.com/basic/v2 +version=v2.1.1 +base=v2.1.0 +release=v2.1.1 +proxyVersions=example.com/basic/v2@v2.1.0 +-- want -- +# summary +v2.1.1 is a valid semantic version for this release. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_pre_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_pre_suggest.test new file mode 100644 index 0000000..75d0c39 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v2_pre_suggest.test @@ -0,0 +1,15 @@ +mod=example.com/basic/v2 +version=v2.1.2 +base=v2.1.1-pre +proxyVersions=example.com/basic/v2@v2.1.1-pre +-- want -- +# example.com/basic/v2/a +## incompatible changes +A2: removed + +# example.com/basic/v2/b +## incompatible changes +package removed + +# summary +Suggested version: v2.1.1 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v3_autobase_suggest.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v3_autobase_suggest.test new file mode 100644 index 0000000..eda87d2 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v3_autobase_suggest.test @@ -0,0 +1,9 @@ +mod=example.com/basic/v3 +-- go.mod -- +module example.com/basic/v3 + +go 1.13 +-- want -- +# summary +Inferred base version: none +Suggested version: v3.0.0 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v3_autobase_verify_error.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v3_autobase_verify_error.test new file mode 100644 index 0000000..9519d65 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v3_autobase_verify_error.test @@ -0,0 +1,6 @@ +mod=example.com/basic/v3 +version=v3.0.0-ignore +release=v3.1.0 +error=true +-- want -- +could not find base version. Consider setting -version=v3.0.0 if this is a first release, or explicitly set -base=none: no versions found lower than v3.1.0 diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v3_autobase_verify_first.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v3_autobase_verify_first.test new file mode 100644 index 0000000..1cae913 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/basic/v3_autobase_verify_first.test @@ -0,0 +1,7 @@ +mod=example.com/basic/v3 +version=v3.0.0-ignore +release=v3.0.0 +-- want -- +# summary +Inferred base version: none +v3.0.0 is a valid semantic version for this release. |