Skip to content

Commit 0abc606

Browse files
authored
*: upgrade revive (pingcap#50924)
ref pingcap#50765
1 parent a9e9642 commit 0abc606

File tree

4 files changed

+81
-72
lines changed

4 files changed

+81
-72
lines changed

.github/dependabot.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ updates:
1010
allow:
1111
- dependency-name: "golang.org/*"
1212
- dependency-name: "github.com/golangci/golangci-lint"
13+
- dependency-name: "github.com/mgechev/revive"
1314
- dependency-name: "github.com/prometheus/*"
1415
- dependency-name: "go.uber.org/*"
1516
open-pull-requests-limit: 2

DEPS.bzl

+48-48
Original file line numberDiff line numberDiff line change
@@ -1893,13 +1893,13 @@ def go_deps():
18931893
name = "com_github_fatih_color",
18941894
build_file_proto_mode = "disable_global",
18951895
importpath = "github.com/fatih/color",
1896-
sha256 = "5aa7c7c5e0f12febbeb3f4f57fbca13eabf16caa1cd5a89315e7b8e187652ad9",
1897-
strip_prefix = "github.com/fatih/color@v1.15.0",
1896+
sha256 = "8719f3f5443d387546316e98105b5793d9c378dbdb9f4d60728ac4477d5aeadf",
1897+
strip_prefix = "github.com/fatih/color@v1.16.0",
18981898
urls = [
1899-
"http://bazel-cache.pingcap.net:8080/gomod/github.com/fatih/color/com_github_fatih_color-v1.15.0.zip",
1900-
"http://ats.apps.svc/gomod/github.com/fatih/color/com_github_fatih_color-v1.15.0.zip",
1901-
"https://cache.hawkingrei.com/gomod/github.com/fatih/color/com_github_fatih_color-v1.15.0.zip",
1902-
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/fatih/color/com_github_fatih_color-v1.15.0.zip",
1899+
"http://bazel-cache.pingcap.net:8080/gomod/github.com/fatih/color/com_github_fatih_color-v1.16.0.zip",
1900+
"http://ats.apps.svc/gomod/github.com/fatih/color/com_github_fatih_color-v1.16.0.zip",
1901+
"https://cache.hawkingrei.com/gomod/github.com/fatih/color/com_github_fatih_color-v1.16.0.zip",
1902+
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/fatih/color/com_github_fatih_color-v1.16.0.zip",
19031903
],
19041904
)
19051905
go_repository(
@@ -2924,13 +2924,13 @@ def go_deps():
29242924
name = "com_github_golangci_gofmt",
29252925
build_file_proto_mode = "disable_global",
29262926
importpath = "github.com/golangci/gofmt",
2927-
sha256 = "a60cb0138a40d62b71333b964a9b89af6c94a86bf3a44e707f0ddcc8bf33de29",
2928-
strip_prefix = "github.com/golangci/gofmt@v0.0.0-20231018234816-f50ced29576e",
2927+
sha256 = "ffca3283ab68db353f1e8e312c9d178cc6384db4179c5f214e553fe60380f68d",
2928+
strip_prefix = "github.com/golangci/gofmt@v0.0.0-20231019111953-be8c47862aaa",
29292929
urls = [
2930-
"http://bazel-cache.pingcap.net:8080/gomod/github.com/golangci/gofmt/com_github_golangci_gofmt-v0.0.0-20231018234816-f50ced29576e.zip",
2931-
"http://ats.apps.svc/gomod/github.com/golangci/gofmt/com_github_golangci_gofmt-v0.0.0-20231018234816-f50ced29576e.zip",
2932-
"https://cache.hawkingrei.com/gomod/github.com/golangci/gofmt/com_github_golangci_gofmt-v0.0.0-20231018234816-f50ced29576e.zip",
2933-
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/golangci/gofmt/com_github_golangci_gofmt-v0.0.0-20231018234816-f50ced29576e.zip",
2930+
"http://bazel-cache.pingcap.net:8080/gomod/github.com/golangci/gofmt/com_github_golangci_gofmt-v0.0.0-20231019111953-be8c47862aaa.zip",
2931+
"http://ats.apps.svc/gomod/github.com/golangci/gofmt/com_github_golangci_gofmt-v0.0.0-20231019111953-be8c47862aaa.zip",
2932+
"https://cache.hawkingrei.com/gomod/github.com/golangci/gofmt/com_github_golangci_gofmt-v0.0.0-20231019111953-be8c47862aaa.zip",
2933+
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/golangci/gofmt/com_github_golangci_gofmt-v0.0.0-20231019111953-be8c47862aaa.zip",
29342934
],
29352935
)
29362936
go_repository(
@@ -4991,26 +4991,26 @@ def go_deps():
49914991
name = "com_github_mattn_go_isatty",
49924992
build_file_proto_mode = "disable_global",
49934993
importpath = "github.com/mattn/go-isatty",
4994-
sha256 = "ba8bc1b864325972dc436089351b9dea6262e7fabffdc88e96afb7130ce63da3",
4995-
strip_prefix = "github.com/mattn/go-isatty@v0.0.19",
4994+
sha256 = "f2d5f89ca451577e17464b9bb596dc0d0ecececb5eaa63622c41b57cd0b7b8cc",
4995+
strip_prefix = "github.com/mattn/go-isatty@v0.0.20",
49964996
urls = [
4997-
"http://bazel-cache.pingcap.net:8080/gomod/github.com/mattn/go-isatty/com_github_mattn_go_isatty-v0.0.19.zip",
4998-
"http://ats.apps.svc/gomod/github.com/mattn/go-isatty/com_github_mattn_go_isatty-v0.0.19.zip",
4999-
"https://cache.hawkingrei.com/gomod/github.com/mattn/go-isatty/com_github_mattn_go_isatty-v0.0.19.zip",
5000-
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/mattn/go-isatty/com_github_mattn_go_isatty-v0.0.19.zip",
4997+
"http://bazel-cache.pingcap.net:8080/gomod/github.com/mattn/go-isatty/com_github_mattn_go_isatty-v0.0.20.zip",
4998+
"http://ats.apps.svc/gomod/github.com/mattn/go-isatty/com_github_mattn_go_isatty-v0.0.20.zip",
4999+
"https://cache.hawkingrei.com/gomod/github.com/mattn/go-isatty/com_github_mattn_go_isatty-v0.0.20.zip",
5000+
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/mattn/go-isatty/com_github_mattn_go_isatty-v0.0.20.zip",
50015001
],
50025002
)
50035003
go_repository(
50045004
name = "com_github_mattn_go_runewidth",
50055005
build_file_proto_mode = "disable_global",
50065006
importpath = "github.com/mattn/go-runewidth",
5007-
sha256 = "364ef5ed31f6571dad56730305b5c2288a53da06d9832680ade5e21d97a748e7",
5008-
strip_prefix = "github.com/mattn/go-runewidth@v0.0.14",
5007+
sha256 = "d97c4f0667a14957569c932a8e2488f1c43757b4dcce313897aa001f07d149b0",
5008+
strip_prefix = "github.com/mattn/go-runewidth@v0.0.15",
50095009
urls = [
5010-
"http://bazel-cache.pingcap.net:8080/gomod/github.com/mattn/go-runewidth/com_github_mattn_go_runewidth-v0.0.14.zip",
5011-
"http://ats.apps.svc/gomod/github.com/mattn/go-runewidth/com_github_mattn_go_runewidth-v0.0.14.zip",
5012-
"https://cache.hawkingrei.com/gomod/github.com/mattn/go-runewidth/com_github_mattn_go_runewidth-v0.0.14.zip",
5013-
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/mattn/go-runewidth/com_github_mattn_go_runewidth-v0.0.14.zip",
5010+
"http://bazel-cache.pingcap.net:8080/gomod/github.com/mattn/go-runewidth/com_github_mattn_go_runewidth-v0.0.15.zip",
5011+
"http://ats.apps.svc/gomod/github.com/mattn/go-runewidth/com_github_mattn_go_runewidth-v0.0.15.zip",
5012+
"https://cache.hawkingrei.com/gomod/github.com/mattn/go-runewidth/com_github_mattn_go_runewidth-v0.0.15.zip",
5013+
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/mattn/go-runewidth/com_github_mattn_go_runewidth-v0.0.15.zip",
50145014
],
50155015
)
50165016
go_repository(
@@ -5108,13 +5108,13 @@ def go_deps():
51085108
name = "com_github_mgechev_revive",
51095109
build_file_proto_mode = "disable_global",
51105110
importpath = "github.com/mgechev/revive",
5111-
sha256 = "7a0f503e05a0695231ff5db9c659de9b53a12bc6dad1bc5e7f814ec2a12ea388",
5112-
strip_prefix = "github.com/mgechev/revive@v1.3.4",
5111+
sha256 = "e11e53baa9cb0a1f5c1d1c5b2e17b1c53677b21f1461390736e814d6ff0bc149",
5112+
strip_prefix = "github.com/mgechev/revive@v1.3.6",
51135113
urls = [
5114-
"http://bazel-cache.pingcap.net:8080/gomod/github.com/mgechev/revive/com_github_mgechev_revive-v1.3.4.zip",
5115-
"http://ats.apps.svc/gomod/github.com/mgechev/revive/com_github_mgechev_revive-v1.3.4.zip",
5116-
"https://cache.hawkingrei.com/gomod/github.com/mgechev/revive/com_github_mgechev_revive-v1.3.4.zip",
5117-
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/mgechev/revive/com_github_mgechev_revive-v1.3.4.zip",
5114+
"http://bazel-cache.pingcap.net:8080/gomod/github.com/mgechev/revive/com_github_mgechev_revive-v1.3.6.zip",
5115+
"http://ats.apps.svc/gomod/github.com/mgechev/revive/com_github_mgechev_revive-v1.3.6.zip",
5116+
"https://cache.hawkingrei.com/gomod/github.com/mgechev/revive/com_github_mgechev_revive-v1.3.6.zip",
5117+
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/mgechev/revive/com_github_mgechev_revive-v1.3.6.zip",
51185118
],
51195119
)
51205120
go_repository(
@@ -6252,13 +6252,13 @@ def go_deps():
62526252
name = "com_github_rivo_uniseg",
62536253
build_file_proto_mode = "disable_global",
62546254
importpath = "github.com/rivo/uniseg",
6255-
sha256 = "740cd5803104efadf277a0f3519f0ead97e321dbd909ceeebd7c8b6b36b44754",
6256-
strip_prefix = "github.com/rivo/uniseg@v0.4.4",
6255+
sha256 = "eca600065be5a1ead37478e645ad07d70dadaf4f06f681827d81158316538b23",
6256+
strip_prefix = "github.com/rivo/uniseg@v0.4.6",
62576257
urls = [
6258-
"http://bazel-cache.pingcap.net:8080/gomod/github.com/rivo/uniseg/com_github_rivo_uniseg-v0.4.4.zip",
6259-
"http://ats.apps.svc/gomod/github.com/rivo/uniseg/com_github_rivo_uniseg-v0.4.4.zip",
6260-
"https://cache.hawkingrei.com/gomod/github.com/rivo/uniseg/com_github_rivo_uniseg-v0.4.4.zip",
6261-
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/rivo/uniseg/com_github_rivo_uniseg-v0.4.4.zip",
6258+
"http://bazel-cache.pingcap.net:8080/gomod/github.com/rivo/uniseg/com_github_rivo_uniseg-v0.4.6.zip",
6259+
"http://ats.apps.svc/gomod/github.com/rivo/uniseg/com_github_rivo_uniseg-v0.4.6.zip",
6260+
"https://cache.hawkingrei.com/gomod/github.com/rivo/uniseg/com_github_rivo_uniseg-v0.4.6.zip",
6261+
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/rivo/uniseg/com_github_rivo_uniseg-v0.4.6.zip",
62626262
],
62636263
)
62646264
go_repository(
@@ -6785,13 +6785,13 @@ def go_deps():
67856785
name = "com_github_spf13_afero",
67866786
build_file_proto_mode = "disable_global",
67876787
importpath = "github.com/spf13/afero",
6788-
sha256 = "bb6102798d19eea4d80f8d3279a6b8fe4ec4cad46d2c90c36817ed969c2115e1",
6789-
strip_prefix = "github.com/spf13/afero@v1.8.2",
6788+
sha256 = "70ae59086db6bfb64b509f597c8eff3d7ab56f8f0052f947f67b68899da3491c",
6789+
strip_prefix = "github.com/spf13/afero@v1.11.0",
67906790
urls = [
6791-
"http://bazel-cache.pingcap.net:8080/gomod/github.com/spf13/afero/com_github_spf13_afero-v1.8.2.zip",
6792-
"http://ats.apps.svc/gomod/github.com/spf13/afero/com_github_spf13_afero-v1.8.2.zip",
6793-
"https://cache.hawkingrei.com/gomod/github.com/spf13/afero/com_github_spf13_afero-v1.8.2.zip",
6794-
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/spf13/afero/com_github_spf13_afero-v1.8.2.zip",
6791+
"http://bazel-cache.pingcap.net:8080/gomod/github.com/spf13/afero/com_github_spf13_afero-v1.11.0.zip",
6792+
"http://ats.apps.svc/gomod/github.com/spf13/afero/com_github_spf13_afero-v1.11.0.zip",
6793+
"https://cache.hawkingrei.com/gomod/github.com/spf13/afero/com_github_spf13_afero-v1.11.0.zip",
6794+
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/spf13/afero/com_github_spf13_afero-v1.11.0.zip",
67956795
],
67966796
)
67976797
go_repository(
@@ -7071,13 +7071,13 @@ def go_deps():
70717071
name = "com_github_timakin_bodyclose",
70727072
build_file_proto_mode = "disable_global",
70737073
importpath = "github.com/timakin/bodyclose",
7074-
sha256 = "0d3122d8d014d1d279f064b8affbaa0c4b24b196111cdd889221d57f7beda7a9",
7075-
strip_prefix = "github.com/timakin/bodyclose@v0.0.0-20230421092635-574207250966",
7074+
sha256 = "3de254c19ef794681171109fb1776bdbb927dd857f314ce49ebcc18e61ea404f",
7075+
strip_prefix = "github.com/timakin/bodyclose@v0.0.0-20240125160201-f835fa56326a",
70767076
urls = [
7077-
"http://bazel-cache.pingcap.net:8080/gomod/github.com/timakin/bodyclose/com_github_timakin_bodyclose-v0.0.0-20230421092635-574207250966.zip",
7078-
"http://ats.apps.svc/gomod/github.com/timakin/bodyclose/com_github_timakin_bodyclose-v0.0.0-20230421092635-574207250966.zip",
7079-
"https://cache.hawkingrei.com/gomod/github.com/timakin/bodyclose/com_github_timakin_bodyclose-v0.0.0-20230421092635-574207250966.zip",
7080-
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/timakin/bodyclose/com_github_timakin_bodyclose-v0.0.0-20230421092635-574207250966.zip",
7077+
"http://bazel-cache.pingcap.net:8080/gomod/github.com/timakin/bodyclose/com_github_timakin_bodyclose-v0.0.0-20240125160201-f835fa56326a.zip",
7078+
"http://ats.apps.svc/gomod/github.com/timakin/bodyclose/com_github_timakin_bodyclose-v0.0.0-20240125160201-f835fa56326a.zip",
7079+
"https://cache.hawkingrei.com/gomod/github.com/timakin/bodyclose/com_github_timakin_bodyclose-v0.0.0-20240125160201-f835fa56326a.zip",
7080+
"https://storage.googleapis.com/pingcapmirror/gomod/github.com/timakin/bodyclose/com_github_timakin_bodyclose-v0.0.0-20240125160201-f835fa56326a.zip",
70817081
],
70827082
)
70837083
go_repository(

go.mod

+7-7
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ require (
3939
github.com/dolthub/swiss v0.2.1
4040
github.com/emirpasic/gods v1.18.1
4141
github.com/fatanugraha/noloopclosure v0.1.1
42-
github.com/fatih/color v1.15.0
42+
github.com/fatih/color v1.16.0
4343
github.com/felixge/fgprof v0.9.3
4444
github.com/fsouza/fake-gcs-server v1.44.0
4545
github.com/go-ldap/ldap/v3 v3.4.4
@@ -48,7 +48,7 @@ require (
4848
github.com/gogo/protobuf v1.3.2
4949
github.com/golang/protobuf v1.5.3
5050
github.com/golang/snappy v0.0.4
51-
github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e
51+
github.com/golangci/gofmt v0.0.0-20231019111953-be8c47862aaa
5252
github.com/golangci/golangci-lint v1.55.2
5353
github.com/golangci/gosec v0.0.0-20180901114220-8afd9cbb6cfb
5454
github.com/golangci/misspell v0.4.1
@@ -74,7 +74,7 @@ require (
7474
github.com/ks3sdklib/aws-sdk-go v1.2.9
7575
github.com/kyoh86/exportloopref v0.1.11
7676
github.com/lestrrat-go/jwx/v2 v2.0.19
77-
github.com/mgechev/revive v1.3.4
77+
github.com/mgechev/revive v1.3.6
7878
github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7
7979
github.com/ngaut/sync2 v0.0.0-20141008032647-7a24ed77b2ef
8080
github.com/nishanths/predeclared v0.2.2
@@ -109,7 +109,7 @@ require (
109109
github.com/tiancaiamao/appdash v0.0.0-20181126055449-889f96f722a2
110110
github.com/tikv/client-go/v2 v2.0.8-0.20240125030910-e6f5a45b002e
111111
github.com/tikv/pd/client v0.0.0-20240126020320-567c7d43a008
112-
github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966
112+
github.com/timakin/bodyclose v0.0.0-20240125160201-f835fa56326a
113113
github.com/twmb/murmur3 v1.1.6
114114
github.com/uber/jaeger-client-go v2.22.1+incompatible
115115
github.com/vbauerster/mpb/v7 v7.5.3
@@ -249,8 +249,8 @@ require (
249249
github.com/lestrrat-go/option v1.0.1 // indirect
250250
github.com/lufia/plan9stats v0.0.0-20230326075908-cb1d2100619a // indirect
251251
github.com/mattn/go-colorable v0.1.13 // indirect
252-
github.com/mattn/go-isatty v0.0.19 // indirect
253-
github.com/mattn/go-runewidth v0.0.14 // indirect
252+
github.com/mattn/go-isatty v0.0.20 // indirect
253+
github.com/mattn/go-runewidth v0.0.15 // indirect
254254
github.com/mitchellh/copystructure v1.0.0 // indirect
255255
github.com/mitchellh/reflectwalk v1.0.1 // indirect
256256
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
@@ -268,7 +268,7 @@ require (
268268
github.com/prometheus/procfs v0.12.0 // indirect
269269
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
270270
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
271-
github.com/rivo/uniseg v0.4.4 // indirect
271+
github.com/rivo/uniseg v0.4.6 // indirect
272272
github.com/rogpeppe/go-internal v1.11.0 // indirect
273273
github.com/shoenig/go-m1cpu v0.1.6 // indirect
274274
github.com/shopspring/decimal v1.2.0 // indirect

0 commit comments

Comments
 (0)