Skip to content

Commit

Permalink
go: upgrade messages to v22
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dolmen committed Jul 12, 2023
1 parent 8bc37b8 commit 4b95ace
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 19 deletions.
2 changes: 1 addition & 1 deletion go/astbuilder.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package gherkin

import (
"github.com/cucumber/messages/go/v21"
"github.com/cucumber/messages/go/v22"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion go/bench_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package gherkin

import (
messages "github.com/cucumber/messages/go/v21"
messages "github.com/cucumber/messages/go/v22"
"strings"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion go/dialect.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion go/dialects_builtin.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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 {
Expand Down
2 changes: 1 addition & 1 deletion go/dialects_builtin.go.jq
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
| add
)
| "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"
Expand Down
2 changes: 1 addition & 1 deletion go/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package gherkin

import (
"fmt"
messages "github.com/cucumber/messages/go/v21"
messages "github.com/cucumber/messages/go/v22"
"os"
"strings"
)
Expand Down
2 changes: 1 addition & 1 deletion go/gherkin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gherkin
import (
"bufio"
"fmt"
"github.com/cucumber/messages/go/v21"
"github.com/cucumber/messages/go/v22"
"io"
"strings"
)
Expand Down
1 change: 0 additions & 1 deletion go/go.mod
Original file line number Diff line number Diff line change
@@ -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
)
Expand Down
7 changes: 1 addition & 6 deletions go/go.sum
Original file line number Diff line number Diff line change
@@ -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=
Expand All @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion go/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion go/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion go/messages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion go/pickles.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package gherkin

import (
"github.com/cucumber/messages/go/v21"
"github.com/cucumber/messages/go/v22"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion go/pickles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gherkin
import (
"encoding/json"
"fmt"
"github.com/cucumber/messages/go/v21"
"github.com/cucumber/messages/go/v22"
"os"
"strings"
)
Expand Down

0 comments on commit 4b95ace

Please sign in to comment.