Skip to content

Commit a7ef915

Browse files
authored
*: upgrade rules_go (pingcap#49693)
1 parent 6c6c127 commit a7ef915

File tree

257 files changed

+346
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+346
-30
lines changed

WORKSPACE

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ versions.check(minimum_bazel_version = "6.0.0")
1616

1717
http_archive(
1818
name = "io_bazel_rules_go",
19-
sha256 = "d6ab6b57e48c09523e93050f13698f708428cfd5e619252e369d377af6597707",
19+
sha256 = "c8035e8ae248b56040a65ad3f0b7434712e2037e5dfdcebfe97576e620422709",
2020
urls = [
21-
"http://bazel-cache.pingcap.net:8080/bazelbuild/rules_go/releases/download/v0.43.0/rules_go-v0.43.0.zip",
22-
"http://ats.apps.svc/bazelbuild/rules_go/releases/download/v0.43.0/rules_go-v0.43.0.zip",
23-
"https://github.com/bazelbuild/rules_go/releases/download/v0.43.0/rules_go-v0.43.0.zip",
24-
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.43.0/rules_go-v0.43.0.zip",
21+
"http://bazel-cache.pingcap.net:8080/bazelbuild/rules_go/releases/download/v0.44.0/rules_go-v0.44.0.zip",
22+
"http://ats.apps.svc/bazelbuild/rules_go/releases/download/v0.44.0/rules_go-v0.44.0.zip",
23+
"https://github.com/bazelbuild/rules_go/releases/download/v0.44.0/rules_go-v0.44.0.zip",
24+
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.44.0/rules_go-v0.44.0.zip",
2525
],
2626
)
2727

WORKSPACE.patchgo

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ versions.check(minimum_bazel_version = "6.0.0")
1616

1717
http_archive(
1818
name = "io_bazel_rules_go",
19-
sha256 = "278b7ff5a826f3dc10f04feaf0b70d48b68748ccd512d7f98bf442077f043fe3",
19+
sha256 = "c8035e8ae248b56040a65ad3f0b7434712e2037e5dfdcebfe97576e620422709",
2020
urls = [
21-
"http://bazel-cache.pingcap.net:8080/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
22-
"http://ats.apps.svc/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
23-
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
24-
"https://github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
21+
"http://bazel-cache.pingcap.net:8080/bazelbuild/rules_go/releases/download/v0.44.0/rules_go-v0.44.0.zip",
22+
"http://ats.apps.svc/bazelbuild/rules_go/releases/download/v0.44.0/rules_go-v0.44.0.zip",
23+
"https://github.com/bazelbuild/rules_go/releases/download/v0.44.0/rules_go-v0.44.0.zip",
24+
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.44.0/rules_go-v0.44.0.zip",
2525
],
2626
)
2727

br/pkg/backup/main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func TestMain(m *testing.M) {
2525
testsetup.SetupForCommonTest()
2626
opts := []goleak.Option{
2727
goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
28+
goleak.IgnoreTopFunction("github.com/bazelbuild/rules_go/go/tools/bzltestutil.RegisterTimeoutHandler.func1"),
2829
goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"),
2930
goleak.IgnoreTopFunction("github.com/klauspost/compress/zstd.(*blockDec).startDecoder"),
3031
goleak.IgnoreTopFunction("github.com/pingcap/goleveldb/leveldb.(*DB).mpoolDrain"),

br/pkg/checksum/main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
func TestMain(m *testing.M) {
2525
opts := []goleak.Option{
2626
goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
27+
goleak.IgnoreTopFunction("github.com/bazelbuild/rules_go/go/tools/bzltestutil.RegisterTimeoutHandler.func1"),
2728
goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"),
2829
goleak.IgnoreTopFunction("github.com/klauspost/compress/zstd.(*blockDec).startDecoder"),
2930
goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"),

br/pkg/conn/main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
func TestMain(m *testing.M) {
2525
opts := []goleak.Option{
2626
goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
27+
goleak.IgnoreTopFunction("github.com/bazelbuild/rules_go/go/tools/bzltestutil.RegisterTimeoutHandler.func1"),
2728
goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"),
2829
goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"),
2930
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),

br/pkg/lightning/checkpoints/main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func TestMain(m *testing.M) {
2525
testsetup.SetupForCommonTest()
2626
opts := []goleak.Option{
2727
goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
28+
goleak.IgnoreTopFunction("github.com/bazelbuild/rules_go/go/tools/bzltestutil.RegisterTimeoutHandler.func1"),
2829
goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"),
2930
goleak.IgnoreTopFunction("github.com/klauspost/compress/zstd.(*blockDec).startDecoder"),
3031
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),

br/pkg/lightning/common/main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func TestMain(m *testing.M) {
2525
testsetup.SetupForCommonTest()
2626
opts := []goleak.Option{
2727
goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
28+
goleak.IgnoreTopFunction("github.com/bazelbuild/rules_go/go/tools/bzltestutil.RegisterTimeoutHandler.func1"),
2829
goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"),
2930
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),
3031
goleak.IgnoreTopFunction("net.(*Resolver).lookupIPAddr.func2"),

br/pkg/lightning/mydump/main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func TestMain(m *testing.M) {
2525
testsetup.SetupForCommonTest()
2626
opts := []goleak.Option{
2727
goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
28+
goleak.IgnoreTopFunction("github.com/bazelbuild/rules_go/go/tools/bzltestutil.RegisterTimeoutHandler.func1"),
2829
goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"),
2930
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),
3031
goleak.IgnoreTopFunction("github.com/klauspost/compress/zstd.(*blockDec).startDecoder"),

br/pkg/metautil/main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
func TestMain(m *testing.M) {
2525
opts := []goleak.Option{
2626
goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
27+
goleak.IgnoreTopFunction("github.com/bazelbuild/rules_go/go/tools/bzltestutil.RegisterTimeoutHandler.func1"),
2728
goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"),
2829
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),
2930
}

br/pkg/mock/mock_cluster_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ func TestSmoke(t *testing.T) {
1414
defer goleak.VerifyNone(
1515
t,
1616
goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
17+
goleak.IgnoreTopFunction("github.com/bazelbuild/rules_go/go/tools/bzltestutil.RegisterTimeoutHandler.func1"),
1718
goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"),
1819
goleak.IgnoreTopFunction("github.com/klauspost/compress/zstd.(*blockDec).startDecoder"),
1920
goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"),

0 commit comments

Comments
 (0)