Skip to content

Commit

Permalink
*: update rules_go 0.50.1 (#55933)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei authored Sep 9, 2024
1 parent 7d75f23 commit b5ec2e3
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 11 deletions.
10 changes: 5 additions & 5 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
)

Expand Down
1 change: 1 addition & 0 deletions pkg/ddl/backfilling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/executor/join/join_row_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ func TestBitMaskInUint32(t *testing.T) {

func TestUintptrCanHoldPointer(t *testing.T) {
require.Equal(t, true, sizeOfUintptr >= sizeOfUnsafePointer)
}
}
4 changes: 2 additions & 2 deletions pkg/planner/core/casetest/instanceplancache/dml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/planner/indexadvisor/indexadvisor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "_")))
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/collate/unicode_0400_ci_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/util/collate/unicode_0900_ai_ci_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/check/check-gogenerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5ec2e3

Please sign in to comment.