*: update rules_go 0.50.1 (#55933)
This commit is contained in:
10
WORKSPACE
10
WORKSPACE
@ -37,12 +37,12 @@ versions.check(minimum_bazel_version = "6.0.0")
|
||||
|
||||
http_archive(
|
||||
name = "io_bazel_rules_go",
|
||||
sha256 = "67b4d1f517ba73e0a92eb2f57d821f2ddc21f5bc2bd7a231573f11bd8758192e",
|
||||
sha256 = "f4a9314518ca6acfa16cc4ab43b0b8ce1e4ea64b81c38d8a3772883f153346b8",
|
||||
urls = [
|
||||
"http://bazel-cache.pingcap.net:8080/bazelbuild/rules_go/releases/download/v0.50.0/rules_go-v0.50.0.zip",
|
||||
"http://ats.apps.svc/bazelbuild/rules_go/releases/download/v0.50.0/rules_go-v0.50.0.zip",
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.50.0/rules_go-v0.50.0.zip",
|
||||
"https://github.com/bazelbuild/rules_go/releases/download/v0.50.0/rules_go-v0.50.0.zip",
|
||||
"http://bazel-cache.pingcap.net:8080/bazelbuild/rules_go/releases/download/v0.50.1/rules_go-v0.50.1.zip",
|
||||
"http://ats.apps.svc/bazelbuild/rules_go/releases/download/v0.50.1/rules_go-v0.50.1.zip",
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.50.1/rules_go-v0.50.1.zip",
|
||||
"https://github.com/bazelbuild/rules_go/releases/download/v0.50.1/rules_go-v0.50.1.zip",
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@ -179,6 +179,7 @@ func assertStaticExprContextEqual(t *testing.T, sctx sessionctx.Context, exprCtx
|
||||
tm, err := ctx.CurrentTime()
|
||||
require.Equal(t, ctx.Location().String(), tm.Location().String())
|
||||
require.InDelta(t, tm1.Unix(), tm.Unix(), 2)
|
||||
require.NoError(t, err)
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@ -44,4 +44,4 @@ func TestBitMaskInUint32(t *testing.T) {
|
||||
|
||||
func TestUintptrCanHoldPointer(t *testing.T) {
|
||||
require.Equal(t, true, sizeOfUintptr >= sizeOfUnsafePointer)
|
||||
}
|
||||
}
|
||||
|
||||
@ -223,14 +223,14 @@ func TestInstancePlanCacheDMLBasic(t *testing.T) {
|
||||
insert = fmt.Sprintf("insert into t2 values (%d, %d, %d)", a, b, c)
|
||||
return
|
||||
}
|
||||
randDelete := func() (prep, set, exec, delete string) {
|
||||
randDelete := func() (prep, set, exec, del string) {
|
||||
a := rand.Intn(100)
|
||||
b := rand.Intn(100)
|
||||
c := rand.Intn(100)
|
||||
prep = `prepare stmt from 'delete from t1 where a < ? and b < ? or c < ?'`
|
||||
set = fmt.Sprintf("set @a = %d, @b = %d, @c = %d", a, b, c)
|
||||
exec = `execute stmt using @a, @b, @c`
|
||||
delete = fmt.Sprintf("delete from t2 where a < %d and b < %d or c < %d", a, b, c)
|
||||
del = fmt.Sprintf("delete from t2 where a < %d and b < %d or c < %d", a, b, c)
|
||||
return
|
||||
}
|
||||
randUpdate := func() (prep, set, exec, update string) {
|
||||
|
||||
@ -52,7 +52,7 @@ func check(ctx context.Context, t *testing.T, tk *testkit.TestKit,
|
||||
return
|
||||
}
|
||||
|
||||
var indexes []string
|
||||
indexes := make([]string, 0, len(r))
|
||||
for _, result := range r {
|
||||
indexes = append(indexes, fmt.Sprintf("%v.%v.%v", result.Database, result.Table, strings.Join(result.IndexColumns, "_")))
|
||||
}
|
||||
|
||||
@ -25,7 +25,7 @@ type unicodeCICollator struct {
|
||||
|
||||
// Clone implements Collator interface.
|
||||
func (uc *unicodeCICollator) Clone() Collator {
|
||||
return &unicodeCICollator{impl: uc.impl.Clone()}
|
||||
return &unicodeCICollator{impl: uc.impl.Clone()}
|
||||
}
|
||||
|
||||
// Compare implements Collator interface.
|
||||
|
||||
@ -25,7 +25,7 @@ type unicode0900AICICollator struct {
|
||||
|
||||
// Clone implements Collator interface.
|
||||
func (uc *unicode0900AICICollator) Clone() Collator {
|
||||
return &unicode0900AICICollator{impl: uc.impl.Clone()}
|
||||
return &unicode0900AICICollator{impl: uc.impl.Clone()}
|
||||
}
|
||||
|
||||
// Compare implements Collator interface.
|
||||
|
||||
@ -17,6 +17,7 @@ set -euo pipefail
|
||||
|
||||
go generate ./...
|
||||
pushd pkg/parser && make generate && popd
|
||||
go fmt ./...
|
||||
set +e
|
||||
diffline=$(git status -s | awk '{print $2}' | xargs grep '^// Code generated .* DO NOT EDIT\.$' 2>/dev/null)
|
||||
set -e
|
||||
|
||||
Reference in New Issue
Block a user