From 8921eaed4a6dc3104f000cb4636da0d927b6cc3b Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Tue, 13 Feb 2024 11:02:17 -0500 Subject: [PATCH] chore: update cucumber dependencies (#31) Closes #21 --- datatable.go | 2 +- find_step.go | 2 +- go.mod | 7 +++---- go.sum | 21 ++++++--------------- guess.go | 2 +- guess_test.go | 2 +- internal/tag/tags.go | 4 ++-- run.go | 2 +- run_doc.go | 4 ++-- run_scenario.go | 2 +- run_step.go | 2 +- runner.go | 4 ++-- scenario.go | 2 +- step.go | 2 +- tags.go | 2 +- tags_test.go | 2 +- 16 files changed, 26 insertions(+), 36 deletions(-) diff --git a/datatable.go b/datatable.go index b166e5c..c96fb60 100644 --- a/datatable.go +++ b/datatable.go @@ -5,7 +5,7 @@ import ( "reflect" "github.com/cockroachdb/apd/v3" - messages "github.com/cucumber/messages/go/v21" + messages "github.com/cucumber/messages/go/v22" ) // DataTable wraps a data table step argument diff --git a/find_step.go b/find_step.go index 461275b..361c664 100644 --- a/find_step.go +++ b/find_step.go @@ -3,7 +3,7 @@ package gocuke import ( "testing" - messages "github.com/cucumber/messages/go/v21" + messages "github.com/cucumber/messages/go/v22" ) func (r *Runner) findStep(t *testing.T, step *messages.PickleStep) *stepDef { diff --git a/go.mod b/go.mod index e43d75c..e242145 100644 --- a/go.mod +++ b/go.mod @@ -5,10 +5,9 @@ go 1.21 require ( github.com/bmatcuk/doublestar/v4 v4.6.1 github.com/cockroachdb/apd/v3 v3.2.1 - github.com/cucumber/common/messages/go/v19 v19.1.2 - github.com/cucumber/gherkin/go/v26 v26.2.0 - github.com/cucumber/messages/go/v21 v21.0.1 - github.com/cucumber/tag-expressions/go/v5 v5.0.6 + github.com/cucumber/gherkin/go/v27 v27.0.0 + github.com/cucumber/messages/go/v22 v22.0.0 + github.com/cucumber/tag-expressions/go/v6 v6.1.0 github.com/google/go-cmp v0.6.0 github.com/stretchr/testify v1.8.4 gotest.tools/v3 v3.5.1 diff --git a/go.sum b/go.sum index 925ddea..bc1fcb6 100644 --- a/go.sum +++ b/go.sum @@ -3,18 +3,14 @@ github.com/bmatcuk/doublestar/v4 v4.6.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTS github.com/cockroachdb/apd/v3 v3.2.1 h1:U+8j7t0axsIgvQUqthuNm82HIrYXodOV2iWLWtEaIwg= github.com/cockroachdb/apd/v3 v3.2.1/go.mod h1:klXJcjp+FffLTHlhIG69tezTDvdP065naDsHzKhYSqc= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/cucumber/common/messages/go/v19 v19.1.2 h1:8/ZkW9rj3KQo/regmI8kcy48tk57m427Olb7Y0lXcN4= -github.com/cucumber/common/messages/go/v19 v19.1.2/go.mod h1:0KLDvMVmmkEZcWUSKxFHSUSLS1gjujBbPN0p41IwwJ4= -github.com/cucumber/gherkin/go/v26 v26.2.0 h1:EgIjePLWiPeslwIWmNQ3XHcypPsWAHoMCz/YEBKP4GI= -github.com/cucumber/gherkin/go/v26 v26.2.0/go.mod h1:t2GAPnB8maCT4lkHL99BDCVNzCh1d7dBhCLt150Nr/0= -github.com/cucumber/messages/go/v21 v21.0.1 h1:wzA0LxwjlWQYZd32VTlAVDTkW6inOFmSM+RuOwHZiMI= -github.com/cucumber/messages/go/v21 v21.0.1/go.mod h1:zheH/2HS9JLVFukdrsPWoPdmUtmYQAQPLk7w5vWsk5s= -github.com/cucumber/tag-expressions/go/v5 v5.0.6 h1:F0mqsu69cG/3MTTZqy+PlaPcU/MMl936OJjxKgdFgWs= -github.com/cucumber/tag-expressions/go/v5 v5.0.6/go.mod h1:/sHRc0Vt+pPjgQdNZjH8W2cnmb+tiVYp19VESzpGQsw= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/cucumber/gherkin/go/v27 v27.0.0 h1:waJh5eeq7rrKn5Gf3/FI4G34ypduPRaV8e370dnupDI= +github.com/cucumber/gherkin/go/v27 v27.0.0/go.mod h1:2JxwYskO0sO4kumc/Nv1g6bMncT5w0lShuKZnmUIhhk= +github.com/cucumber/messages/go/v22 v22.0.0 h1:hk3ITpEWQ+KWDe619zYcqtaLOfcu9jgClSeps3DlNWI= +github.com/cucumber/messages/go/v22 v22.0.0/go.mod h1:aZipXTKc0JnjCsXrJnuZpWhtay93k7Rn3Dee7iyPJjs= +github.com/cucumber/tag-expressions/go/v6 v6.1.0 h1:YOhnlISh/lyPZrLojFbJVzocv7TGhzOhB9aULN8A7Sg= +github.com/cucumber/tag-expressions/go/v6 v6.1.0/go.mod h1:6scGHUy3RLnbNq8un7XNoopF2qR/0RMgqolQH/TkycY= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gofrs/uuid v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1YrTJupqA= github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= @@ -27,16 +23,11 @@ github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.4/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU= diff --git a/guess.go b/guess.go index f9c48b2..6af15d3 100644 --- a/guess.go +++ b/guess.go @@ -6,7 +6,7 @@ import ( "strings" "unicode" - messages "github.com/cucumber/messages/go/v21" + messages "github.com/cucumber/messages/go/v22" ) func guessMethodSig(step *messages.PickleStep) methodSig { diff --git a/guess_test.go b/guess_test.go index 33916fc..7d2f634 100644 --- a/guess_test.go +++ b/guess_test.go @@ -3,7 +3,7 @@ package gocuke import ( "testing" - messages "github.com/cucumber/messages/go/v21" + messages "github.com/cucumber/messages/go/v22" "gotest.tools/v3/assert" ) diff --git a/internal/tag/tags.go b/internal/tag/tags.go index 5d111af..1d38c53 100644 --- a/internal/tag/tags.go +++ b/internal/tag/tags.go @@ -1,8 +1,8 @@ package tag import ( - messages "github.com/cucumber/messages/go/v21" - tag "github.com/cucumber/tag-expressions/go/v5" + messages "github.com/cucumber/messages/go/v22" + tag "github.com/cucumber/tag-expressions/go/v6" ) func NewTags(tags ...string) Tags { diff --git a/run.go b/run.go index 2e60dd3..d7b4a7f 100644 --- a/run.go +++ b/run.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/bmatcuk/doublestar/v4" - gherkin "github.com/cucumber/gherkin/go/v26" + gherkin "github.com/cucumber/gherkin/go/v27" "gotest.tools/v3/assert" ) diff --git a/run_doc.go b/run_doc.go index e65999e..29a4053 100644 --- a/run_doc.go +++ b/run_doc.go @@ -3,8 +3,8 @@ package gocuke import ( "testing" - gherkin "github.com/cucumber/gherkin/go/v26" - messages "github.com/cucumber/messages/go/v21" + gherkin "github.com/cucumber/gherkin/go/v27" + messages "github.com/cucumber/messages/go/v22" ) type docRunner struct { diff --git a/run_scenario.go b/run_scenario.go index bb1b78b..42cef5f 100644 --- a/run_scenario.go +++ b/run_scenario.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - messages "github.com/cucumber/messages/go/v21" + messages "github.com/cucumber/messages/go/v22" "pgregory.net/rapid" "github.com/regen-network/gocuke/internal/tag" diff --git a/run_step.go b/run_step.go index cfa5d3a..766c4e7 100644 --- a/run_step.go +++ b/run_step.go @@ -3,7 +3,7 @@ package gocuke import ( "reflect" - messages "github.com/cucumber/messages/go/v21" + messages "github.com/cucumber/messages/go/v22" ) func (r *scenarioRunner) runHook(def *stepDef) { diff --git a/runner.go b/runner.go index c91cc16..06dc1b4 100644 --- a/runner.go +++ b/runner.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/cucumber/common/messages/go/v19" - tag "github.com/cucumber/tag-expressions/go/v5" + messages "github.com/cucumber/messages/go/v22" + tag "github.com/cucumber/tag-expressions/go/v6" "pgregory.net/rapid" ) diff --git a/scenario.go b/scenario.go index afcf51f..f907f42 100644 --- a/scenario.go +++ b/scenario.go @@ -1,6 +1,6 @@ package gocuke -import messages "github.com/cucumber/messages/go/v21" +import messages "github.com/cucumber/messages/go/v22" // Scenario is a special step argument type which describes the running scenario // and that can be used in a step definition or hook method. diff --git a/step.go b/step.go index 844d27e..291385f 100644 --- a/step.go +++ b/step.go @@ -1,6 +1,6 @@ package gocuke -import messages "github.com/cucumber/messages/go/v21" +import messages "github.com/cucumber/messages/go/v22" // Step is a special step argument type which describes the running step // and that can be used in a step definition or hook method. diff --git a/tags.go b/tags.go index b363977..214cedd 100644 --- a/tags.go +++ b/tags.go @@ -4,7 +4,7 @@ import ( "flag" "fmt" - tag "github.com/cucumber/tag-expressions/go/v5" + tag "github.com/cucumber/tag-expressions/go/v6" ) var flagTags = flag.String("gocuke.tags", "", diff --git a/tags_test.go b/tags_test.go index df395d8..c2e8f5f 100644 --- a/tags_test.go +++ b/tags_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - tagexpressions "github.com/cucumber/tag-expressions/go/v5" + tagexpressions "github.com/cucumber/tag-expressions/go/v6" "gotest.tools/v3/assert" "github.com/regen-network/gocuke/internal/tag"