Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to go 1.21, replace golang.org/x/exp/slices with slices #4688

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,11 @@ jobs:
with:
sdk: 2.12.1

- name: Setup Go 1.19
- name: Setup Go 1.21
if: matrix.target == 'go'
uses: actions/[email protected]
with:
go-version: '^1.19'
go-version: '^1.21'

- name: Setup Swift
if: matrix.target == 'swift'
Expand Down
4 changes: 1 addition & 3 deletions runtime/Go/antlr/v4/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module github.com/antlr4-go/antlr/v4

go 1.20

require golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc
go 1.21
4 changes: 0 additions & 4 deletions runtime/Go/antlr/v4/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e h1:+WEEuIdZHnUeJJmEUjyYC2gfUMj69yZXw17EnHg/otA=
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e/go.mod h1:Kr81I6Kryrl9sr8s2FK3vxD90NdsKWRuOIl2O4CvYbA=
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc h1:mCRnTeVUjcrhlRmO0VK8a6k6Rrf6TF9htwo2pJVSjIU=
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
2 changes: 1 addition & 1 deletion runtime/Go/antlr/v4/lexer_action_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package antlr

import "golang.org/x/exp/slices"
import "slices"

// Represents an executor for a sequence of lexer actions which traversed during
// the Matching operation of a lexer rule (token).
Expand Down
Loading