*: update rules_go 0.50.1 (#55933)

This commit is contained in:
Weizhen Wang
2024-09-09 17:48:31 +08:00
committed by GitHub
parent 7d75f23fed
commit b5ec2e33a3
8 changed files with 13 additions and 11 deletions

View File

@ -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",
],
)

View File

@ -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)
},
},
{

View File

@ -44,4 +44,4 @@ func TestBitMaskInUint32(t *testing.T) {
func TestUintptrCanHoldPointer(t *testing.T) {
require.Equal(t, true, sizeOfUintptr >= sizeOfUnsafePointer)
}
}

View File

@ -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) {

View File

@ -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, "_")))
}

View File

@ -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.

View File

@ -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.

View File

@ -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