From 185b79834605e454474f46d94e45e1b5c5786b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Wed, 12 Jul 2023 22:10:12 +0200 Subject: [PATCH] go: upgrade messages to v22 Upgrade github.com/cucumber/messages/go to v22. cd go sed -i '' 's!github.com/cucumber/messages/go/v21!github.com/cucumber/messages/go/v22!' dialects_builtin.go.jq make dialects_builtin.go sed -i '' 's!"github.com/cucumber/messages/go/v21"!"github.com/cucumber/messages/go/v22"!' *.go main/*.go go mod tidy --- CHANGELOG.md | 2 ++ go/astbuilder.go | 2 +- go/bench_test.go | 2 +- go/dialect.go | 2 +- go/dialects_builtin.go | 2 +- go/dialects_builtin.go.jq | 2 +- go/example_test.go | 2 +- go/gherkin.go | 2 +- go/go.mod | 1 - go/go.sum | 7 +------ go/main/main.go | 2 +- go/messages.go | 2 +- go/messages_test.go | 2 +- go/pickles.go | 2 +- go/pickles_test.go | 2 +- 15 files changed, 15 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a2efc0bc..6f5d3c58d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ This project adheres to [Semantic Versioning](http://semver.org). This document is formatted according to the principles of [Keep A CHANGELOG](http://keepachangelog.com). ## [Unreleased] +### Changed +- [Go] Upgraded messages to v22 ## [26.2.0] - 2023-04-07 ### Changed diff --git a/go/astbuilder.go b/go/astbuilder.go index 54853d02b..1c82c2f61 100644 --- a/go/astbuilder.go +++ b/go/astbuilder.go @@ -1,7 +1,7 @@ package gherkin import ( - "github.com/cucumber/messages/go/v21" + "github.com/cucumber/messages/go/v22" "strings" ) diff --git a/go/bench_test.go b/go/bench_test.go index 6f79e3cba..aec9cdacf 100644 --- a/go/bench_test.go +++ b/go/bench_test.go @@ -1,7 +1,7 @@ package gherkin import ( - messages "github.com/cucumber/messages/go/v21" + messages "github.com/cucumber/messages/go/v22" "strings" "testing" ) diff --git a/go/dialect.go b/go/dialect.go index 212df62b2..13669287c 100644 --- a/go/dialect.go +++ b/go/dialect.go @@ -1,6 +1,6 @@ package gherkin -import messages "github.com/cucumber/messages/go/v21" +import messages "github.com/cucumber/messages/go/v22" type Dialect struct { Language string diff --git a/go/dialects_builtin.go b/go/dialects_builtin.go index c192253e6..be584f89a 100644 --- a/go/dialects_builtin.go +++ b/go/dialects_builtin.go @@ -2,7 +2,7 @@ package gherkin -import messages "github.com/cucumber/messages/go/v21" +import messages "github.com/cucumber/messages/go/v22" // Builtin dialects for af (Afrikaans), am (Armenian), an (Aragonese), ar (Arabic), ast (Asturian), az (Azerbaijani), be (Belarusian), bg (Bulgarian), bm (Malay), bs (Bosnian), ca (Catalan), cs (Czech), cy-GB (Welsh), da (Danish), de (German), el (Greek), em (Emoji), en (English), en-Scouse (Scouse), en-au (Australian), en-lol (LOLCAT), en-old (Old English), en-pirate (Pirate), en-tx (Texas), eo (Esperanto), es (Spanish), et (Estonian), fa (Persian), fi (Finnish), fr (French), ga (Irish), gj (Gujarati), gl (Galician), he (Hebrew), hi (Hindi), hr (Croatian), ht (Creole), hu (Hungarian), id (Indonesian), is (Icelandic), it (Italian), ja (Japanese), jv (Javanese), ka (Georgian), kn (Kannada), ko (Korean), lt (Lithuanian), lu (Luxemburgish), lv (Latvian), mk-Cyrl (Macedonian), mk-Latn (Macedonian (Latin)), mn (Mongolian), ne (Nepali), nl (Dutch), no (Norwegian), pa (Panjabi), pl (Polish), pt (Portuguese), ro (Romanian), ru (Russian), sk (Slovak), sl (Slovenian), sr-Cyrl (Serbian), sr-Latn (Serbian (Latin)), sv (Swedish), ta (Tamil), th (Thai), te (Telugu), tlh (Klingon), tr (Turkish), tt (Tatar), uk (Ukrainian), ur (Urdu), uz (Uzbek), vi (Vietnamese), zh-CN (Chinese simplified), zh-TW (Chinese traditional), mr (Marathi), amh (Amharic) func DialectsBuiltin() DialectProvider { diff --git a/go/dialects_builtin.go.jq b/go/dialects_builtin.go.jq index 698d38432..db224346f 100644 --- a/go/dialects_builtin.go.jq +++ b/go/dialects_builtin.go.jq @@ -88,7 +88,7 @@ ) | "// Code generated from dialects_builtin.go.jq (make dialects_builtin.go); DO NOT EDIT.\n\n" # Standard header defined at https://golang.org/s/generatedcode + "package gherkin\n\n" -+ "import messages \"github.com/cucumber/messages/go/v21\"\n\n" ++ "import messages \"github.com/cucumber/messages/go/v22\"\n\n" + "// Builtin dialects for " + ([ $root | to_entries[] | .key+" ("+.value.name+")" ] | join(", ")) + "\n" + "func DialectsBuiltin() DialectProvider {\n" + "\treturn builtinDialects\n" diff --git a/go/example_test.go b/go/example_test.go index e0ad05533..f1622c855 100644 --- a/go/example_test.go +++ b/go/example_test.go @@ -2,7 +2,7 @@ package gherkin import ( "fmt" - messages "github.com/cucumber/messages/go/v21" + messages "github.com/cucumber/messages/go/v22" "os" "strings" ) diff --git a/go/gherkin.go b/go/gherkin.go index 524d16e11..9d7e1d7f2 100644 --- a/go/gherkin.go +++ b/go/gherkin.go @@ -3,7 +3,7 @@ package gherkin import ( "bufio" "fmt" - "github.com/cucumber/messages/go/v21" + "github.com/cucumber/messages/go/v22" "io" "strings" ) diff --git a/go/go.mod b/go/go.mod index a5e67b16a..34dd2e65e 100644 --- a/go/go.mod +++ b/go/go.mod @@ -1,7 +1,6 @@ module github.com/cucumber/gherkin/go/v26 require ( - github.com/cucumber/messages/go/v21 v21.0.1 github.com/cucumber/messages/go/v22 v22.0.0 github.com/stretchr/testify v1.8.2 ) diff --git a/go/go.sum b/go/go.sum index f63f7fe8c..4da9bd688 100644 --- a/go/go.sum +++ b/go/go.sum @@ -1,11 +1,8 @@ -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/messages/go/v22 v22.0.0 h1:hk3ITpEWQ+KWDe619zYcqtaLOfcu9jgClSeps3DlNWI= github.com/cucumber/messages/go/v22 v22.0.0/go.mod h1:aZipXTKc0JnjCsXrJnuZpWhtay93k7Rn3Dee7iyPJjs= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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 h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0= -github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gofrs/uuid v4.3.1+incompatible h1:0/KbAdpx3UXAx1kEOWHJeOkpbgRFGHVgv+CFIY7dBJI= github.com/gofrs/uuid v4.3.1+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -15,8 +12,6 @@ github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSS github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= diff --git a/go/main/main.go b/go/main/main.go index a6900407c..c0bfd9c58 100644 --- a/go/main/main.go +++ b/go/main/main.go @@ -10,7 +10,7 @@ import ( "flag" "fmt" gherkin "github.com/cucumber/gherkin/go/v26" - "github.com/cucumber/messages/go/v21" + "github.com/cucumber/messages/go/v22" "os" ) diff --git a/go/messages.go b/go/messages.go index a3b7c1b71..f5ce032ca 100644 --- a/go/messages.go +++ b/go/messages.go @@ -3,7 +3,7 @@ package gherkin import ( "encoding/json" "fmt" - "github.com/cucumber/messages/go/v21" + "github.com/cucumber/messages/go/v22" "io" "io/ioutil" "strings" diff --git a/go/messages_test.go b/go/messages_test.go index 231e5307d..ad656e19d 100644 --- a/go/messages_test.go +++ b/go/messages_test.go @@ -3,7 +3,7 @@ package gherkin import ( "bytes" "encoding/json" - "github.com/cucumber/messages/go/v21" + "github.com/cucumber/messages/go/v22" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" diff --git a/go/pickles.go b/go/pickles.go index ad3fa84d2..47cf171c5 100644 --- a/go/pickles.go +++ b/go/pickles.go @@ -1,7 +1,7 @@ package gherkin import ( - "github.com/cucumber/messages/go/v21" + "github.com/cucumber/messages/go/v22" "strings" ) diff --git a/go/pickles_test.go b/go/pickles_test.go index b499e2745..1b0d77476 100644 --- a/go/pickles_test.go +++ b/go/pickles_test.go @@ -3,7 +3,7 @@ package gherkin import ( "encoding/json" "fmt" - "github.com/cucumber/messages/go/v21" + "github.com/cucumber/messages/go/v22" "os" "strings" )