parser: upgrade golang version to 1.21 (#55738)
close pingcap/tidb#55733
This commit is contained in:
@ -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",
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
package charset
|
||||
|
||||
import (
|
||||
"slices"
|
||||
"strings"
|
||||
|
||||
"github.com/pingcap/errors"
|
||||
@ -21,7 +22,6 @@ import (
|
||||
"github.com/pingcap/tidb/pkg/parser/mysql"
|
||||
"github.com/pingcap/tidb/pkg/parser/terror"
|
||||
"go.uber.org/zap"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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",
|
||||
],
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
@ -15,7 +15,6 @@ go_library(
|
||||
"//pkg/parser/mysql",
|
||||
"//pkg/parser/terror",
|
||||
"@com_github_cznic_mathutil//:mathutil",
|
||||
"@org_golang_x_exp//slices",
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@ -17,6 +17,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"slices"
|
||||
"strings"
|
||||
"unsafe"
|
||||
|
||||
@ -24,7 +25,6 @@ import (
|
||||
"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.
|
||||
|
||||
Reference in New Issue
Block a user