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 16, 2023
1 parent c8d8c3d commit 185b798
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 19 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/dialects_builtin.go.jq
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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 185b798

Please sign in to comment.