Skip to content

Commit

Permalink
parser: upgrade golang version to 1.21 (#55738)
Browse files Browse the repository at this point in the history
close #55733
  • Loading branch information
lance6716 authored Aug 29, 2024
1 parent 47ca7be commit 53e5a00
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion pkg/parser/charset/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ go_library(
"//pkg/parser/terror",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_log//:log",
"@org_golang_x_exp//slices",
"@org_golang_x_text//encoding",
"@org_golang_x_text//encoding/charmap",
"@org_golang_x_text//encoding/japanese",
Expand Down
2 changes: 1 addition & 1 deletion pkg/parser/charset/charset.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
package charset

import (
"slices"
"strings"

"github.com/pingcap/errors"
"github.com/pingcap/log"
"github.com/pingcap/tidb/pkg/parser/mysql"
"github.com/pingcap/tidb/pkg/parser/terror"
"go.uber.org/zap"
"golang.org/x/exp/slices"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/parser/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/pingcap/tidb/pkg/parser

go 1.19
go 1.21

require (
github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548
Expand Down
1 change: 0 additions & 1 deletion pkg/parser/goyacc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ go_library(
"@com_github_cznic_sortutil//:sortutil",
"@com_github_cznic_strutil//:strutil",
"@com_github_pingcap_errors//:errors",
"@org_golang_x_exp//slices",
"@org_modernc_parser//yacc",
"@org_modernc_y//:y",
],
Expand Down
2 changes: 1 addition & 1 deletion pkg/parser/goyacc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ import (
"log"
"os"
"runtime"
"slices"
"sort"
"strings"

"github.com/cznic/mathutil"
"github.com/cznic/sortutil"
"github.com/cznic/strutil"
"golang.org/x/exp/slices"
parser "modernc.org/parser/yacc"
"modernc.org/y"
)
Expand Down
1 change: 0 additions & 1 deletion pkg/parser/types/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ go_library(
"//pkg/parser/mysql",
"//pkg/parser/terror",
"@com_github_cznic_mathutil//:mathutil",
"@org_golang_x_exp//slices",
],
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/parser/types/field_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ import (
"encoding/json"
"fmt"
"io"
"slices"
"strings"
"unsafe"

"github.com/cznic/mathutil"
"github.com/pingcap/tidb/pkg/parser/charset"
"github.com/pingcap/tidb/pkg/parser/format"
"github.com/pingcap/tidb/pkg/parser/mysql"
"golang.org/x/exp/slices"
)

// UnspecifiedLength is unspecified length.
Expand Down

0 comments on commit 53e5a00

Please sign in to comment.