diff --git a/DEPS.bzl b/DEPS.bzl index d0cd61e50322c..a35964112c191 100644 --- a/DEPS.bzl +++ b/DEPS.bzl @@ -1,69 +1,119 @@ load("@bazel_gazelle//:deps.bzl", "go_repository") def go_deps(): + # NOTE: We ensure that we pin to these specific dependencies by calling + # this function FIRST, before calls to pull in dependencies for + # third-party libraries (e.g. rules_go, gazelle, etc.) go_repository( name = "cc_mvdan_gofumpt", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "mvdan.cc/gofumpt", - sum = "h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM=", - version = "v0.4.0", - ) - go_repository( - name = "cc_mvdan_interfacer", - build_file_proto_mode = "disable", - importpath = "mvdan.cc/interfacer", - sum = "h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I=", - version = "v0.0.0-20180901003855-c20040233aed", - ) - go_repository( - name = "cc_mvdan_lint", - build_file_proto_mode = "disable", - importpath = "mvdan.cc/lint", - sum = "h1:DxJ5nJdkhDlLok9K6qO+5290kphDJbHOQO1DFFFTeBo=", - version = "v0.0.0-20170908181259-adc824a0674b", + sum = "h1:bg91ttqXmi9y2xawvkuMXyvAA/1ZGJqYAEGjXuP0JXU=", + version = "v0.7.0", ) go_repository( name = "cc_mvdan_unparam", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "mvdan.cc/unparam", - sum = "h1:seuXWbRB1qPrS3NQnHmFKLJLtskWyueeIzmLXghMGgk=", - version = "v0.0.0-20220706161116-678bad134442", + sum = "h1:lMpcwN6GxNbWtbpI1+xzFLSW8XzX0u72NttUGVFjO3U=", + version = "v0.0.0-20240528143540-8a5130ca722f", ) go_repository( name = "co_honnef_go_tools", build_file_proto_mode = "disable_global", importpath = "honnef.co/go/tools", - sum = "h1:oDx7VAwstgpYpb3wv0oxiZlxY+foCpRAwY7Vk6XpAgA=", - version = "v0.3.3", + sum = "h1:4bH5o3b5ZULQ4UrBmP+63W9r7qIkqJClEA9ko5YKx+I=", + version = "v0.5.1", + ) + go_repository( + name = "com_4d63_gocheckcompilerdirectives", + build_file_proto_mode = "disable_global", + importpath = "4d63.com/gocheckcompilerdirectives", + sum = "h1:AHcMYuw56NPjq/2y615IGg2kYkBdTvOaojYCBcRE7MA=", + version = "v1.2.1", ) go_repository( name = "com_4d63_gochecknoglobals", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "4d63.com/gochecknoglobals", - sum = "h1:zeZSRqj5yCg28tCkIV/z/lWbwvNm5qnKVS15PI8nhD0=", - version = "v0.1.0", + sum = "h1:1eiorGsgHOFOuoOiJDy2psSrQbRdIHrlge0IJIkUgDc=", + version = "v0.2.1", + ) + go_repository( + name = "com_github_4meepo_tagalign", + build_file_proto_mode = "disable_global", + importpath = "github.com/4meepo/tagalign", + sum = "h1:P51VcvBnf04YkHzjfclN6BbsopfJR5rxs1n+5zHt+w8=", + version = "v1.3.4", ) go_repository( name = "com_github_abirdcfly_dupword", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/Abirdcfly/dupword", - sum = "h1:z14n0yytA3wNO2gpCD/jVtp/acEXPGmYu0esewpBt6Q=", - version = "v0.0.7", + sum = "h1:9Pa1NuAsZvpFPi9Pqkd93I7LIYRURj+A//dFd5tgBeE=", + version = "v0.1.3", ) go_repository( name = "com_github_acarl005_stripansi", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/acarl005/stripansi", sum = "h1:licZJFw2RwpHMqeKTCYkitsPqHNxTmd4SNR5r94FGM8=", version = "v0.0.0-20180116102854-5a71ef0e047d", ) go_repository( - name = "com_github_ajg_form", + name = "com_github_aclements_go_moremath", build_file_proto_mode = "disable_global", + importpath = "github.com/aclements/go-moremath", + sha256 = "d83b2a13bee30e772c4f414ccb02c8fec9a4d614e814e1a2c740a6567974861d", + strip_prefix = "github.com/aclements/go-moremath@v0.0.0-20210112150236-f10218a38794", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/aclements/go-moremath/com_github_aclements_go_moremath-v0.0.0-20210112150236-f10218a38794.zip", + "http://ats.apps.svc/gomod/github.com/aclements/go-moremath/com_github_aclements_go_moremath-v0.0.0-20210112150236-f10218a38794.zip", + "https://cache.hawkingrei.com/gomod/github.com/aclements/go-moremath/com_github_aclements_go_moremath-v0.0.0-20210112150236-f10218a38794.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/aclements/go-moremath/com_github_aclements_go_moremath-v0.0.0-20210112150236-f10218a38794.zip", + ], + ) + go_repository( + name = "com_github_acomagu_bufpipe", + build_file_proto_mode = "disable", + importpath = "github.com/acomagu/bufpipe", + sum = "h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ=", + version = "v1.0.4", + ) + go_repository( + name = "com_github_ajg_form", + build_file_proto_mode = "disable", importpath = "github.com/ajg/form", sum = "h1:t9c7v8JUKu/XxOGBU0yjNpaMloxGEJhUkqFRq0ibGeU=", version = "v1.5.1", ) + + go_repository( + name = "com_github_ajstarks_deck", + build_file_proto_mode = "disable_global", + importpath = "github.com/ajstarks/deck", + sha256 = "68bad2e38bf5b01e6bbd7b9bbdba35da94dac72bc4ba41f8ea5fe92aa836a3c3", + strip_prefix = "github.com/ajstarks/deck@v0.0.0-20200831202436-30c9fc6549a9", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/ajstarks/deck/com_github_ajstarks_deck-v0.0.0-20200831202436-30c9fc6549a9.zip", + "http://ats.apps.svc/gomod/github.com/ajstarks/deck/com_github_ajstarks_deck-v0.0.0-20200831202436-30c9fc6549a9.zip", + "https://cache.hawkingrei.com/gomod/github.com/ajstarks/deck/com_github_ajstarks_deck-v0.0.0-20200831202436-30c9fc6549a9.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/ajstarks/deck/com_github_ajstarks_deck-v0.0.0-20200831202436-30c9fc6549a9.zip", + ], + ) + go_repository( + name = "com_github_ajstarks_deck_generate", + build_file_proto_mode = "disable_global", + importpath = "github.com/ajstarks/deck/generate", + sha256 = "dce1cbc4cb42ac26512dd0bccf997baeea99fb4595cd419a28e8566d2d7c7ba8", + strip_prefix = "github.com/ajstarks/deck/generate@v0.0.0-20210309230005-c3f852c02e19", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/ajstarks/deck/generate/com_github_ajstarks_deck_generate-v0.0.0-20210309230005-c3f852c02e19.zip", + "http://ats.apps.svc/gomod/github.com/ajstarks/deck/generate/com_github_ajstarks_deck_generate-v0.0.0-20210309230005-c3f852c02e19.zip", + "https://cache.hawkingrei.com/gomod/github.com/ajstarks/deck/generate/com_github_ajstarks_deck_generate-v0.0.0-20210309230005-c3f852c02e19.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/ajstarks/deck/generate/com_github_ajstarks_deck_generate-v0.0.0-20210309230005-c3f852c02e19.zip", + ], + ) go_repository( name = "com_github_ajstarks_svgo", build_file_proto_mode = "disable_global", @@ -72,8 +122,22 @@ def go_deps(): version = "v0.0.0-20180226025133-644b8db467af", ) go_repository( - name = "com_github_alecthomas_template", + name = "com_github_alecthomas_go_check_sumtype", + build_file_proto_mode = "disable_global", + importpath = "github.com/alecthomas/go-check-sumtype", + sum = "h1:Bo+e4DFf3rs7ME9w/0SU/g6nmzJaphduP8Cjiz0gbwY=", + version = "v0.2.0", + ) + go_repository( + name = "com_github_alecthomas_kingpin_v2", build_file_proto_mode = "disable_global", + importpath = "github.com/alecthomas/kingpin/v2", + sum = "h1:f48lwail6p8zpO1bC4TxtqACaGqHYA22qkHjHpqDjYY=", + version = "v2.4.0", + ) + go_repository( + name = "com_github_alecthomas_template", + build_file_proto_mode = "disable", importpath = "github.com/alecthomas/template", sum = "h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM=", version = "v0.0.0-20190718012654-fb15b899a751", @@ -82,37 +146,78 @@ def go_deps(): name = "com_github_alecthomas_units", build_file_proto_mode = "disable_global", importpath = "github.com/alecthomas/units", - sum = "h1:UQZhZ2O0vMHr2cI+DC1Mbh0TJxzA3RcLoMsFw+aXw7E=", - version = "v0.0.0-20190924025748-f65c72e2690d", + sum = "h1:s6gZFSlWYmbqAuRjVTiNNhvNRfY2Wxp9nhfyel4rklc=", + version = "v0.0.0-20211218093645-b94a6e3cc137", + ) + go_repository( + name = "com_github_alexbrainman_sspi", + build_file_proto_mode = "disable_global", + importpath = "github.com/alexbrainman/sspi", + sha256 = "f094ecfc4554a9ca70f0ade41747123f3161a15fb1a6112305b99731befc8648", + strip_prefix = "github.com/alexbrainman/sspi@v0.0.0-20210105120005-909beea2cc74", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/alexbrainman/sspi/com_github_alexbrainman_sspi-v0.0.0-20210105120005-909beea2cc74.zip", + "http://ats.apps.svc/gomod/github.com/alexbrainman/sspi/com_github_alexbrainman_sspi-v0.0.0-20210105120005-909beea2cc74.zip", + "https://cache.hawkingrei.com/gomod/github.com/alexbrainman/sspi/com_github_alexbrainman_sspi-v0.0.0-20210105120005-909beea2cc74.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/alexbrainman/sspi/com_github_alexbrainman_sspi-v0.0.0-20210105120005-909beea2cc74.zip", + ], + ) + go_repository( + name = "com_github_alexkohler_nakedret_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/alexkohler/nakedret/v2", + sum = "h1:fP5qLgtwbx9EJE8dGEERT02YwS8En4r9nnZ71RK+EVU=", + version = "v2.0.5", ) go_repository( name = "com_github_alexkohler_prealloc", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/alexkohler/prealloc", sum = "h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pOcUuw=", version = "v1.0.0", ) go_repository( name = "com_github_alingse_asasalint", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/alingse/asasalint", sum = "h1:SFwnQXJ49Kx/1GghOFz1XGqHYKp21Kq1nHad/0WQRnw=", version = "v0.0.11", ) go_repository( name = "com_github_aliyun_alibaba_cloud_sdk_go", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/aliyun/alibaba-cloud-sdk-go", sum = "h1:Q/yk4z/cHUVZfgTqtD09qeYBxHwshQAjVRX73qs8UH0=", version = "v1.61.1581", ) go_repository( name = "com_github_andreasbriese_bbloom", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/AndreasBriese/bbloom", sum = "h1:HD8gA2tkByhMAwYaFAX9w2l7vxvBQ5NMoxDrkhqhtn4=", version = "v0.0.0-20190306092124-e2d15f34fcf9", ) + + go_repository( + name = "com_github_andybalholm_brotli", + build_file_proto_mode = "disable_global", + importpath = "github.com/andybalholm/brotli", + sha256 = "f5ae9b2f3260a22ff3f3445fff081d3ef12ee1aa3c0b87eadc59b5a8fb2cdef0", + strip_prefix = "github.com/andybalholm/brotli@v1.0.5", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/andybalholm/brotli/com_github_andybalholm_brotli-v1.0.5.zip", + "http://ats.apps.svc/gomod/github.com/andybalholm/brotli/com_github_andybalholm_brotli-v1.0.5.zip", + "https://cache.hawkingrei.com/gomod/github.com/andybalholm/brotli/com_github_andybalholm_brotli-v1.0.5.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/andybalholm/brotli/com_github_andybalholm_brotli-v1.0.5.zip", + ], + ) + go_repository( + name = "com_github_anmitsu_go_shlex", + build_file_proto_mode = "disable", + importpath = "github.com/anmitsu/go-shlex", + sum = "h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8=", + version = "v0.0.0-20200514113438-38f4b401e2be", + ) go_repository( name = "com_github_antihax_optional", build_file_proto_mode = "disable_global", @@ -122,17 +227,44 @@ def go_deps(): ) go_repository( name = "com_github_antonboom_errname", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/Antonboom/errname", - sum = "h1:mBBDKvEYwPl4WFFNwec1CZO096G6vzK9vvDQzAwkako=", - version = "v0.1.7", + sum = "h1:oJOOWR07vS1kRusl6YRSlat7HFnb3mSfMl6sDMRoTBA=", + version = "v1.0.0", ) go_repository( name = "com_github_antonboom_nilnil", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/Antonboom/nilnil", - sum = "h1:PHhrh5ANKFWRBh7TdYmyyq2gyT2lotnvFvvFbylF81Q=", - version = "v0.1.1", + sum = "h1:n+v+B12dsE5tbAqRODXmEKfZv9j2KcTBrp+LkoM4HZk=", + version = "v1.0.0", + ) + go_repository( + name = "com_github_antonboom_testifylint", + build_file_proto_mode = "disable_global", + importpath = "github.com/Antonboom/testifylint", + sum = "h1:dlUIsDMtCrZWUnvkaCz3quJCoIjaGi41GzjPBGkkJ8A=", + version = "v1.5.0", + ) + go_repository( + name = "com_github_apache_arrow_go_v12", + build_file_proto_mode = "disable_global", + importpath = "github.com/apache/arrow/go/v12", + sha256 = "5eb05ed9c2c5e164503b00912b7b2456400578de29e7e8a8956a41acd861ab5b", + strip_prefix = "github.com/apache/arrow/go/v12@v12.0.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/apache/arrow/go/v12/com_github_apache_arrow_go_v12-v12.0.1.zip", + "http://ats.apps.svc/gomod/github.com/apache/arrow/go/v12/com_github_apache_arrow_go_v12-v12.0.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/apache/arrow/go/v12/com_github_apache_arrow_go_v12-v12.0.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/apache/arrow/go/v12/com_github_apache_arrow_go_v12-v12.0.1.zip", + ], + ) + go_repository( + name = "com_github_apache_skywalking_eyes", + build_file_proto_mode = "disable_global", + importpath = "github.com/apache/skywalking-eyes", + sum = "h1:O13kdRU6FCEZevfD01mdhTgCZLLfPZIQ0GXZrLl7FpQ=", + version = "v0.4.0", ) go_repository( name = "com_github_apache_thrift", @@ -143,7 +275,7 @@ def go_deps(): ) go_repository( name = "com_github_armon_circbuf", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/armon/circbuf", sum = "h1:QEF07wC0T1rKkctt1RINW/+RMTVmiwxETico2l3gxJA=", version = "v0.0.0-20150827004946-bbbad097214e", @@ -164,35 +296,35 @@ def go_deps(): ) go_repository( name = "com_github_armon_go_radix", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/armon/go-radix", sum = "h1:BUAU3CGlLvorLI26FmByPp2eC2qla6E1Tw+scpcg/to=", version = "v0.0.0-20180808171621-7fddfc383310", ) go_repository( name = "com_github_armon_go_socks5", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/armon/go-socks5", sum = "h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=", version = "v0.0.0-20160902184237-e75332964ef5", ) go_repository( name = "com_github_asaskevich_govalidator", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/asaskevich/govalidator", sum = "h1:idn718Q4B6AGu/h5Sxe66HYVdqdGu2l9Iebqhi/AEoA=", version = "v0.0.0-20190424111038-f61b66f89f4a", ) go_repository( name = "com_github_ashanbrown_forbidigo", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/ashanbrown/forbidigo", - sum = "h1:VkYIwb/xxdireGAdJNZoo24O4lmnEWkactplBlWTShc=", - version = "v1.3.0", + sum = "h1:D3aewfM37Yb3pxHujIPSpTf6oQk9sc9WZi8gerOIVIY=", + version = "v1.6.0", ) go_repository( name = "com_github_ashanbrown_makezero", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/ashanbrown/makezero", sum = "h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5FcB28s=", version = "v1.1.1", @@ -205,8 +337,21 @@ def go_deps(): version = "v1.44.259", ) go_repository( - name = "com_github_aymerick_raymond", + name = "com_github_aymerick_douceur", build_file_proto_mode = "disable_global", + importpath = "github.com/aymerick/douceur", + sha256 = "dcbf69760cc1a8b32384495438e1086e4c3d669b2ebc0debd92e1865ffd6be60", + strip_prefix = "github.com/aymerick/douceur@v0.2.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/aymerick/douceur/com_github_aymerick_douceur-v0.2.0.zip", + "http://ats.apps.svc/gomod/github.com/aymerick/douceur/com_github_aymerick_douceur-v0.2.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/aymerick/douceur/com_github_aymerick_douceur-v0.2.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/aymerick/douceur/com_github_aymerick_douceur-v0.2.0.zip", + ], + ) + go_repository( + name = "com_github_aymerick_raymond", + build_file_proto_mode = "disable", importpath = "github.com/aymerick/raymond", sum = "h1:Ppm0npCCsmuR9oQaBtRuZcmILVE74aXE+AmrJj8L2ns=", version = "v2.0.3-0.20180322193309-b565731e1464+incompatible", @@ -222,29 +367,69 @@ def go_deps(): name = "com_github_azure_azure_sdk_for_go_sdk_azcore", build_file_proto_mode = "disable_global", importpath = "github.com/Azure/azure-sdk-for-go/sdk/azcore", - sum = "h1:KQgdWmEOmaJKxaUUZwHAYh12t+b+ZJf8q3friycK1kA=", - version = "v0.20.0", + sum = "h1:1nGuui+4POelzDwI7RG56yfQJHCnKvwfMoU7VsEp+Zg=", + version = "v1.12.0", ) go_repository( name = "com_github_azure_azure_sdk_for_go_sdk_azidentity", build_file_proto_mode = "disable_global", importpath = "github.com/Azure/azure-sdk-for-go/sdk/azidentity", - sum = "h1:VBvHGLJbaY0+c66NZHdS9cgjHVYSH6DDa0XJMyrblsI=", - version = "v0.12.0", + sum = "h1:tfLQ34V6F7tVSwoTf/4lH5sE0o6eCJuNDTmH09nDpbc=", + version = "v1.7.0", + ) + go_repository( + name = "com_github_azure_azure_sdk_for_go_sdk_azidentity_cache", + build_file_proto_mode = "disable", + importpath = "github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache", + sum = "h1:+m0M/LFxN43KvULkDNfdXOgrjtg6UYJPFBJyuEcRCAw=", + version = "v0.3.0", ) go_repository( name = "com_github_azure_azure_sdk_for_go_sdk_internal", build_file_proto_mode = "disable_global", importpath = "github.com/Azure/azure-sdk-for-go/sdk/internal", - sum = "h1:BUYIbDf/mMZ8945v3QkG3OuqGVyS4Iek0AOLwdRAYoc=", - version = "v0.8.1", + sum = "h1:ywEEhmNahHBihViHepv3xPBn1663uRv2t2q/ESv9seY=", + version = "v1.10.0", + ) + go_repository( + name = "com_github_azure_azure_sdk_for_go_sdk_resourcemanager_compute_armcompute_v5", + build_file_proto_mode = "disable_global", + importpath = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5", + sha256 = "f47869d09394fbe965b013f539bf7c1c65af9833dbfea0c12f7b6a081870b6f6", + strip_prefix = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5@v5.4.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/com_github_azure_azure_sdk_for_go_sdk_resourcemanager_compute_armcompute_v5-v5.4.0.zip", + "http://ats.apps.svc/gomod/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/com_github_azure_azure_sdk_for_go_sdk_resourcemanager_compute_armcompute_v5-v5.4.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/com_github_azure_azure_sdk_for_go_sdk_resourcemanager_compute_armcompute_v5-v5.4.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/com_github_azure_azure_sdk_for_go_sdk_resourcemanager_compute_armcompute_v5-v5.4.0.zip", + ], + ) + go_repository( + name = "com_github_azure_azure_sdk_for_go_sdk_resourcemanager_network_armnetwork_v4", + build_file_proto_mode = "disable_global", + importpath = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4", + sha256 = "e002f35fb0d7200d8cd31bc6b1e91e56400ddc3f50887e8795285268ac5bdaff", + strip_prefix = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4@v4.3.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4/com_github_azure_azure_sdk_for_go_sdk_resourcemanager_network_armnetwork_v4-v4.3.0.zip", + "http://ats.apps.svc/gomod/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4/com_github_azure_azure_sdk_for_go_sdk_resourcemanager_network_armnetwork_v4-v4.3.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4/com_github_azure_azure_sdk_for_go_sdk_resourcemanager_network_armnetwork_v4-v4.3.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4/com_github_azure_azure_sdk_for_go_sdk_resourcemanager_network_armnetwork_v4-v4.3.0.zip", + ], + ) + go_repository( + name = "com_github_azure_azure_sdk_for_go_sdk_resourcemanager_storage_armstorage", + build_file_proto_mode = "disable", + importpath = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage", + sum = "h1:PiSrjRPpkQNjrM8H0WwKMnZUdu1RGMtd/LdGKUrOo+c=", + version = "v1.6.0", ) go_repository( name = "com_github_azure_azure_sdk_for_go_sdk_storage_azblob", build_file_proto_mode = "disable_global", importpath = "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob", - sum = "h1:62Ew5xXg5UCGIXDOM7+y4IL5/6mQJq1nenhBCJAeGX8=", - version = "v0.2.0", + sum = "h1:u/LLAOFgsMv7HmNL4Qufg58y+qElGOt5qv0z1mURkRY=", + version = "v1.0.0", ) go_repository( name = "com_github_azure_go_autorest", @@ -253,6 +438,73 @@ def go_deps(): sum = "h1:Q2feRPMlcfVcqz3pF87PJzkm5lZrL+x6BDtzhODzNJM=", version = "v11.2.8+incompatible", ) + + go_repository( + name = "com_github_azure_go_ntlmssp", + build_file_proto_mode = "disable_global", + importpath = "github.com/Azure/go-ntlmssp", + sha256 = "cc6d4e9caf938a71c9217f3aa8bdbb1c072faff3444bb680a2759c947da2085c", + strip_prefix = "github.com/Azure/go-ntlmssp@v0.0.0-20221128193559-754e69321358", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/Azure/go-ntlmssp/com_github_azure_go_ntlmssp-v0.0.0-20221128193559-754e69321358.zip", + "http://ats.apps.svc/gomod/github.com/Azure/go-ntlmssp/com_github_azure_go_ntlmssp-v0.0.0-20221128193559-754e69321358.zip", + "https://cache.hawkingrei.com/gomod/github.com/Azure/go-ntlmssp/com_github_azure_go_ntlmssp-v0.0.0-20221128193559-754e69321358.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/Azure/go-ntlmssp/com_github_azure_go_ntlmssp-v0.0.0-20221128193559-754e69321358.zip", + ], + ) + go_repository( + name = "com_github_azuread_microsoft_authentication_extensions_for_go_cache", + build_file_proto_mode = "disable", + importpath = "github.com/AzureAD/microsoft-authentication-extensions-for-go/cache", + sum = "h1:WJTmL004Abzc5wDB5VtZG2PJk5ndYDgVacGqfirKxjM=", + version = "v0.1.1", + ) + go_repository( + name = "com_github_azuread_microsoft_authentication_library_for_go", + build_file_proto_mode = "disable_global", + importpath = "github.com/AzureAD/microsoft-authentication-library-for-go", + sum = "h1:gUDtaZk8heteyfdmv+pcfHvhR9llnh7c7GMwZ8RVG04=", + version = "v1.3.1", + ) + go_repository( + name = "com_github_bazelbuild_buildtools", + build_file_proto_mode = "disable_global", + importpath = "github.com/bazelbuild/buildtools", + sha256 = "5ec0befc70edf16728838d94b240dfd01ba576f8a3901de84c0861c0ce2b8db6", + strip_prefix = "github.com/bazelbuild/buildtools@v0.0.0-20230926111657-7d855c59baeb", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/bazelbuild/buildtools/com_github_bazelbuild_buildtools-v0.0.0-20230926111657-7d855c59baeb.zip", + "http://ats.apps.svc/gomod/github.com/bazelbuild/buildtools/com_github_bazelbuild_buildtools-v0.0.0-20230926111657-7d855c59baeb.zip", + "https://cache.hawkingrei.com/gomod/github.com/bazelbuild/buildtools/com_github_bazelbuild_buildtools-v0.0.0-20230926111657-7d855c59baeb.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/bazelbuild/buildtools/com_github_bazelbuild_buildtools-v0.0.0-20230926111657-7d855c59baeb.zip", + ], + ) + go_repository( + name = "com_github_bazelbuild_rules_go", + build_file_proto_mode = "disable_global", + importpath = "github.com/bazelbuild/rules_go", + sha256 = "f39abb77746d12e017795acf52262756e1c74fd2105d6ad8164d10a27407f2c0", + strip_prefix = "github.com/bazelbuild/rules_go@v0.42.1-0.20231101215950-df20c987afcb", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/bazelbuild/rules_go/com_github_bazelbuild_rules_go-v0.42.1-0.20231101215950-df20c987afcb.zip", + "http://ats.apps.svc/gomod/github.com/bazelbuild/rules_go/com_github_bazelbuild_rules_go-v0.42.1-0.20231101215950-df20c987afcb.zip", + "https://cache.hawkingrei.com/gomod/github.com/bazelbuild/rules_go/com_github_bazelbuild_rules_go-v0.42.1-0.20231101215950-df20c987afcb.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/bazelbuild/rules_go/com_github_bazelbuild_rules_go-v0.42.1-0.20231101215950-df20c987afcb.zip", + ], + ) + go_repository( + name = "com_github_bboreham_go_loser", + build_file_proto_mode = "disable_global", + importpath = "github.com/bboreham/go-loser", + sha256 = "d39c329a916c6e3af23a77ed3615f49726258cf3fa7b126c5ad06e7a5c3cbb4f", + strip_prefix = "github.com/bboreham/go-loser@v0.0.0-20230920113527-fcc2c21820a3", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/bboreham/go-loser/com_github_bboreham_go_loser-v0.0.0-20230920113527-fcc2c21820a3.zip", + "http://ats.apps.svc/gomod/github.com/bboreham/go-loser/com_github_bboreham_go_loser-v0.0.0-20230920113527-fcc2c21820a3.zip", + "https://cache.hawkingrei.com/gomod/github.com/bboreham/go-loser/com_github_bboreham_go_loser-v0.0.0-20230920113527-fcc2c21820a3.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/bboreham/go-loser/com_github_bboreham_go_loser-v0.0.0-20230920113527-fcc2c21820a3.zip", + ], + ) go_repository( name = "com_github_benbjohnson_clock", build_file_proto_mode = "disable_global", @@ -269,7 +521,7 @@ def go_deps(): ) go_repository( name = "com_github_bgentry_speakeasy", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/bgentry/speakeasy", sum = "h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY=", version = "v0.1.0", @@ -281,19 +533,33 @@ def go_deps(): sum = "h1:tYoz1OeRpx3dJZlh9T4dQt4kAndcmpl+VNdzbSgFC/0=", version = "v0.0.0-20160505134755-913427a1d5e8", ) + go_repository( - name = "com_github_bketelsen_crypt", + name = "com_github_bits_and_blooms_bitset", build_file_proto_mode = "disable_global", + importpath = "github.com/bits-and-blooms/bitset", + sha256 = "29542828d3fa62199ac8fe6b69ed5284502b52549e1c64dcdbeeed4eab981a37", + strip_prefix = "github.com/bits-and-blooms/bitset@v1.14.3", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/bits-and-blooms/bitset/com_github_bits_and_blooms_bitset-v1.14.3.zip", + "http://ats.apps.svc/gomod/github.com/bits-and-blooms/bitset/com_github_bits_and_blooms_bitset-v1.14.3.zip", + "https://cache.hawkingrei.com/gomod/github.com/bits-and-blooms/bitset/com_github_bits_and_blooms_bitset-v1.14.3.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/bits-and-blooms/bitset/com_github_bits_and_blooms_bitset-v1.14.3.zip", + ], + ) + go_repository( + name = "com_github_bketelsen_crypt", + build_file_proto_mode = "disable", importpath = "github.com/bketelsen/crypt", sum = "h1:+0HFd5KSZ/mm3JmhmrDukiId5iR6w4+BdFtfSy4yWIc=", version = "v0.0.3-0.20200106085610-5cbc8cc4026c", ) go_repository( name = "com_github_bkielbasa_cyclop", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/bkielbasa/cyclop", - sum = "h1:7Jmnh0yL2DjKfw28p86YTd/B4lRGcNuu12sKE35sM7A=", - version = "v1.2.0", + sum = "h1:faIVMIGDIANuGPWH031CZJTi2ymOQBULs9H21HSMa5w=", + version = "v1.2.3", ) go_repository( name = "com_github_blacktear23_go_proxyprotocol", @@ -304,38 +570,58 @@ def go_deps(): ) go_repository( name = "com_github_blizzy78_varnamelen", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/blizzy78/varnamelen", sum = "h1:oqSblyuQvFsW1hbBHh1zfwrKe3kcSj0rnXkKzsQ089M=", version = "v0.8.0", ) go_repository( - name = "com_github_bombsimon_wsl_v3", - build_file_proto_mode = "disable", - importpath = "github.com/bombsimon/wsl/v3", - sum = "h1:Mka/+kRLoQJq7g2rggtgQsjuI/K5Efd87WX96EWFxjM=", - version = "v3.3.0", + name = "com_github_bmatcuk_doublestar_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/bmatcuk/doublestar/v2", + sum = "h1:6I6oUiT/sU27eE2OFcWqBhL1SwjyvQuOssxT4a1yidI=", + version = "v2.0.4", + ) + go_repository( + name = "com_github_bombsimon_wsl_v4", + build_file_proto_mode = "disable_global", + importpath = "github.com/bombsimon/wsl/v4", + sum = "h1:jfUaCkN+aUpobrMO24zwyAMwMAV5eSziCkOKEauOLdw=", + version = "v4.4.1", + ) + go_repository( + name = "com_github_boombuler_barcode", + build_file_proto_mode = "disable_global", + importpath = "github.com/boombuler/barcode", + sha256 = "812c5beeaa87864227f9d92a9ae71792dc0e6302a33737a91aabe1e511cde42b", + strip_prefix = "github.com/boombuler/barcode@v1.0.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/boombuler/barcode/com_github_boombuler_barcode-v1.0.1.zip", + "http://ats.apps.svc/gomod/github.com/boombuler/barcode/com_github_boombuler_barcode-v1.0.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/boombuler/barcode/com_github_boombuler_barcode-v1.0.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/boombuler/barcode/com_github_boombuler_barcode-v1.0.1.zip", + ], ) go_repository( name = "com_github_breml_bidichk", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/breml/bidichk", - sum = "h1:qe6ggxpTfA8E75hdjWPZ581sY3a2lnl0IRxLQFelECI=", - version = "v0.2.3", + sum = "h1:xV4flJ9V5xWTqxL+/PMFF6dtJPvZLPsyixAoPe8BGJs=", + version = "v0.3.2", ) go_repository( name = "com_github_breml_errchkjson", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/breml/errchkjson", - sum = "h1:YdDqhfqMT+I1vIxPSas44P+9Z9HzJwCeAzjB8PxP1xw=", - version = "v0.3.0", + sum = "h1:gftf6uWZMtIa/Is3XJgibewBm2ksAQSY/kABDNFTAdk=", + version = "v0.4.0", ) go_repository( name = "com_github_burntsushi_toml", build_file_proto_mode = "disable_global", importpath = "github.com/BurntSushi/toml", - sum = "h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=", - version = "v1.2.1", + sum = "h1:pxW6RcqyfI9/kWtOwnv/G+AzdKuy2ZrqINhenH4HyNs=", + version = "v1.4.1-0.20240526193622-a339e1f7089c", ) go_repository( name = "com_github_burntsushi_xgb", @@ -346,10 +632,38 @@ def go_deps(): ) go_repository( name = "com_github_butuzov_ireturn", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/butuzov/ireturn", - sum = "h1:QvrO2QF2+/Cx1WA/vETCIYBKtRjc30vesdoPUNo1EbY=", - version = "v0.1.1", + sum = "h1:hTjMqWw3y5JC3kpnC5vXmFJAWI/m31jaCYQqzkS6PL0=", + version = "v0.3.0", + ) + go_repository( + name = "com_github_butuzov_mirror", + build_file_proto_mode = "disable_global", + importpath = "github.com/butuzov/mirror", + sum = "h1:9YVK1qIjNspaqWutSv8gsge2e/Xpq1eqEkslEUHy5cs=", + version = "v1.2.0", + ) + go_repository( + name = "com_github_bwesterb_go_ristretto", + build_file_proto_mode = "disable", + importpath = "github.com/bwesterb/go-ristretto", + sum = "h1:1w53tCkGhCQ5djbat3+MH0BAQ5Kfgbt56UZQ/JMzngw=", + version = "v1.2.3", + ) + + go_repository( + name = "com_github_cakturk_go_netstat", + build_file_proto_mode = "disable_global", + importpath = "github.com/cakturk/go-netstat", + sha256 = "c8c3a7b894b4522d56bef918d1299b848ea78c566e19d3e35afa7ce0a207b5ab", + strip_prefix = "github.com/cakturk/go-netstat@v0.0.0-20200220111822-e5b49efee7a5", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/cakturk/go-netstat/com_github_cakturk_go_netstat-v0.0.0-20200220111822-e5b49efee7a5.zip", + "http://ats.apps.svc/gomod/github.com/cakturk/go-netstat/com_github_cakturk_go_netstat-v0.0.0-20200220111822-e5b49efee7a5.zip", + "https://cache.hawkingrei.com/gomod/github.com/cakturk/go-netstat/com_github_cakturk_go_netstat-v0.0.0-20200220111822-e5b49efee7a5.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/cakturk/go-netstat/com_github_cakturk_go_netstat-v0.0.0-20200220111822-e5b49efee7a5.zip", + ], ) go_repository( name = "com_github_carlmjohnson_flagext", @@ -358,6 +672,20 @@ def go_deps(): sum = "h1:/c4uK3ie786Z7caXLcIMvePNSSiH3bQVGDvmGLMme60=", version = "v0.21.0", ) + go_repository( + name = "com_github_catenacyber_perfsprint", + build_file_proto_mode = "disable_global", + importpath = "github.com/catenacyber/perfsprint", + sum = "h1:PGW5G/Kxn+YrN04cRAZKC+ZuvlVwolYMrIyyTJ/rMmc=", + version = "v0.7.1", + ) + go_repository( + name = "com_github_ccojocar_zxcvbn_go", + build_file_proto_mode = "disable_global", + importpath = "github.com/ccojocar/zxcvbn-go", + sum = "h1:na/czXU8RrhXO4EZme6eQJLR4PzcGsahsBOAwU6I3Vg=", + version = "v1.0.2", + ) go_repository( name = "com_github_cenk_backoff", build_file_proto_mode = "disable", @@ -365,23 +693,30 @@ def go_deps(): sum = "h1:7vXVw3g7XE+Vnj0A9TmFGtMeP4oZQ5ZzpPvKhLFa80E=", version = "v2.0.0+incompatible", ) + go_repository( + name = "com_github_cenkalti_backoff_v4", + build_file_proto_mode = "disable_global", + importpath = "github.com/cenkalti/backoff/v4", + sum = "h1:G2HAfAmvm/GcKan2oOQpBXOd2tT2G57ZnZGWa1PxPBQ=", + version = "v4.1.1", + ) go_repository( name = "com_github_census_instrumentation_opencensus_proto", build_file_proto_mode = "disable_global", importpath = "github.com/census-instrumentation/opencensus-proto", - sum = "h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=", - version = "v0.2.1", + sum = "h1:iKLQ0xPNFxR/2hzXZMrBo8f1j86j5WHzznCCQxV/b8g=", + version = "v0.4.1", ) go_repository( name = "com_github_certifi_gocertifi", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/certifi/gocertifi", sum = "h1:uH66TXeswKn5PW5zdZ39xEwfS9an067BirqA+P4QaLI=", version = "v0.0.0-20200922220541-2c3bb06c6054", ) go_repository( name = "com_github_cespare_xxhash", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/cespare/xxhash", sum = "h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=", version = "v1.1.0", @@ -390,22 +725,22 @@ def go_deps(): name = "com_github_cespare_xxhash_v2", build_file_proto_mode = "disable_global", importpath = "github.com/cespare/xxhash/v2", - sum = "h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE=", - version = "v2.1.2", + sum = "h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=", + version = "v2.3.0", ) go_repository( name = "com_github_charithe_durationcheck", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/charithe/durationcheck", - sum = "h1:mPP4ucLrf/rKZiIG/a9IPXHGlh8p4CzgpyTy6EEutYk=", - version = "v0.0.9", + sum = "h1:wgw73BiocdBDQPik+zcEoBG/ob8uyBHf2iyoHGPf5w4=", + version = "v0.0.10", ) go_repository( name = "com_github_chavacava_garif", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/chavacava/garif", - sum = "h1:E7LT642ysztPWE0dfz43cWOvMiF42DyTRC+eZIaO4yI=", - version = "v0.0.0-20220630083739-93517212f375", + sum = "h1:2JHa3hbYf5D9dsgseMKAmc/MZ109otzgNFk5s87H9Pc=", + version = "v0.1.0", ) go_repository( name = "com_github_cheggaaa_pb_v3", @@ -442,6 +777,26 @@ def go_deps(): sum = "h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8=", version = "v0.0.0-20180213035817-a1ea475d72b1", ) + go_repository( + name = "com_github_cilium_ebpf", + build_file_proto_mode = "disable_global", + importpath = "github.com/cilium/ebpf", + sha256 = "5130d073e34b07b80ecf6cccb1ff4b20ecee59bf1b5b71272ef9e90949a85952", + strip_prefix = "github.com/cilium/ebpf@v0.11.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/cilium/ebpf/com_github_cilium_ebpf-v0.11.0.zip", + "http://ats.apps.svc/gomod/github.com/cilium/ebpf/com_github_cilium_ebpf-v0.11.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/cilium/ebpf/com_github_cilium_ebpf-v0.11.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/cilium/ebpf/com_github_cilium_ebpf-v0.11.0.zip", + ], + ) + go_repository( + name = "com_github_ckaznocha_intrange", + build_file_proto_mode = "disable_global", + importpath = "github.com/ckaznocha/intrange", + sum = "h1:M07spnNEQoALOJhwrImSrJLaxwuiQK+hA2DeajBlwYk=", + version = "v0.2.1", + ) go_repository( name = "com_github_client9_misspell", build_file_proto_mode = "disable_global", @@ -450,7 +805,27 @@ def go_deps(): version = "v0.3.4", ) go_repository( - name = "com_github_cloudykit_fastprinter", + name = "com_github_cloudflare_circl", + build_file_proto_mode = "disable", + importpath = "github.com/cloudflare/circl", + sum = "h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs=", + version = "v1.3.3", + ) + go_repository( + name = "com_github_cloudfoundry_gosigar", + build_file_proto_mode = "disable_global", + importpath = "github.com/cloudfoundry/gosigar", + sha256 = "44bd2b560d804fe98453100d6adfc4dd9c92f76713cfb543700a347317d5dc11", + strip_prefix = "github.com/cloudfoundry/gosigar@v1.3.6", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/cloudfoundry/gosigar/com_github_cloudfoundry_gosigar-v1.3.6.zip", + "http://ats.apps.svc/gomod/github.com/cloudfoundry/gosigar/com_github_cloudfoundry_gosigar-v1.3.6.zip", + "https://cache.hawkingrei.com/gomod/github.com/cloudfoundry/gosigar/com_github_cloudfoundry_gosigar-v1.3.6.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/cloudfoundry/gosigar/com_github_cloudfoundry_gosigar-v1.3.6.zip", + ], + ) + go_repository( + name = "com_github_cloudykit_fastprinter", build_file_proto_mode = "disable_global", importpath = "github.com/CloudyKit/fastprinter", sum = "h1:3SgJcK9l5uPdBC/X17wanyJAMxM33+4ZhEIV96MIH8U=", @@ -458,24 +833,38 @@ def go_deps(): ) go_repository( name = "com_github_cloudykit_jet", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/CloudyKit/jet", sum = "h1:rZgFj+Gtf3NMi/U5FvCvhzaxzW/TaPYgUYx3bAPz9DE=", version = "v2.1.3-0.20180809161101-62edd43e4f88+incompatible", ) + + go_repository( + name = "com_github_cloudykit_jet_v6", + build_file_proto_mode = "disable_global", + importpath = "github.com/CloudyKit/jet/v6", + sha256 = "24c18e2a19eb56a01fce96e2504196f85d1c2291ff448f20dd32f6247a979264", + strip_prefix = "github.com/CloudyKit/jet/v6@v6.2.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/CloudyKit/jet/v6/com_github_cloudykit_jet_v6-v6.2.0.zip", + "http://ats.apps.svc/gomod/github.com/CloudyKit/jet/v6/com_github_cloudykit_jet_v6-v6.2.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/CloudyKit/jet/v6/com_github_cloudykit_jet_v6-v6.2.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/CloudyKit/jet/v6/com_github_cloudykit_jet_v6-v6.2.0.zip", + ], + ) go_repository( name = "com_github_cncf_udpa_go", build_file_proto_mode = "disable_global", importpath = "github.com/cncf/udpa/go", - sum = "h1:hzAQntlaYRkVSFEfj9OTWlVV1H155FMD8BTKktLv0QI=", - version = "v0.0.0-20210930031921-04548b0d99d4", + sum = "h1:QQ3GSy+MqSHxm/d8nCtnAiZdYFd45cYZPs8vOOIYKfk=", + version = "v0.0.0-20220112060539-c52dc94e7fbe", ) go_repository( name = "com_github_cncf_xds_go", build_file_proto_mode = "disable_global", importpath = "github.com/cncf/xds/go", - sum = "h1:zH8ljVhhq7yC0MIeUL/IviMtY8hx2mK8cN9wEYb8ggw=", - version = "v0.0.0-20211011173535-cb28da3451f1", + sum = "h1:/inchEIKaYC1Akx+H+gqO04wryn5h75LSazbRlnya1k=", + version = "v0.0.0-20230607035331-e9ce68804cb4", ) go_repository( name = "com_github_cockroachdb_apd", @@ -509,8 +898,8 @@ def go_deps(): name = "com_github_cockroachdb_datadriven", build_file_proto_mode = "disable_global", importpath = "github.com/cockroachdb/datadriven", - sum = "h1:uhZrAfEayBecH2w2tZmhe20HJ7hDvrrA4x2Bg9YdZKM=", - version = "v1.0.0", + sum = "h1:H9MtNqVoVhvd9nCBwOyDjUEdZCREqbIdCJD93PBm/jA=", + version = "v1.0.2", ) go_repository( name = "com_github_cockroachdb_errors", @@ -542,18 +931,46 @@ def go_deps(): ) go_repository( name = "com_github_cockroachdb_sentry_go", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/cockroachdb/sentry-go", sum = "h1:IKgmqgMQlVJIZj19CdocBeSfSaiCbEBZGKODaixqtHM=", version = "v0.6.1-cockroachdb.2", ) + go_repository( - name = "com_github_codahale_hdrhistogram", + name = "com_github_cockroachdb_tokenbucket", build_file_proto_mode = "disable_global", + importpath = "github.com/cockroachdb/tokenbucket", + sha256 = "150f3e8e5b515c0886cda0809f09b5d5173d7f2c30eb2f2c6045c2aeb2183aa3", + strip_prefix = "github.com/cockroachdb/tokenbucket@v0.0.0-20230807174530-cc333fc44b06", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/cockroachdb/tokenbucket/com_github_cockroachdb_tokenbucket-v0.0.0-20230807174530-cc333fc44b06.zip", + "http://ats.apps.svc/gomod/github.com/cockroachdb/tokenbucket/com_github_cockroachdb_tokenbucket-v0.0.0-20230807174530-cc333fc44b06.zip", + "https://cache.hawkingrei.com/gomod/github.com/cockroachdb/tokenbucket/com_github_cockroachdb_tokenbucket-v0.0.0-20230807174530-cc333fc44b06.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/cockroachdb/tokenbucket/com_github_cockroachdb_tokenbucket-v0.0.0-20230807174530-cc333fc44b06.zip", + ], + ) + go_repository( + name = "com_github_codahale_hdrhistogram", + build_file_proto_mode = "disable", importpath = "github.com/codahale/hdrhistogram", sum = "h1:qMd81Ts1T2OTKmB4acZcyKaMtRnY5Y44NuXGX2GFJ1w=", version = "v0.0.0-20161010025455-3a0bb77429bd", ) + + go_repository( + name = "com_github_code_hex_go_generics_cache", + build_file_proto_mode = "disable_global", + importpath = "github.com/Code-Hex/go-generics-cache", + sha256 = "e545aab31a9ce268856afe920755ad0774289642eaa4b57a3d57eb003827eda0", + strip_prefix = "github.com/Code-Hex/go-generics-cache@v1.3.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/Code-Hex/go-generics-cache/com_github_code_hex_go_generics_cache-v1.3.1.zip", + "http://ats.apps.svc/gomod/github.com/Code-Hex/go-generics-cache/com_github_code_hex_go_generics_cache-v1.3.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/Code-Hex/go-generics-cache/com_github_code_hex_go_generics_cache-v1.3.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/Code-Hex/go-generics-cache/com_github_code_hex_go_generics_cache-v1.3.1.zip", + ], + ) go_repository( name = "com_github_codegangsta_inject", build_file_proto_mode = "disable_global", @@ -568,6 +985,32 @@ def go_deps(): sum = "h1:x0hw/m+o3UE20Scso/KCkvYNc9Di39TBlCfGMkJ1/a0=", version = "v2.1.1", ) + go_repository( + name = "com_github_containerd_cgroups_v3", + build_file_proto_mode = "disable_global", + importpath = "github.com/containerd/cgroups/v3", + sha256 = "bc22dd9c675f1abd77a9de83506abb15656529848b2274323a88ea9bfce980be", + strip_prefix = "github.com/containerd/cgroups/v3@v3.0.3", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/containerd/cgroups/v3/com_github_containerd_cgroups_v3-v3.0.3.zip", + "http://ats.apps.svc/gomod/github.com/containerd/cgroups/v3/com_github_containerd_cgroups_v3-v3.0.3.zip", + "https://cache.hawkingrei.com/gomod/github.com/containerd/cgroups/v3/com_github_containerd_cgroups_v3-v3.0.3.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/containerd/cgroups/v3/com_github_containerd_cgroups_v3-v3.0.3.zip", + ], + ) + go_repository( + name = "com_github_containerd_log", + build_file_proto_mode = "disable_global", + importpath = "github.com/containerd/log", + sha256 = "2008faf206ec820e7fc3d40baba924936c21347dafad4a7ff122fa90e26e57d7", + strip_prefix = "github.com/containerd/log@v0.1.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/containerd/log/com_github_containerd_log-v0.1.0.zip", + "http://ats.apps.svc/gomod/github.com/containerd/log/com_github_containerd_log-v0.1.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/containerd/log/com_github_containerd_log-v0.1.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/containerd/log/com_github_containerd_log-v0.1.0.zip", + ], + ) go_repository( name = "com_github_coocood_bbloom", build_file_proto_mode = "disable_global", @@ -591,7 +1034,7 @@ def go_deps(): ) go_repository( name = "com_github_coreos_bbolt", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/coreos/bbolt", sum = "h1:wZwiHHUieZCquLkDL0B8UhzreNWsPHooDAG3q34zk0s=", version = "v1.3.2", @@ -614,12 +1057,12 @@ def go_deps(): name = "com_github_coreos_go_semver", build_file_proto_mode = "disable_global", importpath = "github.com/coreos/go-semver", - sum = "h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM=", - version = "v0.3.0", + sum = "h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr4=", + version = "v0.3.1", ) go_repository( name = "com_github_coreos_go_systemd", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/coreos/go-systemd", sum = "h1:Wf6HqHfScWJN9/ZjdUKyjop4mf3Qdd+1TvvltAvM3m8=", version = "v0.0.0-20190321100706-95778dfbb74e", @@ -633,7 +1076,7 @@ def go_deps(): ) go_repository( name = "com_github_coreos_pkg", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/coreos/pkg", sum = "h1:lBNOc5arjvs8E5mO2tbpBpLoyyu8B6e44T7hJy6potg=", version = "v0.0.0-20180928190104-399ea9e2e55f", @@ -649,8 +1092,8 @@ def go_deps(): name = "com_github_cpuguy83_go_md2man_v2", build_file_proto_mode = "disable_global", importpath = "github.com/cpuguy83/go-md2man/v2", - sum = "h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=", - version = "v2.0.2", + sum = "h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4=", + version = "v2.0.4", ) go_repository( name = "com_github_creack_pty", @@ -659,9 +1102,16 @@ def go_deps(): sum = "h1:07n33Z8lZxZ2qwegKbObQohDhXDQxiMMz1NOUGYlesw=", version = "v1.1.11", ) + go_repository( + name = "com_github_crocmagnon_fatcontext", + build_file_proto_mode = "disable_global", + importpath = "github.com/Crocmagnon/fatcontext", + sum = "h1:vhSEg8Gqng8awhPju2w7MKHqMlg4/NI+gSDHtR3xgwA=", + version = "v0.5.2", + ) go_repository( name = "com_github_curioswitch_go_reassign", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/curioswitch/go-reassign", sum = "h1:G9UZyOcpk/d7Gd6mqYgd8XYWFMw/znxwGDUstnC9DIo=", version = "v0.2.0", @@ -689,10 +1139,10 @@ def go_deps(): ) go_repository( name = "com_github_daixiang0_gci", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/daixiang0/gci", - sum = "h1:yBdsd376w+RIBvFXjj0MAcGWS8cSCfAlRNPfn5xvjl0=", - version = "v0.8.5", + sum = "h1:kThgmH1yBmZSBCh1EJVxQ7JsHpm5Oms0AMed/0LaH4c=", + version = "v0.13.5", ) go_repository( name = "com_github_danjacques_gofslock", @@ -724,28 +1174,41 @@ def go_deps(): ) go_repository( name = "com_github_decred_dcrd_crypto_blake256", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/decred/dcrd/crypto/blake256", sum = "h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y=", version = "v1.0.1", ) go_repository( name = "com_github_decred_dcrd_dcrec_secp256k1_v4", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/decred/dcrd/dcrec/secp256k1/v4", sum = "h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs=", version = "v4.2.0", ) go_repository( name = "com_github_denis_tingaikin_go_header", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/denis-tingaikin/go-header", - sum = "h1:tEaZKAlqql6SKCY++utLmkPLd6K8IBM20Ha7UVm+mtU=", - version = "v0.4.3", + sum = "h1:SRdnP5ZKvcO9KKRP1KJrhFR3RrlGuD+42t4429eC9k8=", + version = "v0.5.0", ) go_repository( - name = "com_github_dgraph_io_badger", + name = "com_github_dennwc_varint", build_file_proto_mode = "disable_global", + importpath = "github.com/dennwc/varint", + sha256 = "2918e66c0fb5a82dbfc8cca1ed34cb8ccff8188e876c0ca25f85b8247e53626f", + strip_prefix = "github.com/dennwc/varint@v1.0.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/dennwc/varint/com_github_dennwc_varint-v1.0.0.zip", + "http://ats.apps.svc/gomod/github.com/dennwc/varint/com_github_dennwc_varint-v1.0.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/dennwc/varint/com_github_dennwc_varint-v1.0.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/dennwc/varint/com_github_dennwc_varint-v1.0.0.zip", + ], + ) + go_repository( + name = "com_github_dgraph_io_badger", + build_file_proto_mode = "disable", importpath = "github.com/dgraph-io/badger", sum = "h1:DshxFxZWXUcO0xX476VJC07Xsr6ZCBVRHKZ93Oh7Evo=", version = "v1.6.0", @@ -759,7 +1222,7 @@ def go_deps(): ) go_repository( name = "com_github_dgrijalva_jwt_go", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/dgrijalva/jwt-go", replace = "github.com/form3tech-oss/jwt-go", sum = "h1:0sWoh2EtO7UrQdNTAN+hnU3QXa4AoivplyPLLHkcrLk=", @@ -772,16 +1235,50 @@ def go_deps(): sum = "h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y=", version = "v0.0.0-20200201041132-a6ae2369ad13", ) + go_repository( + name = "com_github_dgryski_go_rendezvous", + build_file_proto_mode = "disable", + importpath = "github.com/dgryski/go-rendezvous", + sum = "h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=", + version = "v0.0.0-20200823014737-9f7001d12a5f", + ) go_repository( name = "com_github_dgryski_go_sip13", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/dgryski/go-sip13", sum = "h1:RMLoZVzv4GliuWafOuPuQDKSm1SJph7uCRnnS61JAn4=", version = "v0.0.0-20181026042036-e10d5fee7954", ) + + go_repository( + name = "com_github_digitalocean_godo", + build_file_proto_mode = "disable_global", + importpath = "github.com/digitalocean/godo", + sha256 = "05d6f193e8313915fbea712226612a8d0bdc8e61975564262982b6ca106d38ee", + strip_prefix = "github.com/digitalocean/godo@v1.108.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/digitalocean/godo/com_github_digitalocean_godo-v1.108.0.zip", + "http://ats.apps.svc/gomod/github.com/digitalocean/godo/com_github_digitalocean_godo-v1.108.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/digitalocean/godo/com_github_digitalocean_godo-v1.108.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/digitalocean/godo/com_github_digitalocean_godo-v1.108.0.zip", + ], + ) + go_repository( + name = "com_github_distribution_reference", + build_file_proto_mode = "disable_global", + importpath = "github.com/distribution/reference", + sha256 = "d812d0281581beb04facbd0ca03bc529ae7de484f959ade09765c1af532e1b7c", + strip_prefix = "github.com/distribution/reference@v0.5.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/distribution/reference/com_github_distribution_reference-v0.5.0.zip", + "http://ats.apps.svc/gomod/github.com/distribution/reference/com_github_distribution_reference-v0.5.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/distribution/reference/com_github_distribution_reference-v0.5.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/distribution/reference/com_github_distribution_reference-v0.5.0.zip", + ], + ) go_repository( name = "com_github_djarvur_go_err113", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/Djarvur/go-err113", sum = "h1:sHglBQTwgx+rWPdisA5ynNEsoARbiCBOyGcJM4/OzsM=", version = "v0.0.0-20210108212216-aea10b59be24", @@ -790,8 +1287,34 @@ def go_deps(): name = "com_github_dnaeon_go_vcr", build_file_proto_mode = "disable_global", importpath = "github.com/dnaeon/go-vcr", - sum = "h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI=", - version = "v1.2.0", + sum = "h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c=", + version = "v1.1.0", + ) + go_repository( + name = "com_github_docker_docker", + build_file_proto_mode = "disable_global", + importpath = "github.com/docker/docker", + sha256 = "943382432be5c45b64f779becb4d2c76a67727452b38a17a197a3c5d939f9cdc", + strip_prefix = "github.com/docker/docker@v25.0.0+incompatible", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/docker/docker/com_github_docker_docker-v25.0.0+incompatible.zip", + "http://ats.apps.svc/gomod/github.com/docker/docker/com_github_docker_docker-v25.0.0+incompatible.zip", + "https://cache.hawkingrei.com/gomod/github.com/docker/docker/com_github_docker_docker-v25.0.0+incompatible.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/docker/docker/com_github_docker_docker-v25.0.0+incompatible.zip", + ], + ) + go_repository( + name = "com_github_docker_go_connections", + build_file_proto_mode = "disable_global", + importpath = "github.com/docker/go-connections", + sha256 = "570ebcee7e6fd844e00c89eeab2b1922081d6969df76078dfe4ffacd3db56ada", + strip_prefix = "github.com/docker/go-connections@v0.4.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/docker/go-connections/com_github_docker_go_connections-v0.4.0.zip", + "http://ats.apps.svc/gomod/github.com/docker/go-connections/com_github_docker_go_connections-v0.4.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/docker/go-connections/com_github_docker_go_connections-v0.4.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/docker/go-connections/com_github_docker_go_connections-v0.4.0.zip", + ], ) go_repository( name = "com_github_docker_go_units", @@ -802,11 +1325,37 @@ def go_deps(): ) go_repository( name = "com_github_docopt_docopt_go", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/docopt/docopt-go", sum = "h1:bWDMxwH3px2JBh6AyO7hdCn/PkvCZXii8TGj7sbtEbQ=", version = "v0.0.0-20180111231733-ee0de3bc6815", ) + go_repository( + name = "com_github_dolthub_maphash", + build_file_proto_mode = "disable_global", + importpath = "github.com/dolthub/maphash", + sha256 = "ba69ef526a9613cb059c8490c1a4f032649879c316a1c4305e2355815eb32e41", + strip_prefix = "github.com/dolthub/maphash@v0.1.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/dolthub/maphash/com_github_dolthub_maphash-v0.1.0.zip", + "http://ats.apps.svc/gomod/github.com/dolthub/maphash/com_github_dolthub_maphash-v0.1.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/dolthub/maphash/com_github_dolthub_maphash-v0.1.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/dolthub/maphash/com_github_dolthub_maphash-v0.1.0.zip", + ], + ) + go_repository( + name = "com_github_dolthub_swiss", + build_file_proto_mode = "disable_global", + importpath = "github.com/dolthub/swiss", + sha256 = "e911b7cea9aaed1255544fb8b53c19780f91b713e6d0fc71fb310232e4800dcc", + strip_prefix = "github.com/dolthub/swiss@v0.2.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/dolthub/swiss/com_github_dolthub_swiss-v0.2.1.zip", + "http://ats.apps.svc/gomod/github.com/dolthub/swiss/com_github_dolthub_swiss-v0.2.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/dolthub/swiss/com_github_dolthub_swiss-v0.2.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/dolthub/swiss/com_github_dolthub_swiss-v0.2.1.zip", + ], + ) go_repository( name = "com_github_dustin_go_humanize", build_file_proto_mode = "disable_global", @@ -816,25 +1365,39 @@ def go_deps(): ) go_repository( name = "com_github_eapache_go_resiliency", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/eapache/go-resiliency", - sum = "h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUKorFR1Q=", - version = "v1.2.0", + sum = "h1:n3NRTnBn5N0Cbi/IeOHuQn9s2UwVUH7Ga0ZWcP+9JTA=", + version = "v1.7.0", ) go_repository( name = "com_github_eapache_go_xerial_snappy", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/eapache/go-xerial-snappy", - sum = "h1:YEetp8/yCZMuEPMUDHG0CW/brkkEp8mzqk2+ODEitlw=", - version = "v0.0.0-20180814174437-776d5712da21", + sum = "h1:Oy0F4ALJ04o5Qqpdz8XLIpNA3WM/iSIXqxtqo7UGVws=", + version = "v0.0.0-20230731223053-c322873962e3", ) go_repository( name = "com_github_eapache_queue", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/eapache/queue", sum = "h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc=", version = "v1.1.0", ) + + go_repository( + name = "com_github_edsrzf_mmap_go", + build_file_proto_mode = "disable_global", + importpath = "github.com/edsrzf/mmap-go", + sha256 = "1c2fa2b55d253fb95d4b253ec39348deba3d46a184bc0a4393a355807b8e5df7", + strip_prefix = "github.com/edsrzf/mmap-go@v1.1.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/edsrzf/mmap-go/com_github_edsrzf_mmap_go-v1.1.0.zip", + "http://ats.apps.svc/gomod/github.com/edsrzf/mmap-go/com_github_edsrzf_mmap_go-v1.1.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/edsrzf/mmap-go/com_github_edsrzf_mmap_go-v1.1.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/edsrzf/mmap-go/com_github_edsrzf_mmap_go-v1.1.0.zip", + ], + ) go_repository( name = "com_github_eknkc_amber", build_file_proto_mode = "disable_global", @@ -870,9 +1433,23 @@ def go_deps(): sum = "h1:H2pdYOb3KQ1/YsqVWoWNLQO+fusocsw354rqGTZtAgw=", version = "v0.0.0-20170410110728-ff4f55a20633", ) + + go_repository( + name = "com_github_emicklei_go_restful_v3", + build_file_proto_mode = "disable_global", + importpath = "github.com/emicklei/go-restful/v3", + sha256 = "fc71c649398fa5d28ac7948d143bc8ac4803c01d24f852b9d50e87724ac8efc8", + strip_prefix = "github.com/emicklei/go-restful/v3@v3.11.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/emicklei/go-restful/v3/com_github_emicklei_go_restful_v3-v3.11.0.zip", + "http://ats.apps.svc/gomod/github.com/emicklei/go-restful/v3/com_github_emicklei_go_restful_v3-v3.11.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/emicklei/go-restful/v3/com_github_emicklei_go_restful_v3-v3.11.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/emicklei/go-restful/v3/com_github_emicklei_go_restful_v3-v3.11.0.zip", + ], + ) go_repository( name = "com_github_emirpasic_gods", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/emirpasic/gods", sum = "h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=", version = "v1.18.1", @@ -881,26 +1458,19 @@ def go_deps(): name = "com_github_envoyproxy_go_control_plane", build_file_proto_mode = "disable_global", importpath = "github.com/envoyproxy/go-control-plane", - sum = "h1:xvqufLtNVwAhN8NMyWklVgxnWohi+wtMGQMhtxexlm0=", - version = "v0.10.2-0.20220325020618-49ff273808a1", + sum = "h1:wSUXTlLfiAQRWs2F+p+EKOY9rUyis1MyGqJ2DIk5HpM=", + version = "v0.11.1", ) go_repository( name = "com_github_envoyproxy_protoc_gen_validate", build_file_proto_mode = "disable_global", importpath = "github.com/envoyproxy/protoc-gen-validate", - sum = "h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=", - version = "v0.1.0", - ) - go_repository( - name = "com_github_esimonov_ifshort", - build_file_proto_mode = "disable", - importpath = "github.com/esimonov/ifshort", - sum = "h1:6SID4yGWfRae/M7hkVDVVyppy8q/v9OuxNdmjLQStBA=", - version = "v1.0.4", + sum = "h1:QkIBuU5k+x7/QXPvPPnWXWlCdaBFApVqftFV6k087DA=", + version = "v1.0.2", ) go_repository( name = "com_github_etcd_io_bbolt", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/etcd-io/bbolt", sum = "h1:gSJmxrs37LgTqR/oyJBWok6k6SvXEUerFTbltIhXkBM=", version = "v1.3.3", @@ -914,14 +1484,14 @@ def go_deps(): ) go_repository( name = "com_github_ettle_strcase", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/ettle/strcase", - sum = "h1:htFueZyVeE1XNnMEfbqp5r67qAN/4r6ya1ysq8Q+Zcw=", - version = "v0.1.1", + sum = "h1:fGNiVF21fHXpX1niBgk0aROov1LagYsOwV/xqKDKR/Q=", + version = "v0.2.0", ) go_repository( name = "com_github_evanphx_json_patch", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/evanphx/json-patch", sum = "h1:4onqiflcdA9EOZ4RxV643DvftH5pOlLGNtQ5lPWQu84=", version = "v4.12.0+incompatible", @@ -933,26 +1503,33 @@ def go_deps(): sum = "h1:yDWHCSQ40h88yih2JAcL6Ls/kVkSE8GFACTGVnMPruw=", version = "v0.0.0-20150410010913-600d898af40a", ) + go_repository( - name = "com_github_fasthttp_contrib_websocket", + name = "com_github_facette_natsort", build_file_proto_mode = "disable_global", - importpath = "github.com/fasthttp-contrib/websocket", - sum = "h1:DddqAaWDpywytcG8w/qoQ5sAN8X12d3Z3koB0C3Rxsc=", - version = "v0.0.0-20160511215533-1f3b11f56072", + importpath = "github.com/facette/natsort", + sha256 = "08cd11112374bf6bf945345bfdede1141a0bb973706291016facc0508eca3ae7", + strip_prefix = "github.com/facette/natsort@v0.0.0-20181210072756-2cd4dd1e2dcb", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/facette/natsort/com_github_facette_natsort-v0.0.0-20181210072756-2cd4dd1e2dcb.zip", + "http://ats.apps.svc/gomod/github.com/facette/natsort/com_github_facette_natsort-v0.0.0-20181210072756-2cd4dd1e2dcb.zip", + "https://cache.hawkingrei.com/gomod/github.com/facette/natsort/com_github_facette_natsort-v0.0.0-20181210072756-2cd4dd1e2dcb.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/facette/natsort/com_github_facette_natsort-v0.0.0-20181210072756-2cd4dd1e2dcb.zip", + ], ) go_repository( - name = "com_github_fatanugraha_noloopclosure", + name = "com_github_fasthttp_contrib_websocket", build_file_proto_mode = "disable", - importpath = "github.com/fatanugraha/noloopclosure", - sum = "h1:AhepjAikNpk50qTZoipHZqeZtnyKT/C2Tk5dGn7nC+A=", - version = "v0.1.1", + importpath = "github.com/fasthttp-contrib/websocket", + sum = "h1:DddqAaWDpywytcG8w/qoQ5sAN8X12d3Z3koB0C3Rxsc=", + version = "v0.0.0-20160511215533-1f3b11f56072", ) go_repository( name = "com_github_fatih_color", build_file_proto_mode = "disable_global", importpath = "github.com/fatih/color", - sum = "h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=", - version = "v1.13.0", + sum = "h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=", + version = "v1.18.0", ) go_repository( name = "com_github_fatih_structs", @@ -963,11 +1540,24 @@ def go_deps(): ) go_repository( name = "com_github_fatih_structtag", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/fatih/structtag", sum = "h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4=", version = "v1.2.0", ) + go_repository( + name = "com_github_felixge_fgprof", + build_file_proto_mode = "disable_global", + importpath = "github.com/felixge/fgprof", + sha256 = "2c83268087acf8b767be69dbc37c099fa85856763c2e88fb99637d46eb6ac23c", + strip_prefix = "github.com/felixge/fgprof@v0.9.3", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/felixge/fgprof/com_github_felixge_fgprof-v0.9.3.zip", + "http://ats.apps.svc/gomod/github.com/felixge/fgprof/com_github_felixge_fgprof-v0.9.3.zip", + "https://cache.hawkingrei.com/gomod/github.com/felixge/fgprof/com_github_felixge_fgprof-v0.9.3.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/felixge/fgprof/com_github_felixge_fgprof-v0.9.3.zip", + ], + ) go_repository( name = "com_github_felixge_httpsnoop", build_file_proto_mode = "disable_global", @@ -977,18 +1567,32 @@ def go_deps(): ) go_repository( name = "com_github_firefart_nonamedreturns", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/firefart/nonamedreturns", - sum = "h1:abzI1p7mAEPYuR4A+VLKn4eNDOycjYo2phmY9sfv40Y=", - version = "v1.0.4", + sum = "h1:tM+Me2ZaXs8tfdDw3X6DOX++wMCOqzYUho6tUTYIdRA=", + version = "v1.0.5", ) go_repository( name = "com_github_flosch_pongo2", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/flosch/pongo2", sum = "h1:GY1+t5Dr9OKADM64SYnQjw/w99HMYvQ0A8/JoUkxVmc=", version = "v0.0.0-20190707114632-bbf5a6c351f4", ) + + go_repository( + name = "com_github_flosch_pongo2_v4", + build_file_proto_mode = "disable_global", + importpath = "github.com/flosch/pongo2/v4", + sha256 = "88e92416c43e05ab51f36bef211fcd03bb25428e2d2bebeed8a1877b8ad43281", + strip_prefix = "github.com/flosch/pongo2/v4@v4.0.2", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/flosch/pongo2/v4/com_github_flosch_pongo2_v4-v4.0.2.zip", + "http://ats.apps.svc/gomod/github.com/flosch/pongo2/v4/com_github_flosch_pongo2_v4-v4.0.2.zip", + "https://cache.hawkingrei.com/gomod/github.com/flosch/pongo2/v4/com_github_flosch_pongo2_v4-v4.0.2.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/flosch/pongo2/v4/com_github_flosch_pongo2_v4-v4.0.2.zip", + ], + ) go_repository( name = "com_github_fogleman_gg", build_file_proto_mode = "disable_global", @@ -998,14 +1602,14 @@ def go_deps(): ) go_repository( name = "com_github_form3tech_oss_jwt_go", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/form3tech-oss/jwt-go", - sum = "h1:/l4kBbb4/vGSsdtB5nUe8L7B9mImVMaBPw9L/0TBHU8=", - version = "v3.2.5+incompatible", + sum = "h1:7ZaBxOI7TMoYBfyA3cQHErNNyAWIKUMIwqxEtgHOs5c=", + version = "v3.2.3+incompatible", ) go_repository( name = "com_github_fortytw2_leaktest", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/fortytw2/leaktest", sum = "h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=", version = "v1.3.0", @@ -1014,8 +1618,8 @@ def go_deps(): name = "com_github_frankban_quicktest", build_file_proto_mode = "disable_global", importpath = "github.com/frankban/quicktest", - sum = "h1:8sXhOn0uLys67V8EsXLc6eszDs8VXWxL3iRvebPhedY=", - version = "v1.11.3", + sum = "h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE=", + version = "v1.14.3", ) go_repository( name = "com_github_fsnotify_fsnotify", @@ -1039,15 +1643,15 @@ def go_deps(): version = "v0.6.0", ) go_repository( - name = "com_github_gaijinentertainment_go_exhaustruct_v2", - build_file_proto_mode = "disable", - importpath = "github.com/GaijinEntertainment/go-exhaustruct/v2", - sum = "h1:+r1rSv4gvYn0wmRjC8X7IAzX8QezqtFV9m0MUHFJgts=", - version = "v2.3.0", + name = "com_github_gaijinentertainment_go_exhaustruct_v3", + build_file_proto_mode = "disable_global", + importpath = "github.com/GaijinEntertainment/go-exhaustruct/v3", + sum = "h1:/fTUt5vmbkAcMBt4YQiuC23cV0kEsN1MVMNqeOW43cU=", + version = "v3.3.0", ) go_repository( name = "com_github_gavv_httpexpect", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/gavv/httpexpect", sum = "h1:1X9kcRshkSKEjNJJxX9Y9mQ5BRfbxU5kORdjhlA1yX8=", version = "v2.0.0+incompatible", @@ -1061,11 +1665,25 @@ def go_deps(): ) go_repository( name = "com_github_getsentry_raven_go", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/getsentry/raven-go", sum = "h1:no+xWJRb5ZI7eE8TWgIq1jLulQiIoLG0IfYxv5JYMGs=", version = "v0.2.0", ) + + go_repository( + name = "com_github_getsentry_sentry_go", + build_file_proto_mode = "disable_global", + importpath = "github.com/getsentry/sentry-go", + sha256 = "679a02061b0d653713146278ee120a5fa1fefcf59a03419990673c17cbfd6e6e", + strip_prefix = "github.com/getsentry/sentry-go@v0.27.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/getsentry/sentry-go/com_github_getsentry_sentry_go-v0.27.0.zip", + "http://ats.apps.svc/gomod/github.com/getsentry/sentry-go/com_github_getsentry_sentry_go-v0.27.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/getsentry/sentry-go/com_github_getsentry_sentry_go-v0.27.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/getsentry/sentry-go/com_github_getsentry_sentry_go-v0.27.0.zip", + ], + ) go_repository( name = "com_github_ghemawat_stream", build_file_proto_mode = "disable_global", @@ -1080,6 +1698,13 @@ def go_deps(): sum = "h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=", version = "v1.0.0", ) + go_repository( + name = "com_github_ghostiam_protogetter", + build_file_proto_mode = "disable_global", + importpath = "github.com/ghostiam/protogetter", + sum = "h1:LYcXbYvybUyTIxN2Mj9h6rHrDZBDwZloPoKctWrFyJY=", + version = "v0.3.8", + ) go_repository( name = "com_github_gin_contrib_sse", build_file_proto_mode = "disable_global", @@ -1095,18 +1720,39 @@ def go_deps(): version = "v1.4.0", ) go_repository( - name = "com_github_go_check_check", + name = "com_github_gliderlabs_ssh", + build_file_proto_mode = "disable", + importpath = "github.com/gliderlabs/ssh", + sum = "h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY=", + version = "v0.3.5", + ) + + go_repository( + name = "com_github_go_asn1_ber_asn1_ber", build_file_proto_mode = "disable_global", + importpath = "github.com/go-asn1-ber/asn1-ber", + sha256 = "d0da40d84005074ccdcf352651f64f87a3525ac3bc0ff796139db9e08d1d0dd1", + strip_prefix = "github.com/go-asn1-ber/asn1-ber@v1.5.4", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-asn1-ber/asn1-ber/com_github_go_asn1_ber_asn1_ber-v1.5.4.zip", + "http://ats.apps.svc/gomod/github.com/go-asn1-ber/asn1-ber/com_github_go_asn1_ber_asn1_ber-v1.5.4.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-asn1-ber/asn1-ber/com_github_go_asn1_ber_asn1_ber-v1.5.4.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-asn1-ber/asn1-ber/com_github_go_asn1_ber_asn1_ber-v1.5.4.zip", + ], + ) + go_repository( + name = "com_github_go_check_check", + build_file_proto_mode = "disable", importpath = "github.com/go-check/check", sum = "h1:0gkP6mzaMqkmpcJYCFOLkIBwI7xFExG03bbkOkCvUPI=", version = "v0.0.0-20180628173108-788fd7840127", ) go_repository( name = "com_github_go_critic_go_critic", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/go-critic/go-critic", - sum = "h1:fDaR/5GWURljXwF8Eh31T2GZNz9X4jeboS912mWF8Uo=", - version = "v0.6.5", + sum = "h1:TkDTOn5v7EEngMxu8KbuFqFR43USaaH8XRJLz1jhVYA=", + version = "v0.11.5", ) go_repository( name = "com_github_go_errors_errors", @@ -1115,6 +1761,86 @@ def go_deps(): sum = "h1:LUHzmkK3GUKUrL/1gfBUxAHzcev3apQlezX/+O7ma6w=", version = "v1.0.1", ) + go_repository( + name = "com_github_go_fonts_dejavu", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-fonts/dejavu", + sha256 = "c2094ce49cfc24b7b7a041e54d924e311322b73a8e56db28ff179fcd403b4111", + strip_prefix = "github.com/go-fonts/dejavu@v0.1.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-fonts/dejavu/com_github_go_fonts_dejavu-v0.1.0.zip", + "http://ats.apps.svc/gomod/github.com/go-fonts/dejavu/com_github_go_fonts_dejavu-v0.1.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-fonts/dejavu/com_github_go_fonts_dejavu-v0.1.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-fonts/dejavu/com_github_go_fonts_dejavu-v0.1.0.zip", + ], + ) + go_repository( + name = "com_github_go_fonts_latin_modern", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-fonts/latin-modern", + sha256 = "037085a80ad108287e772d064d64bb72deb62514de84ef610506bc079f330ec0", + strip_prefix = "github.com/go-fonts/latin-modern@v0.2.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-fonts/latin-modern/com_github_go_fonts_latin_modern-v0.2.0.zip", + "http://ats.apps.svc/gomod/github.com/go-fonts/latin-modern/com_github_go_fonts_latin_modern-v0.2.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-fonts/latin-modern/com_github_go_fonts_latin_modern-v0.2.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-fonts/latin-modern/com_github_go_fonts_latin_modern-v0.2.0.zip", + ], + ) + go_repository( + name = "com_github_go_fonts_liberation", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-fonts/liberation", + sha256 = "bd7561251c221fe0fd8cd4c361b062a5796f6f3a1096968b8fecdd61eb82d8fe", + strip_prefix = "github.com/go-fonts/liberation@v0.2.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-fonts/liberation/com_github_go_fonts_liberation-v0.2.0.zip", + "http://ats.apps.svc/gomod/github.com/go-fonts/liberation/com_github_go_fonts_liberation-v0.2.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-fonts/liberation/com_github_go_fonts_liberation-v0.2.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-fonts/liberation/com_github_go_fonts_liberation-v0.2.0.zip", + ], + ) + go_repository( + name = "com_github_go_fonts_stix", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-fonts/stix", + sha256 = "51ea5a38b9fda7854af60f280dbd8b40a3e5b5a48eb00d3f8d4e43de3f514ecf", + strip_prefix = "github.com/go-fonts/stix@v0.1.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-fonts/stix/com_github_go_fonts_stix-v0.1.0.zip", + "http://ats.apps.svc/gomod/github.com/go-fonts/stix/com_github_go_fonts_stix-v0.1.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-fonts/stix/com_github_go_fonts_stix-v0.1.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-fonts/stix/com_github_go_fonts_stix-v0.1.0.zip", + ], + ) + go_repository( + name = "com_github_go_git_gcfg", + build_file_proto_mode = "disable", + importpath = "github.com/go-git/gcfg", + sum = "h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI=", + version = "v1.5.1-0.20230307220236-3a3c6141e376", + ) + go_repository( + name = "com_github_go_git_go_billy_v5", + build_file_proto_mode = "disable", + importpath = "github.com/go-git/go-billy/v5", + sum = "h1:Uwp5tDRkPr+l/TnbHOQzp+tmJfLceOlbVucgpTz8ix4=", + version = "v5.4.1", + ) + go_repository( + name = "com_github_go_git_go_git_fixtures_v4", + build_file_proto_mode = "disable", + importpath = "github.com/go-git/go-git-fixtures/v4", + sum = "h1:Pz0DHeFij3XFhoBRGUDPzSJ+w2UcK5/0JvF8DRI58r8=", + version = "v4.3.2-0.20230305113008-0c11038e723f", + ) + go_repository( + name = "com_github_go_git_go_git_v5", + build_file_proto_mode = "disable", + importpath = "github.com/go-git/go-git/v5", + sum = "h1:Rc543s6Tyq+YcyPwZRvU4jzZGM8rB/wWu94TnTIYALQ=", + version = "v5.8.0", + ) go_repository( name = "com_github_go_gl_glfw", build_file_proto_mode = "disable_global", @@ -1147,8 +1873,34 @@ def go_deps(): name = "com_github_go_kit_log", build_file_proto_mode = "disable_global", importpath = "github.com/go-kit/log", - sum = "h1:7i2K3eKTos3Vc0enKCfnVcgHh2olr/MyfboYq7cAcFw=", - version = "v0.2.0", + sum = "h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU=", + version = "v0.2.1", + ) + go_repository( + name = "com_github_go_latex_latex", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-latex/latex", + sha256 = "c58be686b31679ad0a51a5d70e60df92fb4bb50a16727caa58b4a67b33f16509", + strip_prefix = "github.com/go-latex/latex@v0.0.0-20210823091927-c0d11ff05a81", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-latex/latex/com_github_go_latex_latex-v0.0.0-20210823091927-c0d11ff05a81.zip", + "http://ats.apps.svc/gomod/github.com/go-latex/latex/com_github_go_latex_latex-v0.0.0-20210823091927-c0d11ff05a81.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-latex/latex/com_github_go_latex_latex-v0.0.0-20210823091927-c0d11ff05a81.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-latex/latex/com_github_go_latex_latex-v0.0.0-20210823091927-c0d11ff05a81.zip", + ], + ) + go_repository( + name = "com_github_go_ldap_ldap_v3", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-ldap/ldap/v3", + sha256 = "217e899d6fc84f70eb3a7660ee383b660c21f6315b5bc4232c8ab7b568cc0bd0", + strip_prefix = "github.com/YangKeao/ldap/v3@v3.4.5-0.20230421065457-369a3bab1117", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/YangKeao/ldap/v3/com_github_yangkeao_ldap_v3-v3.4.5-0.20230421065457-369a3bab1117.zip", + "http://ats.apps.svc/gomod/github.com/YangKeao/ldap/v3/com_github_yangkeao_ldap_v3-v3.4.5-0.20230421065457-369a3bab1117.zip", + "https://cache.hawkingrei.com/gomod/github.com/YangKeao/ldap/v3/com_github_yangkeao_ldap_v3-v3.4.5-0.20230421065457-369a3bab1117.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/YangKeao/ldap/v3/com_github_yangkeao_ldap_v3-v3.4.5-0.20230421065457-369a3bab1117.zip", + ], ) go_repository( name = "com_github_go_logfmt_logfmt", @@ -1159,11 +1911,24 @@ def go_deps(): ) go_repository( name = "com_github_go_logr_logr", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/go-logr/logr", sum = "h1:QK40JKJyMdUDz+h+xvCsru/bJhvG0UxvePV0ufL/AcE=", version = "v1.2.0", ) + go_repository( + name = "com_github_go_logr_stdr", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-logr/stdr", + sha256 = "9dd6893bf700198485ae699640b49bc1efbc6c73b37cb5792a0476e1fd8f7fef", + strip_prefix = "github.com/go-logr/stdr@v1.2.2", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-logr/stdr/com_github_go_logr_stdr-v1.2.2.zip", + "http://ats.apps.svc/gomod/github.com/go-logr/stdr/com_github_go_logr_stdr-v1.2.2.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-logr/stdr/com_github_go_logr_stdr-v1.2.2.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-logr/stdr/com_github_go_logr_stdr-v1.2.2.zip", + ], + ) go_repository( name = "com_github_go_martini_martini", build_file_proto_mode = "disable_global", @@ -1178,27 +1943,170 @@ def go_deps(): sum = "h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE=", version = "v1.3.0", ) + go_repository( + name = "com_github_go_openapi_analysis", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-openapi/analysis", + sha256 = "c38edc10742e5592847d0608ba13b1372a4a7ce1309fc521ea58842a0eb99d16", + strip_prefix = "github.com/go-openapi/analysis@v0.21.4", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-openapi/analysis/com_github_go_openapi_analysis-v0.21.4.zip", + "http://ats.apps.svc/gomod/github.com/go-openapi/analysis/com_github_go_openapi_analysis-v0.21.4.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-openapi/analysis/com_github_go_openapi_analysis-v0.21.4.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-openapi/analysis/com_github_go_openapi_analysis-v0.21.4.zip", + ], + ) + go_repository( + name = "com_github_go_openapi_errors", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-openapi/errors", + sha256 = "fd36596bb434cedffc79748a261193cf1938c19b05afa9e56e65f8b643561fee", + strip_prefix = "github.com/go-openapi/errors@v0.21.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-openapi/errors/com_github_go_openapi_errors-v0.21.0.zip", + "http://ats.apps.svc/gomod/github.com/go-openapi/errors/com_github_go_openapi_errors-v0.21.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-openapi/errors/com_github_go_openapi_errors-v0.21.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-openapi/errors/com_github_go_openapi_errors-v0.21.0.zip", + ], + ) go_repository( name = "com_github_go_openapi_jsonpointer", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/go-openapi/jsonpointer", sum = "h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY=", version = "v0.19.5", ) go_repository( name = "com_github_go_openapi_jsonreference", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/go-openapi/jsonreference", sum = "h1:5cxNfTy0UVC3X8JL5ymxzyoUZmo8iZb+jeTWn7tUa8o=", version = "v0.19.3", ) go_repository( - name = "com_github_go_openapi_swag", - build_file_proto_mode = "disable", + name = "com_github_go_openapi_loads", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-openapi/loads", + sha256 = "a97ae476c31ad269ad3429186fab2fe08f38eeb5d4167215004194b19da9d1de", + strip_prefix = "github.com/go-openapi/loads@v0.21.2", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-openapi/loads/com_github_go_openapi_loads-v0.21.2.zip", + "http://ats.apps.svc/gomod/github.com/go-openapi/loads/com_github_go_openapi_loads-v0.21.2.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-openapi/loads/com_github_go_openapi_loads-v0.21.2.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-openapi/loads/com_github_go_openapi_loads-v0.21.2.zip", + ], + ) + go_repository( + name = "com_github_go_openapi_spec", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-openapi/spec", + sha256 = "06c843a4617b262b06f232c6fa380e732dea80cf77b9a80a09c0d1c83a0a8665", + strip_prefix = "github.com/go-openapi/spec@v0.20.9", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-openapi/spec/com_github_go_openapi_spec-v0.20.9.zip", + "http://ats.apps.svc/gomod/github.com/go-openapi/spec/com_github_go_openapi_spec-v0.20.9.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-openapi/spec/com_github_go_openapi_spec-v0.20.9.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-openapi/spec/com_github_go_openapi_spec-v0.20.9.zip", + ], + ) + go_repository( + name = "com_github_go_openapi_strfmt", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-openapi/strfmt", + sha256 = "37f512d6ac447bc026276a87eeb89d3c0ec243740c69e79743f8d9761d29aafe", + strip_prefix = "github.com/go-openapi/strfmt@v0.22.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-openapi/strfmt/com_github_go_openapi_strfmt-v0.22.0.zip", + "http://ats.apps.svc/gomod/github.com/go-openapi/strfmt/com_github_go_openapi_strfmt-v0.22.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-openapi/strfmt/com_github_go_openapi_strfmt-v0.22.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-openapi/strfmt/com_github_go_openapi_strfmt-v0.22.0.zip", + ], + ) + go_repository( + name = "com_github_go_openapi_swag", + build_file_proto_mode = "disable_global", importpath = "github.com/go-openapi/swag", sum = "h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY=", version = "v0.19.5", ) + go_repository( + name = "com_github_go_openapi_validate", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-openapi/validate", + sha256 = "7d528b3b728df6a721977532d838cec9a6699baf49959e195aa775e32909d0b2", + strip_prefix = "github.com/go-openapi/validate@v0.22.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-openapi/validate/com_github_go_openapi_validate-v0.22.1.zip", + "http://ats.apps.svc/gomod/github.com/go-openapi/validate/com_github_go_openapi_validate-v0.22.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-openapi/validate/com_github_go_openapi_validate-v0.22.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-openapi/validate/com_github_go_openapi_validate-v0.22.1.zip", + ], + ) + go_repository( + name = "com_github_go_pdf_fpdf", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-pdf/fpdf", + sha256 = "03a6909fc346ac972b008b77585ac3954d76b416c33b4b64dc22c5f35f0e1edb", + strip_prefix = "github.com/go-pdf/fpdf@v0.6.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-pdf/fpdf/com_github_go_pdf_fpdf-v0.6.0.zip", + "http://ats.apps.svc/gomod/github.com/go-pdf/fpdf/com_github_go_pdf_fpdf-v0.6.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-pdf/fpdf/com_github_go_pdf_fpdf-v0.6.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-pdf/fpdf/com_github_go_pdf_fpdf-v0.6.0.zip", + ], + ) + go_repository( + name = "com_github_go_playground_locales", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-playground/locales", + sha256 = "e103ae2c635cde62d2b75ff021be20443ab8d227aebfed5f043846575ea1fa43", + strip_prefix = "github.com/go-playground/locales@v0.14.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-playground/locales/com_github_go_playground_locales-v0.14.0.zip", + "http://ats.apps.svc/gomod/github.com/go-playground/locales/com_github_go_playground_locales-v0.14.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-playground/locales/com_github_go_playground_locales-v0.14.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-playground/locales/com_github_go_playground_locales-v0.14.0.zip", + ], + ) + go_repository( + name = "com_github_go_playground_universal_translator", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-playground/universal-translator", + sha256 = "15f3241347dfcfe7d668595727629bcf54ff028ebc4b7c955b9c2bdeb253a110", + strip_prefix = "github.com/go-playground/universal-translator@v0.18.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-playground/universal-translator/com_github_go_playground_universal_translator-v0.18.0.zip", + "http://ats.apps.svc/gomod/github.com/go-playground/universal-translator/com_github_go_playground_universal_translator-v0.18.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-playground/universal-translator/com_github_go_playground_universal_translator-v0.18.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-playground/universal-translator/com_github_go_playground_universal_translator-v0.18.0.zip", + ], + ) + go_repository( + name = "com_github_go_playground_validator_v10", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-playground/validator/v10", + sha256 = "d10a0eb03b84570af1f1278f8df82cee6c5dcddfe2e23d6f2c5bc018a2d3929e", + strip_prefix = "github.com/go-playground/validator/v10@v10.11.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-playground/validator/v10/com_github_go_playground_validator_v10-v10.11.1.zip", + "http://ats.apps.svc/gomod/github.com/go-playground/validator/v10/com_github_go_playground_validator_v10-v10.11.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-playground/validator/v10/com_github_go_playground_validator_v10-v10.11.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-playground/validator/v10/com_github_go_playground_validator_v10-v10.11.1.zip", + ], + ) + go_repository( + name = "com_github_go_resty_resty_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-resty/resty/v2", + sha256 = "9e6212c6a90936edadf04754df8dfa1b0b154e013bdbf75f94a105d9fa54165e", + strip_prefix = "github.com/go-resty/resty/v2@v2.11.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-resty/resty/v2/com_github_go_resty_resty_v2-v2.11.0.zip", + "http://ats.apps.svc/gomod/github.com/go-resty/resty/v2/com_github_go_resty_resty_v2-v2.11.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-resty/resty/v2/com_github_go_resty_resty_v2-v2.11.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-resty/resty/v2/com_github_go_resty_resty_v2-v2.11.0.zip", + ], + ) go_repository( name = "com_github_go_sql_driver_mysql", build_file_proto_mode = "disable_global", @@ -1217,100 +2125,139 @@ def go_deps(): name = "com_github_go_task_slim_sprig", build_file_proto_mode = "disable_global", importpath = "github.com/go-task/slim-sprig", - sum = "h1:p104kn46Q8WdvHunIJ9dAyjPVtrBPhSr3KT2yUst43I=", - version = "v0.0.0-20210107165309-348f09dbbbc0", + sha256 = "25a036dc8eb9f6227c2df818916f76db93eebbac88cc24bad5c960b0c60d7a08", + strip_prefix = "github.com/go-task/slim-sprig@v0.0.0-20230315185526-52ccab3ef572", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-task/slim-sprig/com_github_go_task_slim_sprig-v0.0.0-20230315185526-52ccab3ef572.zip", + "http://ats.apps.svc/gomod/github.com/go-task/slim-sprig/com_github_go_task_slim_sprig-v0.0.0-20230315185526-52ccab3ef572.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-task/slim-sprig/com_github_go_task_slim_sprig-v0.0.0-20230315185526-52ccab3ef572.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-task/slim-sprig/com_github_go_task_slim_sprig-v0.0.0-20230315185526-52ccab3ef572.zip", + ], ) go_repository( name = "com_github_go_toolsmith_astcast", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/go-toolsmith/astcast", - sum = "h1:JojxlmI6STnFVG9yOImLeGREv8W2ocNUM+iOhR6jE7g=", - version = "v1.0.0", + sum = "h1:+JN9xZV1A+Re+95pgnMgDboWNVnIMMQXwfBwLRPgSC8=", + version = "v1.1.0", ) go_repository( name = "com_github_go_toolsmith_astcopy", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/go-toolsmith/astcopy", - sum = "h1:YnWf5Rnh1hUudj11kei53kI57quN/VH6Hp1n+erozn0=", - version = "v1.0.2", + sum = "h1:YGwBN0WM+ekI/6SS6+52zLDEf8Yvp3n2seZITCUBt5s=", + version = "v1.1.0", ) go_repository( name = "com_github_go_toolsmith_astequal", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/go-toolsmith/astequal", - sum = "h1:+LVdyRatFS+XO78SGV4I3TCEA0AC7fKEGma+fH+674o=", - version = "v1.0.3", + sum = "h1:3Fs3CYZ1k9Vo4FzFhwwewC3CHISHDnVUPC4x0bI2+Cw=", + version = "v1.2.0", ) go_repository( name = "com_github_go_toolsmith_astfmt", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/go-toolsmith/astfmt", - sum = "h1:A0vDDXt+vsvLEdbMFJAUBI/uTbRw1ffOPnxsILnFL6k=", - version = "v1.0.0", + sum = "h1:iJVPDPp6/7AaeLJEruMsBUlOYCmvg0MoCfJprsOmcco=", + version = "v1.1.0", ) go_repository( name = "com_github_go_toolsmith_astp", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/go-toolsmith/astp", - sum = "h1:alXE75TXgcmupDsMK1fRAy0YUzLzqPVvBKoyWV+KPXg=", - version = "v1.0.0", + sum = "h1:dXPuCl6u2llURjdPLLDxJeZInAeZ0/eZwFJmqZMnpQA=", + version = "v1.1.0", ) go_repository( name = "com_github_go_toolsmith_strparse", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/go-toolsmith/strparse", - sum = "h1:Vcw78DnpCAKlM20kSbAyO4mPfJn/lyYA4BJUDxe2Jb4=", - version = "v1.0.0", + sum = "h1:GAioeZUK9TGxnLS+qfdqNbA4z0SSm5zVNtCQiyP2Bvw=", + version = "v1.1.0", ) go_repository( name = "com_github_go_toolsmith_typep", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/go-toolsmith/typep", - sum = "h1:8xdsa1+FSIH/RhEkgnD1j2CJOy5mNllW1Q9tRiYwvlk=", - version = "v1.0.2", + sum = "h1:fIRYDyF+JywLfqzyhdiHzRop/GQDxxNhLGQ6gFUNHus=", + version = "v1.1.0", + ) + go_repository( + name = "com_github_go_viper_mapstructure_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-viper/mapstructure/v2", + sum = "h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss=", + version = "v2.2.1", ) go_repository( name = "com_github_go_xmlfmt_xmlfmt", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/go-xmlfmt/xmlfmt", - sum = "h1:khEcpUM4yFcxg4/FHQWkvVRmgijNXRfzkIDHh23ggEo=", - version = "v0.0.0-20191208150333-d5b6f63a941b", + sum = "h1:Nea7b4icn8s57fTx1M5AI4qQT5HEM3rVUO8MuE6g80U=", + version = "v1.1.2", + ) + go_repository( + name = "com_github_go_zookeeper_zk", + build_file_proto_mode = "disable_global", + importpath = "github.com/go-zookeeper/zk", + sha256 = "5577b9e7924ff73c19e2c62fb6fddb9621d05f0720d0994ce8dc4be625399ca3", + strip_prefix = "github.com/go-zookeeper/zk@v1.0.3", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/go-zookeeper/zk/com_github_go_zookeeper_zk-v1.0.3.zip", + "http://ats.apps.svc/gomod/github.com/go-zookeeper/zk/com_github_go_zookeeper_zk-v1.0.3.zip", + "https://cache.hawkingrei.com/gomod/github.com/go-zookeeper/zk/com_github_go_zookeeper_zk-v1.0.3.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/go-zookeeper/zk/com_github_go_zookeeper_zk-v1.0.3.zip", + ], ) go_repository( name = "com_github_gobwas_glob", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/gobwas/glob", sum = "h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y=", version = "v0.2.3", ) go_repository( name = "com_github_gobwas_httphead", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/gobwas/httphead", sum = "h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0=", version = "v0.0.0-20180130184737-2c6c146eadee", ) go_repository( name = "com_github_gobwas_pool", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/gobwas/pool", sum = "h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8=", version = "v0.2.0", ) go_repository( name = "com_github_gobwas_ws", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/gobwas/ws", sum = "h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo=", version = "v1.0.2", ) go_repository( name = "com_github_goccy_go_json", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/goccy/go-json", sum = "h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU=", version = "v0.10.2", ) + go_repository( + name = "com_github_goccy_go_reflect", + build_file_proto_mode = "disable_global", + importpath = "github.com/goccy/go-reflect", + sha256 = "d5d5b55be60c40d1ecfbd13a7e89c3fb5363e8b7cd07e2827f7e987944c41458", + strip_prefix = "github.com/goccy/go-reflect@v1.2.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/goccy/go-reflect/com_github_goccy_go_reflect-v1.2.0.zip", + "http://ats.apps.svc/gomod/github.com/goccy/go-reflect/com_github_goccy_go_reflect-v1.2.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/goccy/go-reflect/com_github_goccy_go_reflect-v1.2.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/goccy/go-reflect/com_github_goccy_go_reflect-v1.2.0.zip", + ], + ) go_repository( name = "com_github_godbus_dbus_v5", build_file_proto_mode = "disable_global", @@ -1320,10 +2267,10 @@ def go_deps(): ) go_repository( name = "com_github_gofrs_flock", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/gofrs/flock", - sum = "h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw=", - version = "v0.8.1", + sum = "h1:MTLVXXHf8ekldpJk3AKicLij9MdwOWkZ+a/jHHZby9E=", + version = "v0.12.1", ) go_repository( name = "com_github_gogo_googleapis", @@ -1348,7 +2295,7 @@ def go_deps(): ) go_repository( name = "com_github_goji_httpauth", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/goji/httpauth", sum = "h1:lBXNCxVENCipq4D1Is42JVOP4eQjlB8TQ6H69Yx5J9Q=", version = "v0.0.0-20160601135302-2da839ab0f4d", @@ -1364,8 +2311,8 @@ def go_deps(): name = "com_github_golang_glog", build_file_proto_mode = "disable_global", importpath = "github.com/golang/glog", - sum = "h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ=", - version = "v1.0.0", + sum = "h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo=", + version = "v1.1.2", ) go_repository( name = "com_github_golang_groupcache", @@ -1374,23 +2321,40 @@ def go_deps(): sum = "h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=", version = "v0.0.0-20210331224755-41bb18bfe9da", ) + go_repository( + name = "com_github_golang_jwt_jwt", + build_file_proto_mode = "disable_global", + importpath = "github.com/golang-jwt/jwt", + sum = "h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c=", + version = "v3.2.1+incompatible", + ) + go_repository( + name = "com_github_golang_jwt_jwt_v4", + build_file_proto_mode = "disable_global", + importpath = "github.com/golang-jwt/jwt/v4", + sum = "h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs=", + version = "v4.4.2", + ) + go_repository( + name = "com_github_golang_jwt_jwt_v5", + build_file_proto_mode = "disable_global", + importpath = "github.com/golang-jwt/jwt/v5", + sum = "h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk=", + version = "v5.2.1", + ) go_repository( name = "com_github_golang_mock", build_file_proto_mode = "disable_global", importpath = "github.com/golang/mock", - sum = "h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=", - version = "v1.6.0", + sum = "h1:YojYx61/OLFsiv6Rw1Z96LpldJIy31o+UHmwAUMJ6/U=", + version = "v1.7.0-rc.1", ) go_repository( name = "com_github_golang_protobuf", build_file_proto_mode = "disable_global", importpath = "github.com/golang/protobuf", - patch_args = ["-p1"], - patches = [ - "//build/patches:com_github_golang_protobuf.patch", - ], - sum = "h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=", - version = "v1.5.2", + sum = "h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=", + version = "v1.5.4", ) go_repository( name = "com_github_golang_snappy", @@ -1399,93 +2363,86 @@ def go_deps(): sum = "h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=", version = "v0.0.4", ) - go_repository( - name = "com_github_golangci_check", - build_file_proto_mode = "disable", - importpath = "github.com/golangci/check", - sum = "h1:23T5iq8rbUYlhpt5DB4XJkc6BU31uODLD1o1gKvZmD0=", - version = "v0.0.0-20180506172741-cfe4005ccda2", - ) go_repository( name = "com_github_golangci_dupl", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/golangci/dupl", sum = "h1:w8hkcTqaFpzKqonE9uMCefW1WDie15eSP/4MssdenaM=", version = "v0.0.0-20180902072040-3e9179ac440a", ) go_repository( - name = "com_github_golangci_go_misc", + name = "com_github_golangci_go_printf_func_name", build_file_proto_mode = "disable", - importpath = "github.com/golangci/go-misc", - sum = "h1:6RGUuS7EGotKx6J5HIP8ZtyMdiDscjMLfRBSPuzVVeo=", - version = "v0.0.0-20220329215616-d24fe342adfe", + importpath = "github.com/golangci/go-printf-func-name", + sum = "h1:dVokQP+NMTO7jwO4bwsRwLWeudOVUPPyAKJuzv8pEJU=", + version = "v0.1.0", ) go_repository( name = "com_github_golangci_gofmt", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/golangci/gofmt", - sum = "h1:amWTbTGqOZ71ruzrdA+Nx5WA3tV1N0goTspwmKCQvBY=", - version = "v0.0.0-20220901101216-f2edd75033f2", + sum = "h1:/1322Qns6BtQxUZDTAT4SdcoxknUki7IAoK4SAXr8ME=", + version = "v0.0.0-20240816233607-d8596aa466a9", ) go_repository( name = "com_github_golangci_golangci_lint", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/golangci/golangci-lint", - sum = "h1:C829clMcZXEORakZlwpk7M4iDw2XiwxxKaG504SZ9zY=", - version = "v1.50.1", + sum = "h1:/G0g+bi1BhmGJqLdNQkKBWjcim8HjOPc4tsKuHDOhcI=", + version = "v1.62.0", ) go_repository( name = "com_github_golangci_gosec", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/golangci/gosec", sum = "h1:Bi7BYmZVg4C+mKGi8LeohcP2GGUl2XJD4xCkJoZSaYc=", version = "v0.0.0-20180901114220-8afd9cbb6cfb", ) go_repository( - name = "com_github_golangci_lint_1", - build_file_proto_mode = "disable", - importpath = "github.com/golangci/lint-1", - sum = "h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA=", - version = "v0.0.0-20191013205115-297bf364a8e0", + name = "com_github_golangci_misspell", + build_file_proto_mode = "disable_global", + importpath = "github.com/golangci/misspell", + sum = "h1:JCle2HUTNWirNlDIAUO44hUsKhOFqGPoC4LZxlaSXDs=", + version = "v0.6.0", ) go_repository( - name = "com_github_golangci_maligned", - build_file_proto_mode = "disable", - importpath = "github.com/golangci/maligned", - sum = "h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA=", - version = "v0.0.0-20180506175553-b1d89398deca", + name = "com_github_golangci_modinfo", + build_file_proto_mode = "disable_global", + importpath = "github.com/golangci/modinfo", + sum = "h1:oU5huX3fbxqQXdfspamej74DFX0kyGLkw1ppvXoJ8GA=", + version = "v0.3.4", ) go_repository( - name = "com_github_golangci_misspell", - build_file_proto_mode = "disable", - importpath = "github.com/golangci/misspell", - sum = "h1:pLzmVdl3VxTOncgzHcvLOKirdvcx/TydsClUQXTehjo=", - version = "v0.3.5", + name = "com_github_golangci_plugin_module_register", + build_file_proto_mode = "disable_global", + importpath = "github.com/golangci/plugin-module-register", + sum = "h1:TCmesur25LnyJkpsVrupv1Cdzo+2f7zX0H6Jkw1Ol6c=", + version = "v0.1.1", ) go_repository( name = "com_github_golangci_prealloc", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/golangci/prealloc", sum = "h1:leSNB7iYzLYSSx3J/s5sVf4Drkc68W2wm4Ixh/mr0us=", version = "v0.0.0-20180630174525-215b22d4de21", ) go_repository( name = "com_github_golangci_revgrep", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/golangci/revgrep", - sum = "h1:DIPQnGy2Gv2FSA4B/hh8Q7xx3B7AIDk3DAMeHclH1vQ=", - version = "v0.0.0-20220804021717-745bb2f7c2e6", + sum = "h1:3tL7c1XBMtWHHqVpS5ChmiAAoe4PF/d5+ULzV9sLAzs=", + version = "v0.5.3", ) go_repository( name = "com_github_golangci_unconvert", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/golangci/unconvert", - sum = "h1:zwtduBRr5SSWhqsYNgcuWO2kFlpdOZbP0+yRjmvPGys=", - version = "v0.0.0-20180507085042-28b1c447d1f4", + sum = "h1:IURFTjxeTfNFP0hTEi1YKjB/ub8zkpaOqFFMApi2EAs=", + version = "v0.0.0-20240309020433-c5143eacb3ed", ) go_repository( name = "com_github_gomodule_redigo", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/gomodule/redigo", sum = "h1:y0Wmhvml7cGnzPa9nocn/fMraMH/lMDdeG+rkx4VgYY=", version = "v1.7.1-0.20190724094224-574c33c3df38", @@ -1497,6 +2454,19 @@ def go_deps(): sum = "h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU=", version = "v1.1.2", ) + go_repository( + name = "com_github_google_flatbuffers", + build_file_proto_mode = "disable_global", + importpath = "github.com/google/flatbuffers", + sha256 = "0c0a4aab1c6029141d655bc7fdc07e22dd06f3f64ebbf7a2250b870ef7aac7ee", + strip_prefix = "github.com/google/flatbuffers@v2.0.8+incompatible", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/google/flatbuffers/com_github_google_flatbuffers-v2.0.8+incompatible.zip", + "http://ats.apps.svc/gomod/github.com/google/flatbuffers/com_github_google_flatbuffers-v2.0.8+incompatible.zip", + "https://cache.hawkingrei.com/gomod/github.com/google/flatbuffers/com_github_google_flatbuffers-v2.0.8+incompatible.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/google/flatbuffers/com_github_google_flatbuffers-v2.0.8+incompatible.zip", + ], + ) go_repository( name = "com_github_google_gnostic", build_file_proto_mode = "disable", @@ -1504,19 +2474,53 @@ def go_deps(): sum = "h1:FhTMOKj2VhjpouxvWJAV1TL304uMlb9zcDqkl6cEI54=", version = "v0.5.7-v3refs", ) + + go_repository( + name = "com_github_google_gnostic_models", + build_file_proto_mode = "disable_global", + importpath = "github.com/google/gnostic-models", + sha256 = "5276180bd184f64676867fc2f64a583175968c507d404be6b7f1261ead229484", + strip_prefix = "github.com/google/gnostic-models@v0.6.8", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/google/gnostic-models/com_github_google_gnostic_models-v0.6.8.zip", + "http://ats.apps.svc/gomod/github.com/google/gnostic-models/com_github_google_gnostic_models-v0.6.8.zip", + "https://cache.hawkingrei.com/gomod/github.com/google/gnostic-models/com_github_google_gnostic_models-v0.6.8.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/google/gnostic-models/com_github_google_gnostic_models-v0.6.8.zip", + ], + ) go_repository( name = "com_github_google_go_cmp", build_file_proto_mode = "disable_global", importpath = "github.com/google/go-cmp", - sum = "h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=", - version = "v0.5.9", + sum = "h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=", + version = "v0.6.0", + ) + go_repository( + name = "com_github_google_go_github_v33", + build_file_proto_mode = "disable_global", + importpath = "github.com/google/go-github/v33", + sum = "h1:qAf9yP0qc54ufQxzwv+u9H0tiVOnPJxo0lI/JXqw3ZM=", + version = "v33.0.0", + ) + go_repository( + name = "com_github_google_go_pkcs11", + build_file_proto_mode = "disable_global", + importpath = "github.com/google/go-pkcs11", + sha256 = "b9bf12c2450efa77c8b27134d5f206633057fcf0c324883797d7fde5bc3a4887", + strip_prefix = "github.com/google/go-pkcs11@v0.2.1-0.20230907215043-c6f79328ddf9", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/google/go-pkcs11/com_github_google_go_pkcs11-v0.2.1-0.20230907215043-c6f79328ddf9.zip", + "http://ats.apps.svc/gomod/github.com/google/go-pkcs11/com_github_google_go_pkcs11-v0.2.1-0.20230907215043-c6f79328ddf9.zip", + "https://cache.hawkingrei.com/gomod/github.com/google/go-pkcs11/com_github_google_go_pkcs11-v0.2.1-0.20230907215043-c6f79328ddf9.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/google/go-pkcs11/com_github_google_go_pkcs11-v0.2.1-0.20230907215043-c6f79328ddf9.zip", + ], ) go_repository( name = "com_github_google_go_querystring", build_file_proto_mode = "disable_global", importpath = "github.com/google/go-querystring", - sum = "h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=", - version = "v1.0.0", + sum = "h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=", + version = "v1.1.0", ) go_repository( name = "com_github_google_gofuzz", @@ -1525,6 +2529,13 @@ def go_deps(): sum = "h1:Hsa8mG0dQ46ij8Sl2AYJDUv1oA9/d6Vk+3LG99Oe02g=", version = "v1.1.0", ) + go_repository( + name = "com_github_google_licensecheck", + build_file_proto_mode = "disable_global", + importpath = "github.com/google/licensecheck", + sum = "h1:QoxgoDkaeC4nFrtGN1jV7IPmDCHFNIVh54e5hSt6sPs=", + version = "v0.3.1", + ) go_repository( name = "com_github_google_martian", build_file_proto_mode = "disable_global", @@ -1536,8 +2547,8 @@ def go_deps(): name = "com_github_google_martian_v3", build_file_proto_mode = "disable_global", importpath = "github.com/google/martian/v3", - sum = "h1:d8MncMlErDFTwQGBK1xhv026j9kqhvw1Qv9IbWT1VLQ=", - version = "v3.2.1", + sum = "h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw=", + version = "v3.3.2", ) go_repository( name = "com_github_google_pprof", @@ -1553,26 +2564,59 @@ def go_deps(): sum = "h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA=", version = "v0.1.0", ) + go_repository( + name = "com_github_google_renameio_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/google/renameio/v2", + sha256 = "6e2b3ddcedd6bb5ff669b8e294befc9a35c01ede30fd00a183fc637ce7c9fd8e", + strip_prefix = "github.com/google/renameio/v2@v2.0.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/google/renameio/v2/com_github_google_renameio_v2-v2.0.0.zip", + "http://ats.apps.svc/gomod/github.com/google/renameio/v2/com_github_google_renameio_v2-v2.0.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/google/renameio/v2/com_github_google_renameio_v2-v2.0.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/google/renameio/v2/com_github_google_renameio_v2-v2.0.0.zip", + ], + ) + go_repository( + name = "com_github_google_s2a_go", + build_file_proto_mode = "disable_global", + importpath = "github.com/google/s2a-go", + sum = "h1:1kZ/sQM3srePvKs3tXAvQzo66XfcReoqFpIpIccE7Oc=", + version = "v0.1.4", + ) + go_repository( + name = "com_github_google_skylark", + build_file_proto_mode = "disable_global", + importpath = "github.com/google/skylark", + sha256 = "401bbeea49fb3939c4a7246da4154d411d4612881b510657cae4a5bfa05f8c21", + strip_prefix = "github.com/google/skylark@v0.0.0-20181101142754-a5f7082aabed", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/google/skylark/com_github_google_skylark-v0.0.0-20181101142754-a5f7082aabed.zip", + "http://ats.apps.svc/gomod/github.com/google/skylark/com_github_google_skylark-v0.0.0-20181101142754-a5f7082aabed.zip", + "https://cache.hawkingrei.com/gomod/github.com/google/skylark/com_github_google_skylark-v0.0.0-20181101142754-a5f7082aabed.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/google/skylark/com_github_google_skylark-v0.0.0-20181101142754-a5f7082aabed.zip", + ], + ) go_repository( name = "com_github_google_uuid", build_file_proto_mode = "disable_global", importpath = "github.com/google/uuid", - sum = "h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=", - version = "v1.3.0", + sum = "h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=", + version = "v1.6.0", ) go_repository( name = "com_github_googleapis_enterprise_certificate_proxy", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/googleapis/enterprise-certificate-proxy", - sum = "h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs=", - version = "v0.2.0", + sum = "h1:uGy6JWR/uMIILU8wbf+OkstIrNiMjGpEIyhx8f6W7s4=", + version = "v0.2.4", ) go_repository( name = "com_github_googleapis_gax_go_v2", build_file_proto_mode = "disable_global", importpath = "github.com/googleapis/gax-go/v2", - sum = "h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ=", - version = "v2.7.0", + sum = "h1:9V9PWXEsWnPpQhu/PeQIkS4eGzMlTLGgt80cUUI8Ki4=", + version = "v2.11.0", ) go_repository( name = "com_github_googleapis_gnostic", @@ -1583,31 +2627,37 @@ def go_deps(): ) go_repository( name = "com_github_gophercloud_gophercloud", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/gophercloud/gophercloud", sum = "h1:hQpY0g0UGsLKLDs8UJ6xpA2gNCkEdEbvxSPqLItXCpI=", version = "v0.0.0-20190301152420-fca40860790e", ) go_repository( name = "com_github_gopherjs_gopherjs", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/gopherjs/gopherjs", sum = "h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=", version = "v0.0.0-20181017120253-0766667cb4d1", ) go_repository( name = "com_github_gordonklaus_ineffassign", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/gordonklaus/ineffassign", - sum = "h1:PVRE9d4AQKmbelZ7emNig1+NT27DUmKZn5qXxfio54U=", - version = "v0.0.0-20210914165742-4cc7213b9bc8", + sum = "h1:y2Gd/9I7MdY1oEIt+n+rowjBNDcLQq3RsH5hwJd0f9s=", + version = "v0.1.0", ) go_repository( - name = "com_github_gorilla_context", - build_file_proto_mode = "disable", - importpath = "github.com/gorilla/context", - sum = "h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8=", - version = "v1.1.1", + name = "com_github_gorilla_css", + build_file_proto_mode = "disable_global", + importpath = "github.com/gorilla/css", + sha256 = "d854362b9d723daf613b26aae0254723a4ed1bff680683c3e2a01aeb398168e5", + strip_prefix = "github.com/gorilla/css@v1.0.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/gorilla/css/com_github_gorilla_css-v1.0.0.zip", + "http://ats.apps.svc/gomod/github.com/gorilla/css/com_github_gorilla_css-v1.0.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/gorilla/css/com_github_gorilla_css-v1.0.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/gorilla/css/com_github_gorilla_css-v1.0.0.zip", + ], ) go_repository( name = "com_github_gorilla_handlers", @@ -1625,14 +2675,14 @@ def go_deps(): ) go_repository( name = "com_github_gorilla_securecookie", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/gorilla/securecookie", sum = "h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyCS8BvQ=", version = "v1.1.1", ) go_repository( name = "com_github_gorilla_sessions", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/gorilla/sessions", sum = "h1:DHd3rPN5lE3Ts3D8rKkQ8x/0kqfeNmBAaiSi+o7FsgI=", version = "v1.2.1", @@ -1646,39 +2696,52 @@ def go_deps(): ) go_repository( name = "com_github_gostaticanalysis_analysisutil", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/gostaticanalysis/analysisutil", sum = "h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk=", version = "v0.7.1", ) go_repository( name = "com_github_gostaticanalysis_comment", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/gostaticanalysis/comment", sum = "h1:hlnx5+S2fY9Zo9ePo4AhgYsYHbM2+eAv8m/s1JiCd6Q=", version = "v1.4.2", ) go_repository( name = "com_github_gostaticanalysis_forcetypeassert", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/gostaticanalysis/forcetypeassert", sum = "h1:6eUflI3DiGusXGK6X7cCcIgVCpZ2CiZ1Q7jl6ZxNV70=", version = "v0.1.0", ) go_repository( name = "com_github_gostaticanalysis_nilerr", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/gostaticanalysis/nilerr", sum = "h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3Uqrmrcpk=", version = "v0.1.1", ) go_repository( name = "com_github_gostaticanalysis_testutil", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/gostaticanalysis/testutil", sum = "h1:nhdCmubdmDF6VEatUNjgUZBJKWRqugoISdUv3PPQgHY=", version = "v0.4.0", ) + go_repository( + name = "com_github_grafana_regexp", + build_file_proto_mode = "disable_global", + importpath = "github.com/grafana/regexp", + sha256 = "32777ad2e39bac06b359b0d93460530a41a1e0cb7cfd92faac82feb364ce8c91", + strip_prefix = "github.com/grafana/regexp@v0.0.0-20221122212121-6b5c0a4cb7fd", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/grafana/regexp/com_github_grafana_regexp-v0.0.0-20221122212121-6b5c0a4cb7fd.zip", + "http://ats.apps.svc/gomod/github.com/grafana/regexp/com_github_grafana_regexp-v0.0.0-20221122212121-6b5c0a4cb7fd.zip", + "https://cache.hawkingrei.com/gomod/github.com/grafana/regexp/com_github_grafana_regexp-v0.0.0-20221122212121-6b5c0a4cb7fd.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/grafana/regexp/com_github_grafana_regexp-v0.0.0-20221122212121-6b5c0a4cb7fd.zip", + ], + ) go_repository( name = "com_github_grpc_ecosystem_go_grpc_middleware", build_file_proto_mode = "disable_global", @@ -1705,6 +2768,19 @@ def go_deps(): sum = "h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo=", version = "v1.16.0", ) + go_repository( + name = "com_github_grpc_ecosystem_grpc_gateway_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/grpc-ecosystem/grpc-gateway/v2", + sha256 = "31c467951356be11a0c646299cbe2155b3254a68b643888a1ef7a7511cf1b1cf", + strip_prefix = "github.com/grpc-ecosystem/grpc-gateway/v2@v2.19.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/grpc-ecosystem/grpc-gateway/v2/com_github_grpc_ecosystem_grpc_gateway_v2-v2.19.1.zip", + "http://ats.apps.svc/gomod/github.com/grpc-ecosystem/grpc-gateway/v2/com_github_grpc_ecosystem_grpc_gateway_v2-v2.19.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/grpc-ecosystem/grpc-gateway/v2/com_github_grpc_ecosystem_grpc_gateway_v2-v2.19.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/grpc-ecosystem/grpc-gateway/v2/com_github_grpc_ecosystem_grpc_gateway_v2-v2.19.1.zip", + ], + ) go_repository( name = "com_github_grpc_ecosystem_grpc_opentracing", build_file_proto_mode = "disable", @@ -1712,6 +2788,20 @@ def go_deps(): sum = "h1:MJG/KsmcqMwFAkh8mTnAwhyKoB+sTAnY4CACC110tbU=", version = "v0.0.0-20180507213350-8e809c8a8645", ) + + go_repository( + name = "com_github_guptarohit_asciigraph", + build_file_proto_mode = "disable_global", + importpath = "github.com/guptarohit/asciigraph", + sha256 = "c2b81da57a50425d313a684efd13d9741c4e9df4c3cca92dea34d562d34271a1", + strip_prefix = "github.com/guptarohit/asciigraph@v0.5.5", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/guptarohit/asciigraph/com_github_guptarohit_asciigraph-v0.5.5.zip", + "http://ats.apps.svc/gomod/github.com/guptarohit/asciigraph/com_github_guptarohit_asciigraph-v0.5.5.zip", + "https://cache.hawkingrei.com/gomod/github.com/guptarohit/asciigraph/com_github_guptarohit_asciigraph-v0.5.5.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/guptarohit/asciigraph/com_github_guptarohit_asciigraph-v0.5.5.zip", + ], + ) go_repository( name = "com_github_hashicorp_consul_api", build_file_proto_mode = "disable_global", @@ -1721,11 +2811,25 @@ def go_deps(): ) go_repository( name = "com_github_hashicorp_consul_sdk", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/hashicorp/consul/sdk", sum = "h1:LnuDWGNsoajlhGyHJvuWW6FVqRl8JOTPqS6CPTsYjhY=", version = "v0.1.1", ) + + go_repository( + name = "com_github_hashicorp_cronexpr", + build_file_proto_mode = "disable_global", + importpath = "github.com/hashicorp/cronexpr", + sha256 = "d4a26ea051d2e1c3518ae9bae405db83f91b4b3bf2cb9fec903aff10e447cfa7", + strip_prefix = "github.com/hashicorp/cronexpr@v1.1.2", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/hashicorp/cronexpr/com_github_hashicorp_cronexpr-v1.1.2.zip", + "http://ats.apps.svc/gomod/github.com/hashicorp/cronexpr/com_github_hashicorp_cronexpr-v1.1.2.zip", + "https://cache.hawkingrei.com/gomod/github.com/hashicorp/cronexpr/com_github_hashicorp_cronexpr-v1.1.2.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/hashicorp/cronexpr/com_github_hashicorp_cronexpr-v1.1.2.zip", + ], + ) go_repository( name = "com_github_hashicorp_errwrap", build_file_proto_mode = "disable_global", @@ -1740,6 +2844,19 @@ def go_deps(): sum = "h1:dH3aiDG9Jvb5r5+bYHsikaOUIpcM0xvgMXVoDkXMzJM=", version = "v0.5.1", ) + go_repository( + name = "com_github_hashicorp_go_hclog", + build_file_proto_mode = "disable_global", + importpath = "github.com/hashicorp/go-hclog", + sha256 = "37eae99309c542b32aa7e28bcd0236e1ded8acce4aadc25d8e5a8ab03066482d", + strip_prefix = "github.com/hashicorp/go-hclog@v1.5.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/hashicorp/go-hclog/com_github_hashicorp_go_hclog-v1.5.0.zip", + "http://ats.apps.svc/gomod/github.com/hashicorp/go-hclog/com_github_hashicorp_go_hclog-v1.5.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/hashicorp/go-hclog/com_github_hashicorp_go_hclog-v1.5.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/hashicorp/go-hclog/com_github_hashicorp_go_hclog-v1.5.0.zip", + ], + ) go_repository( name = "com_github_hashicorp_go_immutable_radix", build_file_proto_mode = "disable_global", @@ -1749,7 +2866,7 @@ def go_deps(): ) go_repository( name = "com_github_hashicorp_go_msgpack", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/hashicorp/go-msgpack", sum = "h1:SFT72YqIkOcLdWJUYcriVX7hbrZpwc/f7h8aW2NUqrA=", version = "v0.5.4", @@ -1763,11 +2880,25 @@ def go_deps(): ) go_repository( name = "com_github_hashicorp_go_net", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/hashicorp/go.net", sum = "h1:sNCoNyDEvN1xa+X0baata4RdcpKwcMS6DH+xwfqPgjw=", version = "v0.0.1", ) + + go_repository( + name = "com_github_hashicorp_go_retryablehttp", + build_file_proto_mode = "disable_global", + importpath = "github.com/hashicorp/go-retryablehttp", + sha256 = "00f6d85c5c8b327f56d49ad48ef1d2df94affea340ca46ce827415ba75db4712", + strip_prefix = "github.com/hashicorp/go-retryablehttp@v0.7.4", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/hashicorp/go-retryablehttp/com_github_hashicorp_go_retryablehttp-v0.7.4.zip", + "http://ats.apps.svc/gomod/github.com/hashicorp/go-retryablehttp/com_github_hashicorp_go_retryablehttp-v0.7.4.zip", + "https://cache.hawkingrei.com/gomod/github.com/hashicorp/go-retryablehttp/com_github_hashicorp_go_retryablehttp-v0.7.4.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/hashicorp/go-retryablehttp/com_github_hashicorp_go_retryablehttp-v0.7.4.zip", + ], + ) go_repository( name = "com_github_hashicorp_go_rootcerts", build_file_proto_mode = "disable_global", @@ -1777,14 +2908,14 @@ def go_deps(): ) go_repository( name = "com_github_hashicorp_go_sockaddr", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/hashicorp/go-sockaddr", sum = "h1:ztczhD1jLxIRjVejw8gFomI1BQZOe2WoVOu0SyteCQc=", version = "v1.0.2", ) go_repository( name = "com_github_hashicorp_go_syslog", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/hashicorp/go-syslog", sum = "h1:KaodqZuhUoZereWVIYmpUgZysurB1kBLX2j0MwMrUAE=", version = "v1.0.0", @@ -1793,15 +2924,15 @@ def go_deps(): name = "com_github_hashicorp_go_uuid", build_file_proto_mode = "disable_global", importpath = "github.com/hashicorp/go-uuid", - sum = "h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE=", - version = "v1.0.2", + sum = "h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8=", + version = "v1.0.3", ) go_repository( name = "com_github_hashicorp_go_version", build_file_proto_mode = "disable_global", importpath = "github.com/hashicorp/go-version", - sum = "h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek=", - version = "v1.6.0", + sum = "h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY=", + version = "v1.7.0", ) go_repository( name = "com_github_hashicorp_golang_lru", @@ -1819,25 +2950,39 @@ def go_deps(): ) go_repository( name = "com_github_hashicorp_logutils", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/hashicorp/logutils", sum = "h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y=", version = "v1.0.0", ) go_repository( name = "com_github_hashicorp_mdns", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/hashicorp/mdns", sum = "h1:WhIgCr5a7AaVH6jPUwjtRuuE7/RDufnUvzIr48smyxs=", version = "v1.0.0", ) go_repository( name = "com_github_hashicorp_memberlist", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/hashicorp/memberlist", sum = "h1:EmmoJme1matNzb+hMpDuR/0sbJSUisxyqBGG676r31M=", version = "v0.1.3", ) + + go_repository( + name = "com_github_hashicorp_nomad_api", + build_file_proto_mode = "disable_global", + importpath = "github.com/hashicorp/nomad/api", + sha256 = "84f0a19132b5bc9b3694d113d0bd551a605717728f6b13a474db9bfbec502bc6", + strip_prefix = "github.com/hashicorp/nomad/api@v0.0.0-20230721134942-515895c7690c", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/hashicorp/nomad/api/com_github_hashicorp_nomad_api-v0.0.0-20230721134942-515895c7690c.zip", + "http://ats.apps.svc/gomod/github.com/hashicorp/nomad/api/com_github_hashicorp_nomad_api-v0.0.0-20230721134942-515895c7690c.zip", + "https://cache.hawkingrei.com/gomod/github.com/hashicorp/nomad/api/com_github_hashicorp_nomad_api-v0.0.0-20230721134942-515895c7690c.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/hashicorp/nomad/api/com_github_hashicorp_nomad_api-v0.0.0-20230721134942-515895c7690c.zip", + ], + ) go_repository( name = "com_github_hashicorp_serf", build_file_proto_mode = "disable_global", @@ -1852,20 +2997,40 @@ def go_deps(): sum = "h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM=", version = "v1.1.2", ) + go_repository( + name = "com_github_hetznercloud_hcloud_go_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/hetznercloud/hcloud-go/v2", + sha256 = "751828960948066c67e6682647ac68ed3141865d48a9e0e80c6444e0e00f55a1", + strip_prefix = "github.com/hetznercloud/hcloud-go/v2@v2.6.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/hetznercloud/hcloud-go/v2/com_github_hetznercloud_hcloud_go_v2-v2.6.0.zip", + "http://ats.apps.svc/gomod/github.com/hetznercloud/hcloud-go/v2/com_github_hetznercloud_hcloud_go_v2-v2.6.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/hetznercloud/hcloud-go/v2/com_github_hetznercloud_hcloud_go_v2-v2.6.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/hetznercloud/hcloud-go/v2/com_github_hetznercloud_hcloud_go_v2-v2.6.0.zip", + ], + ) go_repository( name = "com_github_hexops_gotextdiff", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/hexops/gotextdiff", sum = "h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM=", version = "v1.0.3", ) go_repository( name = "com_github_hpcloud_tail", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/hpcloud/tail", sum = "h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=", version = "v1.0.0", ) + go_repository( + name = "com_github_huandu_xstrings", + build_file_proto_mode = "disable_global", + importpath = "github.com/huandu/xstrings", + sum = "h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU=", + version = "v1.4.0", + ) go_repository( name = "com_github_hydrogen18_memlistener", build_file_proto_mode = "disable_global", @@ -1875,7 +3040,7 @@ def go_deps(): ) go_repository( name = "com_github_iancoleman_strcase", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/iancoleman/strcase", sum = "h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0=", version = "v0.2.0", @@ -1888,8 +3053,22 @@ def go_deps(): version = "v0.0.0-20210905161508-09a460cdf81d", ) go_repository( - name = "com_github_imkira_go_interpol", + name = "com_github_ibm_sarama", + build_file_proto_mode = "disable", + importpath = "github.com/IBM/sarama", + sum = "h1:Yj6L2IaNvb2mRBop39N7mmJAHBVY3dTPncr3qGVkxPA=", + version = "v1.43.3", + ) + go_repository( + name = "com_github_imdario_mergo", build_file_proto_mode = "disable_global", + importpath = "github.com/imdario/mergo", + sum = "h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4=", + version = "v0.3.16", + ) + go_repository( + name = "com_github_imkira_go_interpol", + build_file_proto_mode = "disable", importpath = "github.com/imkira/go-interpol", sum = "h1:KIiKr0VSG2CUW1hl1jpiyuzuJeKUUpC8iM1AIE7N1Vk=", version = "v1.1.0", @@ -1898,8 +3077,8 @@ def go_deps(): name = "com_github_inconshreveable_mousetrap", build_file_proto_mode = "disable_global", importpath = "github.com/inconshreveable/mousetrap", - sum = "h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc=", - version = "v1.0.1", + sum = "h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=", + version = "v1.1.0", ) go_repository( name = "com_github_influxdata_influxdb", @@ -1910,28 +3089,41 @@ def go_deps(): ) go_repository( name = "com_github_influxdata_tdigest", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/influxdata/tdigest", sum = "h1:XpFptwYmnEKUqmkcDjrzffswZ3nvNeevbUSLPP/ZzIY=", version = "v0.0.1", ) go_repository( - name = "com_github_iris_contrib_blackfriday", + name = "com_github_ionos_cloud_sdk_go_v6", build_file_proto_mode = "disable_global", + importpath = "github.com/ionos-cloud/sdk-go/v6", + sha256 = "f9538685d901f7c96779dc5b1341a3a5401ae235dd82ee700ded27c838911e4d", + strip_prefix = "github.com/ionos-cloud/sdk-go/v6@v6.1.11", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/ionos-cloud/sdk-go/v6/com_github_ionos_cloud_sdk_go_v6-v6.1.11.zip", + "http://ats.apps.svc/gomod/github.com/ionos-cloud/sdk-go/v6/com_github_ionos_cloud_sdk_go_v6-v6.1.11.zip", + "https://cache.hawkingrei.com/gomod/github.com/ionos-cloud/sdk-go/v6/com_github_ionos_cloud_sdk_go_v6-v6.1.11.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/ionos-cloud/sdk-go/v6/com_github_ionos_cloud_sdk_go_v6-v6.1.11.zip", + ], + ) + go_repository( + name = "com_github_iris_contrib_blackfriday", + build_file_proto_mode = "disable", importpath = "github.com/iris-contrib/blackfriday", sum = "h1:o5sHQHHm0ToHUlAJSTjW9UWicjJSDDauOOQ2AHuIVp4=", version = "v2.0.0+incompatible", ) go_repository( name = "com_github_iris_contrib_go_uuid", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/iris-contrib/go.uuid", sum = "h1:XZubAYg61/JwnJNbZilGjf3b3pB80+OQg2qf6c8BfWE=", version = "v2.0.0+incompatible", ) go_repository( name = "com_github_iris_contrib_i18n", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/iris-contrib/i18n", sum = "h1:Kyp9KiXwsyZRTeoNjgVCrWks7D8ht9+kg6yCjh8K97o=", version = "v0.0.0-20171121225848-987a633949d0", @@ -1964,16 +3156,23 @@ def go_deps(): sum = "h1:gSvTxxFR/MEMfsGrvRbdfpRUMBStovlSRLw0Ep1bwwc=", version = "v1.2.0", ) + go_repository( + name = "com_github_jbenet_go_context", + build_file_proto_mode = "disable", + importpath = "github.com/jbenet/go-context", + sum = "h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=", + version = "v0.0.0-20150711004518-d14ea06fba99", + ) go_repository( name = "com_github_jcmturner_aescts_v2", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/jcmturner/aescts/v2", sum = "h1:9YKLH6ey7H4eDBXW8khjYslgyqG2xZikXP0EQFKrle8=", version = "v2.0.0", ) go_repository( name = "com_github_jcmturner_dnsutils_v2", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/jcmturner/dnsutils/v2", sum = "h1:lltnkeZGL0wILNvrNiVCR6Ro5PGU/SeBvVO/8c/iPbo=", version = "v2.0.0", @@ -1982,26 +3181,26 @@ def go_deps(): name = "com_github_jcmturner_gofork", build_file_proto_mode = "disable_global", importpath = "github.com/jcmturner/gofork", - sum = "h1:J7uCkflzTEhUZ64xqKnkDxq3kzc96ajM1Gli5ktUem8=", - version = "v1.0.0", + sum = "h1:QH0l3hzAU1tfT3rZCnW5zXl+orbkNMMRGJfdJjHVETg=", + version = "v1.7.6", ) go_repository( name = "com_github_jcmturner_goidentity_v6", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/jcmturner/goidentity/v6", sum = "h1:VKnZd2oEIMorCTsFBnJWbExfNN7yZr3EhJAxwOkZg6o=", version = "v6.0.1", ) go_repository( name = "com_github_jcmturner_gokrb5_v8", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/jcmturner/gokrb5/v8", - sum = "h1:6ZIM6b/JJN0X8UM43ZOM6Z4SJzla+a/u7scXFJzodkA=", - version = "v8.4.2", + sum = "h1:x1Sv4HaTpepFkXbt2IkL29DXRf8sOfZXo8eRKh687T8=", + version = "v8.4.4", ) go_repository( name = "com_github_jcmturner_rpc_v2", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/jcmturner/rpc/v2", sum = "h1:7FXXj8Ti1IaVFpSAziCZWNzbNuZmnvw/i6CqLNdWfZY=", version = "v2.0.3", @@ -2015,31 +3214,144 @@ def go_deps(): ) go_repository( name = "com_github_jeffail_gabs_v2", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/Jeffail/gabs/v2", sum = "h1:ANfZYjpMlfTTKebycu4X1AgkVWumFVDYQl7JwOr4mDk=", version = "v2.5.1", ) + go_repository( - name = "com_github_jgautheron_goconst", + name = "com_github_jellydator_ttlcache_v3", + build_file_proto_mode = "disable_global", + importpath = "github.com/jellydator/ttlcache/v3", + sha256 = "75cabcc118414bc9e42cef6769fffc0c500954f2ef1988a3797aee0f4351f306", + strip_prefix = "github.com/jellydator/ttlcache/v3@v3.0.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/jellydator/ttlcache/v3/com_github_jellydator_ttlcache_v3-v3.0.1.zip", + "http://ats.apps.svc/gomod/github.com/jellydator/ttlcache/v3/com_github_jellydator_ttlcache_v3-v3.0.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/jellydator/ttlcache/v3/com_github_jellydator_ttlcache_v3-v3.0.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/jellydator/ttlcache/v3/com_github_jellydator_ttlcache_v3-v3.0.1.zip", + ], + ) + go_repository( + name = "com_github_jessevdk_go_flags", build_file_proto_mode = "disable", + importpath = "github.com/jessevdk/go-flags", + sum = "h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc=", + version = "v1.5.0", + ) + + go_repository( + name = "com_github_jfcg_opt", + build_file_proto_mode = "disable_global", + importpath = "github.com/jfcg/opt", + sha256 = "d774e375f6827f16be051e177407bb3217e051cf4285449788abff3ebf01a468", + strip_prefix = "github.com/jfcg/opt@v0.3.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/jfcg/opt/com_github_jfcg_opt-v0.3.1.zip", + "http://ats.apps.svc/gomod/github.com/jfcg/opt/com_github_jfcg_opt-v0.3.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/jfcg/opt/com_github_jfcg_opt-v0.3.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/jfcg/opt/com_github_jfcg_opt-v0.3.1.zip", + ], + ) + go_repository( + name = "com_github_jfcg_rng", + build_file_proto_mode = "disable_global", + importpath = "github.com/jfcg/rng", + sha256 = "8c450d237ea8ba22b6bc6337dcd11519fd6d04c2b31b9b38e5c26ae04ed7cae8", + strip_prefix = "github.com/jfcg/rng@v1.0.4", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/jfcg/rng/com_github_jfcg_rng-v1.0.4.zip", + "http://ats.apps.svc/gomod/github.com/jfcg/rng/com_github_jfcg_rng-v1.0.4.zip", + "https://cache.hawkingrei.com/gomod/github.com/jfcg/rng/com_github_jfcg_rng-v1.0.4.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/jfcg/rng/com_github_jfcg_rng-v1.0.4.zip", + ], + ) + go_repository( + name = "com_github_jfcg_sixb", + build_file_proto_mode = "disable_global", + importpath = "github.com/jfcg/sixb", + sha256 = "5eda29ec69dff767e5353325eab7b2edac5911fcbbaf84f42c0513ab50b76952", + strip_prefix = "github.com/jfcg/sixb@v1.3.8", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/jfcg/sixb/com_github_jfcg_sixb-v1.3.8.zip", + "http://ats.apps.svc/gomod/github.com/jfcg/sixb/com_github_jfcg_sixb-v1.3.8.zip", + "https://cache.hawkingrei.com/gomod/github.com/jfcg/sixb/com_github_jfcg_sixb-v1.3.8.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/jfcg/sixb/com_github_jfcg_sixb-v1.3.8.zip", + ], + ) + go_repository( + name = "com_github_jfcg_sorty_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/jfcg/sorty/v2", + sha256 = "4a126a66ee9237c696a038eff39710b55d92a846f807a5005dde35f4a0b869e3", + strip_prefix = "github.com/jfcg/sorty/v2@v2.1.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/jfcg/sorty/v2/com_github_jfcg_sorty_v2-v2.1.0.zip", + "http://ats.apps.svc/gomod/github.com/jfcg/sorty/v2/com_github_jfcg_sorty_v2-v2.1.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/jfcg/sorty/v2/com_github_jfcg_sorty_v2-v2.1.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/jfcg/sorty/v2/com_github_jfcg_sorty_v2-v2.1.0.zip", + ], + ) + go_repository( + name = "com_github_jgautheron_goconst", + build_file_proto_mode = "disable_global", importpath = "github.com/jgautheron/goconst", - sum = "h1:HxVbL1MhydKs8R8n/HE5NPvzfaYmQJA3o879lE4+WcM=", - version = "v1.5.1", + sum = "h1:VpdAG7Ca7yvvJk5n8dMwQhfEZJh95kl/Hl9S1OI5Jkk=", + version = "v1.7.1", ) go_repository( name = "com_github_jingyugao_rowserrcheck", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/jingyugao/rowserrcheck", sum = "h1:zibz55j/MJtLsjP1OF4bSdgXxwL1b+Vn7Tjzq7gFzUs=", version = "v1.1.1", ) + go_repository( + name = "com_github_jinzhu_inflection", + build_file_proto_mode = "disable_global", + importpath = "github.com/jinzhu/inflection", + sha256 = "cf1087a6f6653ed5f366f85cf0110bbbf581d4e9bc8a4d1a9b56765d94b546c3", + strip_prefix = "github.com/jinzhu/inflection@v1.0.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/jinzhu/inflection/com_github_jinzhu_inflection-v1.0.0.zip", + "http://ats.apps.svc/gomod/github.com/jinzhu/inflection/com_github_jinzhu_inflection-v1.0.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/jinzhu/inflection/com_github_jinzhu_inflection-v1.0.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/jinzhu/inflection/com_github_jinzhu_inflection-v1.0.0.zip", + ], + ) + go_repository( + name = "com_github_jinzhu_now", + build_file_proto_mode = "disable_global", + importpath = "github.com/jinzhu/now", + sha256 = "1223dc55db616f156c1f1467adc2c88f786905df3cc3cb4fd5161badd654c62b", + strip_prefix = "github.com/jinzhu/now@v1.1.5", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/jinzhu/now/com_github_jinzhu_now-v1.1.5.zip", + "http://ats.apps.svc/gomod/github.com/jinzhu/now/com_github_jinzhu_now-v1.1.5.zip", + "https://cache.hawkingrei.com/gomod/github.com/jinzhu/now/com_github_jinzhu_now-v1.1.5.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/jinzhu/now/com_github_jinzhu_now-v1.1.5.zip", + ], + ) go_repository( name = "com_github_jirfag_go_printf_func_name", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/jirfag/go-printf-func-name", - sum = "h1:KA9BjwUk7KlCh6S9EAGWBt1oExIUv9WyNCiRz5amv48=", - version = "v0.0.0-20200119135958-7558a9eaa5af", + sha256 = "013b28c5c829165bd768e75784d7a8bbdfd0b0bb6ca1549539f94b9d6a6000fe", + strip_prefix = "github.com/jirfag/go-printf-func-name@v0.0.0-20200119135958-7558a9eaa5af", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/jirfag/go-printf-func-name/com_github_jirfag_go_printf_func_name-v0.0.0-20200119135958-7558a9eaa5af.zip", + "http://ats.apps.svc/gomod/github.com/jirfag/go-printf-func-name/com_github_jirfag_go_printf_func_name-v0.0.0-20200119135958-7558a9eaa5af.zip", + "https://cache.hawkingrei.com/gomod/github.com/jirfag/go-printf-func-name/com_github_jirfag_go_printf_func_name-v0.0.0-20200119135958-7558a9eaa5af.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/jirfag/go-printf-func-name/com_github_jirfag_go_printf_func_name-v0.0.0-20200119135958-7558a9eaa5af.zip", + ], + ) + go_repository( + name = "com_github_jjti_go_spancheck", + build_file_proto_mode = "disable_global", + importpath = "github.com/jjti/go-spancheck", + sum = "h1:iYtoxqPMzHUPp7St+5yA8+cONdyXD3ug6KK15n7Pklk=", + version = "v0.6.2", ) go_repository( name = "com_github_jmespath_go_jmespath", @@ -2055,6 +3367,32 @@ def go_deps(): sum = "h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=", version = "v1.5.1", ) + go_repository( + name = "com_github_johannesboyne_gofakes3", + build_file_proto_mode = "disable_global", + importpath = "github.com/johannesboyne/gofakes3", + sha256 = "b0ba2f7ee1765c24d88f2c5c3d478992f03d40c72531d3725696baa5fdad4a73", + strip_prefix = "github.com/johannesboyne/gofakes3@v0.0.0-20230506070712-04da935ef877", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/johannesboyne/gofakes3/com_github_johannesboyne_gofakes3-v0.0.0-20230506070712-04da935ef877.zip", + "http://ats.apps.svc/gomod/github.com/johannesboyne/gofakes3/com_github_johannesboyne_gofakes3-v0.0.0-20230506070712-04da935ef877.zip", + "https://cache.hawkingrei.com/gomod/github.com/johannesboyne/gofakes3/com_github_johannesboyne_gofakes3-v0.0.0-20230506070712-04da935ef877.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/johannesboyne/gofakes3/com_github_johannesboyne_gofakes3-v0.0.0-20230506070712-04da935ef877.zip", + ], + ) + go_repository( + name = "com_github_johncgriffin_overflow", + build_file_proto_mode = "disable_global", + importpath = "github.com/JohnCGriffin/overflow", + sha256 = "8ad4da840214861386d243127290666cc54eb914d1f4a8856523481876af2a09", + strip_prefix = "github.com/JohnCGriffin/overflow@v0.0.0-20211019200055-46fa312c352c", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/JohnCGriffin/overflow/com_github_johncgriffin_overflow-v0.0.0-20211019200055-46fa312c352c.zip", + "http://ats.apps.svc/gomod/github.com/JohnCGriffin/overflow/com_github_johncgriffin_overflow-v0.0.0-20211019200055-46fa312c352c.zip", + "https://cache.hawkingrei.com/gomod/github.com/JohnCGriffin/overflow/com_github_johncgriffin_overflow-v0.0.0-20211019200055-46fa312c352c.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/JohnCGriffin/overflow/com_github_johncgriffin_overflow-v0.0.0-20211019200055-46fa312c352c.zip", + ], + ) go_repository( name = "com_github_joho_sqltocsv", build_file_proto_mode = "disable_global", @@ -2064,7 +3402,7 @@ def go_deps(): ) go_repository( name = "com_github_joker_hpp", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/Joker/hpp", sum = "h1:65+iuJYdRXv/XyN62C1uEmmOx3432rNG/rKlX6V7Kkc=", version = "v1.0.0", @@ -2085,10 +3423,23 @@ def go_deps(): ) go_repository( name = "com_github_josharian_intern", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/josharian/intern", - sum = "h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=", - version = "v1.0.0", + sha256 = "5679bfd11c14adccdb45bd1a0f9cf4b445b95caeed6fb507ba96ecced11c248d", + strip_prefix = "github.com/josharian/intern@v1.0.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/josharian/intern/com_github_josharian_intern-v1.0.0.zip", + "http://ats.apps.svc/gomod/github.com/josharian/intern/com_github_josharian_intern-v1.0.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/josharian/intern/com_github_josharian_intern-v1.0.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/josharian/intern/com_github_josharian_intern-v1.0.0.zip", + ], + ) + go_repository( + name = "com_github_josharian_txtarfs", + build_file_proto_mode = "disable", + importpath = "github.com/josharian/txtarfs", + sum = "h1:8NZHLa6Gp0hW6xJ0c3F1Kse7dJw30fOcDzHuF9sLbnE=", + version = "v0.0.0-20210218200122-0702f000015a", ) go_repository( name = "com_github_jpillora_backoff", @@ -2113,28 +3464,28 @@ def go_deps(): ) go_repository( name = "com_github_jtolds_gls", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/jtolds/gls", sum = "h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=", version = "v4.20.0+incompatible", ) go_repository( name = "com_github_juju_errors", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/juju/errors", sum = "h1:rhqTjzJlm7EbkELJDKMTU7udov+Se0xZkWmugr6zGok=", version = "v0.0.0-20181118221551-089d3ea4e4d5", ) go_repository( name = "com_github_juju_loggo", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/juju/loggo", sum = "h1:MK144iBQF9hTSwBW/9eJm034bVoG30IshVm688T2hi8=", version = "v0.0.0-20180524022052-584905176618", ) go_repository( name = "com_github_juju_testing", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/juju/testing", sum = "h1:WQM1NildKThwdP7qWrNAFGzp4ijNLw8RlgENkaI4MJs=", version = "v0.0.0-20180920084828-472a3e8b2073", @@ -2148,7 +3499,7 @@ def go_deps(): ) go_repository( name = "com_github_julz_importas", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/julz/importas", sum = "h1:F78HnrsjY3cR7j0etXy5+TU1Zuy7Xt08X/1aJnH5xXY=", version = "v0.1.0", @@ -2162,11 +3513,31 @@ def go_deps(): ) go_repository( name = "com_github_k0kubun_colorstring", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/k0kubun/colorstring", sum = "h1:uC1QfSlInpQF+M0ao65imhwqKnz3Q2z/d8PWZRMQvDM=", version = "v0.0.0-20150214042306-9440f1994b88", ) + go_repository( + name = "com_github_karamaru_alpha_copyloopvar", + build_file_proto_mode = "disable_global", + importpath = "github.com/karamaru-alpha/copyloopvar", + sum = "h1:x7gNyKcC2vRBO1H2Mks5u1VxQtYvFiym7fCjIP8RPos=", + version = "v1.1.0", + ) + go_repository( + name = "com_github_kataras_blocks", + build_file_proto_mode = "disable_global", + importpath = "github.com/kataras/blocks", + sha256 = "bdc3d49ea54a2a2ef733ae701986be69fba7d735ae876ea736806e4f3ef00a8b", + strip_prefix = "github.com/kataras/blocks@v0.0.7", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/kataras/blocks/com_github_kataras_blocks-v0.0.7.zip", + "http://ats.apps.svc/gomod/github.com/kataras/blocks/com_github_kataras_blocks-v0.0.7.zip", + "https://cache.hawkingrei.com/gomod/github.com/kataras/blocks/com_github_kataras_blocks-v0.0.7.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/kataras/blocks/com_github_kataras_blocks-v0.0.7.zip", + ], + ) go_repository( name = "com_github_kataras_golog", build_file_proto_mode = "disable_global", @@ -2183,7 +3554,7 @@ def go_deps(): ) go_repository( name = "com_github_kataras_neffos", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/kataras/neffos", sum = "h1:O06dvQlxjdWvzWbm2Bq+Si6psUhvSmEctAMk9Xujqms=", version = "v0.0.10", @@ -2195,6 +3566,74 @@ def go_deps(): sum = "h1:V5Rs9ztEWdp58oayPq/ulmlqJJZeJP6pP79uP3qjcao=", version = "v0.0.0-20190103105442-ea782b38602d", ) + go_repository( + name = "com_github_kataras_sitemap", + build_file_proto_mode = "disable_global", + importpath = "github.com/kataras/sitemap", + sha256 = "800ba5c5a28e512c18e3aaa7be50125db98c5be70b84107f3f90713ac2269ea0", + strip_prefix = "github.com/kataras/sitemap@v0.0.6", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/kataras/sitemap/com_github_kataras_sitemap-v0.0.6.zip", + "http://ats.apps.svc/gomod/github.com/kataras/sitemap/com_github_kataras_sitemap-v0.0.6.zip", + "https://cache.hawkingrei.com/gomod/github.com/kataras/sitemap/com_github_kataras_sitemap-v0.0.6.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/kataras/sitemap/com_github_kataras_sitemap-v0.0.6.zip", + ], + ) + go_repository( + name = "com_github_kataras_tunnel", + build_file_proto_mode = "disable_global", + importpath = "github.com/kataras/tunnel", + sha256 = "1ae8dcc9a6ca3f47c5f8b57767a08b0acd916eceef49c48aa9859547316db8e2", + strip_prefix = "github.com/kataras/tunnel@v0.0.4", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/kataras/tunnel/com_github_kataras_tunnel-v0.0.4.zip", + "http://ats.apps.svc/gomod/github.com/kataras/tunnel/com_github_kataras_tunnel-v0.0.4.zip", + "https://cache.hawkingrei.com/gomod/github.com/kataras/tunnel/com_github_kataras_tunnel-v0.0.4.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/kataras/tunnel/com_github_kataras_tunnel-v0.0.4.zip", + ], + ) + go_repository( + name = "com_github_kballard_go_shellquote", + build_file_proto_mode = "disable_global", + importpath = "github.com/kballard/go-shellquote", + sha256 = "ae4cb7b097dc4eb0c248dff00ed3bbf0f36984c4162ad1d615266084e58bd6cc", + strip_prefix = "github.com/kballard/go-shellquote@v0.0.0-20180428030007-95032a82bc51", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/kballard/go-shellquote/com_github_kballard_go_shellquote-v0.0.0-20180428030007-95032a82bc51.zip", + "http://ats.apps.svc/gomod/github.com/kballard/go-shellquote/com_github_kballard_go_shellquote-v0.0.0-20180428030007-95032a82bc51.zip", + "https://cache.hawkingrei.com/gomod/github.com/kballard/go-shellquote/com_github_kballard_go_shellquote-v0.0.0-20180428030007-95032a82bc51.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/kballard/go-shellquote/com_github_kballard_go_shellquote-v0.0.0-20180428030007-95032a82bc51.zip", + ], + ) + go_repository( + name = "com_github_kevinburke_ssh_config", + build_file_proto_mode = "disable", + importpath = "github.com/kevinburke/ssh_config", + sum = "h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4=", + version = "v1.2.0", + ) + + go_repository( + name = "com_github_keybase_go_keychain", + build_file_proto_mode = "disable", + importpath = "github.com/keybase/go-keychain", + sum = "h1:IsMZxCuZqKuao2vNdfD82fjjgPLfyHLpR41Z88viRWs=", + version = "v0.0.0-20231219164618-57a3676c3af6", + ) + + go_repository( + name = "com_github_kimmachinegun_automemlimit", + build_file_proto_mode = "disable_global", + importpath = "github.com/KimMachineGun/automemlimit", + sha256 = "fb03ca71f809b89d513c0cbb5ad7b05c1268e220401298958cb970b76027e4ca", + strip_prefix = "github.com/KimMachineGun/automemlimit@v0.5.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/KimMachineGun/automemlimit/com_github_kimmachinegun_automemlimit-v0.5.0.zip", + "http://ats.apps.svc/gomod/github.com/KimMachineGun/automemlimit/com_github_kimmachinegun_automemlimit-v0.5.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/KimMachineGun/automemlimit/com_github_kimmachinegun_automemlimit-v0.5.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/KimMachineGun/automemlimit/com_github_kimmachinegun_automemlimit-v0.5.0.zip", + ], + ) go_repository( name = "com_github_kisielk_errcheck", build_file_proto_mode = "disable_global", @@ -2203,8 +3642,8 @@ def go_deps(): patches = [ "//build/patches:com_github_kisielk_errcheck.patch", ], - sum = "h1:uGQ9xI8/pgc9iOoCe7kWQgRE6SBTrCGmTSf0LrEtY7c=", - version = "v1.6.2", + sum = "h1:ZX/URYa7ilESY19ik/vBmCn6zdGQLxACwjAcWbHlYlg=", + version = "v1.8.0", ) go_repository( name = "com_github_kisielk_gotool", @@ -2215,17 +3654,30 @@ def go_deps(): ) go_repository( name = "com_github_kkhaike_contextcheck", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/kkHAIKE/contextcheck", - sum = "h1:l4pNvrb8JSwRd51ojtcOxOeHJzHek+MtOyXbaR0uvmw=", - version = "v1.1.3", + sum = "h1:CdnJh63tcDe53vG+RebdpdXJTc9atMgGqdx8LXxiilg=", + version = "v1.1.5", + ) + go_repository( + name = "com_github_klauspost_asmfmt", + build_file_proto_mode = "disable_global", + importpath = "github.com/klauspost/asmfmt", + sha256 = "fa6a350a8677a77e0dbf3664c6baf23aab5c0b60a64b8f3c00299da5d279021f", + strip_prefix = "github.com/klauspost/asmfmt@v1.3.2", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/klauspost/asmfmt/com_github_klauspost_asmfmt-v1.3.2.zip", + "http://ats.apps.svc/gomod/github.com/klauspost/asmfmt/com_github_klauspost_asmfmt-v1.3.2.zip", + "https://cache.hawkingrei.com/gomod/github.com/klauspost/asmfmt/com_github_klauspost_asmfmt-v1.3.2.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/klauspost/asmfmt/com_github_klauspost_asmfmt-v1.3.2.zip", + ], ) go_repository( name = "com_github_klauspost_compress", build_file_proto_mode = "disable_global", importpath = "github.com/klauspost/compress", - sum = "h1:y9FcTHGyrebwfP0ZZqFiaxTaiDnUrGkJkI+f583BL1A=", - version = "v1.15.1", + sum = "h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA=", + version = "v1.17.9", ) go_repository( name = "com_github_klauspost_cpuid", @@ -2234,6 +3686,19 @@ def go_deps(): sum = "h1:5JNjFYYQrZeKRJ0734q51WCEEn2huer72Dc7K+R/b6s=", version = "v1.3.1", ) + go_repository( + name = "com_github_klauspost_cpuid_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/klauspost/cpuid/v2", + sha256 = "52c716413296dce2b1698c6cdbc4c53927ce4aee2a60980daf9672e6b6a3b4cb", + strip_prefix = "github.com/klauspost/cpuid/v2@v2.0.9", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/klauspost/cpuid/v2/com_github_klauspost_cpuid_v2-v2.0.9.zip", + "http://ats.apps.svc/gomod/github.com/klauspost/cpuid/v2/com_github_klauspost_cpuid_v2-v2.0.9.zip", + "https://cache.hawkingrei.com/gomod/github.com/klauspost/cpuid/v2/com_github_klauspost_cpuid_v2-v2.0.9.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/klauspost/cpuid/v2/com_github_klauspost_cpuid_v2-v2.0.9.zip", + ], + ) go_repository( name = "com_github_knz_strtime", build_file_proto_mode = "disable", @@ -2241,6 +3706,20 @@ def go_deps(): sum = "h1:45aLE1GlZRKxNfTMkok85BUKAJNLdHr5GAm3h8Fqoww=", version = "v0.0.0-20181018220328-af2256ee352c", ) + + go_repository( + name = "com_github_kolo_xmlrpc", + build_file_proto_mode = "disable_global", + importpath = "github.com/kolo/xmlrpc", + sha256 = "310742360a864798a1bfce6db8604263574c0be502670c8bfedeab8fcbe9d191", + strip_prefix = "github.com/kolo/xmlrpc@v0.0.0-20220921171641-a4b6fa1dd06b", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/kolo/xmlrpc/com_github_kolo_xmlrpc-v0.0.0-20220921171641-a4b6fa1dd06b.zip", + "http://ats.apps.svc/gomod/github.com/kolo/xmlrpc/com_github_kolo_xmlrpc-v0.0.0-20220921171641-a4b6fa1dd06b.zip", + "https://cache.hawkingrei.com/gomod/github.com/kolo/xmlrpc/com_github_kolo_xmlrpc-v0.0.0-20220921171641-a4b6fa1dd06b.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/kolo/xmlrpc/com_github_kolo_xmlrpc-v0.0.0-20220921171641-a4b6fa1dd06b.zip", + ], + ) go_repository( name = "com_github_konsorten_go_windows_terminal_sequences", build_file_proto_mode = "disable_global", @@ -2250,7 +3729,7 @@ def go_deps(): ) go_repository( name = "com_github_kr_logfmt", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/kr/logfmt", sum = "h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY=", version = "v0.0.0-20140226030751-b84e30acd515", @@ -2259,8 +3738,8 @@ def go_deps(): name = "com_github_kr_pretty", build_file_proto_mode = "disable_global", importpath = "github.com/kr/pretty", - sum = "h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=", - version = "v0.3.0", + sum = "h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=", + version = "v0.3.1", ) go_repository( name = "com_github_kr_pty", @@ -2276,26 +3755,46 @@ def go_deps(): sum = "h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=", version = "v0.2.0", ) + go_repository( + name = "com_github_ks3sdklib_aws_sdk_go", + build_file_proto_mode = "disable_global", + importpath = "github.com/ks3sdklib/aws-sdk-go", + sha256 = "1edfac4a072a0180b308ddc1a9e96d51407e2e66573938e14e056ba6fef5bddb", + strip_prefix = "github.com/ks3sdklib/aws-sdk-go@v1.2.9", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/ks3sdklib/aws-sdk-go/com_github_ks3sdklib_aws_sdk_go-v1.2.9.zip", + "http://ats.apps.svc/gomod/github.com/ks3sdklib/aws-sdk-go/com_github_ks3sdklib_aws_sdk_go-v1.2.9.zip", + "https://cache.hawkingrei.com/gomod/github.com/ks3sdklib/aws-sdk-go/com_github_ks3sdklib_aws_sdk_go-v1.2.9.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/ks3sdklib/aws-sdk-go/com_github_ks3sdklib_aws_sdk_go-v1.2.9.zip", + ], + ) go_repository( name = "com_github_kulti_thelper", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/kulti/thelper", sum = "h1:ElhKf+AlItIu+xGnI990no4cE2+XaSu1ULymV2Yulxs=", version = "v0.6.3", ) go_repository( name = "com_github_kunwardeep_paralleltest", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/kunwardeep/paralleltest", - sum = "h1:FCKYMF1OF2+RveWlABsdnmsvJrei5aoyZoaGS+Ugg8g=", - version = "v1.0.6", + sum = "h1:wrodoaKYzS2mdNVnc4/w31YaXFtsc21PCTdvWJ/lDDs=", + version = "v1.0.10", + ) + go_repository( + name = "com_github_kylelemons_godebug", + build_file_proto_mode = "disable_global", + importpath = "github.com/kylelemons/godebug", + sum = "h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=", + version = "v1.1.0", ) go_repository( name = "com_github_kyoh86_exportloopref", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/kyoh86/exportloopref", - sum = "h1:5Ry/at+eFdkX9Vsdw3qU4YkvGtzuVfzT4X7S77LoN/M=", - version = "v0.1.8", + sum = "h1:1Z0bcmTypkL3Q4k+IDHMWTcnCliEZcaPiIe0/ymEyhQ=", + version = "v0.1.11", ) go_repository( name = "com_github_labstack_echo_v4", @@ -2311,65 +3810,98 @@ def go_deps(): sum = "h1:JEeO0bvc78PKdyHxloTKiF8BD5iGrH8T6MSeGvSgob0=", version = "v0.3.0", ) + go_repository( + name = "com_github_lance6716_pebble", + build_file_proto_mode = "disable_global", + importpath = "github.com/lance6716/pebble", + sha256 = "8fe7ce7009c4d2b0ae28f4c3d62f38b6256ee20e47944490b58cb1d33a155725", + strip_prefix = "github.com/lance6716/pebble@v0.0.0-20241108073934-da961314c63f", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/lance6716/pebble/com_github_lance6716_pebble-v0.0.0-20241108073934-da961314c63f.zip", + "http://ats.apps.svc/gomod/github.com/lance6716/pebble/com_github_lance6716_pebble-v0.0.0-20241108073934-da961314c63f.zip", + "https://cache.hawkingrei.com/gomod/github.com/lance6716/pebble/com_github_lance6716_pebble-v0.0.0-20241108073934-da961314c63f.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/lance6716/pebble/com_github_lance6716_pebble-v0.0.0-20241108073934-da961314c63f.zip", + ], + ) + go_repository( + name = "com_github_lasiar_canonicalheader", + build_file_proto_mode = "disable_global", + importpath = "github.com/lasiar/canonicalheader", + sum = "h1:vZ5uqwvDbyJCnMhmFYimgMZnJMjwljN5VGY0VKbMXb4=", + version = "v1.1.2", + ) go_repository( name = "com_github_ldez_gomoddirectives", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/ldez/gomoddirectives", - sum = "h1:y7MBaisZVDYmKvt9/l1mjNCiSA1BVn34U0ObUcJwlhA=", - version = "v0.2.3", + sum = "h1:j3YjBIjEBbqZ0NKtBNzr8rtMHTOrLPeiwTkfUJZ3alg=", + version = "v0.2.4", ) go_repository( name = "com_github_ldez_tagliatelle", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/ldez/tagliatelle", - sum = "h1:3BqVVlReVUZwafJUwQ+oxbx2BEX2vUG4Yu/NOfMiKiM=", - version = "v0.3.1", + sum = "h1:epgfuYt9v0CG3fms0pEgIMNPuFf/LpPIfjk4kyqSioo=", + version = "v0.5.0", + ) + go_repository( + name = "com_github_leodido_go_urn", + build_file_proto_mode = "disable_global", + importpath = "github.com/leodido/go-urn", + sha256 = "8ae6e756f0e919a551e447f286491c08ca36ceaf415c2dde395fd79c1a408d1a", + strip_prefix = "github.com/leodido/go-urn@v1.2.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/leodido/go-urn/com_github_leodido_go_urn-v1.2.1.zip", + "http://ats.apps.svc/gomod/github.com/leodido/go-urn/com_github_leodido_go_urn-v1.2.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/leodido/go-urn/com_github_leodido_go_urn-v1.2.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/leodido/go-urn/com_github_leodido_go_urn-v1.2.1.zip", + ], ) go_repository( name = "com_github_leonklingele_grouper", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/leonklingele/grouper", - sum = "h1:tC2y/ygPbMFSBOs3DcyaEMKnnwH7eYKzohOtRrf0SAg=", - version = "v1.1.0", + sum = "h1:o1ARBDLOmmasUaNDesWqWCIFH3u7hoFlM84YrjT3mIY=", + version = "v1.1.2", ) go_repository( name = "com_github_lestrrat_go_blackmagic", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/lestrrat-go/blackmagic", sum = "h1:Cg2gVSc9h7sz9NOByczrbUvLopQmXrfFx//N+AkAr5k=", version = "v1.0.2", ) go_repository( name = "com_github_lestrrat_go_httpcc", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/lestrrat-go/httpcc", sum = "h1:ydWCStUeJLkpYyjLDHihupbn2tYmZ7m22BGkcvZZrIE=", version = "v1.0.1", ) go_repository( name = "com_github_lestrrat_go_httprc", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/lestrrat-go/httprc", - sum = "h1:bAZymwoZQb+Oq8MEbyipag7iSq6YIga8Wj6GOiJGdI8=", - version = "v1.0.4", + sum = "h1:bsTfiH8xaKOJPrg1R+E3iE/AWZr/x0Phj9PBTG/OLUk=", + version = "v1.0.5", ) go_repository( name = "com_github_lestrrat_go_iter", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/lestrrat-go/iter", sum = "h1:gMXo1q4c2pHmC3dn8LzRhJfP1ceCbgSiT9lUydIzltI=", version = "v1.0.2", ) go_repository( name = "com_github_lestrrat_go_jwx_v2", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/lestrrat-go/jwx/v2", - sum = "h1:+WavkdKVWO90ECnIzUetOnjY+kcqqw4WXEUmil7sMCE=", - version = "v2.0.17", + sum = "h1:jAPKupy4uHgrHFEdjVjNkUgoBKtVDgrQPB/h55FHrR0=", + version = "v2.0.21", ) go_repository( name = "com_github_lestrrat_go_option", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/lestrrat-go/option", sum = "h1:oAzP2fvZGQKWkvHa1/SAcFolBEca1oN+mQ7eooNBEYU=", version = "v1.0.1", @@ -2388,12 +3920,32 @@ def go_deps(): sum = "h1:D0GGa7afJ7GcQvu5as6ssLEEKYXvRgKI5d5cevtz8r4=", version = "v0.15.6", ) + + go_repository( + name = "com_github_linode_linodego", + build_file_proto_mode = "disable_global", + importpath = "github.com/linode/linodego", + sha256 = "af21149264f65f5a0383ee0a109e8ef1e4f5db95f951d657cb923b0b4f771d4a", + strip_prefix = "github.com/linode/linodego@v1.27.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/linode/linodego/com_github_linode_linodego-v1.27.1.zip", + "http://ats.apps.svc/gomod/github.com/linode/linodego/com_github_linode_linodego-v1.27.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/linode/linodego/com_github_linode_linodego-v1.27.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/linode/linodego/com_github_linode_linodego-v1.27.1.zip", + ], + ) go_repository( name = "com_github_lufeee_execinquery", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/lufeee/execinquery", - sum = "h1:hf0Ems4SHcUGBxpGN7Jz78z1ppVkP/837ZlETPCEtOM=", - version = "v1.2.1", + sha256 = "040a3d96d8ca1bb8240a9c8beaf914e71a1c73c2a44358e290b4969de560225f", + strip_prefix = "github.com/lufeee/execinquery@v1.2.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/lufeee/execinquery/com_github_lufeee_execinquery-v1.2.1.zip", + "http://ats.apps.svc/gomod/github.com/lufeee/execinquery/com_github_lufeee_execinquery-v1.2.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/lufeee/execinquery/com_github_lufeee_execinquery-v1.2.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/lufeee/execinquery/com_github_lufeee_execinquery-v1.2.1.zip", + ], ) go_repository( name = "com_github_lufia_plan9stats", @@ -2403,46 +3955,94 @@ def go_deps(): version = "v0.0.0-20211012122336-39d0f177ccd0", ) go_repository( - name = "com_github_magiconair_properties", + name = "com_github_macabu_inamedparam", build_file_proto_mode = "disable_global", - importpath = "github.com/magiconair/properties", + importpath = "github.com/macabu/inamedparam", + sum = "h1:2tk/phHkMlEL/1GNe/Yf6kkR/hkcUdAEY3L0hjYV1Mk=", + version = "v0.1.3", + ) + go_repository( + name = "com_github_magiconair_properties", + build_file_proto_mode = "disable_global", + importpath = "github.com/magiconair/properties", sum = "h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo=", version = "v1.8.6", ) + go_repository( + name = "com_github_mailgun_raymond_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/mailgun/raymond/v2", + sha256 = "9ff5de08464b1bc2d0a0dd6f4e7cadd20888e5ad39bf2acea09652750b1e92e0", + strip_prefix = "github.com/mailgun/raymond/v2@v2.0.48", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/mailgun/raymond/v2/com_github_mailgun_raymond_v2-v2.0.48.zip", + "http://ats.apps.svc/gomod/github.com/mailgun/raymond/v2/com_github_mailgun_raymond_v2-v2.0.48.zip", + "https://cache.hawkingrei.com/gomod/github.com/mailgun/raymond/v2/com_github_mailgun_raymond_v2-v2.0.48.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/mailgun/raymond/v2/com_github_mailgun_raymond_v2-v2.0.48.zip", + ], + ) go_repository( name = "com_github_mailru_easyjson", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/mailru/easyjson", sum = "h1:hB2xlXdHp/pmPZq0y3QnmWAArdw9PqbmotexnWx/FU8=", version = "v0.0.0-20190626092158-b2ccc519800e", ) go_repository( name = "com_github_maratori_testableexamples", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/maratori/testableexamples", sum = "h1:dU5alXRrD8WKSjOUnmJZuzdxWOEQ57+7s93SLMxb2vI=", version = "v1.0.0", ) go_repository( name = "com_github_maratori_testpackage", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/maratori/testpackage", - sum = "h1:GJY4wlzQhuBusMF1oahQCBtUV/AQ/k69IZ68vxaac2Q=", - version = "v1.1.0", + sum = "h1:S58XVV5AD7HADMmD0fNnziNHqKvSdDuEKdPD1rNTU04=", + version = "v1.1.1", + ) + go_repository( + name = "com_github_masterminds_goutils", + build_file_proto_mode = "disable_global", + importpath = "github.com/Masterminds/goutils", + sum = "h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=", + version = "v1.1.1", ) go_repository( name = "com_github_masterminds_semver", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/Masterminds/semver", sum = "h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww=", version = "v1.5.0", ) + go_repository( + name = "com_github_masterminds_semver_v3", + build_file_proto_mode = "disable_global", + importpath = "github.com/Masterminds/semver/v3", + sum = "h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0=", + version = "v3.3.0", + ) + go_repository( + name = "com_github_masterminds_sprig_v3", + build_file_proto_mode = "disable_global", + importpath = "github.com/Masterminds/sprig/v3", + sum = "h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA=", + version = "v3.2.3", + ) go_repository( name = "com_github_matoous_godox", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/matoous/godox", - sum = "h1:pWxk9e//NbPwfxat7RXkts09K+dEBJWakUWwICVqYbA=", - version = "v0.0.0-20210227103229-6504466cf951", + sum = "h1:gWg6ZQ4JhDfJPqlo2srm/LN17lpybq15AryXIRcWYLE=", + version = "v0.0.0-20230222163458-006bad1f9d26", + ) + go_repository( + name = "com_github_matryer_is", + build_file_proto_mode = "disable", + importpath = "github.com/matryer/is", + sum = "h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A=", + version = "v1.2.0", ) go_repository( name = "com_github_mattn_go_colorable", @@ -2455,19 +4055,32 @@ def go_deps(): name = "com_github_mattn_go_isatty", build_file_proto_mode = "disable_global", importpath = "github.com/mattn/go-isatty", - sum = "h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ=", - version = "v0.0.16", + sum = "h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=", + version = "v0.0.20", ) go_repository( name = "com_github_mattn_go_runewidth", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/mattn/go-runewidth", - sum = "h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU=", - version = "v0.0.14", + sum = "h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=", + version = "v0.0.16", ) go_repository( - name = "com_github_mattn_goveralls", + name = "com_github_mattn_go_sqlite3", build_file_proto_mode = "disable_global", + importpath = "github.com/mattn/go-sqlite3", + sha256 = "0114d2df439ddeb03eef49a4bf2cc8fb69665c0d76494463cafa7d189a16e0f9", + strip_prefix = "github.com/mattn/go-sqlite3@v1.14.15", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/mattn/go-sqlite3/com_github_mattn_go_sqlite3-v1.14.15.zip", + "http://ats.apps.svc/gomod/github.com/mattn/go-sqlite3/com_github_mattn_go_sqlite3-v1.14.15.zip", + "https://cache.hawkingrei.com/gomod/github.com/mattn/go-sqlite3/com_github_mattn_go_sqlite3-v1.14.15.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/mattn/go-sqlite3/com_github_mattn_go_sqlite3-v1.14.15.zip", + ], + ) + go_repository( + name = "com_github_mattn_goveralls", + build_file_proto_mode = "disable", importpath = "github.com/mattn/goveralls", sum = "h1:7eJB6EqsPhRVxvwEXGnqdO2sJI0PTsrWoTMXEk9/OQc=", version = "v0.0.2", @@ -2486,40 +4099,33 @@ def go_deps(): sum = "h1:Tgh5efyCYyJFGUYiT0qxBSIDeXw0F5zSoatlou685kk=", version = "v1.11.0", ) - go_repository( - name = "com_github_mbilski_exhaustivestruct", - build_file_proto_mode = "disable", - importpath = "github.com/mbilski/exhaustivestruct", - sum = "h1:wCBmUnSYufAHO6J4AVWY6ff+oxWxsVFrwgOdMUQePUo=", - version = "v1.2.0", - ) go_repository( name = "com_github_mediocregopher_mediocre_go_lib", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/mediocregopher/mediocre-go-lib", sum = "h1:3dQJqqDouawQgl3gBE1PNHKFkJYGEuFb1DbSlaxdosE=", version = "v0.0.0-20181029021733-cb65787f37ed", ) go_repository( name = "com_github_mediocregopher_radix_v3", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/mediocregopher/radix/v3", sum = "h1:oacPXPKHJg0hcngVVrdtTnfGJiS+PtwoQwTBZGFlV4k=", version = "v3.3.0", ) go_repository( name = "com_github_mgechev_dots", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/mgechev/dots", sum = "h1:zpIH83+oKzcpryru8ceC6BxnoG8TBrhgAvRg8obzup0=", version = "v0.0.0-20210922191527-e955255bf517", ) go_repository( name = "com_github_mgechev_revive", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/mgechev/revive", - sum = "h1:+2Hd/S8oO2H0Ikq2+egtNwQsVhAeELHjxjIUFX5ajLI=", - version = "v1.2.4", + sum = "h1:oaSmjA7rP8+HyoRuCgC531VHwnLH1AlJdjj+1AnQceQ=", + version = "v1.5.0", ) go_repository( name = "com_github_microcosm_cc_bluemonday", @@ -2528,6 +4134,13 @@ def go_deps(): sum = "h1:5lPfLTTAvAbtS0VqT+94yOtFnGfUWYyx0+iToC3Os3s=", version = "v1.0.2", ) + go_repository( + name = "com_github_microsoft_go_winio", + build_file_proto_mode = "disable_global", + importpath = "github.com/Microsoft/go-winio", + sum = "h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=", + version = "v0.6.1", + ) go_repository( name = "com_github_miekg_dns", build_file_proto_mode = "disable_global", @@ -2536,12 +4149,45 @@ def go_deps(): version = "v1.1.10", ) go_repository( - name = "com_github_mitchellh_cli", + name = "com_github_minio_asm2plan9s", + build_file_proto_mode = "disable_global", + importpath = "github.com/minio/asm2plan9s", + sha256 = "39a2e28284764fd5423247d7469875046d0c8c4c2773333abf1c544197e9d946", + strip_prefix = "github.com/minio/asm2plan9s@v0.0.0-20200509001527-cdd76441f9d8", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/minio/asm2plan9s/com_github_minio_asm2plan9s-v0.0.0-20200509001527-cdd76441f9d8.zip", + "http://ats.apps.svc/gomod/github.com/minio/asm2plan9s/com_github_minio_asm2plan9s-v0.0.0-20200509001527-cdd76441f9d8.zip", + "https://cache.hawkingrei.com/gomod/github.com/minio/asm2plan9s/com_github_minio_asm2plan9s-v0.0.0-20200509001527-cdd76441f9d8.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/minio/asm2plan9s/com_github_minio_asm2plan9s-v0.0.0-20200509001527-cdd76441f9d8.zip", + ], + ) + go_repository( + name = "com_github_minio_c2goasm", build_file_proto_mode = "disable_global", + importpath = "github.com/minio/c2goasm", + sha256 = "04367ddf0fc5cd0f293e2c4f1acefb131b572539d88b5804d92efc905eb718b5", + strip_prefix = "github.com/minio/c2goasm@v0.0.0-20190812172519-36a3d3bbc4f3", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/minio/c2goasm/com_github_minio_c2goasm-v0.0.0-20190812172519-36a3d3bbc4f3.zip", + "http://ats.apps.svc/gomod/github.com/minio/c2goasm/com_github_minio_c2goasm-v0.0.0-20190812172519-36a3d3bbc4f3.zip", + "https://cache.hawkingrei.com/gomod/github.com/minio/c2goasm/com_github_minio_c2goasm-v0.0.0-20190812172519-36a3d3bbc4f3.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/minio/c2goasm/com_github_minio_c2goasm-v0.0.0-20190812172519-36a3d3bbc4f3.zip", + ], + ) + go_repository( + name = "com_github_mitchellh_cli", + build_file_proto_mode = "disable", importpath = "github.com/mitchellh/cli", sum = "h1:iGBIsUe3+HZ/AD/Vd7DErOt5sU9fa8Uj7A2s1aggv1Y=", version = "v1.0.0", ) + go_repository( + name = "com_github_mitchellh_copystructure", + build_file_proto_mode = "disable_global", + importpath = "github.com/mitchellh/copystructure", + sum = "h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=", + version = "v1.2.0", + ) go_repository( name = "com_github_mitchellh_go_homedir", build_file_proto_mode = "disable_global", @@ -2551,14 +4197,14 @@ def go_deps(): ) go_repository( name = "com_github_mitchellh_go_ps", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/mitchellh/go-ps", sum = "h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc=", version = "v1.0.0", ) go_repository( name = "com_github_mitchellh_go_testing_interface", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/mitchellh/go-testing-interface", sum = "h1:fzU/JVNcaqHQEcVFAKeR41fkiLdIPrefOvVG1VZ96U0=", version = "v1.0.0", @@ -2572,14 +4218,14 @@ def go_deps(): ) go_repository( name = "com_github_mitchellh_gox", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/mitchellh/gox", sum = "h1:lfGJxY7ToLJQjHHwi0EX6uYBdK78egf954SQl13PQJc=", version = "v0.4.0", ) go_repository( name = "com_github_mitchellh_iochan", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/mitchellh/iochan", sum = "h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY=", version = "v1.0.0", @@ -2593,18 +4239,38 @@ def go_deps(): ) go_repository( name = "com_github_mitchellh_reflectwalk", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/mitchellh/reflectwalk", - sum = "h1:FVzMWA5RllMAKIdUSC8mdWo3XtwoecrH79BY70sEEpE=", - version = "v1.0.1", + sum = "h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ=", + version = "v1.0.2", ) go_repository( - name = "com_github_moby_spdystream", + name = "com_github_mmcloughlin_avo", build_file_proto_mode = "disable", + importpath = "github.com/mmcloughlin/avo", + sum = "h1:nAco9/aI9Lg2kiuROBY6BhCI/z0t5jEvJfjWbL8qXLU=", + version = "v0.5.0", + ) + go_repository( + name = "com_github_moby_spdystream", + build_file_proto_mode = "disable_global", importpath = "github.com/moby/spdystream", sum = "h1:cjW1zVyyoiM0T7b6UoySUFqzXMoqRckQtXwGPiBhOM8=", version = "v0.2.0", ) + go_repository( + name = "com_github_moby_term", + build_file_proto_mode = "disable_global", + importpath = "github.com/moby/term", + sha256 = "0d2e2ce8280f803a14d9c2af23a79cf854e06d47f2e6b7d455291ffd47c11e2f", + strip_prefix = "github.com/moby/term@v0.0.0-20210619224110-3f7ff695adc6", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/moby/term/com_github_moby_term-v0.0.0-20210619224110-3f7ff695adc6.zip", + "http://ats.apps.svc/gomod/github.com/moby/term/com_github_moby_term-v0.0.0-20210619224110-3f7ff695adc6.zip", + "https://cache.hawkingrei.com/gomod/github.com/moby/term/com_github_moby_term-v0.0.0-20210619224110-3f7ff695adc6.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/moby/term/com_github_moby_term-v0.0.0-20210619224110-3f7ff695adc6.zip", + ], + ) go_repository( name = "com_github_modern_go_concurrent", build_file_proto_mode = "disable_global", @@ -2619,40 +4285,46 @@ def go_deps(): sum = "h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=", version = "v1.0.2", ) - go_repository( - name = "com_github_modocache_gover", - build_file_proto_mode = "disable_global", - importpath = "github.com/modocache/gover", - sum = "h1:8Q0qkMVC/MmWkpIdlvZgcv2o2jrlF6zqVOh7W5YHdMA=", - version = "v0.0.0-20171022184752-b58185e213c5", - ) go_repository( name = "com_github_montanaflynn_stats", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/montanaflynn/stats", - sum = "h1:pmpDGKLw4n82EtrNiLqB+xSz/JQwFOaZuMALYUHwX5s=", - version = "v0.0.0-20180911141734-db72e6cae808", + sum = "h1:r3y12KyNxj/Sb/iOE46ws+3mS1+MZca1wlHQFPsY/JU=", + version = "v0.7.0", ) go_repository( name = "com_github_moricho_tparallel", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/moricho/tparallel", - sum = "h1:95FytivzT6rYzdJLdtfn6m1bfFJylOJK41+lgv/EHf4=", - version = "v0.2.1", + sum = "h1:odr8aZVFA3NZrNybggMkYO3rgPRcqjeQUlBBFVxKHTI=", + version = "v0.3.2", ) go_repository( - name = "com_github_moul_http2curl", + name = "com_github_morikuni_aec", build_file_proto_mode = "disable_global", + importpath = "github.com/morikuni/aec", + sha256 = "c14eeff6945b854edd8b91a83ac760fbd95068f33dc17d102c18f2e8e86bcced", + strip_prefix = "github.com/morikuni/aec@v1.0.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/morikuni/aec/com_github_morikuni_aec-v1.0.0.zip", + "http://ats.apps.svc/gomod/github.com/morikuni/aec/com_github_morikuni_aec-v1.0.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/morikuni/aec/com_github_morikuni_aec-v1.0.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/morikuni/aec/com_github_morikuni_aec-v1.0.0.zip", + ], + ) + go_repository( + name = "com_github_moul_http2curl", + build_file_proto_mode = "disable", importpath = "github.com/moul/http2curl", sum = "h1:dRMWoAtb+ePxMlLkrCbAqh4TlPHXvoGUSQ323/9Zahs=", version = "v1.0.0", ) go_repository( name = "com_github_munnerz_goautoneg", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/munnerz/goautoneg", - sum = "h1:7PxY7LVfSZm7PEeBTyK1rj1gABdCO2mbri6GKO1cMDs=", - version = "v0.0.0-20120707110453-a547fc61f48d", + sum = "h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=", + version = "v0.0.0-20191010083416-a7dc8b61c822", ) go_repository( name = "com_github_mwitkow_go_conntrack", @@ -2663,42 +4335,42 @@ def go_deps(): ) go_repository( name = "com_github_mxk_go_flowrate", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/mxk/go-flowrate", sum = "h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus=", version = "v0.0.0-20140419014527-cca7078d478f", ) go_repository( name = "com_github_nakabonne_nestif", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/nakabonne/nestif", sum = "h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U=", version = "v0.3.1", ) go_repository( name = "com_github_nats_io_nats_go", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/nats-io/nats.go", sum = "h1:6lF/f1/NN6kzUDBz6pyvQDEXO39jqXcWRLu/tKjtOUQ=", version = "v1.8.1", ) go_repository( name = "com_github_nats_io_nkeys", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/nats-io/nkeys", sum = "h1:+qM7QpgXnvDDixitZtQUBDY9w/s9mu1ghS+JIbsrx6M=", version = "v0.0.2", ) go_repository( name = "com_github_nats_io_nuid", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/nats-io/nuid", sum = "h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=", version = "v1.0.1", ) go_repository( name = "com_github_nbutton23_zxcvbn_go", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/nbutton23/zxcvbn-go", sum = "h1:4kuARK6Y6FxaNu/BnU2OAaLF86eTVhP2hjTB6iMvItA=", version = "v0.0.0-20210217022336-fa2cb2858354", @@ -2726,25 +4398,45 @@ def go_deps(): ) go_repository( name = "com_github_niemeyer_pretty", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/niemeyer/pretty", sum = "h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=", version = "v0.0.0-20200227124842-a10e7caefd8e", ) go_repository( name = "com_github_nishanths_exhaustive", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/nishanths/exhaustive", - sum = "h1:pw5O09vwg8ZaditDp/nQRqVnrMczSJDxRDJMowvhsrM=", - version = "v0.8.3", + sum = "h1:vIY9sALmw6T/yxiASewa4TQcFsVYZQQRUQJhKRf3Swg=", + version = "v0.12.0", ) go_repository( name = "com_github_nishanths_predeclared", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/nishanths/predeclared", sum = "h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk=", version = "v0.2.2", ) + go_repository( + name = "com_github_nsf_jsondiff", + build_file_proto_mode = "disable_global", + importpath = "github.com/nsf/jsondiff", + sha256 = "d468c06359490d96ea701107f848acc7d9497e36eeb9eb81e38c8bef69c42fd2", + strip_prefix = "github.com/nsf/jsondiff@v0.0.0-20230430225905-43f6cf3098c1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/nsf/jsondiff/com_github_nsf_jsondiff-v0.0.0-20230430225905-43f6cf3098c1.zip", + "http://ats.apps.svc/gomod/github.com/nsf/jsondiff/com_github_nsf_jsondiff-v0.0.0-20230430225905-43f6cf3098c1.zip", + "https://cache.hawkingrei.com/gomod/github.com/nsf/jsondiff/com_github_nsf_jsondiff-v0.0.0-20230430225905-43f6cf3098c1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/nsf/jsondiff/com_github_nsf_jsondiff-v0.0.0-20230430225905-43f6cf3098c1.zip", + ], + ) + go_repository( + name = "com_github_nunnatsa_ginkgolinter", + build_file_proto_mode = "disable_global", + importpath = "github.com/nunnatsa/ginkgolinter", + sum = "h1:ZXO1wKhPg3A6LpbN5dMuqwhfOjN5c3ous8YdKOuqk9k=", + version = "v0.18.0", + ) go_repository( name = "com_github_nxadm_tail", build_file_proto_mode = "disable_global", @@ -2761,7 +4453,7 @@ def go_deps(): ) go_repository( name = "com_github_oklog_run", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/oklog/run", sum = "h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=", version = "v1.0.0", @@ -2782,7 +4474,7 @@ def go_deps(): ) go_repository( name = "com_github_oneofone_xxhash", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/OneOfOne/xxhash", sum = "h1:zl/OfRA6nftbBK9qTohYBJ5xvw6C/oNKizR7cZGl3cI=", version = "v1.2.5", @@ -2798,8 +4490,14 @@ def go_deps(): name = "com_github_onsi_ginkgo_v2", build_file_proto_mode = "disable_global", importpath = "github.com/onsi/ginkgo/v2", - sum = "h1:zie5Ly042PD3bsCvsSOPvRnFwyo3rKe64TJlD6nu0mk=", - version = "v2.9.1", + sha256 = "f41e92baa52ec53d482603e4585c0906ca0c02e05004dca78a62bf1de88833ad", + strip_prefix = "github.com/onsi/ginkgo/v2@v2.9.4", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/onsi/ginkgo/v2/com_github_onsi_ginkgo_v2-v2.9.4.zip", + "http://ats.apps.svc/gomod/github.com/onsi/ginkgo/v2/com_github_onsi_ginkgo_v2-v2.9.4.zip", + "https://cache.hawkingrei.com/gomod/github.com/onsi/ginkgo/v2/com_github_onsi_ginkgo_v2-v2.9.4.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/onsi/ginkgo/v2/com_github_onsi_ginkgo_v2-v2.9.4.zip", + ], ) go_repository( name = "com_github_onsi_gomega", @@ -2809,11 +4507,50 @@ def go_deps(): version = "v1.18.1", ) go_repository( - name = "com_github_openpeedeep_depguard", - build_file_proto_mode = "disable", - importpath = "github.com/OpenPeeDeeP/depguard", - sum = "h1:TSUznLjvp/4IUP+OQ0t/4jF4QUyxIcVX8YnghZdunyA=", - version = "v1.1.1", + name = "com_github_opencontainers_go_digest", + build_file_proto_mode = "disable_global", + importpath = "github.com/opencontainers/go-digest", + sha256 = "615efb31ff6cd71035b8aa38c3659d8b4da46f3cd92ac807cb50449adfe37c86", + strip_prefix = "github.com/opencontainers/go-digest@v1.0.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/opencontainers/go-digest/com_github_opencontainers_go_digest-v1.0.0.zip", + "http://ats.apps.svc/gomod/github.com/opencontainers/go-digest/com_github_opencontainers_go_digest-v1.0.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/opencontainers/go-digest/com_github_opencontainers_go_digest-v1.0.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/opencontainers/go-digest/com_github_opencontainers_go_digest-v1.0.0.zip", + ], + ) + go_repository( + name = "com_github_opencontainers_image_spec", + build_file_proto_mode = "disable_global", + importpath = "github.com/opencontainers/image-spec", + sha256 = "d842127b6038c1a74c2bb609d75bdde0ac9c7cde5c354ac82c4f953ce08d0c08", + strip_prefix = "github.com/opencontainers/image-spec@v1.0.2", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/opencontainers/image-spec/com_github_opencontainers_image_spec-v1.0.2.zip", + "http://ats.apps.svc/gomod/github.com/opencontainers/image-spec/com_github_opencontainers_image_spec-v1.0.2.zip", + "https://cache.hawkingrei.com/gomod/github.com/opencontainers/image-spec/com_github_opencontainers_image_spec-v1.0.2.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/opencontainers/image-spec/com_github_opencontainers_image_spec-v1.0.2.zip", + ], + ) + go_repository( + name = "com_github_opencontainers_runtime_spec", + build_file_proto_mode = "disable_global", + importpath = "github.com/opencontainers/runtime-spec", + sha256 = "bd1531bb27014e2a16ea4bf0b56bff7688555bb859f651c1e4375f4b782269ec", + strip_prefix = "github.com/opencontainers/runtime-spec@v1.0.2", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/opencontainers/runtime-spec/com_github_opencontainers_runtime_spec-v1.0.2.zip", + "http://ats.apps.svc/gomod/github.com/opencontainers/runtime-spec/com_github_opencontainers_runtime_spec-v1.0.2.zip", + "https://cache.hawkingrei.com/gomod/github.com/opencontainers/runtime-spec/com_github_opencontainers_runtime_spec-v1.0.2.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/opencontainers/runtime-spec/com_github_opencontainers_runtime_spec-v1.0.2.zip", + ], + ) + go_repository( + name = "com_github_openpeedeep_depguard_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/OpenPeeDeeP/depguard/v2", + sum = "h1:vDfG60vDtIuf0MEOhmLlLLSzqaRM8EMcgJPdp74zmpA=", + version = "v2.2.0", ) go_repository( name = "com_github_opentracing_basictracer_go", @@ -2836,41 +4573,61 @@ def go_deps(): sum = "h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs=", version = "v1.2.0", ) - go_repository( - name = "com_github_openzipkin_zipkin_go", - build_file_proto_mode = "disable", - importpath = "github.com/openzipkin/zipkin-go", - sum = "h1:yXiysv1CSK7Q5yjGy1710zZGnsbMUIjluWBxtLXHPBo=", - version = "v0.1.6", - ) go_repository( name = "com_github_otiai10_copy", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/otiai10/copy", sum = "h1:HvG945u96iNadPoG2/Ja2+AUJeW5YuFQMixq9yirC+k=", version = "v1.2.0", ) go_repository( name = "com_github_otiai10_curr", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/otiai10/curr", sum = "h1:TJIWdbX0B+kpNagQrjgq8bCMrbhiuX73M2XwgtDMoOI=", version = "v1.0.0", ) go_repository( name = "com_github_otiai10_mint", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/otiai10/mint", sum = "h1:BCmzIS3n71sGfHB5NMNDB3lHYPz8fWSkCAErHed//qc=", version = "v1.3.1", ) go_repository( - name = "com_github_pascaldekloe_goe", + name = "com_github_ovh_go_ovh", build_file_proto_mode = "disable_global", + importpath = "github.com/ovh/go-ovh", + sha256 = "011dc40423f453de4570f9ad737ff4185e0205aa11d294e1bd606fb70f07177b", + strip_prefix = "github.com/ovh/go-ovh@v1.4.3", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/ovh/go-ovh/com_github_ovh_go_ovh-v1.4.3.zip", + "http://ats.apps.svc/gomod/github.com/ovh/go-ovh/com_github_ovh_go_ovh-v1.4.3.zip", + "https://cache.hawkingrei.com/gomod/github.com/ovh/go-ovh/com_github_ovh_go_ovh-v1.4.3.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/ovh/go-ovh/com_github_ovh_go_ovh-v1.4.3.zip", + ], + ) + go_repository( + name = "com_github_pascaldekloe_goe", + build_file_proto_mode = "disable", importpath = "github.com/pascaldekloe/goe", sum = "h1:Lgl0gzECD8GnQ5QCWA8o6BtfL6mDH5rQgM4/fX3avOs=", version = "v0.0.0-20180627143212-57f6aae5913c", ) + + go_repository( + name = "com_github_pbnjay_memory", + build_file_proto_mode = "disable_global", + importpath = "github.com/pbnjay/memory", + sha256 = "5caf461e903c1060392e03a59eb84eb08c4a0976d0cc2d751fa9715cc6fc03bd", + strip_prefix = "github.com/pbnjay/memory@v0.0.0-20210728143218-7b4eea64cf58", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/pbnjay/memory/com_github_pbnjay_memory-v0.0.0-20210728143218-7b4eea64cf58.zip", + "http://ats.apps.svc/gomod/github.com/pbnjay/memory/com_github_pbnjay_memory-v0.0.0-20210728143218-7b4eea64cf58.zip", + "https://cache.hawkingrei.com/gomod/github.com/pbnjay/memory/com_github_pbnjay_memory-v0.0.0-20210728143218-7b4eea64cf58.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/pbnjay/memory/com_github_pbnjay_memory-v0.0.0-20210728143218-7b4eea64cf58.zip", + ], + ) go_repository( name = "com_github_pborman_getopt", build_file_proto_mode = "disable_global", @@ -2887,10 +4644,10 @@ def go_deps(): ) go_repository( name = "com_github_pelletier_go_toml_v2", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/pelletier/go-toml/v2", - sum = "h1:ipoSadvV8oGUjnUbMub59IDPPwfxF694nG/jwbMiyQg=", - version = "v2.0.5", + sum = "h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M=", + version = "v2.2.3", ) go_repository( name = "com_github_peterbourgon_g2s", @@ -2901,18 +4658,11 @@ def go_deps(): ) go_repository( name = "com_github_petermattis_goid", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/petermattis/goid", sum = "h1:rUMC+oZ89Om6l9wvUNjzI0ZrKrSnXzV+opsgAohYUNc=", version = "v0.0.0-20170504144140-0ded85884ba5", ) - go_repository( - name = "com_github_phayes_checkstyle", - build_file_proto_mode = "disable", - importpath = "github.com/phayes/checkstyle", - sum = "h1:CdDQnGF8Nq9ocOS/xlSptM1N3BbrA6/kmaep5ggwaIA=", - version = "v0.0.0-20170904204023-bfd46e6a821d", - ) go_repository( name = "com_github_phayes_freeport", build_file_proto_mode = "disable_global", @@ -2921,11 +4671,37 @@ def go_deps(): version = "v0.0.0-20180830031419-95f893ade6f2", ) go_repository( - name = "com_github_pierrec_lz4", + name = "com_github_phpdave11_gofpdf", + build_file_proto_mode = "disable_global", + importpath = "github.com/phpdave11/gofpdf", + sha256 = "4db05258f281b40d8a17392fd71648779ea758a9aa506a8d1346ded737ede43f", + strip_prefix = "github.com/phpdave11/gofpdf@v1.4.2", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/phpdave11/gofpdf/com_github_phpdave11_gofpdf-v1.4.2.zip", + "http://ats.apps.svc/gomod/github.com/phpdave11/gofpdf/com_github_phpdave11_gofpdf-v1.4.2.zip", + "https://cache.hawkingrei.com/gomod/github.com/phpdave11/gofpdf/com_github_phpdave11_gofpdf-v1.4.2.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/phpdave11/gofpdf/com_github_phpdave11_gofpdf-v1.4.2.zip", + ], + ) + go_repository( + name = "com_github_phpdave11_gofpdi", + build_file_proto_mode = "disable_global", + importpath = "github.com/phpdave11/gofpdi", + sha256 = "09b728136cf290f4ee87aa47b60f2f9df2b3f4f64119ff10f12319bc3438b58d", + strip_prefix = "github.com/phpdave11/gofpdi@v1.0.13", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/phpdave11/gofpdi/com_github_phpdave11_gofpdi-v1.0.13.zip", + "http://ats.apps.svc/gomod/github.com/phpdave11/gofpdi/com_github_phpdave11_gofpdi-v1.0.13.zip", + "https://cache.hawkingrei.com/gomod/github.com/phpdave11/gofpdi/com_github_phpdave11_gofpdi-v1.0.13.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/phpdave11/gofpdi/com_github_phpdave11_gofpdi-v1.0.13.zip", + ], + ) + go_repository( + name = "com_github_pierrec_lz4_v4", build_file_proto_mode = "disable_global", - importpath = "github.com/pierrec/lz4", - sum = "h1:9UY3+iC23yxF0UfGaYrGplQ+79Rg+h/q9FV9ix19jjM=", - version = "v2.6.1+incompatible", + importpath = "github.com/pierrec/lz4/v4", + sum = "h1:yOVMLb6qSIDP67pl/5F7RepeKYu/VmTyEXvuMI5d9mQ=", + version = "v4.1.21", ) go_repository( name = "com_github_pingcap_badger", @@ -2936,7 +4712,7 @@ def go_deps(): ) go_repository( name = "com_github_pingcap_check", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/pingcap/check", sum = "h1:R8gStypOBmpnHEx1qi//SaqxJVI4inOqljg/Aj5/390=", version = "v0.0.0-20200212061837-5e12011dc712", @@ -2997,12 +4773,26 @@ def go_deps(): sum = "h1:DbmCfCbcavo0JG+gSp0ySvv1ub/c/j3hsnYzyYPzONo=", version = "v0.0.0-20221123081521-2fb828910813", ) + go_repository( + name = "com_github_pjbgf_sha1cd", + build_file_proto_mode = "disable", + importpath = "github.com/pjbgf/sha1cd", + sum = "h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4=", + version = "v0.3.0", + ) go_repository( name = "com_github_pkg_browser", build_file_proto_mode = "disable_global", importpath = "github.com/pkg/browser", - sum = "h1:49lOXmGaUpV9Fz3gd7TFZY106KVlPVa5jcYD1gaQf98=", - version = "v0.0.0-20180916011732-0a3d74bf9ce4", + sum = "h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ=", + version = "v0.0.0-20240102092130-5ac0b6a4141c", + ) + go_repository( + name = "com_github_pkg_diff", + build_file_proto_mode = "disable_global", + importpath = "github.com/pkg/diff", + sum = "h1:aoZm08cpOy4WuID//EZDgcC4zIxODThtZNPirFr42+A=", + version = "v0.0.0-20210226163009-20ebb0f2a09e", ) go_repository( name = "com_github_pkg_errors", @@ -3018,6 +4808,19 @@ def go_deps(): sum = "h1:F++O52m40owAmADcojzM+9gyjmMOY/T4oYJkgFDH8RE=", version = "v1.2.1", ) + go_repository( + name = "com_github_pkg_xattr", + build_file_proto_mode = "disable_global", + importpath = "github.com/pkg/xattr", + sha256 = "03aa1ce578e02548201e7099bd53bd18a56d8cd7ae44bb7d8ab9457a5fb34b06", + strip_prefix = "github.com/pkg/xattr@v0.4.9", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/pkg/xattr/com_github_pkg_xattr-v0.4.9.zip", + "http://ats.apps.svc/gomod/github.com/pkg/xattr/com_github_pkg_xattr-v0.4.9.zip", + "https://cache.hawkingrei.com/gomod/github.com/pkg/xattr/com_github_pkg_xattr-v0.4.9.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/pkg/xattr/com_github_pkg_xattr-v0.4.9.zip", + ], + ) go_repository( name = "com_github_pmezard_go_difflib", build_file_proto_mode = "disable_global", @@ -3027,14 +4830,14 @@ def go_deps(): ) go_repository( name = "com_github_polyfloyd_go_errorlint", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/polyfloyd/go-errorlint", - sum = "h1:AHB5JRCjlmelh9RrLxT9sgzpalIwwq4hqE8EkwIwKdY=", - version = "v1.0.5", + sum = "h1:tftWV9DE7txiFzPpztTAwyoRLKNj9gpVm2cg8/OwcYY=", + version = "v1.6.0", ) go_repository( name = "com_github_posener_complete", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/posener/complete", sum = "h1:ccV59UEOTzVDnDUEFdT95ZzHVZ+5+158q8+SJb2QV5w=", version = "v1.1.1", @@ -3048,53 +4851,112 @@ def go_deps(): ) go_repository( name = "com_github_prashantv_gostub", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/prashantv/gostub", sum = "h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g=", version = "v1.1.0", ) + go_repository( + name = "com_github_prometheus_alertmanager", + build_file_proto_mode = "disable_global", + importpath = "github.com/prometheus/alertmanager", + sha256 = "7666007c7ccec339fd09aaeec1d15c5b8c26cb01d387c9a9f7273f904db825b0", + strip_prefix = "github.com/prometheus/alertmanager@v0.26.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/prometheus/alertmanager/com_github_prometheus_alertmanager-v0.26.0.zip", + "http://ats.apps.svc/gomod/github.com/prometheus/alertmanager/com_github_prometheus_alertmanager-v0.26.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/prometheus/alertmanager/com_github_prometheus_alertmanager-v0.26.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/prometheus/alertmanager/com_github_prometheus_alertmanager-v0.26.0.zip", + ], + ) go_repository( name = "com_github_prometheus_client_golang", build_file_proto_mode = "disable_global", importpath = "github.com/prometheus/client_golang", - sum = "h1:b71QUfeo5M8gq2+evJdTPfZhYMAU0uKPkyPJ7TPsloU=", - version = "v1.13.0", + sum = "h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y=", + version = "v1.20.5", ) go_repository( name = "com_github_prometheus_client_model", build_file_proto_mode = "disable_global", importpath = "github.com/prometheus/client_model", - sum = "h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M=", - version = "v0.2.0", + sum = "h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E=", + version = "v0.6.1", ) go_repository( name = "com_github_prometheus_common", build_file_proto_mode = "disable_global", importpath = "github.com/prometheus/common", - sum = "h1:ccBbHCgIiT9uSoFY0vX8H3zsNR5eLt17/RQLUvn8pXE=", - version = "v0.37.0", + sum = "h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc=", + version = "v0.55.0", + ) + go_repository( + name = "com_github_prometheus_common_assets", + build_file_proto_mode = "disable_global", + importpath = "github.com/prometheus/common/assets", + sha256 = "e8bcf444eb69d4dc41764f84401d57a181d282250e4c97b3c2bb31edc93e984b", + strip_prefix = "github.com/prometheus/common/assets@v0.2.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/prometheus/common/assets/com_github_prometheus_common_assets-v0.2.0.zip", + "http://ats.apps.svc/gomod/github.com/prometheus/common/assets/com_github_prometheus_common_assets-v0.2.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/prometheus/common/assets/com_github_prometheus_common_assets-v0.2.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/prometheus/common/assets/com_github_prometheus_common_assets-v0.2.0.zip", + ], + ) + go_repository( + name = "com_github_prometheus_common_sigv4", + build_file_proto_mode = "disable_global", + importpath = "github.com/prometheus/common/sigv4", + sha256 = "e76ec796837158dc2624343f88da4ba3c5d9d4b45e66b359358eba5db39846dd", + strip_prefix = "github.com/prometheus/common/sigv4@v0.1.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/prometheus/common/sigv4/com_github_prometheus_common_sigv4-v0.1.0.zip", + "http://ats.apps.svc/gomod/github.com/prometheus/common/sigv4/com_github_prometheus_common_sigv4-v0.1.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/prometheus/common/sigv4/com_github_prometheus_common_sigv4-v0.1.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/prometheus/common/sigv4/com_github_prometheus_common_sigv4-v0.1.0.zip", + ], + ) + go_repository( + name = "com_github_prometheus_exporter_toolkit", + build_file_proto_mode = "disable_global", + importpath = "github.com/prometheus/exporter-toolkit", + sha256 = "30605de7fc911194ff45289870b4a56d9da2aca9e8f60de810bc65af77cdd2cb", + strip_prefix = "github.com/prometheus/exporter-toolkit@v0.11.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/prometheus/exporter-toolkit/com_github_prometheus_exporter_toolkit-v0.11.0.zip", + "http://ats.apps.svc/gomod/github.com/prometheus/exporter-toolkit/com_github_prometheus_exporter_toolkit-v0.11.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/prometheus/exporter-toolkit/com_github_prometheus_exporter_toolkit-v0.11.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/prometheus/exporter-toolkit/com_github_prometheus_exporter_toolkit-v0.11.0.zip", + ], ) go_repository( name = "com_github_prometheus_procfs", build_file_proto_mode = "disable_global", importpath = "github.com/prometheus/procfs", - sum = "h1:ODq8ZFEaYeCaZOJlZZdJA2AbQR98dSHSM1KW/You5mo=", - version = "v0.8.0", + sum = "h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc=", + version = "v0.15.1", ) go_repository( name = "com_github_prometheus_prometheus", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/prometheus/prometheus", sum = "h1:3DyLm+sTAJkfLyR/1pJ3L+fU2lFufWbpcgMFlGtqeyA=", version = "v0.0.0-20190525122359-d20e84d0fb64", ) go_repository( name = "com_github_prometheus_tsdb", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/prometheus/tsdb", sum = "h1:w1tAGxsBMLkuGrFMhqgcCeBkM5d1YI24udArs+aASuQ=", version = "v0.8.0", ) + go_repository( + name = "com_github_protonmail_go_crypto", + build_file_proto_mode = "disable", + importpath = "github.com/ProtonMail/go-crypto", + sum = "h1:KLq8BE0KwCL+mmXnjLWEAOYO+2l2AE4YMmqG1ZpZHBs=", + version = "v0.0.0-20230717121422-5aa5874ade95", + ) go_repository( name = "com_github_puerkitobio_purell", build_file_proto_mode = "disable", @@ -3109,48 +4971,89 @@ def go_deps(): sum = "h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M=", version = "v0.0.0-20170810143723-de5bf2ad4578", ) + go_repository( - name = "com_github_quasilyte_go_ruleguard", - build_file_proto_mode = "disable", - importpath = "github.com/quasilyte/go-ruleguard", - sum = "h1:sd+abO1PEI9fkYennwzHn9kl3nqP6M5vE7FiOzZ+5CE=", - version = "v0.3.18", + name = "com_github_qri_io_jsonpointer", + build_file_proto_mode = "disable_global", + importpath = "github.com/qri-io/jsonpointer", + sha256 = "6870d4b9fc5ac8efb9226447975fecfb07241133e23c7e661f5aac1a3088f338", + strip_prefix = "github.com/qri-io/jsonpointer@v0.1.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/qri-io/jsonpointer/com_github_qri_io_jsonpointer-v0.1.1.zip", + "http://ats.apps.svc/gomod/github.com/qri-io/jsonpointer/com_github_qri_io_jsonpointer-v0.1.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/qri-io/jsonpointer/com_github_qri_io_jsonpointer-v0.1.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/qri-io/jsonpointer/com_github_qri_io_jsonpointer-v0.1.1.zip", + ], + ) + go_repository( + name = "com_github_qri_io_jsonschema", + build_file_proto_mode = "disable_global", + importpath = "github.com/qri-io/jsonschema", + sha256 = "51305cc45fd383b24de94e2eb421ffba8d83679520c18348842c4255025c5940", + strip_prefix = "github.com/qri-io/jsonschema@v0.2.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/qri-io/jsonschema/com_github_qri_io_jsonschema-v0.2.1.zip", + "http://ats.apps.svc/gomod/github.com/qri-io/jsonschema/com_github_qri_io_jsonschema-v0.2.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/qri-io/jsonschema/com_github_qri_io_jsonschema-v0.2.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/qri-io/jsonschema/com_github_qri_io_jsonschema-v0.2.1.zip", + ], + ) + go_repository( + name = "com_github_quasilyte_go_ruleguard", + build_file_proto_mode = "disable_global", + importpath = "github.com/quasilyte/go-ruleguard", + sum = "h1:+Wl/0aFp0hpuHM3H//KMft64WQ1yX9LdJY64Qm/gFCo=", + version = "v0.4.3-0.20240823090925-0fe6f58b47b1", ) go_repository( name = "com_github_quasilyte_go_ruleguard_dsl", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/quasilyte/go-ruleguard/dsl", - sum = "h1:vNkC6fC6qMLzCOGbnIHOd5ixUGgTbp3Z4fGnUgULlDA=", - version = "v0.3.21", + sum = "h1:wd8zkOhSNr+I+8Qeciml08ivDt1pSXe60+5DqOpCjPE=", + version = "v0.3.22", ) go_repository( name = "com_github_quasilyte_gogrep", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/quasilyte/gogrep", - sum = "h1:6Gtn2i04RD0gVyYf2/IUMTIs+qYleBt4zxDqkLTcu4U=", - version = "v0.0.0-20220828223005-86e4605de09f", + sum = "h1:eTKODPXbI8ffJMN+W2aE0+oL0z/nh8/5eNdiO34SOAo=", + version = "v0.5.0", ) go_repository( name = "com_github_quasilyte_regex_syntax", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/quasilyte/regex/syntax", - sum = "h1:L8QM9bvf68pVdQ3bCFZMDmnt9yqcMBro1pC7F+IPYMY=", - version = "v0.0.0-20200407221936-30656e2c4a95", + sum = "h1:TCg2WBOl980XxGFEZSS6KlBGIV0diGdySzxATTWoqaU=", + version = "v0.0.0-20210819130434-b3f0c404a727", ) go_repository( name = "com_github_quasilyte_stdinfo", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/quasilyte/stdinfo", sum = "h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs=", version = "v0.0.0-20220114132959-f7386bf02567", ) go_repository( - name = "com_github_rcrowley_go_metrics", + name = "com_github_raeperd_recvcheck", build_file_proto_mode = "disable_global", + importpath = "github.com/raeperd/recvcheck", + sum = "h1:SjdquRsRXJc26eSonWIo8b7IMtKD3OAT2Lb5G3ZX1+4=", + version = "v0.1.2", + ) + go_repository( + name = "com_github_rcrowley_go_metrics", + build_file_proto_mode = "disable", importpath = "github.com/rcrowley/go-metrics", sum = "h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM=", version = "v0.0.0-20201227073835-cf1acfcdf475", ) + go_repository( + name = "com_github_redis_go_redis_v9", + build_file_proto_mode = "disable", + importpath = "github.com/redis/go-redis/v9", + sum = "h1:HHDteefn6ZkTtY5fGUE8tj8uy85AHk6zP7CpzIAM0y4=", + version = "v9.6.1", + ) go_repository( name = "com_github_remyoudompheng_bigfft", build_file_proto_mode = "disable_global", @@ -3162,8 +5065,8 @@ def go_deps(): name = "com_github_rivo_uniseg", build_file_proto_mode = "disable_global", importpath = "github.com/rivo/uniseg", - sum = "h1:YwD0ulJSJytLpiaWua0sBDusfsCZohxjxzVTYjwxfV8=", - version = "v0.4.2", + sum = "h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=", + version = "v0.4.7", ) go_repository( name = "com_github_rlmcpherson_s3gof3r", @@ -3172,6 +5075,20 @@ def go_deps(): sum = "h1:1izOJpTiohSibfOHuNyEA/yQnAirh05enzEdmhez43k=", version = "v0.5.0", ) + + go_repository( + name = "com_github_robfig_cron_v3", + build_file_proto_mode = "disable_global", + importpath = "github.com/robfig/cron/v3", + sha256 = "ebe6454642220832a451b8cc50eae5f9150fd8d36b90b242a5de27676be86c70", + strip_prefix = "github.com/robfig/cron/v3@v3.0.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/robfig/cron/v3/com_github_robfig_cron_v3-v3.0.1.zip", + "http://ats.apps.svc/gomod/github.com/robfig/cron/v3/com_github_robfig_cron_v3-v3.0.1.zip", + "https://cache.hawkingrei.com/gomod/github.com/robfig/cron/v3/com_github_robfig_cron_v3-v3.0.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/robfig/cron/v3/com_github_robfig_cron_v3-v3.0.1.zip", + ], + ) go_repository( name = "com_github_rogpeppe_fastuuid", build_file_proto_mode = "disable_global", @@ -3183,8 +5100,8 @@ def go_deps(): name = "com_github_rogpeppe_go_internal", build_file_proto_mode = "disable_global", importpath = "github.com/rogpeppe/go-internal", - sum = "h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k=", - version = "v1.6.1", + sum = "h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=", + version = "v1.13.1", ) go_repository( name = "com_github_rubyist_circuitbreaker", @@ -3207,27 +5124,54 @@ def go_deps(): sum = "h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=", version = "v2.1.0", ) + go_repository( + name = "com_github_ruudk_golang_pdf417", + build_file_proto_mode = "disable_global", + importpath = "github.com/ruudk/golang-pdf417", + sha256 = "f0006c0f60789da76c1b3fef73bb63f5581744fbe3ab5973ec718b40c6822f69", + strip_prefix = "github.com/ruudk/golang-pdf417@v0.0.0-20201230142125-a7e3863a1245", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/ruudk/golang-pdf417/com_github_ruudk_golang_pdf417-v0.0.0-20201230142125-a7e3863a1245.zip", + "http://ats.apps.svc/gomod/github.com/ruudk/golang-pdf417/com_github_ruudk_golang_pdf417-v0.0.0-20201230142125-a7e3863a1245.zip", + "https://cache.hawkingrei.com/gomod/github.com/ruudk/golang-pdf417/com_github_ruudk_golang_pdf417-v0.0.0-20201230142125-a7e3863a1245.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/ruudk/golang-pdf417/com_github_ruudk_golang_pdf417-v0.0.0-20201230142125-a7e3863a1245.zip", + ], + ) go_repository( name = "com_github_ryancurrah_gomodguard", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/ryancurrah/gomodguard", - sum = "h1:CpMSDKan0LtNGGhPrvupAoLeObRFjND8/tU1rEOtBp4=", - version = "v1.2.4", + sum = "h1:cShyguSwUEeC0jS7ylOiG/idnd1TpJ1LfHGpV3oJmPU=", + version = "v1.3.5", ) go_repository( name = "com_github_ryanrolds_sqlclosecheck", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/ryanrolds/sqlclosecheck", - sum = "h1:AZx+Bixh8zdUBxUA1NxbxVAS78vTPq4rCb8OUZI9xFw=", - version = "v0.3.0", + sum = "h1:dibWW826u0P8jNLsLN+En7+RqWWTYrjCB9fJfSfdyCU=", + version = "v0.5.1", ) go_repository( name = "com_github_ryanuber_columnize", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/ryanuber/columnize", sum = "h1:j1Wcmh8OrK4Q7GXY+V7SVSY8nUWQxHW5TkBe7YUl+2s=", version = "v2.1.0+incompatible", ) + + go_repository( + name = "com_github_ryszard_goskiplist", + build_file_proto_mode = "disable_global", + importpath = "github.com/ryszard/goskiplist", + sha256 = "12c65729fc31d5a9bf246eb387bd4c268d0d68bf33b913cccd81bebd47d6f80d", + strip_prefix = "github.com/ryszard/goskiplist@v0.0.0-20150312221310-2dfbae5fcf46", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/ryszard/goskiplist/com_github_ryszard_goskiplist-v0.0.0-20150312221310-2dfbae5fcf46.zip", + "http://ats.apps.svc/gomod/github.com/ryszard/goskiplist/com_github_ryszard_goskiplist-v0.0.0-20150312221310-2dfbae5fcf46.zip", + "https://cache.hawkingrei.com/gomod/github.com/ryszard/goskiplist/com_github_ryszard_goskiplist-v0.0.0-20150312221310-2dfbae5fcf46.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/ryszard/goskiplist/com_github_ryszard_goskiplist-v0.0.0-20150312221310-2dfbae5fcf46.zip", + ], + ) go_repository( name = "com_github_samuel_go_zookeeper", build_file_proto_mode = "disable", @@ -3237,31 +5181,38 @@ def go_deps(): ) go_repository( name = "com_github_sanposhiho_wastedassign_v2", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/sanposhiho/wastedassign/v2", - sum = "h1:+6/hQIHKNJAUixEj6EmOngGIisyeI+T3335lYTyxRoA=", - version = "v2.0.6", + sum = "h1:J+6nrY4VW+gC9xFzUc+XjPD3g3wF3je/NsJFwFK7Uxc=", + version = "v2.0.7", + ) + go_repository( + name = "com_github_santhosh_tekuri_jsonschema_v5", + build_file_proto_mode = "disable_global", + importpath = "github.com/santhosh-tekuri/jsonschema/v5", + sum = "h1:lZUw3E0/J3roVtGQ+SCrUrg3ON6NgVqpn3+iol9aGu4=", + version = "v5.3.1", ) go_repository( name = "com_github_sasha_s_go_deadlock", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/sasha-s/go-deadlock", sum = "h1:yVBZEAirqhDYAc7xftf/swe8eHcg63jqfwdqN8KSoR8=", version = "v0.0.0-20161201235124-341000892f3d", ) go_repository( name = "com_github_sashamelentyev_interfacebloat", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/sashamelentyev/interfacebloat", sum = "h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw=", version = "v1.1.0", ) go_repository( name = "com_github_sashamelentyev_usestdlibvars", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/sashamelentyev/usestdlibvars", - sum = "h1:K6CXjqqtSYSsuyRDDC7Sjn6vTMLiSJa4ZmDkiokoqtw=", - version = "v1.20.0", + sum = "h1:t/3jZpSXtRPRf2xr0m63i32ZrusyurIGT9E5wAvXQnI=", + version = "v1.27.0", ) go_repository( name = "com_github_satori_go_uuid", @@ -3270,30 +5221,57 @@ def go_deps(): sum = "h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=", version = "v1.2.0", ) + + go_repository( + name = "com_github_scaleway_scaleway_sdk_go", + build_file_proto_mode = "disable_global", + importpath = "github.com/scaleway/scaleway-sdk-go", + sha256 = "b7f9a702ee1e899d81bc23ca5e761cd2bc6c0202797d9b5193b83a50bad16698", + strip_prefix = "github.com/scaleway/scaleway-sdk-go@v1.0.0-beta.22", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/scaleway/scaleway-sdk-go/com_github_scaleway_scaleway_sdk_go-v1.0.0-beta.22.zip", + "http://ats.apps.svc/gomod/github.com/scaleway/scaleway-sdk-go/com_github_scaleway_scaleway_sdk_go-v1.0.0-beta.22.zip", + "https://cache.hawkingrei.com/gomod/github.com/scaleway/scaleway-sdk-go/com_github_scaleway_scaleway_sdk_go-v1.0.0-beta.22.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/scaleway/scaleway-sdk-go/com_github_scaleway_scaleway_sdk_go-v1.0.0-beta.22.zip", + ], + ) go_repository( - name = "com_github_sclevine_agouti", + name = "com_github_schollz_closestmatch", build_file_proto_mode = "disable_global", + importpath = "github.com/schollz/closestmatch", + sha256 = "f267729efc7a639bb816e2586a17237a8c8e7ff327c0c3dd58766d1433ad2d3a", + strip_prefix = "github.com/schollz/closestmatch@v2.1.0+incompatible", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/schollz/closestmatch/com_github_schollz_closestmatch-v2.1.0+incompatible.zip", + "http://ats.apps.svc/gomod/github.com/schollz/closestmatch/com_github_schollz_closestmatch-v2.1.0+incompatible.zip", + "https://cache.hawkingrei.com/gomod/github.com/schollz/closestmatch/com_github_schollz_closestmatch-v2.1.0+incompatible.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/schollz/closestmatch/com_github_schollz_closestmatch-v2.1.0+incompatible.zip", + ], + ) + go_repository( + name = "com_github_sclevine_agouti", + build_file_proto_mode = "disable", importpath = "github.com/sclevine/agouti", sum = "h1:8IBJS6PWz3uTlMP3YBIR5f+KAldcGuOeFkFbUWfBgK4=", version = "v3.0.0+incompatible", ) go_repository( name = "com_github_sean_seed", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/sean-/seed", sum = "h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I=", version = "v0.0.0-20170313163322-e2103e2c3529", ) go_repository( name = "com_github_securego_gosec_v2", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/securego/gosec/v2", - sum = "h1:7mU32qn2dyC81MH9L2kefnQyRMUarfDER3iQyMHcjYM=", - version = "v2.13.1", + sum = "h1:Le8MSj0PDmOnHJgUATjD96PaXRvCpKC+DGJvwyy0Mlk=", + version = "v2.21.4", ) go_repository( name = "com_github_segmentio_asm", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/segmentio/asm", sum = "h1:9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys=", version = "v1.2.0", @@ -3305,9 +5283,22 @@ def go_deps(): sum = "h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=", version = "v1.1.0", ) + go_repository( + name = "com_github_shabbyrobe_gocovmerge", + build_file_proto_mode = "disable_global", + importpath = "github.com/shabbyrobe/gocovmerge", + sha256 = "3c4cbe51a4350af0f4f042034e5b27470e7df81c842fb22d13cb73cdcba31b66", + strip_prefix = "github.com/shabbyrobe/gocovmerge@v0.0.0-20190829150210-3e036491d500", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/shabbyrobe/gocovmerge/com_github_shabbyrobe_gocovmerge-v0.0.0-20190829150210-3e036491d500.zip", + "http://ats.apps.svc/gomod/github.com/shabbyrobe/gocovmerge/com_github_shabbyrobe_gocovmerge-v0.0.0-20190829150210-3e036491d500.zip", + "https://cache.hawkingrei.com/gomod/github.com/shabbyrobe/gocovmerge/com_github_shabbyrobe_gocovmerge-v0.0.0-20190829150210-3e036491d500.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/shabbyrobe/gocovmerge/com_github_shabbyrobe_gocovmerge-v0.0.0-20190829150210-3e036491d500.zip", + ], + ) go_repository( name = "com_github_shazow_go_diff", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/shazow/go-diff", sum = "h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU=", version = "v0.0.0-20160112020656-b6b7b6733b8c", @@ -3316,36 +5307,36 @@ def go_deps(): name = "com_github_shirou_gopsutil_v3", build_file_proto_mode = "disable_global", importpath = "github.com/shirou/gopsutil/v3", - sum = "h1:yibtJhIVEMcdw+tCTbOPiF1VcsuDeTE4utJ8Dm4c5eA=", - version = "v3.22.9", + sum = "h1:i0t8kL+kQTvpAYToeuiVk3TgDeKOFioZO3Ztz/iZ9pI=", + version = "v3.24.5", ) go_repository( - name = "com_github_shopify_goreferrer", + name = "com_github_shoenig_go_m1cpu", build_file_proto_mode = "disable_global", - importpath = "github.com/Shopify/goreferrer", - sum = "h1:WDC6ySpJzbxGWFh4aMxFFC28wwGp5pEuoTtvA4q/qQ4=", - version = "v0.0.0-20181106222321-ec9c9a553398", + importpath = "github.com/shoenig/go-m1cpu", + sum = "h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM=", + version = "v0.1.6", ) go_repository( - name = "com_github_shopify_sarama", + name = "com_github_shoenig_test", build_file_proto_mode = "disable_global", - importpath = "github.com/Shopify/sarama", - sum = "h1:ARid8o8oieau9XrHI55f/L3EoRAhm9px6sonbD7yuUE=", - version = "v1.29.0", + importpath = "github.com/shoenig/test", + sum = "h1:kVTaSd7WLz5WZ2IaoM0RSzRsUD+m8wRR+5qvntpn4LU=", + version = "v0.6.4", ) go_repository( - name = "com_github_shopify_toxiproxy", + name = "com_github_shopify_goreferrer", build_file_proto_mode = "disable_global", - importpath = "github.com/Shopify/toxiproxy", - sum = "h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc=", - version = "v2.1.4+incompatible", + importpath = "github.com/Shopify/goreferrer", + sum = "h1:WDC6ySpJzbxGWFh4aMxFFC28wwGp5pEuoTtvA4q/qQ4=", + version = "v0.0.0-20181106222321-ec9c9a553398", ) go_repository( name = "com_github_shopspring_decimal", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/shopspring/decimal", - sum = "h1:pntxY8Ary0t43dCZ5dqY4YTJCObLY1kIXl0uzMv+7DE=", - version = "v0.0.0-20180709203117-cd690d0c9e24", + sum = "h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8=", + version = "v1.3.1", ) go_repository( name = "com_github_shurcool_httpfs", @@ -3363,7 +5354,7 @@ def go_deps(): ) go_repository( name = "com_github_shurcool_sanitized_anchor_name", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/shurcooL/sanitized_anchor_name", sum = "h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=", version = "v1.0.0", @@ -3379,40 +5370,40 @@ def go_deps(): name = "com_github_sirupsen_logrus", build_file_proto_mode = "disable_global", importpath = "github.com/sirupsen/logrus", - sum = "h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=", - version = "v1.9.0", + sum = "h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=", + version = "v1.9.3", ) go_repository( name = "com_github_sivchari_containedctx", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/sivchari/containedctx", - sum = "h1:0hLQKpgC53OVF1VT7CeoFHk9YKstur1XOgfYIc1yrHI=", - version = "v1.0.2", + sum = "h1:x+etemjbsh2fB5ewm5FeLNi5bUjK0V8n0RB+Wwfd0XE=", + version = "v1.0.3", ) go_repository( - name = "com_github_sivchari_nosnakecase", - build_file_proto_mode = "disable", - importpath = "github.com/sivchari/nosnakecase", - sum = "h1:7QkpWIRMe8x25gckkFd2A5Pi6Ymo0qgr4JrhGt95do8=", - version = "v1.7.0", + name = "com_github_sivchari_tenv", + build_file_proto_mode = "disable_global", + importpath = "github.com/sivchari/tenv", + sum = "h1:+E0QzjktdnExv/wwsnnyk4oqZBUfuh89YMQT1cyuvSY=", + version = "v1.12.1", ) go_repository( - name = "com_github_sivchari_tenv", + name = "com_github_skeema_knownhosts", build_file_proto_mode = "disable", - importpath = "github.com/sivchari/tenv", - sum = "h1:d4laZMBK6jpe5PWepxlV9S+LC0yXqvYHiq8E6ceoVVE=", - version = "v1.7.0", + importpath = "github.com/skeema/knownhosts", + sum = "h1:h9r9cf0+u7wSE+M183ZtMGgOJKiL96brpaz5ekfJCpM=", + version = "v1.2.0", ) go_repository( name = "com_github_smartystreets_assertions", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/smartystreets/assertions", sum = "h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=", version = "v0.0.0-20180927180507-b2de0cb4f26d", ) go_repository( name = "com_github_smartystreets_goconvey", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/smartystreets/goconvey", sum = "h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=", version = "v1.6.4", @@ -3426,21 +5417,21 @@ def go_deps(): ) go_repository( name = "com_github_sonatard_noctx", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/sonatard/noctx", - sum = "h1:VC1Qhl6Oxx9vvWo3UDgrGXYCeKCe3Wbw7qAWL6FrmTY=", - version = "v0.0.1", + sum = "h1:JjqOc2WN16ISWAjAk8M5ej0RfExEXtkEyExl2hLW+OM=", + version = "v0.1.0", ) go_repository( name = "com_github_sourcegraph_go_diff", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/sourcegraph/go-diff", - sum = "h1:hmA1LzxW0n1c3Q4YbrFgg4P99GSnebYa3x8gr0HZqLQ=", - version = "v0.6.1", + sum = "h1:9uLlrd5T46OXs5qpp8L/MTltk0zikUGi0sNNyCpA8G0=", + version = "v0.7.0", ) go_repository( name = "com_github_spaolacci_murmur3", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/spaolacci/murmur3", sum = "h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI=", version = "v1.1.0", @@ -3449,8 +5440,8 @@ def go_deps(): name = "com_github_spf13_afero", build_file_proto_mode = "disable_global", importpath = "github.com/spf13/afero", - sum = "h1:xehSyVa0YnHWsJ49JFljMpg1HX19V6NDZ1fkm1Xznbo=", - version = "v1.8.2", + sum = "h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8=", + version = "v1.11.0", ) go_repository( name = "com_github_spf13_cast", @@ -3463,8 +5454,8 @@ def go_deps(): name = "com_github_spf13_cobra", build_file_proto_mode = "disable_global", importpath = "github.com/spf13/cobra", - sum = "h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA=", - version = "v1.6.1", + sum = "h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM=", + version = "v1.8.1", ) go_repository( name = "com_github_spf13_jwalterweatherman", @@ -3489,14 +5480,14 @@ def go_deps(): ) go_repository( name = "com_github_spkg_bom", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/spkg/bom", sum = "h1:S939THe0ukL5WcTGiGqkgtaW5JW+O6ITaIlpJXTYY64=", version = "v1.0.0", ) go_repository( name = "com_github_ssgreg_nlreturn_v2", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/ssgreg/nlreturn/v2", sum = "h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YEwQ0=", version = "v2.2.1", @@ -3510,14 +5501,14 @@ def go_deps(): ) go_repository( name = "com_github_stathat_consistent", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/stathat/consistent", sum = "h1:ZFJ1QTRn8npNBKW065raSZ8xfOqhpb8vLOkfp4CcL/U=", version = "v1.0.0", ) go_repository( name = "com_github_stbenjam_no_sprintf_host_port", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/stbenjam/no-sprintf-host-port", sum = "h1:tYugd/yrm1O0dV+ThCbaKZh195Dfm07ysF0U6JQXczc=", version = "v0.1.1", @@ -3533,15 +5524,15 @@ def go_deps(): name = "com_github_stretchr_objx", build_file_proto_mode = "disable_global", importpath = "github.com/stretchr/objx", - sum = "h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=", - version = "v0.5.0", + sum = "h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=", + version = "v0.5.2", ) go_repository( name = "com_github_stretchr_testify", build_file_proto_mode = "disable_global", importpath = "github.com/stretchr/testify", - sum = "h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=", - version = "v1.8.4", + sum = "h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=", + version = "v1.9.0", ) go_repository( name = "com_github_subosito_gotenv", @@ -3550,40 +5541,59 @@ def go_deps(): sum = "h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs=", version = "v1.4.1", ) - go_repository( - name = "com_github_sylvia7788_contextcheck", - build_file_proto_mode = "disable", - importpath = "github.com/sylvia7788/contextcheck", - sum = "h1:o2EZgVPyMKE/Mtoqym61DInKEjwEbsmyoxg3VrmjNO4=", - version = "v1.0.6", - ) go_repository( name = "com_github_tdakkota_asciicheck", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/tdakkota/asciicheck", - sum = "h1:PKzG7JUTUmVspQTDqtkX9eSiLGossXTybutHwTXuO0A=", - version = "v0.1.1", + sum = "h1:o8jvnUANo0qXtnslk2d3nMKTFNlOnJjRrNcj0j9qkHM=", + version = "v0.2.0", + ) + go_repository( + name = "com_github_tdewolff_minify_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/tdewolff/minify/v2", + sha256 = "6f76f152c15fee3a36b0496175d7e075046c3b47b50327428b10d32af6549f5f", + strip_prefix = "github.com/tdewolff/minify/v2@v2.12.4", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/tdewolff/minify/v2/com_github_tdewolff_minify_v2-v2.12.4.zip", + "http://ats.apps.svc/gomod/github.com/tdewolff/minify/v2/com_github_tdewolff_minify_v2-v2.12.4.zip", + "https://cache.hawkingrei.com/gomod/github.com/tdewolff/minify/v2/com_github_tdewolff_minify_v2-v2.12.4.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/tdewolff/minify/v2/com_github_tdewolff_minify_v2-v2.12.4.zip", + ], + ) + go_repository( + name = "com_github_tdewolff_parse_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/tdewolff/parse/v2", + sha256 = "5bfdded67b0164d0fbfc8c5d308a4c9c2f5ebecdcf3e769b5e9ca8586335c543", + strip_prefix = "github.com/tdewolff/parse/v2@v2.6.4", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/tdewolff/parse/v2/com_github_tdewolff_parse_v2-v2.6.4.zip", + "http://ats.apps.svc/gomod/github.com/tdewolff/parse/v2/com_github_tdewolff_parse_v2-v2.6.4.zip", + "https://cache.hawkingrei.com/gomod/github.com/tdewolff/parse/v2/com_github_tdewolff_parse_v2-v2.6.4.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/tdewolff/parse/v2/com_github_tdewolff_parse_v2-v2.6.4.zip", + ], ) go_repository( name = "com_github_tenntenn_modver", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/tenntenn/modver", sum = "h1:2klLppGhDgzJrScMpkj9Ujy3rXPUspSjAcev9tSEBgA=", version = "v1.0.1", ) go_repository( name = "com_github_tenntenn_text_transform", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/tenntenn/text/transform", sum = "h1:f+jULpRQGxTSkNYKJ51yaw6ChIqO+Je8UqsTKN/cDag=", version = "v0.0.0-20200319021203-7eef512accb3", ) go_repository( name = "com_github_tetafro_godot", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/tetafro/godot", - sum = "h1:BVoBIqAf/2QdbFmSwAWnaIqDivZdOV0ZRwEm6jivLKw=", - version = "v1.4.11", + sum = "h1:ouX3XGiziKDypbpXqShBfnNLTSjR8r3/HVzrtJ+bHlI=", + version = "v1.4.18", ) go_repository( name = "com_github_tiancaiamao_appdash", @@ -3594,10 +5604,29 @@ def go_deps(): ) go_repository( name = "com_github_tiancaiamao_gp", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/tiancaiamao/gp", - sum = "h1:J/YdBZ46WKpXsxsW93SG+q0F8KI+yFrcIDT4c/RNoc4=", - version = "v0.0.0-20221230034425-4025bc8a4d4a", + sha256 = "0980e2518360748b37b801c1896550b4a37a3c1fc62ebbf90631e5c67de165d3", + strip_prefix = "github.com/tiancaiamao/gp@v0.0.0-20221230034425-4025bc8a4d4a", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/tiancaiamao/gp/com_github_tiancaiamao_gp-v0.0.0-20221230034425-4025bc8a4d4a.zip", + "http://ats.apps.svc/gomod/github.com/tiancaiamao/gp/com_github_tiancaiamao_gp-v0.0.0-20221230034425-4025bc8a4d4a.zip", + "https://cache.hawkingrei.com/gomod/github.com/tiancaiamao/gp/com_github_tiancaiamao_gp-v0.0.0-20221230034425-4025bc8a4d4a.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/tiancaiamao/gp/com_github_tiancaiamao_gp-v0.0.0-20221230034425-4025bc8a4d4a.zip", + ], + ) + go_repository( + name = "com_github_tidwall_btree", + build_file_proto_mode = "disable_global", + importpath = "github.com/tidwall/btree", + sha256 = "4a6619eb936c836841702933a9d66f27abe83b7ffb541de44d12db4aa3a809d5", + strip_prefix = "github.com/tidwall/btree@v1.7.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/tidwall/btree/com_github_tidwall_btree-v1.7.0.zip", + "http://ats.apps.svc/gomod/github.com/tidwall/btree/com_github_tidwall_btree-v1.7.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/tidwall/btree/com_github_tidwall_btree-v1.7.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/tidwall/btree/com_github_tidwall_btree-v1.7.0.zip", + ], ) go_repository( name = "com_github_tikv_client_go_v2", @@ -3615,39 +5644,31 @@ def go_deps(): ) go_repository( name = "com_github_timakin_bodyclose", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/timakin/bodyclose", - sum = "h1:kl4KhGNsJIbDHS9/4U9yQo1UcPQM0kOMJHn29EoH/Ro=", - version = "v0.0.0-20210704033933-f49887972144", + sum = "h1:quvGphlmUVU+nhpFa4gg4yJyTRJ13reZMDHrKwYw53M=", + version = "v0.0.0-20230421092635-574207250966", ) go_repository( name = "com_github_timonwong_loggercheck", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/timonwong/loggercheck", - sum = "h1:ecACo9fNiHxX4/Bc02rW2+kaJIAMAes7qJ7JKxt0EZI=", - version = "v0.9.3", - ) - - go_repository( - name = "com_github_timonwong_logrlint", - build_file_proto_mode = "disable", - importpath = "github.com/timonwong/logrlint", - sum = "h1:phZCcypL/vtx6cGxObJgWZ5wexZF5SXFPLOM+ru0e/M=", - version = "v0.1.0", + sum = "h1:uVZYClxQFpw55eh+PIoqM7uAOHMrhVcDoWDery9R8Lg=", + version = "v0.10.1", ) go_repository( name = "com_github_tklauser_go_sysconf", build_file_proto_mode = "disable_global", importpath = "github.com/tklauser/go-sysconf", - sum = "h1:IJ1AZGZRWbY8T5Vfk04D9WOA5WSejdflXxP03OUqALw=", - version = "v0.3.10", + sum = "h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU=", + version = "v0.3.12", ) go_repository( name = "com_github_tklauser_numcpus", build_file_proto_mode = "disable_global", importpath = "github.com/tklauser/numcpus", - sum = "h1:E53Dm1HjH1/R2/aoCtXtPgzmElmn51aOkhCFSuZq//o=", - version = "v0.4.0", + sum = "h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk=", + version = "v0.6.1", ) go_repository( name = "com_github_tmc_grpc_websocket_proxy", @@ -3658,14 +5679,14 @@ def go_deps(): ) go_repository( name = "com_github_tomarrell_wrapcheck_v2", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/tomarrell/wrapcheck/v2", - sum = "h1:J/F8DbSKJC83bAvC6FoZaRjZiZ/iKoueSdrEkmGeacA=", - version = "v2.7.0", + sum = "h1:801U2YCAjLhdN8zhZ/7tdjB3EnAoRlJHt/s+9hijLQ4=", + version = "v2.9.0", ) go_repository( name = "com_github_tommy_muehle_go_mnd_v2", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/tommy-muehle/go-mnd/v2", sum = "h1:NowYhSdyE/1zwK9QCLeRb6USWdoif80Ie+v+yU8u1Zw=", version = "v2.5.1", @@ -3693,7 +5714,7 @@ def go_deps(): ) go_repository( name = "com_github_ugorji_go", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/ugorji/go", sum = "h1:j4s+tAvLfL3bZyefP2SEWmhBzmuIlH/eqNuPdFPgngw=", version = "v1.1.4", @@ -3707,17 +5728,17 @@ def go_deps(): ) go_repository( name = "com_github_ultraware_funlen", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/ultraware/funlen", - sum = "h1:5ylVWm8wsNwH5aWo9438pwvsK0QiqVuUrt9bn7S/iLA=", - version = "v0.0.3", + sum = "h1:BuqclbkY6pO+cvxoq7OsktIXZpgBSkYTQtmwhAK81vI=", + version = "v0.1.0", ) go_repository( name = "com_github_ultraware_whitespace", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/ultraware/whitespace", - sum = "h1:hh+/cpIcopyMYbZNVov9iSxvJU3OYQg78Sfaqzi/CzI=", - version = "v0.0.5", + sum = "h1:bTPOGejYFulW3PkcrqkeQwOd6NKOOXvmGD9bo/Gk8VQ=", + version = "v0.1.1", ) go_repository( name = "com_github_urfave_negroni", @@ -3728,10 +5749,17 @@ def go_deps(): ) go_repository( name = "com_github_uudashr_gocognit", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/uudashr/gocognit", - sum = "h1:2Cgi6MweCsdB6kpcVQp7EW4U23iBFQWfTXiWlyp842Y=", - version = "v1.0.6", + sum = "h1:l+a111VcDbKfynh+airAy/DJQKaXh2m9vkoysMPSZyM=", + version = "v1.1.3", + ) + go_repository( + name = "com_github_uudashr_iface", + build_file_proto_mode = "disable", + importpath = "github.com/uudashr/iface", + sum = "h1:ECJjh5q/1Zmnv/2yFpWV6H3oMg5+Mo+vL0aqw9Gjazo=", + version = "v1.2.0", ) go_repository( name = "com_github_valyala_bytebufferpool", @@ -3756,21 +5784,21 @@ def go_deps(): ) go_repository( name = "com_github_valyala_quicktemplate", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/valyala/quicktemplate", - sum = "h1:LUPTJmlVcb46OOUY3IeD9DojFpAVbsG+5WFTcjMJzCM=", - version = "v1.7.0", + sum = "h1:zU0tjbIqTRgKQzFY1L42zq0qR3eh4WoQQdIdqCysW5k=", + version = "v1.8.0", ) go_repository( name = "com_github_valyala_tcplisten", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/valyala/tcplisten", sum = "h1:0R4NLDRDZX6JcmhJgXi5E4b8Wg84ihbmUKp/GvSPEzc=", version = "v0.0.0-20161114210144-ceec8f93295a", ) go_repository( name = "com_github_vbauerster_mpb_v7", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/vbauerster/mpb/v7", sum = "h1:BkGfmb6nMrrBQDFECR/Q7RkKCw7ylMetCb4079CGs4w=", version = "v7.5.3", @@ -3783,47 +5811,93 @@ def go_deps(): version = "v1.2.0", ) go_repository( - name = "com_github_wangjohn_quickselect", + name = "com_github_vmihailenco_msgpack_v5", build_file_proto_mode = "disable_global", - importpath = "github.com/wangjohn/quickselect", - sum = "h1:9DDCDwOyEy/gId+IEMrFHLuQ5R/WV0KNxWLler8X2OY=", - version = "v0.0.0-20161129230411-ed8402a42d5f", + importpath = "github.com/vmihailenco/msgpack/v5", + sha256 = "3437e7dc0e9a55985c6a68b4a331e685f1125aeb98a0cec0585145b8353a66ae", + strip_prefix = "github.com/vmihailenco/msgpack/v5@v5.3.5", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/vmihailenco/msgpack/v5/com_github_vmihailenco_msgpack_v5-v5.3.5.zip", + "http://ats.apps.svc/gomod/github.com/vmihailenco/msgpack/v5/com_github_vmihailenco_msgpack_v5-v5.3.5.zip", + "https://cache.hawkingrei.com/gomod/github.com/vmihailenco/msgpack/v5/com_github_vmihailenco_msgpack_v5-v5.3.5.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/vmihailenco/msgpack/v5/com_github_vmihailenco_msgpack_v5-v5.3.5.zip", + ], ) go_repository( - name = "com_github_xdg_scram", + name = "com_github_vmihailenco_tagparser_v2", build_file_proto_mode = "disable_global", - importpath = "github.com/xdg/scram", - sum = "h1:nTadYh2Fs4BK2xdldEa2g5bbaZp0/+1nJMMPtPxS/to=", - version = "v1.0.3", + importpath = "github.com/vmihailenco/tagparser/v2", + sha256 = "70096ead331b4ac4efc0bf740674cbe55772beee6eace39507a610c5652aa8b5", + strip_prefix = "github.com/vmihailenco/tagparser/v2@v2.0.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/vmihailenco/tagparser/v2/com_github_vmihailenco_tagparser_v2-v2.0.0.zip", + "http://ats.apps.svc/gomod/github.com/vmihailenco/tagparser/v2/com_github_vmihailenco_tagparser_v2-v2.0.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/vmihailenco/tagparser/v2/com_github_vmihailenco_tagparser_v2-v2.0.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/vmihailenco/tagparser/v2/com_github_vmihailenco_tagparser_v2-v2.0.0.zip", + ], ) go_repository( - name = "com_github_xdg_stringprep", + name = "com_github_vultr_govultr_v2", build_file_proto_mode = "disable_global", - importpath = "github.com/xdg/stringprep", - sum = "h1:cmL5Enob4W83ti/ZHuZLuKD/xqJfus4fVPwE+/BDm+4=", - version = "v1.0.3", + importpath = "github.com/vultr/govultr/v2", + sha256 = "3c8f94575d509164614b364a75529b1dab895c228a5b5516b7b6334c96e5094a", + strip_prefix = "github.com/vultr/govultr/v2@v2.17.2", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/vultr/govultr/v2/com_github_vultr_govultr_v2-v2.17.2.zip", + "http://ats.apps.svc/gomod/github.com/vultr/govultr/v2/com_github_vultr_govultr_v2-v2.17.2.zip", + "https://cache.hawkingrei.com/gomod/github.com/vultr/govultr/v2/com_github_vultr_govultr_v2-v2.17.2.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/vultr/govultr/v2/com_github_vultr_govultr_v2-v2.17.2.zip", + ], ) go_repository( - name = "com_github_xeipuuv_gojsonpointer", + name = "com_github_wangjohn_quickselect", build_file_proto_mode = "disable_global", + importpath = "github.com/wangjohn/quickselect", + sum = "h1:9DDCDwOyEy/gId+IEMrFHLuQ5R/WV0KNxWLler8X2OY=", + version = "v0.0.0-20161129230411-ed8402a42d5f", + ) + go_repository( + name = "com_github_xanzy_ssh_agent", + build_file_proto_mode = "disable", + importpath = "github.com/xanzy/ssh-agent", + sum = "h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=", + version = "v0.3.3", + ) + go_repository( + name = "com_github_xeipuuv_gojsonpointer", + build_file_proto_mode = "disable", importpath = "github.com/xeipuuv/gojsonpointer", sum = "h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c=", version = "v0.0.0-20180127040702-4e3ac2762d5f", ) go_repository( name = "com_github_xeipuuv_gojsonreference", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/xeipuuv/gojsonreference", sum = "h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0=", version = "v0.0.0-20180127040603-bd5ef7bd5415", ) go_repository( name = "com_github_xeipuuv_gojsonschema", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/xeipuuv/gojsonschema", sum = "h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74=", version = "v1.2.0", ) + go_repository( + name = "com_github_xen0n_gosmopolitan", + build_file_proto_mode = "disable_global", + importpath = "github.com/xen0n/gosmopolitan", + sum = "h1:/p2KTnMzwRexIW8GlKawsTWOxn7UHA+jCMF/V8HHtvU=", + version = "v1.2.2", + ) + go_repository( + name = "com_github_xhit_go_str2duration_v2", + build_file_proto_mode = "disable_global", + importpath = "github.com/xhit/go-str2duration/v2", + sum = "h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc=", + version = "v2.1.0", + ) go_repository( name = "com_github_xiang90_probing", build_file_proto_mode = "disable_global", @@ -3854,42 +5928,76 @@ def go_deps(): ) go_repository( name = "com_github_yagipy_maintidx", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "github.com/yagipy/maintidx", sum = "h1:h5NvIsCz+nRDapQ0exNv4aJ0yXSI0420omVANTv3GJM=", version = "v1.0.0", ) go_repository( name = "com_github_yalp_jsonpath", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/yalp/jsonpath", sum = "h1:6fRhSjgLCkTD3JnJxvaJ4Sj+TYblw757bqYgZaOq5ZY=", version = "v0.0.0-20180802001716-5cc68e5049a0", ) + go_repository( - name = "com_github_yeya24_promlinter", - build_file_proto_mode = "disable", - importpath = "github.com/yeya24/promlinter", - sum = "h1:xFKDQ82orCU5jQujdaD8stOHiv8UN68BSdn2a8u8Y3o=", - version = "v0.2.0", + name = "com_github_yangkeao_go_mysql_driver", + build_file_proto_mode = "disable_global", + importpath = "github.com/YangKeao/go-mysql-driver", + sha256 = "66ba9bed8b68899ea4adc729fbaf160bd634fe1afa51621a3dc5b153b538eb57", + strip_prefix = "github.com/YangKeao/go-mysql-driver@v0.0.0-20240627104025-dd5589458cfa", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/YangKeao/go-mysql-driver/com_github_yangkeao_go_mysql_driver-v0.0.0-20240627104025-dd5589458cfa.zip", + "http://ats.apps.svc/gomod/github.com/YangKeao/go-mysql-driver/com_github_yangkeao_go_mysql_driver-v0.0.0-20240627104025-dd5589458cfa.zip", + "https://cache.hawkingrei.com/gomod/github.com/YangKeao/go-mysql-driver/com_github_yangkeao_go_mysql_driver-v0.0.0-20240627104025-dd5589458cfa.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/YangKeao/go-mysql-driver/com_github_yangkeao_go_mysql_driver-v0.0.0-20240627104025-dd5589458cfa.zip", + ], ) go_repository( - name = "com_github_yudai_gojsondiff", + name = "com_github_yeya24_promlinter", + build_file_proto_mode = "disable_global", + importpath = "github.com/yeya24/promlinter", + sum = "h1:JVDbMp08lVCP7Y6NP3qHroGAO6z2yGKQtS5JsjqtoFs=", + version = "v0.3.0", + ) + go_repository( + name = "com_github_ykadowak_zerologlint", build_file_proto_mode = "disable_global", + importpath = "github.com/ykadowak/zerologlint", + sum = "h1:Gy/fMz1dFQN9JZTPjv1hxEk+sRWm05row04Yoolgdiw=", + version = "v0.1.5", + ) + go_repository( + name = "com_github_yosssi_ace", + build_file_proto_mode = "disable_global", + importpath = "github.com/yosssi/ace", + sha256 = "96157dbef72f2f69a900e09b3e58093ee24f7df341ac287bddfb15f8c3f530db", + strip_prefix = "github.com/yosssi/ace@v0.0.5", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/yosssi/ace/com_github_yosssi_ace-v0.0.5.zip", + "http://ats.apps.svc/gomod/github.com/yosssi/ace/com_github_yosssi_ace-v0.0.5.zip", + "https://cache.hawkingrei.com/gomod/github.com/yosssi/ace/com_github_yosssi_ace-v0.0.5.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/yosssi/ace/com_github_yosssi_ace-v0.0.5.zip", + ], + ) + go_repository( + name = "com_github_yudai_gojsondiff", + build_file_proto_mode = "disable", importpath = "github.com/yudai/gojsondiff", sum = "h1:27cbfqXLVEJ1o8I6v3y9lg8Ydm53EKqHXAOMxEGlCOA=", version = "v1.0.0", ) go_repository( name = "com_github_yudai_golcs", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/yudai/golcs", sum = "h1:BHyfKlQyqbsFN5p3IfnEUduWvb9is428/nNb5L3U01M=", version = "v0.0.0-20170316035057-ecda9a501e82", ) go_repository( name = "com_github_yudai_pp", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "github.com/yudai/pp", sum = "h1:Q4//iY4pNF6yPLZIigmvcl7k/bPgrcTPIFIcmawg5bI=", version = "v2.0.1+incompatible", @@ -3905,876 +6013,880 @@ def go_deps(): name = "com_github_yusufpapurcu_wmi", build_file_proto_mode = "disable_global", importpath = "github.com/yusufpapurcu/wmi", - sum = "h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg=", - version = "v1.2.2", + sum = "h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0=", + version = "v1.2.4", + ) + go_repository( + name = "com_github_zeebo_assert", + build_file_proto_mode = "disable_global", + importpath = "github.com/zeebo/assert", + sha256 = "1f01421d74ff37cb8247988155be9e6877d336029bcd887a1d035fd32d7ab6ae", + strip_prefix = "github.com/zeebo/assert@v1.3.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/zeebo/assert/com_github_zeebo_assert-v1.3.0.zip", + "http://ats.apps.svc/gomod/github.com/zeebo/assert/com_github_zeebo_assert-v1.3.0.zip", + "https://cache.hawkingrei.com/gomod/github.com/zeebo/assert/com_github_zeebo_assert-v1.3.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/zeebo/assert/com_github_zeebo_assert-v1.3.0.zip", + ], + ) + go_repository( + name = "com_github_zeebo_xxh3", + build_file_proto_mode = "disable_global", + importpath = "github.com/zeebo/xxh3", + sha256 = "190e5ef1f672e9321a1580bdd31c6440fde6044ca8168d2b489cf50cdc4f58a6", + strip_prefix = "github.com/zeebo/xxh3@v1.0.2", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/github.com/zeebo/xxh3/com_github_zeebo_xxh3-v1.0.2.zip", + "http://ats.apps.svc/gomod/github.com/zeebo/xxh3/com_github_zeebo_xxh3-v1.0.2.zip", + "https://cache.hawkingrei.com/gomod/github.com/zeebo/xxh3/com_github_zeebo_xxh3-v1.0.2.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/github.com/zeebo/xxh3/com_github_zeebo_xxh3-v1.0.2.zip", + ], ) go_repository( name = "com_gitlab_bosi_decorder", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "gitlab.com/bosi/decorder", - sum = "h1:gX4/RgK16ijY8V+BRQHAySfQAb354T7/xQpDB2n10P0=", - version = "v0.2.3", + sum = "h1:qbQaV3zgwnBZ4zPMhGLW4KZe7A7NwxEhJx39R3shffo=", + version = "v0.4.2", ) go_repository( name = "com_google_cloud_go", build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go", - sum = "h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y=", - version = "v0.105.0", + sum = "h1:rJyC7nWRg2jWGZ4wSJ5nY65GTdYJkg0cd/uXb+ACI6o=", + version = "v0.110.7", ) go_repository( name = "com_google_cloud_go_accessapproval", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/accessapproval", - sum = "h1:/nTivgnV/n1CaAeo+ekGexTYUsKEU9jUVkoY5359+3Q=", - version = "v1.5.0", + sum = "h1:/5YjNhR6lzCvmJZAnByYkfEgWjfAKwYP6nkuTk6nKFE=", + version = "v1.7.1", ) go_repository( name = "com_google_cloud_go_accesscontextmanager", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/accesscontextmanager", - sum = "h1:CFhNhU7pcD11cuDkQdrE6PQJgv0EXNKNv06jIzbLlCU=", - version = "v1.4.0", + sum = "h1:WIAt9lW9AXtqw/bnvrEUaE8VG/7bAAeMzRCBGMkc4+w=", + version = "v1.8.1", ) go_repository( name = "com_google_cloud_go_aiplatform", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/aiplatform", - sum = "h1:DBi3Jk9XjCJ4pkkLM4NqKgj3ozUL1wq4l+d3/jTGXAI=", - version = "v1.27.0", + sum = "h1:M5davZWCTzE043rJCn+ZLW6hSxfG1KAx4vJTtas2/ec=", + version = "v1.48.0", ) go_repository( name = "com_google_cloud_go_analytics", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/analytics", - sum = "h1:NKw6PpQi6V1O+KsjuTd+bhip9d0REYu4NevC45vtGp8=", - version = "v0.12.0", + sum = "h1:TFBC1ZAqX9/jL56GEXdLrVe5vT3I22bDVWyDwZX4IEg=", + version = "v0.21.3", ) go_repository( name = "com_google_cloud_go_apigateway", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/apigateway", - sum = "h1:IIoXKR7FKrEAQhMTz5hK2wiDz2WNFHS7eVr/L1lE/rM=", - version = "v1.4.0", + sum = "h1:aBSwCQPcp9rZ0zVEUeJbR623palnqtvxJlUyvzsKGQc=", + version = "v1.6.1", ) go_repository( name = "com_google_cloud_go_apigeeconnect", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/apigeeconnect", - sum = "h1:AONoTYJviyv1vS4IkvWzq69gEVdvHx35wKXc+e6wjZQ=", - version = "v1.4.0", + sum = "h1:6u/jj0P2c3Mcm+H9qLsXI7gYcTiG9ueyQL3n6vCmFJM=", + version = "v1.6.1", ) go_repository( name = "com_google_cloud_go_apigeeregistry", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/apigeeregistry", - sum = "h1:E43RdhhCxdlV+I161gUY2rI4eOaMzHTA5kNkvRsFXvc=", - version = "v0.6.0", - ) - go_repository( - name = "com_google_cloud_go_apikeys", - build_file_proto_mode = "disable", - importpath = "cloud.google.com/go/apikeys", - sum = "h1:B9CdHFZTFjVti89tmyXXrO+7vSNo2jvZuHG8zD5trdQ=", - version = "v0.6.0", + sum = "h1:hgq0ANLDx7t2FDZDJQrCMtCtddR/pjCqVuvQWGrQbXw=", + version = "v0.7.1", ) go_repository( name = "com_google_cloud_go_appengine", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/appengine", - sum = "h1:lmG+O5oaR9xNwaRBwE2XoMhwQHsHql5IoiGr1ptdDwU=", - version = "v1.5.0", + sum = "h1:J+aaUZ6IbTpBegXbmEsh8qZZy864ZVnOoWyfa1XSNbI=", + version = "v1.8.1", ) go_repository( name = "com_google_cloud_go_area120", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/area120", - sum = "h1:TCMhwWEWhCn8d44/Zs7UCICTWje9j3HuV6nVGMjdpYw=", - version = "v0.6.0", + sum = "h1:wiOq3KDpdqXmaHzvZwKdpoM+3lDcqsI2Lwhyac7stss=", + version = "v0.8.1", ) go_repository( name = "com_google_cloud_go_artifactregistry", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/artifactregistry", - sum = "h1:3d0LRAU1K6vfqCahhl9fx2oGHcq+s5gftdix4v8Ibrc=", - version = "v1.9.0", + sum = "h1:k6hNqab2CubhWlGcSzunJ7kfxC7UzpAfQ1UPb9PDCKI=", + version = "v1.14.1", ) go_repository( name = "com_google_cloud_go_asset", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/asset", - sum = "h1:aCrlaLGJWTODJX4G56ZYzJefITKEWNfbjjtHSzWpxW0=", - version = "v1.10.0", + sum = "h1:vlHdznX70eYW4V1y1PxocvF6tEwxJTTarwIGwOhFF3U=", + version = "v1.14.1", ) go_repository( name = "com_google_cloud_go_assuredworkloads", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/assuredworkloads", - sum = "h1:hhIdCOowsT1GG5eMCIA0OwK6USRuYTou/1ZeNxCSRtA=", - version = "v1.9.0", + sum = "h1:yaO0kwS+SnhVSTF7BqTyVGt3DTocI6Jqo+S3hHmCwNk=", + version = "v1.11.1", ) go_repository( name = "com_google_cloud_go_automl", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/automl", - sum = "h1:BMioyXSbg7d7xLibn47cs0elW6RT780IUWr42W8rp2Q=", - version = "v1.8.0", + sum = "h1:iP9iQurb0qbz+YOOMfKSEjhONA/WcoOIjt6/m+6pIgo=", + version = "v1.13.1", ) go_repository( name = "com_google_cloud_go_baremetalsolution", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/baremetalsolution", - sum = "h1:g9KO6SkakcYPcc/XjAzeuUrEOXlYPnMpuiaywYaGrmQ=", - version = "v0.4.0", + sum = "h1:0Ge9PQAy6cZ1tRrkc44UVgYV15nw2TVnzJzYsMHXF+E=", + version = "v1.1.1", ) go_repository( name = "com_google_cloud_go_batch", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/batch", - sum = "h1:1jvEBY55OH4Sd2FxEXQfxGExFWov1A/IaRe+Z5Z71Fw=", - version = "v0.4.0", + sum = "h1:uE0Q//W7FOGPjf7nuPiP0zoE8wOT3ngoIO2HIet0ilY=", + version = "v1.3.1", ) go_repository( name = "com_google_cloud_go_beyondcorp", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/beyondcorp", - sum = "h1:w+4kThysgl0JiKshi2MKDCg2NZgOyqOI0wq2eBZyrzA=", - version = "v0.3.0", + sum = "h1:VPg+fZXULQjs8LiMeWdLaB5oe8G9sEoZ0I0j6IMiG1Q=", + version = "v1.0.0", ) go_repository( name = "com_google_cloud_go_bigquery", build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/bigquery", - sum = "h1:Wi4dITi+cf9VYp4VH2T9O41w0kCW0uQTELq2Z6tukN0=", - version = "v1.44.0", + sum = "h1:K3wLbjbnSlxhuG5q4pntHv5AEbQM1QqHKGYgwFIqOTg=", + version = "v1.53.0", ) go_repository( name = "com_google_cloud_go_billing", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/billing", - sum = "h1:Xkii76HWELHwBtkQVZvqmSo9GTr0O+tIbRNnMcGdlg4=", - version = "v1.7.0", + sum = "h1:1iktEAIZ2uA6KpebC235zi/rCXDdDYQ0bTXTNetSL80=", + version = "v1.16.0", ) go_repository( name = "com_google_cloud_go_binaryauthorization", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/binaryauthorization", - sum = "h1:pL70vXWn9TitQYXBWTK2abHl2JHLwkFRjYw6VflRqEA=", - version = "v1.4.0", + sum = "h1:cAkOhf1ic92zEN4U1zRoSupTmwmxHfklcp1X7CCBKvE=", + version = "v1.6.1", ) go_repository( name = "com_google_cloud_go_certificatemanager", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/certificatemanager", - sum = "h1:tzbR4UHBbgsewMWUD93JHi8EBi/gHBoSAcY1/sThFGk=", - version = "v1.4.0", + sum = "h1:uKsohpE0hiobx1Eak9jNcPCznwfB6gvyQCcS28Ah9E8=", + version = "v1.7.1", ) go_repository( name = "com_google_cloud_go_channel", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/channel", - sum = "h1:pNuUlZx0Jb0Ts9P312bmNMuH5IiFWIR4RUtLb70Ke5s=", - version = "v1.9.0", + sum = "h1:dqRkK2k7Ll/HHeYGxv18RrfhozNxuTJRkspW0iaFZoY=", + version = "v1.16.0", ) go_repository( name = "com_google_cloud_go_cloudbuild", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/cloudbuild", - sum = "h1:TAAmCmAlOJ4uNBu6zwAjwhyl/7fLHHxIEazVhr3QBbQ=", - version = "v1.4.0", + sum = "h1:YBbAWcvE4x6xPWTyS+OU4eiUpz5rCS3VCM/aqmfddPA=", + version = "v1.13.0", ) go_repository( name = "com_google_cloud_go_clouddms", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/clouddms", - sum = "h1:UhzHIlgFfMr6luVYVNydw/pl9/U5kgtjCMJHnSvoVws=", - version = "v1.4.0", + sum = "h1:rjR1nV6oVf2aNNB7B5uz1PDIlBjlOiBgR+q5n7bbB7M=", + version = "v1.6.1", ) go_repository( name = "com_google_cloud_go_cloudtasks", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/cloudtasks", - sum = "h1:faUiUgXjW8yVZ7XMnKHKm1WE4OldPBUWWfIRN/3z1dc=", - version = "v1.8.0", + sum = "h1:cMh9Q6dkvh+Ry5LAPbD/U2aw6KAqdiU6FttwhbTo69w=", + version = "v1.12.1", ) go_repository( name = "com_google_cloud_go_compute", build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/compute", - sum = "h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU=", - version = "v1.13.0", + sum = "h1:tP41Zoavr8ptEqaW6j+LQOnyBBhO7OkOMAGrgLopTwY=", + version = "v1.23.0", ) go_repository( name = "com_google_cloud_go_compute_metadata", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/compute/metadata", - sum = "h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48=", - version = "v0.2.1", + sum = "h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc=", + version = "v0.3.0", ) go_repository( name = "com_google_cloud_go_contactcenterinsights", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/contactcenterinsights", - sum = "h1:tTQLI/ZvguUf9Hv+36BkG2+/PeC8Ol1q4pBW+tgCx0A=", - version = "v1.4.0", + sum = "h1:YR2aPedGVQPpFBZXJnPkqRj8M//8veIZZH5ZvICoXnI=", + version = "v1.10.0", ) go_repository( name = "com_google_cloud_go_container", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/container", - sum = "h1:nbEK/59GyDRKKlo1SqpohY1TK8LmJ2XNcvS9Gyom2A0=", - version = "v1.7.0", + sum = "h1:N51t/cgQJFqDD/W7Mb+IvmAPHrf8AbPx7Bb7aF4lROE=", + version = "v1.24.0", ) go_repository( name = "com_google_cloud_go_containeranalysis", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/containeranalysis", - sum = "h1:2824iym832ljKdVpCBnpqm5K94YT/uHTVhNF+dRTXPI=", - version = "v0.6.0", + sum = "h1:SM/ibWHWp4TYyJMwrILtcBtYKObyupwOVeceI9pNblw=", + version = "v0.10.1", ) go_repository( name = "com_google_cloud_go_datacatalog", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/datacatalog", - sum = "h1:6kZ4RIOW/uT7QWC5SfPfq/G8sYzr/v+UOmOAxy4Z1TE=", - version = "v1.8.0", + sum = "h1:qVeQcw1Cz93/cGu2E7TYUPh8Lz5dn5Ws2siIuQ17Vng=", + version = "v1.16.0", ) go_repository( name = "com_google_cloud_go_dataflow", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/dataflow", - sum = "h1:CW3541Fm7KPTyZjJdnX6NtaGXYFn5XbFC5UcjgALKvU=", - version = "v0.7.0", + sum = "h1:VzG2tqsk/HbmOtq/XSfdF4cBvUWRK+S+oL9k4eWkENQ=", + version = "v0.9.1", ) go_repository( name = "com_google_cloud_go_dataform", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/dataform", - sum = "h1:vLwowLF2ZB5J5gqiZCzv076lDI/Rd7zYQQFu5XO1PSg=", - version = "v0.5.0", + sum = "h1:xcWso0hKOoxeW72AjBSIp/UfkvpqHNzzS0/oygHlcqY=", + version = "v0.8.1", ) go_repository( name = "com_google_cloud_go_datafusion", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/datafusion", - sum = "h1:j5m2hjWovTZDTQak4MJeXAR9yN7O+zMfULnjGw/OOLg=", - version = "v1.5.0", + sum = "h1:eX9CZoyhKQW6g1Xj7+RONeDj1mV8KQDKEB9KLELX9/8=", + version = "v1.7.1", ) go_repository( name = "com_google_cloud_go_datalabeling", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/datalabeling", - sum = "h1:dp8jOF21n/7jwgo/uuA0RN8hvLcKO4q6s/yvwevs2ZM=", - version = "v0.6.0", + sum = "h1:zxsCD/BLKXhNuRssen8lVXChUj8VxF3ofN06JfdWOXw=", + version = "v0.8.1", ) go_repository( name = "com_google_cloud_go_dataplex", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/dataplex", - sum = "h1:cNxeA2DiWliQGi21kPRqnVeQ5xFhNoEjPRt1400Pm8Y=", - version = "v1.4.0", + sum = "h1:yoBWuuUZklYp7nx26evIhzq8+i/nvKYuZr1jka9EqLs=", + version = "v1.9.0", ) go_repository( - name = "com_google_cloud_go_dataproc", - build_file_proto_mode = "disable", - importpath = "cloud.google.com/go/dataproc", - sum = "h1:gVOqNmElfa6n/ccG/QDlfurMWwrK3ezvy2b2eDoCmS0=", - version = "v1.8.0", + name = "com_google_cloud_go_dataproc_v2", + build_file_proto_mode = "disable_global", + importpath = "cloud.google.com/go/dataproc/v2", + sum = "h1:4OpSiPMMGV3XmtPqskBU/RwYpj3yMFjtMLj/exi425Q=", + version = "v2.0.1", ) go_repository( name = "com_google_cloud_go_dataqna", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/dataqna", - sum = "h1:gx9jr41ytcA3dXkbbd409euEaWtofCVXYBvJz3iYm18=", - version = "v0.6.0", + sum = "h1:ITpUJep04hC9V7C+gcK390HO++xesQFSUJ7S4nSnF3U=", + version = "v0.8.1", ) go_repository( name = "com_google_cloud_go_datastore", build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/datastore", - sum = "h1:4siQRf4zTiAVt/oeH4GureGkApgb2vtPQAtOmhpqQwE=", - version = "v1.10.0", + sum = "h1:ktbC66bOQB3HJPQe8qNI1/aiQ77PMu7hD4mzE6uxe3w=", + version = "v1.13.0", ) go_repository( name = "com_google_cloud_go_datastream", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/datastream", - sum = "h1:PgIgbhedBtYBU6POGXFMn2uSl9vpqubc3ewTNdcU8Mk=", - version = "v1.5.0", + sum = "h1:ra/+jMv36zTAGPfi8TRne1hXme+UsKtdcK4j6bnqQiw=", + version = "v1.10.0", ) go_repository( name = "com_google_cloud_go_deploy", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/deploy", - sum = "h1:kI6dxt8Ml0is/x7YZjLveTvR7YPzXAUD/8wQZ2nH5zA=", - version = "v1.5.0", + sum = "h1:A+w/xpWgz99EYzB6e31gMGAI/P5jTZ2UO7veQK5jQ8o=", + version = "v1.13.0", ) go_repository( name = "com_google_cloud_go_dialogflow", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/dialogflow", - sum = "h1:HYHVOkoxQ9bSfNIelSZYNAtUi4CeSrCnROyOsbOqPq8=", - version = "v1.19.0", + sum = "h1:sCJbaXt6ogSbxWQnERKAzos57f02PP6WkGbOZvXUdwc=", + version = "v1.40.0", ) go_repository( name = "com_google_cloud_go_dlp", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/dlp", - sum = "h1:9I4BYeJSVKoSKgjr70fLdRDumqcUeVmHV4fd5f9LR6Y=", - version = "v1.7.0", + sum = "h1:tF3wsJ2QulRhRLWPzWVkeDz3FkOGVoMl6cmDUHtfYxw=", + version = "v1.10.1", ) go_repository( name = "com_google_cloud_go_documentai", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/documentai", - sum = "h1:jfq09Fdjtnpnmt/MLyf6A3DM3ynb8B2na0K+vSXvpFM=", - version = "v1.10.0", + sum = "h1:dW8ex9yb3oT9s1yD2+yLcU8Zq15AquRZ+wd0U+TkxFw=", + version = "v1.22.0", ) go_repository( name = "com_google_cloud_go_domains", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/domains", - sum = "h1:pu3JIgC1rswIqi5romW0JgNO6CTUydLYX8zyjiAvO1c=", - version = "v0.7.0", + sum = "h1:rqz6KY7mEg7Zs/69U6m6LMbB7PxFDWmT3QWNXIqhHm0=", + version = "v0.9.1", ) go_repository( name = "com_google_cloud_go_edgecontainer", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/edgecontainer", - sum = "h1:hd6J2n5dBBRuAqnNUEsKWrp6XNPKsaxwwIyzOPZTokk=", - version = "v0.2.0", + sum = "h1:zhHWnLzg6AqzE+I3gzJqiIwHfjEBhWctNQEzqb+FaRo=", + version = "v1.1.1", ) go_repository( name = "com_google_cloud_go_errorreporting", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/errorreporting", sum = "h1:kj1XEWMu8P0qlLhm3FwcaFsUvXChV/OraZwA70trRR0=", version = "v0.3.0", ) go_repository( name = "com_google_cloud_go_essentialcontacts", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/essentialcontacts", - sum = "h1:b6csrQXCHKQmfo9h3dG/pHyoEh+fQG1Yg78a53LAviY=", - version = "v1.4.0", + sum = "h1:OEJ0MLXXCW/tX1fkxzEZOsv/wRfyFsvDVNaHWBAvoV0=", + version = "v1.6.2", ) go_repository( name = "com_google_cloud_go_eventarc", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/eventarc", - sum = "h1:AgCqrmMMIcel5WWKkzz5EkCUKC3Rl5LNMMYsS+LvsI0=", - version = "v1.8.0", + sum = "h1:xIP3XZi0Xawx8DEfh++mE2lrIi5kQmCr/KcWhJ1q0J4=", + version = "v1.13.0", ) go_repository( name = "com_google_cloud_go_filestore", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/filestore", - sum = "h1:yjKOpzvqtDmL5AXbKttLc8j0hL20kuC1qPdy5HPcxp0=", - version = "v1.4.0", + sum = "h1:Eiz8xZzMJc5ppBWkuaod/PUdUZGCFR8ku0uS+Ah2fRw=", + version = "v1.7.1", ) go_repository( name = "com_google_cloud_go_firestore", build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/firestore", - sum = "h1:IBlRyxgGySXu5VuW0RgGFlTtLukSnNkpDiEOMkQkmpA=", - version = "v1.9.0", + sum = "h1:aeEA/N7DW7+l2u5jtkO8I0qv0D95YwjggD8kUHrTHO4=", + version = "v1.12.0", ) go_repository( name = "com_google_cloud_go_functions", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/functions", - sum = "h1:35tgv1fQOtvKqH/uxJMzX3w6usneJ0zXpsFr9KAVhNE=", - version = "v1.9.0", - ) - go_repository( - name = "com_google_cloud_go_gaming", - build_file_proto_mode = "disable", - importpath = "cloud.google.com/go/gaming", - sum = "h1:97OAEQtDazAJD7yh/kvQdSCQuTKdR0O+qWAJBZJ4xiA=", - version = "v1.8.0", + sum = "h1:LtAyqvO1TFmNLcROzHZhV0agEJfBi+zfMZsF4RT/a7U=", + version = "v1.15.1", ) go_repository( name = "com_google_cloud_go_gkebackup", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/gkebackup", - sum = "h1:4K+jiv4ocqt1niN8q5Imd8imRoXBHTrdnJVt/uFFxF4=", - version = "v0.3.0", + sum = "h1:lgyrpdhtJKV7l1GM15YFt+OCyHMxsQZuSydyNmS0Pxo=", + version = "v1.3.0", ) go_repository( name = "com_google_cloud_go_gkeconnect", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/gkeconnect", - sum = "h1:zAcvDa04tTnGdu6TEZewaLN2tdMtUOJJ7fEceULjguA=", - version = "v0.6.0", + sum = "h1:a1ckRvVznnuvDWESM2zZDzSVFvggeBaVY5+BVB8tbT0=", + version = "v0.8.1", ) go_repository( name = "com_google_cloud_go_gkehub", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/gkehub", - sum = "h1:JTcTaYQRGsVm+qkah7WzHb6e9sf1C0laYdRPn9aN+vg=", - version = "v0.10.0", + sum = "h1:2BLSb8i+Co1P05IYCKATXy5yaaIw/ZqGvVSBTLdzCQo=", + version = "v0.14.1", ) go_repository( name = "com_google_cloud_go_gkemulticloud", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/gkemulticloud", - sum = "h1:8F1NhJj8ucNj7lK51UZMtAjSWTgP1zO18XF6vkfiPPU=", - version = "v0.4.0", + sum = "h1:MluqhtPVZReoriP5+adGIw+ij/RIeRik8KApCW2WMTw=", + version = "v1.0.0", ) go_repository( name = "com_google_cloud_go_gsuiteaddons", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/gsuiteaddons", - sum = "h1:TGT2oGmO5q3VH6SjcrlgPUWI0njhYv4kywLm6jag0to=", - version = "v1.4.0", + sum = "h1:mi9jxZpzVjLQibTS/XfPZvl+Jr6D5Bs8pGqUjllRb00=", + version = "v1.6.1", ) go_repository( name = "com_google_cloud_go_iam", build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/iam", - sum = "h1:k4MuwOsS7zGJJ+QfZ5vBK8SgHBAvYN/23BWsiihJ1vs=", - version = "v0.7.0", + sum = "h1:lW7fzj15aVIXYHREOqjRBV9PsH0Z6u8Y46a1YGvQP4Y=", + version = "v1.1.1", ) go_repository( name = "com_google_cloud_go_iap", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/iap", - sum = "h1:BGEXovwejOCt1zDk8hXq0bOhhRu9haXKWXXXp2B4wBM=", - version = "v1.5.0", + sum = "h1:X1tcp+EoJ/LGX6cUPt3W2D4H2Kbqq0pLAsldnsCjLlE=", + version = "v1.8.1", ) go_repository( name = "com_google_cloud_go_ids", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/ids", - sum = "h1:LncHK4HHucb5Du310X8XH9/ICtMwZ2PCfK0ScjWiJoY=", - version = "v1.2.0", + sum = "h1:khXYmSoDDhWGEVxHl4c4IgbwSRR+qE/L4hzP3vaU9Hc=", + version = "v1.4.1", ) go_repository( name = "com_google_cloud_go_iot", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/iot", - sum = "h1:Y9+oZT9jD4GUZzORXTU45XsnQrhxmDT+TFbPil6pRVQ=", - version = "v1.4.0", + sum = "h1:yrH0OSmicD5bqGBoMlWG8UltzdLkYzNUwNVUVz7OT54=", + version = "v1.7.1", ) go_repository( name = "com_google_cloud_go_kms", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/kms", - sum = "h1:OWRZzrPmOZUzurjI2FBGtgY2mB1WaJkqhw6oIwSj0Yg=", - version = "v1.6.0", + sum = "h1:xYl5WEaSekKYN5gGRyhjvZKM22GVBBCzegGNVPy+aIs=", + version = "v1.15.0", ) go_repository( name = "com_google_cloud_go_language", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/language", - sum = "h1:3Wa+IUMamL4JH3Zd3cDZUHpwyqplTACt6UZKRD2eCL4=", - version = "v1.8.0", + sum = "h1:3MXeGEv8AlX+O2LyV4pO4NGpodanc26AmXwOuipEym0=", + version = "v1.10.1", ) go_repository( name = "com_google_cloud_go_lifesciences", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/lifesciences", - sum = "h1:tIqhivE2LMVYkX0BLgG7xL64oNpDaFFI7teunglt1tI=", - version = "v0.6.0", + sum = "h1:axkANGx1wiBXHiPcJZAE+TDjjYoJRIDzbHC/WYllCBU=", + version = "v0.9.1", ) go_repository( name = "com_google_cloud_go_logging", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/logging", - sum = "h1:ZBsZK+JG+oCDT+vaxwqF2egKNRjz8soXiS6Xv79benI=", - version = "v1.6.1", + sum = "h1:CJYxlNNNNAMkHp9em/YEXcfJg+rPDg7YfwoRpMU+t5I=", + version = "v1.7.0", ) go_repository( name = "com_google_cloud_go_longrunning", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/longrunning", - sum = "h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs=", - version = "v0.3.0", + sum = "h1:Fr7TXftcqTudoyRJa113hyaqlGdiBQkp0Gq7tErFDWI=", + version = "v0.5.1", ) go_repository( name = "com_google_cloud_go_managedidentities", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/managedidentities", - sum = "h1:3Kdajn6X25yWQFhFCErmKSYTSvkEd3chJROny//F1A0=", - version = "v1.4.0", + sum = "h1:2/qZuOeLgUHorSdxSQGtnOu9xQkBn37+j+oZQv/KHJY=", + version = "v1.6.1", ) go_repository( name = "com_google_cloud_go_maps", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/maps", - sum = "h1:mv9YaczD4oZBZkM5XJl6fXQ984IkJNHPwkc8MUsdkBo=", - version = "v0.7.0", + sum = "h1:PdfgpBLhAoSzZrQXP+/zBc78fIPLZSJp5y8+qSMn2UU=", + version = "v1.4.0", ) go_repository( name = "com_google_cloud_go_mediatranslation", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/mediatranslation", - sum = "h1:qAJzpxmEX+SeND10Y/4868L5wfZpo4Y3BIEnIieP4dk=", - version = "v0.6.0", + sum = "h1:50cF7c1l3BanfKrpnTCaTvhf+Fo6kdF21DG0byG7gYU=", + version = "v0.8.1", ) go_repository( name = "com_google_cloud_go_memcache", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/memcache", - sum = "h1:yLxUzJkZVSH2kPaHut7k+7sbIBFpvSh1LW9qjM2JDjA=", - version = "v1.7.0", + sum = "h1:7lkLsF0QF+Mre0O/NvkD9Q5utUNwtzvIYjrOLOs0HO0=", + version = "v1.10.1", ) go_repository( name = "com_google_cloud_go_metastore", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/metastore", - sum = "h1:3KcShzqWdqxrDEXIBWpYJpOOrgpDj+HlBi07Grot49Y=", - version = "v1.8.0", + sum = "h1:+9DsxUOHvsqvC0ylrRc/JwzbXJaaBpfIK3tX0Lx8Tcc=", + version = "v1.12.0", ) go_repository( name = "com_google_cloud_go_monitoring", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/monitoring", - sum = "h1:c9riaGSPQ4dUKWB+M1Fl0N+iLxstMbCktdEwYSPGDvA=", - version = "v1.8.0", + sum = "h1:65JhLMd+JiYnXr6j5Z63dUYCuOg770p8a/VC+gil/58=", + version = "v1.15.1", ) go_repository( name = "com_google_cloud_go_networkconnectivity", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/networkconnectivity", - sum = "h1:BVdIKaI68bihnXGdCVL89Jsg9kq2kg+II30fjVqo62E=", - version = "v1.7.0", + sum = "h1:LnrYM6lBEeTq+9f2lR4DjBhv31EROSAQi/P5W4Q0AEc=", + version = "v1.12.1", ) go_repository( name = "com_google_cloud_go_networkmanagement", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/networkmanagement", - sum = "h1:mDHA3CDW00imTvC5RW6aMGsD1bH+FtKwZm/52BxaiMg=", - version = "v1.5.0", + sum = "h1:/3xP37eMxnyvkfLrsm1nv1b2FbMMSAEAOlECTvoeCq4=", + version = "v1.8.0", ) go_repository( name = "com_google_cloud_go_networksecurity", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/networksecurity", - sum = "h1:qDEX/3sipg9dS5JYsAY+YvgTjPR63cozzAWop8oZS94=", - version = "v0.6.0", + sum = "h1:TBLEkMp3AE+6IV/wbIGRNTxnqLXHCTEQWoxRVC18TzY=", + version = "v0.9.1", ) go_repository( name = "com_google_cloud_go_notebooks", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/notebooks", - sum = "h1:AC8RPjNvel3ExgXjO1YOAz+teg9+j+89TNxa7pIZfww=", - version = "v1.5.0", + sum = "h1:CUqMNEtv4EHFnbogV+yGHQH5iAQLmijOx191innpOcs=", + version = "v1.9.1", ) go_repository( name = "com_google_cloud_go_optimization", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/optimization", - sum = "h1:7PxOq9VTT7TMib/6dMoWpMvWS2E4dJEvtYzjvBreaec=", - version = "v1.2.0", + sum = "h1:pEwOAmO00mxdbesCRSsfj8Sd4rKY9kBrYW7Vd3Pq7cA=", + version = "v1.4.1", ) go_repository( name = "com_google_cloud_go_orchestration", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/orchestration", - sum = "h1:39d6tqvNjd/wsSub1Bn4cEmrYcet5Ur6xpaN+SxOxtY=", - version = "v1.4.0", + sum = "h1:KmN18kE/xa1n91cM5jhCh7s1/UfIguSCisw7nTMUzgE=", + version = "v1.8.1", ) go_repository( name = "com_google_cloud_go_orgpolicy", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/orgpolicy", - sum = "h1:erF5PHqDZb6FeFrUHiYj2JK2BMhsk8CyAg4V4amJ3rE=", - version = "v1.5.0", + sum = "h1:I/7dHICQkNwym9erHqmlb50LRU588NPCvkfIY0Bx9jI=", + version = "v1.11.1", ) go_repository( name = "com_google_cloud_go_osconfig", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/osconfig", - sum = "h1:NO0RouqCOM7M2S85Eal6urMSSipWwHU8evzwS+siqUI=", - version = "v1.10.0", + sum = "h1:dgyEHdfqML6cUW6/MkihNdTVc0INQst0qSE8Ou1ub9c=", + version = "v1.12.1", ) go_repository( name = "com_google_cloud_go_oslogin", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/oslogin", - sum = "h1:pKGDPfeZHDybtw48WsnVLjoIPMi9Kw62kUE5TXCLCN4=", - version = "v1.7.0", + sum = "h1:LdSuG3xBYu2Sgr3jTUULL1XCl5QBx6xwzGqzoDUw1j0=", + version = "v1.10.1", ) go_repository( name = "com_google_cloud_go_phishingprotection", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/phishingprotection", - sum = "h1:OrwHLSRSZyaiOt3tnY33dsKSedxbMzsXvqB21okItNQ=", - version = "v0.6.0", + sum = "h1:aK/lNmSd1vtbft/vLe2g7edXK72sIQbqr2QyrZN/iME=", + version = "v0.8.1", ) go_repository( name = "com_google_cloud_go_policytroubleshooter", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/policytroubleshooter", - sum = "h1:NQklJuOUoz1BPP+Epjw81COx7IISWslkZubz/1i0UN8=", - version = "v1.4.0", + sum = "h1:XTMHy31yFmXgQg57CB3w9YQX8US7irxDX0Fl0VwlZyY=", + version = "v1.8.0", ) go_repository( name = "com_google_cloud_go_privatecatalog", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/privatecatalog", - sum = "h1:Vz86uiHCtNGm1DeC32HeG2VXmOq5JRYA3VRPf8ZEcSg=", - version = "v0.6.0", + sum = "h1:B/18xGo+E0EMS9LOEQ0zXz7F2asMgmVgTYGSI89MHOA=", + version = "v0.9.1", ) go_repository( name = "com_google_cloud_go_pubsub", build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/pubsub", - sum = "h1:q+J/Nfr6Qx4RQeu3rJcnN48SNC0qzlYzSeqkPq93VHs=", - version = "v1.27.1", + sum = "h1:6SPCPvWav64tj0sVX/+npCBKhUi/UjJehy9op/V3p2g=", + version = "v1.33.0", ) go_repository( name = "com_google_cloud_go_pubsublite", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/pubsublite", - sum = "h1:iqrD8vp3giTb7hI1q4TQQGj77cj8zzgmMPsTZtLnprM=", - version = "v1.5.0", + sum = "h1:pX+idpWMIH30/K7c0epN6V703xpIcMXWRjKJsz0tYGY=", + version = "v1.8.1", ) go_repository( name = "com_google_cloud_go_recaptchaenterprise_v2", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/recaptchaenterprise/v2", - sum = "h1:UqzFfb/WvhwXGDF1eQtdHLrmni+iByZXY4h3w9Kdyv8=", - version = "v2.5.0", + sum = "h1:IGkbudobsTXAwmkEYOzPCQPApUCsN4Gbq3ndGVhHQpI=", + version = "v2.7.2", ) go_repository( name = "com_google_cloud_go_recommendationengine", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/recommendationengine", - sum = "h1:6w+WxPf2LmUEqX0YyvfCoYb8aBYOcbIV25Vg6R0FLGw=", - version = "v0.6.0", + sum = "h1:nMr1OEVHuDambRn+/y4RmNAmnR/pXCuHtH0Y4tCgGRQ=", + version = "v0.8.1", ) go_repository( name = "com_google_cloud_go_recommender", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/recommender", - sum = "h1:9kMZQGeYfcOD/RtZfcNKGKtoex3DdoB4zRgYU/WaIwE=", - version = "v1.8.0", + sum = "h1:UKp94UH5/Lv2WXSQe9+FttqV07x/2p1hFTMMYVFtilg=", + version = "v1.10.1", ) go_repository( name = "com_google_cloud_go_redis", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/redis", - sum = "h1:/zTwwBKIAD2DEWTrXZp8WD9yD/gntReF/HkPssVYd0U=", - version = "v1.10.0", + sum = "h1:YrjQnCC7ydk+k30op7DSjSHw1yAYhqYXFcOq1bSXRYA=", + version = "v1.13.1", ) go_repository( name = "com_google_cloud_go_resourcemanager", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/resourcemanager", - sum = "h1:NDao6CHMwEZIaNsdWy+tuvHaavNeGP06o1tgrR0kLvU=", - version = "v1.4.0", + sum = "h1:QIAMfndPOHR6yTmMUB0ZN+HSeRmPjR/21Smq5/xwghI=", + version = "v1.9.1", ) go_repository( name = "com_google_cloud_go_resourcesettings", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/resourcesettings", - sum = "h1:eTzOwB13WrfF0kuzG2ZXCfB3TLunSHBur4s+HFU6uSM=", - version = "v1.4.0", + sum = "h1:Fdyq418U69LhvNPFdlEO29w+DRRjwDA4/pFamm4ksAg=", + version = "v1.6.1", ) go_repository( name = "com_google_cloud_go_retail", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/retail", - sum = "h1:N9fa//ecFUOEPsW/6mJHfcapPV0wBSwIUwpVZB7MQ3o=", - version = "v1.11.0", + sum = "h1:gYBrb9u/Hc5s5lUTFXX1Vsbc/9BEvgtioY6ZKaK0DK8=", + version = "v1.14.1", ) go_repository( name = "com_google_cloud_go_run", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/run", - sum = "h1:AWPuzU7Xtaj3Jf+QarDWIs6AJ5hM1VFQ+F6Q+VZ6OT4=", - version = "v0.3.0", + sum = "h1:kHeIG8q+N6Zv0nDkBjSOYfK2eWqa5FnaiDPH/7/HirE=", + version = "v1.2.0", ) go_repository( name = "com_google_cloud_go_scheduler", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/scheduler", - sum = "h1:K/mxOewgHGeKuATUJNGylT75Mhtjmx1TOkKukATqMT8=", - version = "v1.7.0", + sum = "h1:yoZbZR8880KgPGLmACOMCiY2tPk+iX4V/dkxqTirlz8=", + version = "v1.10.1", ) go_repository( name = "com_google_cloud_go_secretmanager", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/secretmanager", - sum = "h1:xE6uXljAC1kCR8iadt9+/blg1fvSbmenlsDN4fT9gqw=", - version = "v1.9.0", + sum = "h1:cLTCwAjFh9fKvU6F13Y4L9vPcx9yiWPyWXE4+zkuEQs=", + version = "v1.11.1", ) go_repository( name = "com_google_cloud_go_security", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/security", - sum = "h1:KSKzzJMyUoMRQzcz7azIgqAUqxo7rmQ5rYvimMhikqg=", - version = "v1.10.0", + sum = "h1:jR3itwycg/TgGA0uIgTItcVhA55hKWiNJxaNNpQJaZE=", + version = "v1.15.1", ) go_repository( name = "com_google_cloud_go_securitycenter", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/securitycenter", - sum = "h1:QTVtk/Reqnx2bVIZtJKm1+mpfmwRwymmNvlaFez7fQY=", - version = "v1.16.0", - ) - go_repository( - name = "com_google_cloud_go_servicecontrol", - build_file_proto_mode = "disable", - importpath = "cloud.google.com/go/servicecontrol", - sum = "h1:ImIzbOu6y4jL6ob65I++QzvqgFaoAKgHOG+RU9/c4y8=", - version = "v1.5.0", + sum = "h1:XOGJ9OpnDtqg8izd7gYk/XUhj8ytjIalyjjsR6oyG0M=", + version = "v1.23.0", ) go_repository( name = "com_google_cloud_go_servicedirectory", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/servicedirectory", - sum = "h1:f7M8IMcVzO3T425AqlZbP3yLzeipsBHtRza8vVFYMhQ=", - version = "v1.7.0", - ) - go_repository( - name = "com_google_cloud_go_servicemanagement", - build_file_proto_mode = "disable", - importpath = "cloud.google.com/go/servicemanagement", - sum = "h1:TpkCO5M7dhKSy1bKUD9o/sSEW/U1Gtx7opA1fsiMx0c=", - version = "v1.5.0", - ) - go_repository( - name = "com_google_cloud_go_serviceusage", - build_file_proto_mode = "disable", - importpath = "cloud.google.com/go/serviceusage", - sum = "h1:b0EwJxPJLpavSljMQh0RcdHsUrr5DQ+Nelt/3BAs5ro=", - version = "v1.4.0", + sum = "h1:pBWpjCFVGWkzVTkqN3TBBIqNSoSHY86/6RL0soSQ4z8=", + version = "v1.11.0", ) go_repository( name = "com_google_cloud_go_shell", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/shell", - sum = "h1:b1LFhFBgKsG252inyhtmsUUZwchqSz3WTvAIf3JFo4g=", - version = "v1.4.0", + sum = "h1:aHbwH9LSqs4r2rbay9f6fKEls61TAjT63jSyglsw7sI=", + version = "v1.7.1", ) go_repository( name = "com_google_cloud_go_spanner", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/spanner", - sum = "h1:NvdTpRwf7DTegbfFdPjAWyD7bOVu0VeMqcvR9aCQCAc=", - version = "v1.41.0", + sum = "h1:aqiMP8dhsEXgn9K5EZBWxPG7dxIiyM2VaikqeU4iteg=", + version = "v1.47.0", ) go_repository( name = "com_google_cloud_go_speech", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/speech", - sum = "h1:yK0ocnFH4Wsf0cMdUyndJQ/hPv02oTJOxzi6AgpBy4s=", - version = "v1.9.0", + sum = "h1:MCagaq8ObV2tr1kZJcJYgXYbIn8Ai5rp42tyGYw9rls=", + version = "v1.19.0", ) go_repository( name = "com_google_cloud_go_storage", build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/storage", - sum = "h1:YOO045NZI9RKfCj1c5A/ZtuuENUc8OAW+gHdGnDgyMQ=", - version = "v1.27.0", + sum = "h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM=", + version = "v1.30.1", ) go_repository( name = "com_google_cloud_go_storagetransfer", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/storagetransfer", - sum = "h1:fUe3OydbbvHcAYp07xY+2UpH4AermGbmnm7qdEj3tGE=", - version = "v1.6.0", + sum = "h1:+ZLkeXx0K0Pk5XdDmG0MnUVqIR18lllsihU/yq39I8Q=", + version = "v1.10.0", ) go_repository( name = "com_google_cloud_go_talent", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/talent", - sum = "h1:MrekAGxLqAeAol4Sc0allOVqUGO8j+Iim8NMvpiD7tM=", - version = "v1.4.0", + sum = "h1:j46ZgD6N2YdpFPux9mc7OAf4YK3tiBCsbLKc8rQx+bU=", + version = "v1.6.2", ) go_repository( name = "com_google_cloud_go_texttospeech", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/texttospeech", - sum = "h1:ccPiHgTewxgyAeCWgQWvZvrLmbfQSFABTMAfrSPLPyY=", - version = "v1.5.0", + sum = "h1:S/pR/GZT9p15R7Y2dk2OXD/3AufTct/NSxT4a7nxByw=", + version = "v1.7.1", ) go_repository( name = "com_google_cloud_go_tpu", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/tpu", - sum = "h1:ztIdKoma1Xob2qm6QwNh4Xi9/e7N3IfvtwG5AcNsj1g=", - version = "v1.4.0", + sum = "h1:kQf1jgPY04UJBYYjNUO+3GrZtIb57MfGAW2bwgLbR3A=", + version = "v1.6.1", ) go_repository( name = "com_google_cloud_go_trace", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/trace", - sum = "h1:qO9eLn2esajC9sxpqp1YKX37nXC3L4BfGnPS0Cx9dYo=", - version = "v1.4.0", + sum = "h1:EwGdOLCNfYOOPtgqo+D2sDLZmRCEO1AagRTJCU6ztdg=", + version = "v1.10.1", ) go_repository( name = "com_google_cloud_go_translate", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/translate", - sum = "h1:AOYOH3MspzJ/bH1YXzB+xTE8fMpn3mwhLjugwGXvMPI=", - version = "v1.4.0", + sum = "h1:PQHamiOzlehqLBJMnM72lXk/OsMQewZB12BKJ8zXrU0=", + version = "v1.8.2", ) go_repository( name = "com_google_cloud_go_video", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/video", - sum = "h1:ttlvO4J5c1VGq6FkHqWPD/aH6PfdxujHt+muTJlW1Zk=", - version = "v1.9.0", + sum = "h1:BRyyS+wU+Do6VOXnb8WfPr42ZXti9hzmLKLUCkggeK4=", + version = "v1.19.0", ) go_repository( name = "com_google_cloud_go_videointelligence", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/videointelligence", - sum = "h1:RPFgVVXbI2b5vnrciZjtsUgpNKVtHO/WIyXUhEfuMhA=", - version = "v1.9.0", + sum = "h1:MBMWnkQ78GQnRz5lfdTAbBq/8QMCF3wahgtHh3s/J+k=", + version = "v1.11.1", ) go_repository( name = "com_google_cloud_go_vision_v2", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/vision/v2", - sum = "h1:TQHxRqvLMi19azwm3qYuDbEzZWmiKJNTpGbkNsfRCik=", - version = "v2.5.0", + sum = "h1:ccK6/YgPfGHR/CyESz1mvIbsht5Y2xRsWCPqmTNydEw=", + version = "v2.7.2", ) go_repository( name = "com_google_cloud_go_vmmigration", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/vmmigration", - sum = "h1:A2Tl2ZmwMRpvEmhV2ibISY85fmQR+Y5w9a0PlRz5P3s=", - version = "v1.3.0", + sum = "h1:gnjIclgqbEMc+cF5IJuPxp53wjBIlqZ8h9hE8Rkwp7A=", + version = "v1.7.1", ) go_repository( name = "com_google_cloud_go_vmwareengine", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/vmwareengine", - sum = "h1:b0NBu7S294l0gmtrT0nOJneMYgZapr5x9tVWvgDoVEM=", - version = "v0.3.0", + sum = "h1:qsJ0CPlOQu/3MFBGklu752v3AkD+Pdu091UmXJ+EjTA=", + version = "v1.0.0", ) go_repository( name = "com_google_cloud_go_vpcaccess", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/vpcaccess", - sum = "h1:woHXXtnW8b9gLFdWO9HLPalAddBQ9V4LT+1vjKwR3W8=", - version = "v1.5.0", + sum = "h1:ram0GzjNWElmbxXMIzeOZUkQ9J8ZAahD6V8ilPGqX0Y=", + version = "v1.7.1", ) go_repository( name = "com_google_cloud_go_webrisk", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/webrisk", - sum = "h1:ypSnpGlJnZSXbN9a13PDmAYvVekBLnGKxQ3Q9SMwnYY=", - version = "v1.7.0", + sum = "h1:Ssy3MkOMOnyRV5H2bkMQ13Umv7CwB/kugo3qkAX83Fk=", + version = "v1.9.1", ) go_repository( name = "com_google_cloud_go_websecurityscanner", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/websecurityscanner", - sum = "h1:y7yIFg/h/mO+5Y5aCOtVAnpGUOgqCH5rXQ2Oc8Oq2+g=", - version = "v1.4.0", + sum = "h1:CfEF/vZ+xXyAR3zC9iaC/QRdf1MEgS20r5UR17Q4gOg=", + version = "v1.6.1", ) go_repository( name = "com_google_cloud_go_workflows", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "cloud.google.com/go/workflows", - sum = "h1:7Chpin9p50NTU8Tb7qk+I11U/IwVXmDhEoSsdccvInE=", - version = "v1.9.0", + sum = "h1:2akeQ/PgtRhrNuD/n1WvJd5zb7YyuDZrlOanBj2ihPg=", + version = "v1.11.1", + ) + go_repository( + name = "com_lukechampine_uint128", + build_file_proto_mode = "disable_global", + importpath = "lukechampine.com/uint128", + sha256 = "9ff6e9ad553a69fdb961ab2d92f92cda183ef616a6709c15972c2d4bedf33de5", + strip_prefix = "lukechampine.com/uint128@v1.2.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/lukechampine.com/uint128/com_lukechampine_uint128-v1.2.0.zip", + "http://ats.apps.svc/gomod/lukechampine.com/uint128/com_lukechampine_uint128-v1.2.0.zip", + "https://cache.hawkingrei.com/gomod/lukechampine.com/uint128/com_lukechampine_uint128-v1.2.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/lukechampine.com/uint128/com_lukechampine_uint128-v1.2.0.zip", + ], ) go_repository( name = "com_shuralyov_dmitri_gpu_mtl", @@ -4801,14 +6913,27 @@ def go_deps(): ) go_repository( name = "com_stathat_c_consistent", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "stathat.com/c/consistent", sum = "h1:ezyc51EGcRPJUxfHGSgJjWzJdj3NiMU9pNfLNGiXV0c=", version = "v1.0.0", ) go_repository( - name = "in_gopkg_alecthomas_kingpin_v2", + name = "ht_sr_git_~sbinet_gg", build_file_proto_mode = "disable_global", + importpath = "git.sr.ht/~sbinet/gg", + sha256 = "435103529c4f24aecf7e4550bc816db2482dda4ee0123d337daba99971a8c498", + strip_prefix = "git.sr.ht/~sbinet/gg@v0.3.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/git.sr.ht/~sbinet/gg/ht_sr_git_~sbinet_gg-v0.3.1.zip", + "http://ats.apps.svc/gomod/git.sr.ht/~sbinet/gg/ht_sr_git_~sbinet_gg-v0.3.1.zip", + "https://cache.hawkingrei.com/gomod/git.sr.ht/~sbinet/gg/ht_sr_git_~sbinet_gg-v0.3.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/git.sr.ht/~sbinet/gg/ht_sr_git_~sbinet_gg-v0.3.1.zip", + ], + ) + go_repository( + name = "in_gopkg_alecthomas_kingpin_v2", + build_file_proto_mode = "disable", importpath = "gopkg.in/alecthomas/kingpin.v2", sum = "h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=", version = "v2.2.6", @@ -4836,28 +6961,28 @@ def go_deps(): ) go_repository( name = "in_gopkg_fsnotify_v1", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "gopkg.in/fsnotify.v1", sum = "h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=", version = "v1.4.7", ) go_repository( name = "in_gopkg_go_playground_assert_v1", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "gopkg.in/go-playground/assert.v1", sum = "h1:xoYuJVE7KT85PYWrN730RguIQO0ePzVRfFMXadIrXTM=", version = "v1.2.1", ) go_repository( name = "in_gopkg_go_playground_validator_v8", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "gopkg.in/go-playground/validator.v8", sum = "h1:lFB4DoMU6B626w8ny76MV7VX6W2VHct2GVOI3xgiMrQ=", version = "v8.18.2", ) go_repository( name = "in_gopkg_inf_v0", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "gopkg.in/inf.v0", sum = "h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=", version = "v0.9.1", @@ -4920,7 +7045,7 @@ def go_deps(): ) go_repository( name = "in_gopkg_resty_v1", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "gopkg.in/resty.v1", sum = "h1:CuXP0Pjfw9rOuY6EP+UvtNvt5DSqHpIxILZKT/quCZI=", version = "v1.12.0", @@ -4932,6 +7057,13 @@ def go_deps(): sum = "h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=", version = "v1.0.0-20141024135613-dd632973f1e7", ) + go_repository( + name = "in_gopkg_warnings_v0", + build_file_proto_mode = "disable", + importpath = "gopkg.in/warnings.v0", + sum = "h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=", + version = "v0.1.2", + ) go_repository( name = "in_gopkg_yaml_v2", build_file_proto_mode = "disable_global", @@ -4950,40 +7082,36 @@ def go_deps(): name = "io_etcd_go_bbolt", build_file_proto_mode = "disable_global", importpath = "go.etcd.io/bbolt", - sum = "h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU=", - version = "v1.3.6", + sum = "h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA=", + version = "v1.3.8", ) go_repository( name = "io_etcd_go_etcd_api_v3", build_file_proto_mode = "disable", importpath = "go.etcd.io/etcd/api/v3", - patch_args = ["-p2"], - patches = [ - "//build/patches:io_etcd_go_etcd_api_v3.patch", - ], - sum = "h1:tXok5yLlKyuQ/SXSjtqHc4uzNaMqZi2XsoSPr/LlJXI=", - version = "v3.5.2", + sum = "h1:szRajuUUbLyppkhs9K6BRtjY37l66XQQmw7oZRANE4k=", + version = "v3.5.10", ) go_repository( name = "io_etcd_go_etcd_client_pkg_v3", build_file_proto_mode = "disable_global", importpath = "go.etcd.io/etcd/client/pkg/v3", - sum = "h1:4hzqQ6hIb3blLyQ8usCU4h3NghkqcsohEQ3o3VetYxE=", - version = "v3.5.2", + sum = "h1:kfYIdQftBnbAq8pUWFXfpuuxFSKzlmM5cSn76JByiT0=", + version = "v3.5.10", ) go_repository( name = "io_etcd_go_etcd_client_v2", build_file_proto_mode = "disable_global", importpath = "go.etcd.io/etcd/client/v2", - sum = "h1:ymrVwTkefuqA/rPkSW7/B4ApijbPVefRumkY+stNfS0=", - version = "v2.305.2", + sum = "h1:MrmRktzv/XF8CvtQt+P6wLUlURaNpSDJHFZhe//2QE4=", + version = "v2.305.10", ) go_repository( name = "io_etcd_go_etcd_client_v3", build_file_proto_mode = "disable_global", importpath = "go.etcd.io/etcd/client/v3", - sum = "h1:WdnejrUtQC4nCxK0/dLTMqKOB+U5TP/2Ya0BJL+1otA=", - version = "v3.5.2", + sum = "h1:W9TXNZ+oB3MCd/8UjxHTWK5J9Nquw9fQBLJd5ne5/Ao=", + version = "v3.5.10", ) go_repository( name = "io_etcd_go_etcd_etcdutl_v3", @@ -4996,22 +7124,22 @@ def go_deps(): name = "io_etcd_go_etcd_pkg_v3", build_file_proto_mode = "disable_global", importpath = "go.etcd.io/etcd/pkg/v3", - sum = "h1:YZUojdoPhOyl5QILYnR8LTUbbNefu/sV4ma+ZMr2tto=", - version = "v3.5.2", + sum = "h1:WPR8K0e9kWl1gAhB5A7gEa5ZBTNkT9NdNWrR8Qpo1CM=", + version = "v3.5.10", ) go_repository( name = "io_etcd_go_etcd_raft_v3", build_file_proto_mode = "disable_global", importpath = "go.etcd.io/etcd/raft/v3", - sum = "h1:uCC37qOXqBvKqTGHGyhASsaCsnTuJugl1GvneJNwHWo=", - version = "v3.5.2", + sum = "h1:cgNAYe7xrsrn/5kXMSaH8kM/Ky8mAdMqGOxyYwpP0LA=", + version = "v3.5.10", ) go_repository( name = "io_etcd_go_etcd_server_v3", build_file_proto_mode = "disable_global", importpath = "go.etcd.io/etcd/server/v3", - sum = "h1:B6ytJvS4Fmt8nkjzS2/8POf4tuPhFMluE0lWd4dx/7U=", - version = "v3.5.2", + sum = "h1:4NOGyOwD5sUZ22PiWYKmfxqoeh72z6EhYjNosKGLmZg=", + version = "v3.5.10", ) go_repository( name = "io_etcd_go_etcd_tests_v3", @@ -5020,23 +7148,69 @@ def go_deps(): sum = "h1:uk7/uMGVebpBDl+roivowHt6gJ5Fnqwik3syDkoSKdo=", version = "v3.5.2", ) + go_repository( + name = "io_etcd_go_gofail", + build_file_proto_mode = "disable_global", + importpath = "go.etcd.io/gofail", + sum = "h1:XItAMIhOojXFQMgrxjnd2EIIHun/d5qL0Pf7FzVTkFg=", + version = "v0.1.0", + ) + go_repository( + name = "io_filippo_edwards25519", + build_file_proto_mode = "disable_global", + importpath = "filippo.io/edwards25519", + sha256 = "9ac43a686d06fdebd719f7af3866c87eb069302272dfb131007adf471c308b65", + strip_prefix = "filippo.io/edwards25519@v1.1.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/filippo.io/edwards25519/io_filippo_edwards25519-v1.1.0.zip", + "http://ats.apps.svc/gomod/filippo.io/edwards25519/io_filippo_edwards25519-v1.1.0.zip", + "https://cache.hawkingrei.com/gomod/filippo.io/edwards25519/io_filippo_edwards25519-v1.1.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/filippo.io/edwards25519/io_filippo_edwards25519-v1.1.0.zip", + ], + ) + go_repository( + name = "io_gorm_driver_mysql", + build_file_proto_mode = "disable_global", + importpath = "gorm.io/driver/mysql", + sha256 = "4a529d09c3a0082e313ed76f4d3fe5bfb2667711ef36d7ac6e6804dba43e7978", + strip_prefix = "gorm.io/driver/mysql@v1.5.7", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/gorm.io/driver/mysql/io_gorm_driver_mysql-v1.5.7.zip", + "http://ats.apps.svc/gomod/gorm.io/driver/mysql/io_gorm_driver_mysql-v1.5.7.zip", + "https://cache.hawkingrei.com/gomod/gorm.io/driver/mysql/io_gorm_driver_mysql-v1.5.7.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/gorm.io/driver/mysql/io_gorm_driver_mysql-v1.5.7.zip", + ], + ) + go_repository( + name = "io_gorm_gorm", + build_file_proto_mode = "disable_global", + importpath = "gorm.io/gorm", + sha256 = "e33460f1d29271c188f4920275adc1d8f83890a17dfa6a9f03face8cdda32cb5", + strip_prefix = "gorm.io/gorm@v1.25.11", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/gorm.io/gorm/io_gorm_gorm-v1.25.11.zip", + "http://ats.apps.svc/gomod/gorm.io/gorm/io_gorm_gorm-v1.25.11.zip", + "https://cache.hawkingrei.com/gomod/gorm.io/gorm/io_gorm_gorm-v1.25.11.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/gorm.io/gorm/io_gorm_gorm-v1.25.11.zip", + ], + ) go_repository( name = "io_k8s_api", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "k8s.io/api", sum = "h1:J0hann2hfxWr1hinZIDefw7Q96wmCBx6SSB8IY0MdDg=", version = "v0.24.0", ) go_repository( name = "io_k8s_apimachinery", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "k8s.io/apimachinery", sum = "h1:ydFCyC/DjCvFCHK5OPMKBlxayQytB8pxy8YQInd5UyQ=", version = "v0.24.0", ) go_repository( name = "io_k8s_client_go", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "k8s.io/client-go", sum = "h1:U5Bt+dab9K8qaUmXINrkXO135kA11/i5Kg1RUydgaMQ=", version = "v11.0.1-0.20190409021438-1a26190bd76a+incompatible", @@ -5050,35 +7224,35 @@ def go_deps(): ) go_repository( name = "io_k8s_klog", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "k8s.io/klog", sum = "h1:0VPpR+sizsiivjIfIAQH/rl8tan6jvWkS7lU+0di3lE=", version = "v0.3.0", ) go_repository( name = "io_k8s_klog_v2", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "k8s.io/klog/v2", sum = "h1:VW25q3bZx9uE3vvdL6M8ezOX79vA2Aq1nEWLqNQclHc=", version = "v2.60.1", ) go_repository( name = "io_k8s_kube_openapi", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "k8s.io/kube-openapi", sum = "h1:Gii5eqf+GmIEwGNKQYQClCayuJCe2/4fZUvF7VG99sU=", version = "v0.0.0-20220328201542-3ee0da9b0b42", ) go_repository( name = "io_k8s_sigs_json", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "sigs.k8s.io/json", sum = "h1:kDi4JBNAsJWfz1aEXhO8Jg87JJaPNLh5tIzYHgStQ9Y=", version = "v0.0.0-20211208200746-9f7c6b3444d2", ) go_repository( name = "io_k8s_sigs_structured_merge_diff_v4", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "sigs.k8s.io/structured-merge-diff/v4", sum = "h1:bKCqE9GvQ5tiVHn5rfn1r+yao3aLQEaLzkkmAkf+A6Y=", version = "v4.2.1", @@ -5092,7 +7266,7 @@ def go_deps(): ) go_repository( name = "io_k8s_utils", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "k8s.io/utils", sum = "h1:HNSDgDCrr/6Ly3WEGKZftiE7IY19Vz2GdbOCyI4qqhc=", version = "v0.0.0-20220210201930-3a6ce19ff2f9", @@ -5112,9 +7286,49 @@ def go_deps(): sum = "h1:jGFvw3l57ViIVEPKKEUXPcLYIXJmQxLUh6ey1eJhwyc=", version = "v0.4.12", ) + go_repository( - name = "io_opentelemetry_go_contrib", + name = "io_opentelemetry_go_collector_featuregate", + build_file_proto_mode = "disable_global", + importpath = "go.opentelemetry.io/collector/featuregate", + sha256 = "b8f74a6e4e4e68dc630b54917755c1604525ce161b9f8a2730079fa19bc11676", + strip_prefix = "go.opentelemetry.io/collector/featuregate@v1.0.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/go.opentelemetry.io/collector/featuregate/io_opentelemetry_go_collector_featuregate-v1.0.1.zip", + "http://ats.apps.svc/gomod/go.opentelemetry.io/collector/featuregate/io_opentelemetry_go_collector_featuregate-v1.0.1.zip", + "https://cache.hawkingrei.com/gomod/go.opentelemetry.io/collector/featuregate/io_opentelemetry_go_collector_featuregate-v1.0.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/go.opentelemetry.io/collector/featuregate/io_opentelemetry_go_collector_featuregate-v1.0.1.zip", + ], + ) + go_repository( + name = "io_opentelemetry_go_collector_pdata", build_file_proto_mode = "disable_global", + importpath = "go.opentelemetry.io/collector/pdata", + sha256 = "696f8737e0dd15c76a683c7ab00f373a50a4c1f27890ed288ffc994b1bb19d15", + strip_prefix = "go.opentelemetry.io/collector/pdata@v1.0.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/go.opentelemetry.io/collector/pdata/io_opentelemetry_go_collector_pdata-v1.0.1.zip", + "http://ats.apps.svc/gomod/go.opentelemetry.io/collector/pdata/io_opentelemetry_go_collector_pdata-v1.0.1.zip", + "https://cache.hawkingrei.com/gomod/go.opentelemetry.io/collector/pdata/io_opentelemetry_go_collector_pdata-v1.0.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/go.opentelemetry.io/collector/pdata/io_opentelemetry_go_collector_pdata-v1.0.1.zip", + ], + ) + go_repository( + name = "io_opentelemetry_go_collector_semconv", + build_file_proto_mode = "disable_global", + importpath = "go.opentelemetry.io/collector/semconv", + sha256 = "7ee5e8d4b9f9bbdefdec35bc49866ab628ca740344a8940d33874868debfb034", + strip_prefix = "go.opentelemetry.io/collector/semconv@v0.93.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/go.opentelemetry.io/collector/semconv/io_opentelemetry_go_collector_semconv-v0.93.0.zip", + "http://ats.apps.svc/gomod/go.opentelemetry.io/collector/semconv/io_opentelemetry_go_collector_semconv-v0.93.0.zip", + "https://cache.hawkingrei.com/gomod/go.opentelemetry.io/collector/semconv/io_opentelemetry_go_collector_semconv-v0.93.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/go.opentelemetry.io/collector/semconv/io_opentelemetry_go_collector_semconv-v0.93.0.zip", + ], + ) + go_repository( + name = "io_opentelemetry_go_contrib", + build_file_proto_mode = "disable", importpath = "go.opentelemetry.io/contrib", sum = "h1:ubFQUn0VCZ0gPwIoJfBJVpeBlyRMxu8Mm/huKWYd9p0=", version = "v0.20.0", @@ -5123,23 +7337,63 @@ def go_deps(): name = "io_opentelemetry_go_contrib_instrumentation_google_golang_org_grpc_otelgrpc", build_file_proto_mode = "disable_global", importpath = "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc", - sum = "h1:sO4WKdPAudZGKPcpZT4MJn6JaDmpyLrMPDGGyA1SttE=", - version = "v0.20.0", + sum = "h1:Wx7nFnvCaissIUZxPkBqDz2963Z+Cl+PkYbDKzTxDqQ=", + version = "v0.25.0", + ) + go_repository( + name = "io_opentelemetry_go_contrib_instrumentation_net_http_otelhttp", + build_file_proto_mode = "disable_global", + importpath = "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp", + sha256 = "205c8117aebdc6f6ebab7fbb946d260933716c68a1b2dda8d43ab142b6622b14", + strip_prefix = "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp@v0.49.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/io_opentelemetry_go_contrib_instrumentation_net_http_otelhttp-v0.49.0.zip", + "http://ats.apps.svc/gomod/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/io_opentelemetry_go_contrib_instrumentation_net_http_otelhttp-v0.49.0.zip", + "https://cache.hawkingrei.com/gomod/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/io_opentelemetry_go_contrib_instrumentation_net_http_otelhttp-v0.49.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/io_opentelemetry_go_contrib_instrumentation_net_http_otelhttp-v0.49.0.zip", + ], ) go_repository( name = "io_opentelemetry_go_otel", build_file_proto_mode = "disable_global", importpath = "go.opentelemetry.io/otel", - sum = "h1:eaP0Fqu7SXHwvjiqDq83zImeehOHX8doTvU9AwXON8g=", - version = "v0.20.0", + sum = "h1:4XKyXmfqJLOQ7feyV5DB6gsBFZ0ltB8vLtp6pj4JIcc=", + version = "v1.0.1", ) go_repository( name = "io_opentelemetry_go_otel_exporters_otlp", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "go.opentelemetry.io/otel/exporters/otlp", sum = "h1:PTNgq9MRmQqqJY0REVbZFvwkYOA85vbdQU/nVfxDyqg=", version = "v0.20.0", ) + go_repository( + name = "io_opentelemetry_go_otel_exporters_otlp_otlptrace", + build_file_proto_mode = "disable_global", + importpath = "go.opentelemetry.io/otel/exporters/otlp/otlptrace", + sum = "h1:ofMbch7i29qIUf7VtF+r0HRF6ac0SBaPSziSsKp7wkk=", + version = "v1.0.1", + ) + go_repository( + name = "io_opentelemetry_go_otel_exporters_otlp_otlptrace_otlptracegrpc", + build_file_proto_mode = "disable_global", + importpath = "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc", + sum = "h1:CFMFNoz+CGprjFAFy+RJFrfEe4GBia3RRm2a4fREvCA=", + version = "v1.0.1", + ) + go_repository( + name = "io_opentelemetry_go_otel_exporters_otlp_otlptrace_otlptracehttp", + build_file_proto_mode = "disable_global", + importpath = "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp", + sha256 = "6b7c01ca38a5b1c4216adcf54c422e0a78c257d918e89b8dd02721c6098b9dec", + strip_prefix = "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp@v1.22.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/io_opentelemetry_go_otel_exporters_otlp_otlptrace_otlptracehttp-v1.22.0.zip", + "http://ats.apps.svc/gomod/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/io_opentelemetry_go_otel_exporters_otlp_otlptrace_otlptracehttp-v1.22.0.zip", + "https://cache.hawkingrei.com/gomod/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/io_opentelemetry_go_otel_exporters_otlp_otlptrace_otlptracehttp-v1.22.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/io_opentelemetry_go_otel_exporters_otlp_otlptrace_otlptracehttp-v1.22.0.zip", + ], + ) go_repository( name = "io_opentelemetry_go_otel_metric", build_file_proto_mode = "disable_global", @@ -5149,7 +7403,7 @@ def go_deps(): ) go_repository( name = "io_opentelemetry_go_otel_oteltest", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "go.opentelemetry.io/otel/oteltest", sum = "h1:HiITxCawalo5vQzdHfKeZurV8x7ljcqAgiWzF6Vaeaw=", version = "v0.20.0", @@ -5158,19 +7412,19 @@ def go_deps(): name = "io_opentelemetry_go_otel_sdk", build_file_proto_mode = "disable_global", importpath = "go.opentelemetry.io/otel/sdk", - sum = "h1:JsxtGXd06J8jrnya7fdI/U/MR6yXA5DtbZy+qoHQlr8=", - version = "v0.20.0", + sum = "h1:wXxFEWGo7XfXupPwVJvTBOaPBC9FEg0wB8hMNrKk+cA=", + version = "v1.0.1", ) go_repository( name = "io_opentelemetry_go_otel_sdk_export_metric", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "go.opentelemetry.io/otel/sdk/export/metric", sum = "h1:c5VRjxCXdQlx1HjzwGdQHzZaVI82b5EbBgOu2ljD92g=", version = "v0.20.0", ) go_repository( name = "io_opentelemetry_go_otel_sdk_metric", - build_file_proto_mode = "disable_global", + build_file_proto_mode = "disable", importpath = "go.opentelemetry.io/otel/sdk/metric", sum = "h1:7ao1wpzHRVKf0OQ7GIxiQJA6X7DLX9o14gmVon7mMK8=", version = "v0.20.0", @@ -5179,15 +7433,15 @@ def go_deps(): name = "io_opentelemetry_go_otel_trace", build_file_proto_mode = "disable_global", importpath = "go.opentelemetry.io/otel/trace", - sum = "h1:1DL6EXUdcg95gukhuRRvLDO/4X5THh/5dIV52lqtnbw=", - version = "v0.20.0", + sum = "h1:StTeIH6Q3G4r0Fiw34LTokUFESZgIDUr0qIJ7mKmAfw=", + version = "v1.0.1", ) go_repository( name = "io_opentelemetry_go_proto_otlp", build_file_proto_mode = "disable_global", importpath = "go.opentelemetry.io/proto/otlp", - sum = "h1:rwOQPCuKAKmwGKq2aVNnYIibI6wnV7EvzgfTCzcdGg8=", - version = "v0.7.0", + sum = "h1:C0g6TWmQYvjKRnljRULLWUVJGy8Uvu0NEL/5frY2/t4=", + version = "v0.9.0", ) go_repository( name = "io_rsc_binaryregexp", @@ -5217,12 +7471,52 @@ def go_deps(): sum = "h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4=", version = "v1.3.0", ) + go_repository( + name = "net_starlark_go", + build_file_proto_mode = "disable_global", + importpath = "go.starlark.net", + sha256 = "6f936b11557fe2855ec58245bebfd34260db79d2e4dc63ab58659f3de1dde51c", + strip_prefix = "go.starlark.net@v0.0.0-20210223155950-e043a3d3c984", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/go.starlark.net/net_starlark_go-v0.0.0-20210223155950-e043a3d3c984.zip", + "http://ats.apps.svc/gomod/go.starlark.net/net_starlark_go-v0.0.0-20210223155950-e043a3d3c984.zip", + "https://cache.hawkingrei.com/gomod/go.starlark.net/net_starlark_go-v0.0.0-20210223155950-e043a3d3c984.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/go.starlark.net/net_starlark_go-v0.0.0-20210223155950-e043a3d3c984.zip", + ], + ) + go_repository( + name = "org_gioui", + build_file_proto_mode = "disable_global", + importpath = "gioui.org", + sha256 = "fcbab2a0ea09ff775c1ff4fa99299d95b94aad496b1ac329e3c7389119168fc0", + strip_prefix = "gioui.org@v0.0.0-20210308172011-57750fc8a0a6", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/gioui.org/org_gioui-v0.0.0-20210308172011-57750fc8a0a6.zip", + "http://ats.apps.svc/gomod/gioui.org/org_gioui-v0.0.0-20210308172011-57750fc8a0a6.zip", + "https://cache.hawkingrei.com/gomod/gioui.org/org_gioui-v0.0.0-20210308172011-57750fc8a0a6.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/gioui.org/org_gioui-v0.0.0-20210308172011-57750fc8a0a6.zip", + ], + ) + go_repository( + name = "org_go_simpler_musttag", + build_file_proto_mode = "disable_global", + importpath = "go-simpler.org/musttag", + sum = "h1:Q/YAW0AHvaoaIbsPj3bvEI5/QFP7w696IMUpnKXQfCE=", + version = "v0.13.0", + ) + go_repository( + name = "org_go_simpler_sloglint", + build_file_proto_mode = "disable_global", + importpath = "go-simpler.org/sloglint", + sum = "h1:Wc9Em/Zeuu7JYpl+oKoYOsQSy2X560aVueCW/m6IijY=", + version = "v0.7.2", + ) go_repository( name = "org_golang_google_api", build_file_proto_mode = "disable_global", importpath = "google.golang.org/api", - sum = "h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ=", - version = "v0.103.0", + sum = "h1:RjPESny5CnQRn9V6siglged+DZCgfu9l6mO9dkX9VOg=", + version = "v0.128.0", ) go_repository( name = "org_golang_google_appengine", @@ -5235,50 +7529,77 @@ def go_deps(): name = "org_golang_google_genproto", build_file_proto_mode = "disable_global", importpath = "google.golang.org/genproto", - sum = "h1:OjndDrsik+Gt+e6fs45z9AxiewiKyLKYpA45W5Kpkks=", - version = "v0.0.0-20221202195650-67e5cbc046fd", + sum = "h1:VBu5YqKPv6XiJ199exd8Br+Aetz+o08F+PLMnwJQHAY=", + version = "v0.0.0-20230822172742-b8732ec3820d", + ) + go_repository( + name = "org_golang_google_genproto_googleapis_api", + build_file_proto_mode = "disable_global", + importpath = "google.golang.org/genproto/googleapis/api", + sum = "h1:DoPTO70H+bcDXcd39vOqb2viZxgqeBeSGtZ55yZU4/Q=", + version = "v0.0.0-20230822172742-b8732ec3820d", + ) + go_repository( + name = "org_golang_google_genproto_googleapis_bytestream", + build_file_proto_mode = "disable_global", + importpath = "google.golang.org/genproto/googleapis/bytestream", + sum = "h1:g3hIDl0jRNd9PPTs2uBzYuaD5mQuwOkZY0vSc0LR32o=", + version = "v0.0.0-20230530153820-e85fd2cbaebc", + ) + go_repository( + name = "org_golang_google_genproto_googleapis_rpc", + build_file_proto_mode = "disable_global", + importpath = "google.golang.org/genproto/googleapis/rpc", + sum = "h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4=", + version = "v0.0.0-20230822172742-b8732ec3820d", ) go_repository( name = "org_golang_google_grpc", build_file_proto_mode = "disable_global", importpath = "google.golang.org/grpc", - sum = "h1:E1eGv1FTqoLIdnBCZufiSHgKjlqG6fKFf6pPWtMTh8U=", - version = "v1.51.0", + sum = "h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk=", + version = "v1.59.0", ) go_repository( - name = "org_golang_google_grpc_cmd_protoc_gen_go_grpc", + name = "org_golang_google_grpc_examples", build_file_proto_mode = "disable_global", - importpath = "google.golang.org/grpc/cmd/protoc-gen-go-grpc", - sum = "h1:M1YKkFIboKNieVO5DLUEVzQfGwJD30Nv2jfUgzb5UcE=", - version = "v1.1.0", + importpath = "google.golang.org/grpc/examples", + sha256 = "1d6cbdae96a305d977ffa3b101fd89fa9bceb80cead93254d3f85b43faf40e07", + strip_prefix = "google.golang.org/grpc/examples@v0.0.0-20231221225426-4f03f3ff32c9", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/google.golang.org/grpc/examples/org_golang_google_grpc_examples-v0.0.0-20231221225426-4f03f3ff32c9.zip", + "http://ats.apps.svc/gomod/google.golang.org/grpc/examples/org_golang_google_grpc_examples-v0.0.0-20231221225426-4f03f3ff32c9.zip", + "https://cache.hawkingrei.com/gomod/google.golang.org/grpc/examples/org_golang_google_grpc_examples-v0.0.0-20231221225426-4f03f3ff32c9.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/google.golang.org/grpc/examples/org_golang_google_grpc_examples-v0.0.0-20231221225426-4f03f3ff32c9.zip", + ], ) go_repository( name = "org_golang_google_protobuf", build_file_proto_mode = "disable_global", importpath = "google.golang.org/protobuf", - sum = "h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w=", - version = "v1.28.1", + sum = "h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=", + version = "v1.34.2", ) go_repository( name = "org_golang_x_crypto", build_file_proto_mode = "disable_global", importpath = "golang.org/x/crypto", - sum = "h1:frVn1TEaCEaZcn3Tmd7Y2b5KKPaZ+I32Q2OA3kYp5TA=", - version = "v0.15.0", + sum = "h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ=", + version = "v0.29.0", ) go_repository( name = "org_golang_x_exp", build_file_proto_mode = "disable_global", importpath = "golang.org/x/exp", - sum = "h1:SkwG94eNiiYJhbeDE018Grw09HIN/KB9NlRmZsrzfWs=", - version = "v0.0.0-20221023144134-a1e5550cf13e", + sum = "h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk=", + version = "v0.0.0-20240909161429-701f63a606c0", ) go_repository( name = "org_golang_x_exp_typeparams", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "golang.org/x/exp/typeparams", - sum = "h1:Ic/qN6TEifvObMGQy72k0n1LlJr7DjWWEi+MOsDOiSk=", - version = "v0.0.0-20220827204233-334a2380cb91", + sum = "h1:bVwtbF629Xlyxk6xLQq2TDYmqP0uiWaet5LwRebuY0k=", + version = "v0.0.0-20240909161429-701f63a606c0", ) go_repository( name = "org_golang_x_image", @@ -5305,50 +7626,70 @@ def go_deps(): name = "org_golang_x_mod", build_file_proto_mode = "disable_global", importpath = "golang.org/x/mod", - sum = "h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=", - version = "v0.14.0", + sum = "h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4=", + version = "v0.22.0", ) go_repository( name = "org_golang_x_net", build_file_proto_mode = "disable_global", importpath = "golang.org/x/net", - sum = "h1:mIYleuAkSbHh0tCv7RvjL3F6ZVbLjq4+R7zbOn3Kokg=", - version = "v0.18.0", + sum = "h1:68CPQngjLL0r2AlUKiSxtQFKvzRVbnzLwMUn5SzcLHo=", + version = "v0.31.0", ) go_repository( name = "org_golang_x_oauth2", build_file_proto_mode = "disable_global", importpath = "golang.org/x/oauth2", - sum = "h1:GtQkldQ9m7yvzCL1V+LrYow3Khe0eJH0w7RbX/VbaIU=", - version = "v0.2.0", + sum = "h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs=", + version = "v0.21.0", + ) + go_repository( + name = "org_golang_x_perf", + build_file_proto_mode = "disable_global", + importpath = "golang.org/x/perf", + sha256 = "bc1b902e645fdd5d210b7db8f3280833af225b131dab5842d7a6d32a676f80f5", + strip_prefix = "golang.org/x/perf@v0.0.0-20230113213139-801c7ef9e5c5", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/golang.org/x/perf/org_golang_x_perf-v0.0.0-20230113213139-801c7ef9e5c5.zip", + "http://ats.apps.svc/gomod/golang.org/x/perf/org_golang_x_perf-v0.0.0-20230113213139-801c7ef9e5c5.zip", + "https://cache.hawkingrei.com/gomod/golang.org/x/perf/org_golang_x_perf-v0.0.0-20230113213139-801c7ef9e5c5.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/golang.org/x/perf/org_golang_x_perf-v0.0.0-20230113213139-801c7ef9e5c5.zip", + ], ) go_repository( name = "org_golang_x_sync", build_file_proto_mode = "disable_global", importpath = "golang.org/x/sync", - sum = "h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE=", - version = "v0.5.0", + sum = "h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ=", + version = "v0.9.0", ) go_repository( name = "org_golang_x_sys", build_file_proto_mode = "disable_global", importpath = "golang.org/x/sys", - sum = "h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q=", - version = "v0.14.0", + sum = "h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s=", + version = "v0.27.0", + ) + go_repository( + name = "org_golang_x_telemetry", + build_file_proto_mode = "disable_global", + importpath = "golang.org/x/telemetry", + sum = "h1:zf5N6UOrA487eEFacMePxjXAJctxKmyjKUsjA11Uzuk=", + version = "v0.0.0-20240521205824-bda55230c457", ) go_repository( name = "org_golang_x_term", build_file_proto_mode = "disable_global", importpath = "golang.org/x/term", - sum = "h1:LGK9IlZ8T9jvdy6cTdfKUCltatMFOehAQo9SRC46UQ8=", - version = "v0.14.0", + sum = "h1:WEQa6V3Gja/BhNxg540hBip/kkaYtRg3cxg4oXSw4AU=", + version = "v0.26.0", ) go_repository( name = "org_golang_x_text", build_file_proto_mode = "disable_global", importpath = "golang.org/x/text", - sum = "h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=", - version = "v0.14.0", + sum = "h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug=", + version = "v0.20.0", ) go_repository( name = "org_golang_x_time", @@ -5361,8 +7702,8 @@ def go_deps(): name = "org_golang_x_tools", build_file_proto_mode = "disable_global", importpath = "golang.org/x/tools", - sum = "h1:zdAyfUGbYmuVokhzVmghFl2ZJh5QhcfebBgmVPFYA+8=", - version = "v0.15.0", + sum = "h1:qEKojBykQkQ4EynWy4S8Weg69NumxKdn40Fce3uc/8o=", + version = "v0.27.0", ) go_repository( name = "org_golang_x_xerrors", @@ -5393,11 +7734,43 @@ def go_deps(): version = "v0.0.0-20190515093506-e2840ee46a6b", ) go_repository( - name = "org_modernc_fileutil", + name = "org_modernc_cc_v3", build_file_proto_mode = "disable_global", - importpath = "modernc.org/fileutil", - sum = "h1:Z1AFLZwl6BO8A5NldQg/xTSjGLetp+1Ubvl4alfGx8w=", - version = "v1.0.0", + importpath = "modernc.org/cc/v3", + sha256 = "fe3aeb761e55ce77a95b297321a122b4273aeffe1c08f48fc99310e065211f74", + strip_prefix = "modernc.org/cc/v3@v3.40.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/modernc.org/cc/v3/org_modernc_cc_v3-v3.40.0.zip", + "http://ats.apps.svc/gomod/modernc.org/cc/v3/org_modernc_cc_v3-v3.40.0.zip", + "https://cache.hawkingrei.com/gomod/modernc.org/cc/v3/org_modernc_cc_v3-v3.40.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/modernc.org/cc/v3/org_modernc_cc_v3-v3.40.0.zip", + ], + ) + go_repository( + name = "org_modernc_ccgo_v3", + build_file_proto_mode = "disable_global", + importpath = "modernc.org/ccgo/v3", + sha256 = "bfc293300cd1ce656ba0ce0cee1f508afec2518bc4214a6b10ccfad6e8e6046e", + strip_prefix = "modernc.org/ccgo/v3@v3.16.13", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/modernc.org/ccgo/v3/org_modernc_ccgo_v3-v3.16.13.zip", + "http://ats.apps.svc/gomod/modernc.org/ccgo/v3/org_modernc_ccgo_v3-v3.16.13.zip", + "https://cache.hawkingrei.com/gomod/modernc.org/ccgo/v3/org_modernc_ccgo_v3-v3.16.13.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/modernc.org/ccgo/v3/org_modernc_ccgo_v3-v3.16.13.zip", + ], + ) + go_repository( + name = "org_modernc_ccorpus", + build_file_proto_mode = "disable_global", + importpath = "modernc.org/ccorpus", + sha256 = "3831b62a73a379b81ac927e17e3e9ffe2d44ad07c934505e1ae24eea8a26a6d3", + strip_prefix = "modernc.org/ccorpus@v1.11.6", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/modernc.org/ccorpus/org_modernc_ccorpus-v1.11.6.zip", + "http://ats.apps.svc/gomod/modernc.org/ccorpus/org_modernc_ccorpus-v1.11.6.zip", + "https://cache.hawkingrei.com/gomod/modernc.org/ccorpus/org_modernc_ccorpus-v1.11.6.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/modernc.org/ccorpus/org_modernc_ccorpus-v1.11.6.zip", + ], ) go_repository( name = "org_modernc_golex", @@ -5407,18 +7780,30 @@ def go_deps(): version = "v1.0.1", ) go_repository( - name = "org_modernc_lex", + name = "org_modernc_httpfs", build_file_proto_mode = "disable_global", - importpath = "modernc.org/lex", - sum = "h1:w0dxp18i1q+aSE7GkepvwzvVWTLoCIQ2oDgTFAV2JZU=", - version = "v1.0.0", + importpath = "modernc.org/httpfs", + sha256 = "0b5314649c1327a199397eb6fd52b3ce41c9d3bc6dd2a4dea565b5fb87c13f41", + strip_prefix = "modernc.org/httpfs@v1.0.6", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/modernc.org/httpfs/org_modernc_httpfs-v1.0.6.zip", + "http://ats.apps.svc/gomod/modernc.org/httpfs/org_modernc_httpfs-v1.0.6.zip", + "https://cache.hawkingrei.com/gomod/modernc.org/httpfs/org_modernc_httpfs-v1.0.6.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/modernc.org/httpfs/org_modernc_httpfs-v1.0.6.zip", + ], ) go_repository( - name = "org_modernc_lexer", + name = "org_modernc_libc", build_file_proto_mode = "disable_global", - importpath = "modernc.org/lexer", - sum = "h1:D2xE6YTaH7aiEC7o/+rbx6qTAEr1uY83peKwkamIdQ0=", - version = "v1.0.0", + importpath = "modernc.org/libc", + sha256 = "5f98bedf9f0663b3b87555904ee41b82fe9d8e9ac5c47c9fac9a42a7fe232313", + strip_prefix = "modernc.org/libc@v1.22.2", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/modernc.org/libc/org_modernc_libc-v1.22.2.zip", + "http://ats.apps.svc/gomod/modernc.org/libc/org_modernc_libc-v1.22.2.zip", + "https://cache.hawkingrei.com/gomod/modernc.org/libc/org_modernc_libc-v1.22.2.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/modernc.org/libc/org_modernc_libc-v1.22.2.zip", + ], ) go_repository( name = "org_modernc_mathutil", @@ -5427,6 +7812,32 @@ def go_deps(): sum = "h1:ij3fYGe8zBF4Vu+g0oT7mB06r8sqGWKuJu1yXeR4by8=", version = "v1.4.1", ) + go_repository( + name = "org_modernc_memory", + build_file_proto_mode = "disable_global", + importpath = "modernc.org/memory", + sha256 = "f79e8ada14c36d08817ee2bf6b2103f65c1a61a91b042b59016465869624043c", + strip_prefix = "modernc.org/memory@v1.5.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/modernc.org/memory/org_modernc_memory-v1.5.0.zip", + "http://ats.apps.svc/gomod/modernc.org/memory/org_modernc_memory-v1.5.0.zip", + "https://cache.hawkingrei.com/gomod/modernc.org/memory/org_modernc_memory-v1.5.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/modernc.org/memory/org_modernc_memory-v1.5.0.zip", + ], + ) + go_repository( + name = "org_modernc_opt", + build_file_proto_mode = "disable_global", + importpath = "modernc.org/opt", + sha256 = "294b1b80137cb86292c8893481d545eee90b17b84b6ad1dcb2e6c9bb523a2d9e", + strip_prefix = "modernc.org/opt@v0.1.3", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/modernc.org/opt/org_modernc_opt-v0.1.3.zip", + "http://ats.apps.svc/gomod/modernc.org/opt/org_modernc_opt-v0.1.3.zip", + "https://cache.hawkingrei.com/gomod/modernc.org/opt/org_modernc_opt-v0.1.3.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/modernc.org/opt/org_modernc_opt-v0.1.3.zip", + ], + ) go_repository( name = "org_modernc_parser", build_file_proto_mode = "disable_global", @@ -5434,13 +7845,6 @@ def go_deps(): sum = "h1:/qHLDn1ezrcRk9/XbErYp84bPPM4+w0kIDuvMdRk6Vc=", version = "v1.0.2", ) - go_repository( - name = "org_modernc_scanner", - build_file_proto_mode = "disable_global", - importpath = "modernc.org/scanner", - sum = "h1:rmWBTztgQKLM2CYx0uTQGhAxgnrILDEOVXJsEq/I4Js=", - version = "v1.0.1", - ) go_repository( name = "org_modernc_sortutil", build_file_proto_mode = "disable_global", @@ -5448,6 +7852,19 @@ def go_deps(): sum = "h1:SUTM1sCR0Ldpv7dbB/KCPC2zHHsZ1KrSkhmGmmV22CQ=", version = "v1.0.0", ) + go_repository( + name = "org_modernc_sqlite", + build_file_proto_mode = "disable_global", + importpath = "modernc.org/sqlite", + sha256 = "be0501f87458962a00c8fb07d1f131af010a534cd6ffb654c570be35b9b608d5", + strip_prefix = "modernc.org/sqlite@v1.18.2", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/modernc.org/sqlite/org_modernc_sqlite-v1.18.2.zip", + "http://ats.apps.svc/gomod/modernc.org/sqlite/org_modernc_sqlite-v1.18.2.zip", + "https://cache.hawkingrei.com/gomod/modernc.org/sqlite/org_modernc_sqlite-v1.18.2.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/modernc.org/sqlite/org_modernc_sqlite-v1.18.2.zip", + ], + ) go_repository( name = "org_modernc_strutil", build_file_proto_mode = "disable_global", @@ -5455,6 +7872,32 @@ def go_deps(): sum = "h1:+1/yCzZxY2pZwwrsbH+4T7BQMoLQ9QiBshRC9eicYsc=", version = "v1.1.0", ) + go_repository( + name = "org_modernc_tcl", + build_file_proto_mode = "disable_global", + importpath = "modernc.org/tcl", + sha256 = "f966db0dd1ccbc7f8d5ac2e752b64c3be343aa3f92215ed98b6f2a51b7abbb64", + strip_prefix = "modernc.org/tcl@v1.13.2", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/modernc.org/tcl/org_modernc_tcl-v1.13.2.zip", + "http://ats.apps.svc/gomod/modernc.org/tcl/org_modernc_tcl-v1.13.2.zip", + "https://cache.hawkingrei.com/gomod/modernc.org/tcl/org_modernc_tcl-v1.13.2.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/modernc.org/tcl/org_modernc_tcl-v1.13.2.zip", + ], + ) + go_repository( + name = "org_modernc_token", + build_file_proto_mode = "disable_global", + importpath = "modernc.org/token", + sha256 = "3efaa49e9fb10569da9e09e785fa230cd5c0f50fcf605f3b5439dfcd61577c58", + strip_prefix = "modernc.org/token@v1.1.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/modernc.org/token/org_modernc_token-v1.1.0.zip", + "http://ats.apps.svc/gomod/modernc.org/token/org_modernc_token-v1.1.0.zip", + "https://cache.hawkingrei.com/gomod/modernc.org/token/org_modernc_token-v1.1.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/modernc.org/token/org_modernc_token-v1.1.0.zip", + ], + ) go_repository( name = "org_modernc_y", build_file_proto_mode = "disable_global", @@ -5462,6 +7905,32 @@ def go_deps(): sum = "h1:+QT+MtLkwkvLkh3fYQq+YD5vw2s5paVE73jdl5R/Py8=", version = "v1.0.1", ) + go_repository( + name = "org_modernc_z", + build_file_proto_mode = "disable_global", + importpath = "modernc.org/z", + sha256 = "5be23ef96669963e52d25b787d71028fff4fe1c468dec20aac59c9512caa2eb7", + strip_prefix = "modernc.org/z@v1.5.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/modernc.org/z/org_modernc_z-v1.5.1.zip", + "http://ats.apps.svc/gomod/modernc.org/z/org_modernc_z-v1.5.1.zip", + "https://cache.hawkingrei.com/gomod/modernc.org/z/org_modernc_z-v1.5.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/modernc.org/z/org_modernc_z-v1.5.1.zip", + ], + ) + go_repository( + name = "org_mongodb_go_mongo_driver", + build_file_proto_mode = "disable_global", + importpath = "go.mongodb.org/mongo-driver", + sha256 = "72d6d482c70104374d8d5ac91653b46aec4c7c1e610e0fd4a82d5d88b4a65b3e", + strip_prefix = "go.mongodb.org/mongo-driver@v1.13.1", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/go.mongodb.org/mongo-driver/org_mongodb_go_mongo_driver-v1.13.1.zip", + "http://ats.apps.svc/gomod/go.mongodb.org/mongo-driver/org_mongodb_go_mongo_driver-v1.13.1.zip", + "https://cache.hawkingrei.com/gomod/go.mongodb.org/mongo-driver/org_mongodb_go_mongo_driver-v1.13.1.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/go.mongodb.org/mongo-driver/org_mongodb_go_mongo_driver-v1.13.1.zip", + ], + ) go_repository( name = "org_uber_go_atomic", build_file_proto_mode = "disable_global", @@ -5473,15 +7942,28 @@ def go_deps(): name = "org_uber_go_automaxprocs", build_file_proto_mode = "disable_global", importpath = "go.uber.org/automaxprocs", - sum = "h1:kWazyxZUrS3Gs4qUpbwo5kEIMGe/DAvi5Z4tl2NW4j8=", - version = "v1.5.3", + sum = "h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs=", + version = "v1.6.0", ) go_repository( name = "org_uber_go_goleak", build_file_proto_mode = "disable_global", importpath = "go.uber.org/goleak", - sum = "h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk=", - version = "v1.2.0", + sum = "h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=", + version = "v1.3.0", + ) + go_repository( + name = "org_uber_go_mock", + build_file_proto_mode = "disable_global", + importpath = "go.uber.org/mock", + sha256 = "29c088ba1621e04fba8670e388e962f92c15f47cd45a63bf0e5decd6d5d63cd1", + strip_prefix = "go.uber.org/mock@v0.4.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/go.uber.org/mock/org_uber_go_mock-v0.4.0.zip", + "http://ats.apps.svc/gomod/go.uber.org/mock/org_uber_go_mock-v0.4.0.zip", + "https://cache.hawkingrei.com/gomod/go.uber.org/mock/org_uber_go_mock-v0.4.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/go.uber.org/mock/org_uber_go_mock-v0.4.0.zip", + ], ) go_repository( name = "org_uber_go_multierr", @@ -5501,6 +7983,32 @@ def go_deps(): name = "org_uber_go_zap", build_file_proto_mode = "disable_global", importpath = "go.uber.org/zap", - sum = "h1:OjGQ5KQDEUawVHxNwQgPpiypGHOxo2mNZsOqTak4fFY=", - version = "v1.23.0", + sum = "h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60=", + version = "v1.24.0", + ) + go_repository( + name = "tech_einride_go_aip", + build_file_proto_mode = "disable_global", + importpath = "go.einride.tech/aip", + sha256 = "d3e11dca3b1aba4fed53d90c0a984eacf3aa3e47ef12b2e445ff8d5d185fe9db", + strip_prefix = "go.einride.tech/aip@v0.66.0", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/go.einride.tech/aip/tech_einride_go_aip-v0.66.0.zip", + "http://ats.apps.svc/gomod/go.einride.tech/aip/tech_einride_go_aip-v0.66.0.zip", + "https://cache.hawkingrei.com/gomod/go.einride.tech/aip/tech_einride_go_aip-v0.66.0.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/go.einride.tech/aip/tech_einride_go_aip-v0.66.0.zip", + ], + ) + go_repository( + name = "tools_gotest_v3", + build_file_proto_mode = "disable_global", + importpath = "gotest.tools/v3", + sha256 = "9c1e4b8a1477c52441aafc2025a4b4e8bc300a9817c5549c0dc7fffef34bdaef", + strip_prefix = "gotest.tools/v3@v3.0.3", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/gotest.tools/v3/tools_gotest_v3-v3.0.3.zip", + "http://ats.apps.svc/gomod/gotest.tools/v3/tools_gotest_v3-v3.0.3.zip", + "https://cache.hawkingrei.com/gomod/gotest.tools/v3/tools_gotest_v3-v3.0.3.zip", + "https://storage.googleapis.com/pingcapmirror/gomod/gotest.tools/v3/tools_gotest_v3-v3.0.3.zip", + ], ) diff --git a/WORKSPACE b/WORKSPACE index bdcc94ae675be..c6806481a5b82 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,25 +1,70 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +# Required by toolchains_protoc. +http_archive( + name = "platforms", + sha256 = "218efe8ee736d26a3572663b374a253c012b716d8af0c07e842e82f238a0a7ee", + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz", + "https://github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz", + ], +) + +http_archive( + name = "bazel_features", + sha256 = "ba1282c1aa1d1fffdcf994ab32131d7c7551a9bc960fbf05f42d55a1b930cbfb", + strip_prefix = "bazel_features-1.15.0", + url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.15.0/bazel_features-v1.15.0.tar.gz", +) + +load("@bazel_features//:deps.bzl", "bazel_features_deps") + +bazel_features_deps() + +http_archive( + name = "bazel_skylib", + sha256 = "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/rules/bazel-skylib-1.4.2.tar.gz", + "http://ats.apps.svc/gomod/rules/bazel-skylib-1.4.2.tar.gz", + "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz", + "https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz", + ], +) + +load("@bazel_skylib//lib:versions.bzl", "versions") +versions.check(minimum_bazel_version = "6.0.0") + http_archive( name = "io_bazel_rules_go", - sha256 = "d6ab6b57e48c09523e93050f13698f708428cfd5e619252e369d377af6597707", + sha256 = "f4a9314518ca6acfa16cc4ab43b0b8ce1e4ea64b81c38d8a3772883f153346b8", urls = [ - "http://bazel-cache.pingcap.net:8080/bazelbuild/rules_go/releases/download/v0.43.0/rules_go-v0.43.0.zip", - "http://ats.apps.svc/bazelbuild/rules_go/releases/download/v0.43.0/rules_go-v0.43.0.zip", - "https://github.com/bazelbuild/rules_go/releases/download/v0.43.0/rules_go-v0.43.0.zip", - "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.43.0/rules_go-v0.43.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", ], ) http_archive( name = "bazel_gazelle", - sha256 = "b7387f72efb59f876e4daae42f1d3912d0d45563eac7cb23d1de0b094ab588cf", + sha256 = "8ad77552825b078a10ad960bec6ef77d2ff8ec70faef2fd038db713f410f5d87", + urls = [ + "http://bazel-cache.pingcap.net:8080/bazelbuild/bazel-gazelle/releases/download/v0.38.0/bazel-gazelle-v0.38.0.tar.gz", + "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.38.0/bazel-gazelle-v0.38.0.tar.gz", + "http://ats.apps.svc/bazelbuild/bazel-gazelle/releases/download/v0.38.0/bazel-gazelle-v0.38.0.tar.gz", + ], +) + +http_archive( + name = "rules_cc", urls = [ - "http://bazel-cache.pingcap.net:8080/bazelbuild/bazel-gazelle/releases/download/v0.34.0/bazel-gazelle-v0.34.0.tar.gz", - "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.34.0/bazel-gazelle-v0.34.0.tar.gz", - "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.34.0/bazel-gazelle-v0.34.0.tar.gz", - "http://ats.apps.svc/bazelbuild/bazel-gazelle/releases/download/v0.34.0/bazel-gazelle-v0.34.0.tar.gz", + "http://bazel-cache.pingcap.net:8080/bazelbuild/rules_cc/releases/download/0.0.6/rules_cc-0.0.6.tar.gz", + "https://github.com/bazelbuild/rules_cc/releases/download/0.0.6/rules_cc-0.0.6.tar.gz", + "http://ats.apps.svc/bazelbuild/rules_cc/releases/download/0.0.6/rules_cc-0.0.6.tar.gz", ], + sha256 = "3d9e271e2876ba42e114c9b9bc51454e379cbf0ec9ef9d40e2ae4cec61a31b40", + strip_prefix = "rules_cc-0.0.6", ) load("@io_bazel_rules_go//go:deps.bzl", "go_download_sdk", "go_register_toolchains", "go_rules_dependencies") @@ -34,12 +79,13 @@ go_rules_dependencies() go_download_sdk( name = "go_sdk", urls = [ + "https://cache.hawkingrei.com/golang/{}", "http://ats.apps.svc/golang/{}", "http://bazel-cache.pingcap.net:8080/golang/{}", "https://mirrors.aliyun.com/golang/{}", "https://dl.google.com/go/{}", ], - version = "1.19.12", + version = "1.23.3", ) go_register_toolchains( @@ -54,8 +100,9 @@ http_archive( strip_prefix = "protobuf-3.15.5", # latest, as of 2021-03-08 urls = [ - "https://github.com/protocolbuffers/protobuf/archive/v3.15.5.tar.gz", + "http://bazel-cache.pingcap.net:8080/gomod/rules/protobuf-3.15.5.tar.gz ", "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.15.5.tar.gz", + "https://github.com/protocolbuffers/protobuf/archive/v3.15.5.tar.gz", ], ) @@ -65,20 +112,58 @@ protobuf_deps() http_archive( name = "remote_java_tools", - sha256 = "5cd59ea6bf938a1efc1e11ea562d37b39c82f76781211b7cd941a2346ea8484d", + sha256 = "f58a358ca694a41416a9b6a92b852935ad301d8882e5d22f4f11134f035317d5", urls = [ - "http://ats.apps.svc/bazel_java_tools/releases/java/v11.9/java_tools-v11.9.zip", - "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.9/java_tools-v11.9.zip", - "https://github.com/bazelbuild/java_tools/releases/download/java_v11.9/java_tools-v11.9.zip", + "http://bazel-cache.pingcap.net:8080/gomod/rules/java_tools-v12.6.zip", + "http://ats.apps.svc/gomod/rules/java_tools-v12.6.zip", + "https://mirror.bazel.build/bazel_java_tools/releases/java/v12.6/java_tools-v12.6.zip", + "https://github.com/bazelbuild/java_tools/releases/download/java_v12.6/java_tools-v12.6.zip", ], ) http_archive( name = "remote_java_tools_linux", - sha256 = "512582cac5b7ea7974a77b0da4581b21f546c9478f206eedf54687eeac035989", + sha256 = "64294e91fe940c77e6d35818b4c3a1f07d78e33add01e330188d907032687066", + urls = [ + "http://bazel-cache.pingcap.net:8080/gomod/rules/java_tools_linux-v12.6.zip", + "http://ats.apps.svc/gomod/rules/java_tools_linux-v12.6.zip", + "https://mirror.bazel.build/bazel_java_tools/releases/java/v12.6/java_tools_linux-v12.6.zip", + "https://github.com/bazelbuild/java_tools/releases/download/java_v12.6/java_tools_linux-v12.6.zip", + ], +) + +http_archive( + name = "rules_proto", + sha256 = "303e86e722a520f6f326a50b41cfc16b98fe6d1955ce46642a5b7a67c11c0f5d", + strip_prefix = "rules_proto-6.0.0", + urls = [ + "https://github.com/bazelbuild/rules_proto/releases/download/6.0.0/rules_proto-6.0.0.tar.gz", + ], +) + +load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies") + +rules_proto_dependencies() + +load("@rules_proto//proto:toolchains.bzl", "rules_proto_toolchains") + +rules_proto_toolchains() + +http_archive( + name = "rules_java", + sha256 = "f5a3e477e579231fca27bf202bb0e8fbe4fc6339d63b38ccb87c2760b533d1c3", + strip_prefix = "rules_java-981f06c3d2bd10225e85209904090eb7b5fb26bd", urls = [ - "http://ats.apps.svc/bazel_java_tools/releases/java/v11.9/java_tools_linux-v11.9.zip", - "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.9/java_tools_linux-v11.9.zip", - "https://github.com/bazelbuild/java_tools/releases/download/java_v11.9/java_tools_linux-v11.9.zip", + "http://bazel-cache.pingcap.net:8080/gomod/rules/rules_java/rules_java-981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz", + "http://ats.apps.svc/bazelbuild/gomod/rules/rules_java/rules_java-981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz", + "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz", + "https://github.com/bazelbuild/rules_java/archive/981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz", ], ) + +http_archive( + name = "toolchains_protoc", + sha256 = "117af61ee2f1b9b014dcac7c9146f374875551abb8a30e51d1b3c5946d25b142", + strip_prefix = "toolchains_protoc-0.3.0", + url = "https://github.com/aspect-build/toolchains_protoc/releases/download/v0.3.0/toolchains_protoc-v0.3.0.tar.gz", +) diff --git a/bindinfo/main_test.go b/bindinfo/main_test.go index 65d9859fbea21..aa82e4c7998cc 100644 --- a/bindinfo/main_test.go +++ b/bindinfo/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/br/pkg/backup/main_test.go b/br/pkg/backup/main_test.go index 7c6c43a5743c4..03b3e2c73daea 100644 --- a/br/pkg/backup/main_test.go +++ b/br/pkg/backup/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("github.com/klauspost/compress/zstd.(*blockDec).startDecoder"), goleak.IgnoreTopFunction("github.com/pingcap/goleveldb/leveldb.(*DB).mpoolDrain"), diff --git a/br/pkg/checksum/main_test.go b/br/pkg/checksum/main_test.go index f81a602724a92..1a6589d31b913 100644 --- a/br/pkg/checksum/main_test.go +++ b/br/pkg/checksum/main_test.go @@ -23,7 +23,7 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("github.com/klauspost/compress/zstd.(*blockDec).startDecoder"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), diff --git a/br/pkg/conn/main_test.go b/br/pkg/conn/main_test.go index f6df9f2c568a4..a31428bef0ca1 100644 --- a/br/pkg/conn/main_test.go +++ b/br/pkg/conn/main_test.go @@ -23,7 +23,7 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/br/pkg/lightning/backend/backend.go b/br/pkg/lightning/backend/backend.go index eac01a76662d2..edfc682de2207 100644 --- a/br/pkg/lightning/backend/backend.go +++ b/br/pkg/lightning/backend/backend.go @@ -15,6 +15,7 @@ package backend import ( + "cmp" "context" "fmt" "time" @@ -303,11 +304,14 @@ func (be Backend) CheckDiskQuota(quota int64) ( totalMemSize int64, ) { sizes := be.abstract.EngineFileSizes() - slices.SortFunc(sizes, func(i, j EngineFileSize) bool { + slices.SortFunc(sizes, func(i, j EngineFileSize) int { if i.IsImporting != j.IsImporting { - return i.IsImporting + if i.IsImporting { + return -1 + } + return 1 } - return i.DiskSize+i.MemSize < j.DiskSize+j.MemSize + return cmp.Compare(i.DiskSize+i.MemSize, j.DiskSize+j.MemSize) }) for _, size := range sizes { totalDiskSize += size.DiskSize diff --git a/br/pkg/lightning/backend/kv/sql2kv.go b/br/pkg/lightning/backend/kv/sql2kv.go index 1ff8390f6c564..0877e9015148b 100644 --- a/br/pkg/lightning/backend/kv/sql2kv.go +++ b/br/pkg/lightning/backend/kv/sql2kv.go @@ -17,6 +17,7 @@ package kv import ( + "cmp" "context" "fmt" "math" @@ -186,8 +187,8 @@ func collectGeneratedColumns(se *session, meta *model.TableInfo, cols []*table.C } // order the result by column offset so they match the evaluation order. - slices.SortFunc(genCols, func(i, j genCol) bool { - return cols[i.index].Offset < cols[j.index].Offset + slices.SortFunc(genCols, func(i, j genCol) int { + return cmp.Compare(cols[i.index].Offset, cols[j.index].Offset) }) return genCols, nil } diff --git a/br/pkg/lightning/backend/local/engine.go b/br/pkg/lightning/backend/local/engine.go index 79ef97ddce45e..625fc1b9bc380 100644 --- a/br/pkg/lightning/backend/local/engine.go +++ b/br/pkg/lightning/backend/local/engine.go @@ -752,8 +752,8 @@ func (e *Engine) batchIngestSSTs(metas []*sstMeta) error { if len(metas) == 0 { return nil } - slices.SortFunc(metas, func(i, j *sstMeta) bool { - return bytes.Compare(i.minKey, j.minKey) < 0 + slices.SortFunc(metas, func(i, j *sstMeta) int { + return bytes.Compare(i.minKey, j.minKey) }) metaLevels := make([][]*sstMeta, 0) @@ -914,8 +914,8 @@ func sortAndMergeRanges(ranges []Range) []Range { return ranges } - slices.SortFunc(ranges, func(i, j Range) bool { - return bytes.Compare(i.start, j.start) < 0 + slices.SortFunc(ranges, func(i, j Range) int { + return bytes.Compare(i.start, j.start) }) curEnd := ranges[0].end @@ -1181,8 +1181,8 @@ func (w *Writer) flushKVs(ctx context.Context) error { return errors.Trace(err) } if !w.isWriteBatchSorted { - slices.SortFunc(w.writeBatch[:w.batchCount], func(i, j common.KvPair) bool { - return bytes.Compare(i.Key, j.Key) < 0 + slices.SortFunc(w.writeBatch[:w.batchCount], func(i, j common.KvPair) int { + return bytes.Compare(i.Key, j.Key) }) w.isWriteBatchSorted = true } diff --git a/br/pkg/lightning/backend/local/localhelper.go b/br/pkg/lightning/backend/local/localhelper.go index 5c423f8c26cb6..d7a80c2c534c4 100644 --- a/br/pkg/lightning/backend/local/localhelper.go +++ b/br/pkg/lightning/backend/local/localhelper.go @@ -203,8 +203,8 @@ func (local *local) SplitAndScatterRegionByRanges( var err1 error region := sp.region keys := sp.keys - slices.SortFunc(keys, func(i, j []byte) bool { - return bytes.Compare(i, j) < 0 + slices.SortFunc(keys, func(i, j []byte) int { + return bytes.Compare(i, j) }) splitRegion := region startIdx := 0 @@ -247,8 +247,8 @@ func (local *local) SplitAndScatterRegionByRanges( log.FromContext(ctx).Info("batch split region", zap.Uint64("region_id", splitRegion.Region.Id), zap.Int("keys", endIdx-startIdx), zap.Binary("firstKey", keys[startIdx]), zap.Binary("end", keys[endIdx-1])) - slices.SortFunc(newRegions, func(i, j *split.RegionInfo) bool { - return bytes.Compare(i.Region.StartKey, j.Region.StartKey) < 0 + slices.SortFunc(newRegions, func(i, j *split.RegionInfo) int { + return bytes.Compare(i.Region.StartKey, j.Region.StartKey) }) syncLock.Lock() scatterRegions = append(scatterRegions, newRegions...) @@ -293,8 +293,8 @@ func (local *local) SplitAndScatterRegionByRanges( if len(retryKeys) == 0 { break } - slices.SortFunc(retryKeys, func(i, j []byte) bool { - return bytes.Compare(i, j) < 0 + slices.SortFunc(retryKeys, func(i, j []byte) int { + return bytes.Compare(i, j) }) minKey = codec.EncodeBytes([]byte{}, retryKeys[0]) maxKey = codec.EncodeBytes([]byte{}, nextKey(retryKeys[len(retryKeys)-1])) diff --git a/br/pkg/lightning/checkpoints/checkpoints.go b/br/pkg/lightning/checkpoints/checkpoints.go index d20134660de9c..30230fe257923 100644 --- a/br/pkg/lightning/checkpoints/checkpoints.go +++ b/br/pkg/lightning/checkpoints/checkpoints.go @@ -15,6 +15,7 @@ package checkpoints import ( + "cmp" "context" "database/sql" "encoding/json" @@ -229,6 +230,13 @@ func (key *ChunkCheckpointKey) String() string { return fmt.Sprintf("%s:%d", key.Path, key.Offset) } +func (key *ChunkCheckpointKey) compare(other *ChunkCheckpointKey) int { + if c := cmp.Compare(key.Path, other.Path); c != 0 { + return c + } + return cmp.Compare(key.Offset, other.Offset) +} + func (key *ChunkCheckpointKey) less(other *ChunkCheckpointKey) bool { switch { case key.Path < other.Path: @@ -1257,8 +1265,8 @@ func (cpdb *FileCheckpointsDB) Get(_ context.Context, tableName string) (*TableC }) } - slices.SortFunc(engine.Chunks, func(i, j *ChunkCheckpoint) bool { - return i.Key.less(&j.Key) + slices.SortFunc(engine.Chunks, func(i, j *ChunkCheckpoint) int { + return i.Key.compare(&j.Key) }) cp.Engines[engineID] = engine diff --git a/br/pkg/lightning/checkpoints/main_test.go b/br/pkg/lightning/checkpoints/main_test.go index 2d281fb84dd1e..a602127696d63 100644 --- a/br/pkg/lightning/checkpoints/main_test.go +++ b/br/pkg/lightning/checkpoints/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("github.com/klauspost/compress/zstd.(*blockDec).startDecoder"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/br/pkg/lightning/common/main_test.go b/br/pkg/lightning/common/main_test.go index be6188947f62c..8adf839e5f779 100644 --- a/br/pkg/lightning/common/main_test.go +++ b/br/pkg/lightning/common/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), } diff --git a/br/pkg/lightning/config/config_test.go b/br/pkg/lightning/config/config_test.go index e74094a6b9066..e3d8d8809586d 100644 --- a/br/pkg/lightning/config/config_test.go +++ b/br/pkg/lightning/config/config_test.go @@ -690,13 +690,13 @@ func TestTomlPostRestore(t *testing.T) { [post-restore] checksum = "req" `)) - require.EqualError(t, err, "invalid op level 'req', please choose valid option between ['off', 'optional', 'required']") + require.EqualError(t, err, "toml: line 3 (last key \"post-restore.checksum\"): invalid op level 'req', please choose valid option between ['off', 'optional', 'required']") err = cfg.LoadFromTOML([]byte(` [post-restore] analyze = 123 `)) - require.EqualError(t, err, "invalid op level '123', please choose valid option between ['off', 'optional', 'required']") + require.EqualError(t, err, "toml: line 3 (last key \"post-restore.analyze\"): invalid op level '123', please choose valid option between ['off', 'optional', 'required']") kvMap := map[string]config.PostOpLevel{ `"off"`: config.OpLevelOff, diff --git a/br/pkg/lightning/lightning.go b/br/pkg/lightning/lightning.go index 2db76b1001078..daeb7a2d480dc 100644 --- a/br/pkg/lightning/lightning.go +++ b/br/pkg/lightning/lightning.go @@ -15,6 +15,7 @@ package lightning import ( + "cmp" "compress/gzip" "context" "crypto/ecdsa" @@ -900,8 +901,8 @@ func checkSystemRequirement(cfg *config.Config, dbsMeta []*mydump.MDDatabaseMeta tableTotalSizes = append(tableTotalSizes, tb.TotalSize) } } - slices.SortFunc(tableTotalSizes, func(i, j int64) bool { - return i > j + slices.SortFunc(tableTotalSizes, func(i, j int64) int { + return cmp.Compare(j, i) }) topNTotalSize := int64(0) for i := 0; i < len(tableTotalSizes) && i < cfg.App.TableConcurrency; i++ { diff --git a/br/pkg/lightning/mydump/main_test.go b/br/pkg/lightning/mydump/main_test.go index d4a29a47175d3..30f12c270ca3d 100644 --- a/br/pkg/lightning/mydump/main_test.go +++ b/br/pkg/lightning/mydump/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), goleak.IgnoreTopFunction("github.com/klauspost/compress/zstd.(*blockDec).startDecoder"), diff --git a/br/pkg/lightning/restore/precheck_impl.go b/br/pkg/lightning/restore/precheck_impl.go index 77d833e8ae54c..99b3a7172a857 100644 --- a/br/pkg/lightning/restore/precheck_impl.go +++ b/br/pkg/lightning/restore/precheck_impl.go @@ -15,6 +15,7 @@ package restore import ( "bytes" + "cmp" "context" "encoding/json" "fmt" @@ -332,8 +333,8 @@ func (ci *regionDistributionCheckItem) Check(ctx context.Context) (*CheckResult, if len(stores) <= 1 { return theResult, nil } - slices.SortFunc(stores, func(i, j *pdtypes.StoreInfo) bool { - return i.Status.RegionCount < j.Status.RegionCount + slices.SortFunc(stores, func(i, j *pdtypes.StoreInfo) int { + return cmp.Compare(i.Status.RegionCount, j.Status.RegionCount) }) minStore := stores[0] maxStore := stores[len(stores)-1] diff --git a/br/pkg/lightning/restore/table_restore.go b/br/pkg/lightning/restore/table_restore.go index d0afbc4cfac04..2fa27ee6ab6cb 100644 --- a/br/pkg/lightning/restore/table_restore.go +++ b/br/pkg/lightning/restore/table_restore.go @@ -15,6 +15,7 @@ package restore import ( + "cmp" "context" "strings" "sync" @@ -309,8 +310,9 @@ func (tr *TableRestore) restoreEngines(pCtx context.Context, rc *Controller, cp for engineID, engine := range cp.Engines { allEngines = append(allEngines, engineCheckpoint{engineID: engineID, checkpoint: engine}) } - slices.SortFunc(allEngines, func(i, j engineCheckpoint) bool { return i.engineID < j.engineID }) - + slices.SortFunc(allEngines, func(i, j engineCheckpoint) int { + return cmp.Compare(i.engineID, j.engineID) + }) for _, ecp := range allEngines { engineID := ecp.engineID engine := ecp.checkpoint diff --git a/br/pkg/metautil/main_test.go b/br/pkg/metautil/main_test.go index 2b87f6047b950..0e215aa6e5331 100644 --- a/br/pkg/metautil/main_test.go +++ b/br/pkg/metautil/main_test.go @@ -23,7 +23,7 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), } diff --git a/br/pkg/mock/mock_cluster_test.go b/br/pkg/mock/mock_cluster_test.go index 37f24e8a7eca6..9d94261568412 100644 --- a/br/pkg/mock/mock_cluster_test.go +++ b/br/pkg/mock/mock_cluster_test.go @@ -13,7 +13,7 @@ import ( func TestSmoke(t *testing.T) { defer goleak.VerifyNone( t, - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("github.com/klauspost/compress/zstd.(*blockDec).startDecoder"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), diff --git a/br/pkg/pdutil/main_test.go b/br/pkg/pdutil/main_test.go index 8af7ac001aaa4..42bd76b1ab388 100644 --- a/br/pkg/pdutil/main_test.go +++ b/br/pkg/pdutil/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/br/pkg/restore/client.go b/br/pkg/restore/client.go index c8f2db94a19f6..a8422c50ed974 100644 --- a/br/pkg/restore/client.go +++ b/br/pkg/restore/client.go @@ -4,6 +4,7 @@ package restore import ( "bytes" + "cmp" "context" "crypto/tls" "encoding/hex" @@ -654,8 +655,8 @@ func (rc *Client) CreateTables( newTables = append(newTables, et.Table) } // Let's ensure that it won't break the original order. - slices.SortFunc(newTables, func(i, j *model.TableInfo) bool { - return tbMapping[i.Name.String()] < tbMapping[j.Name.String()] + slices.SortFunc(newTables, func(i, j *model.TableInfo) int { + return cmp.Compare(tbMapping[i.Name.String()], tbMapping[j.Name.String()]) }) select { @@ -1027,8 +1028,8 @@ func (rc *Client) CheckSysTableCompatibility(dom *domain.Domain, tables []*metau // ExecDDLs executes the queries of the ddl jobs. func (rc *Client) ExecDDLs(ctx context.Context, ddlJobs []*model.Job) error { // Sort the ddl jobs by schema version in ascending order. - slices.SortFunc(ddlJobs, func(i, j *model.Job) bool { - return i.BinlogInfo.SchemaVersion < j.BinlogInfo.SchemaVersion + slices.SortFunc(ddlJobs, func(i, j *model.Job) int { + return cmp.Compare(i.BinlogInfo.SchemaVersion, j.BinlogInfo.SchemaVersion) }) for _, job := range ddlJobs { @@ -2276,26 +2277,14 @@ func (rc *Client) InitSchemasReplaceForDDL( } func SortMetaKVFiles(files []*backuppb.DataFileInfo) []*backuppb.DataFileInfo { - slices.SortFunc(files, func(i, j *backuppb.DataFileInfo) bool { - if i.GetMinTs() < j.GetMinTs() { - return true - } else if i.GetMinTs() > j.GetMinTs() { - return false - } - - if i.GetMaxTs() < j.GetMaxTs() { - return true - } else if i.GetMaxTs() > j.GetMaxTs() { - return false + slices.SortFunc(files, func(i, j *backuppb.DataFileInfo) int { + if c := cmp.Compare(i.GetMinTs(), j.GetMinTs()); c != 0 { + return c } - - if i.GetResolvedTs() < j.GetResolvedTs() { - return true - } else if i.GetResolvedTs() > j.GetResolvedTs() { - return false + if c := cmp.Compare(i.GetMaxTs(), j.GetMaxTs()); c != 0 { + return c } - - return true + return cmp.Compare(i.GetResolvedTs(), j.GetResolvedTs()) }) return files } @@ -2485,8 +2474,8 @@ func (rc *Client) RestoreBatchMetaKVFiles( } // sort these entries. - slices.SortFunc(curKvEntries, func(i, j *KvEntryWithTS) bool { - return i.ts < j.ts + slices.SortFunc(curKvEntries, func(i, j *KvEntryWithTS) int { + return cmp.Compare(i.ts, j.ts) }) // restore these entries with rawPut() method. diff --git a/br/pkg/restore/db.go b/br/pkg/restore/db.go index 132e3294f1617..e3808d9d47670 100644 --- a/br/pkg/restore/db.go +++ b/br/pkg/restore/db.go @@ -3,6 +3,7 @@ package restore import ( + "cmp" "context" "fmt" "sync" @@ -396,8 +397,8 @@ func (db *DB) ensureTablePlacementPolicies(ctx context.Context, tableInfo *model // FilterDDLJobs filters ddl jobs. func FilterDDLJobs(allDDLJobs []*model.Job, tables []*metautil.Table) (ddlJobs []*model.Job) { // Sort the ddl jobs by schema version in descending order. - slices.SortFunc(allDDLJobs, func(i, j *model.Job) bool { - return i.BinlogInfo.SchemaVersion > j.BinlogInfo.SchemaVersion + slices.SortFunc(allDDLJobs, func(i, j *model.Job) int { + return cmp.Compare(j.BinlogInfo.SchemaVersion, i.BinlogInfo.SchemaVersion) }) dbs := getDatabases(tables) for _, db := range dbs { diff --git a/br/pkg/restore/main_test.go b/br/pkg/restore/main_test.go index a71c8db57c79f..7b6638e56ed0c 100644 --- a/br/pkg/restore/main_test.go +++ b/br/pkg/restore/main_test.go @@ -27,7 +27,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("github.com/klauspost/compress/zstd.(*blockDec).startDecoder"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), diff --git a/br/pkg/rtree/main_test.go b/br/pkg/rtree/main_test.go index dc57d20e599d0..23ffa41059682 100644 --- a/br/pkg/rtree/main_test.go +++ b/br/pkg/rtree/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/br/pkg/storage/BUILD.bazel b/br/pkg/storage/BUILD.bazel index 98cbe0a318d60..2f8ffc6083848 100644 --- a/br/pkg/storage/BUILD.bazel +++ b/br/pkg/storage/BUILD.bazel @@ -36,9 +36,14 @@ go_library( "@com_github_aws_aws_sdk_go//service/s3", "@com_github_aws_aws_sdk_go//service/s3/s3iface", "@com_github_aws_aws_sdk_go//service/s3/s3manager", + "@com_github_azure_azure_sdk_for_go_sdk_azcore//:azcore", "@com_github_azure_azure_sdk_for_go_sdk_azcore//policy", "@com_github_azure_azure_sdk_for_go_sdk_azidentity//:azidentity", "@com_github_azure_azure_sdk_for_go_sdk_storage_azblob//:azblob", + "@com_github_azure_azure_sdk_for_go_sdk_storage_azblob//blob", + "@com_github_azure_azure_sdk_for_go_sdk_storage_azblob//bloberror", + "@com_github_azure_azure_sdk_for_go_sdk_storage_azblob//blockblob", + "@com_github_azure_azure_sdk_for_go_sdk_storage_azblob//container", "@com_github_google_uuid//:uuid", "@com_github_klauspost_compress//gzip", "@com_github_klauspost_compress//snappy", @@ -82,6 +87,7 @@ go_test( "@com_github_aws_aws_sdk_go//aws/request", "@com_github_aws_aws_sdk_go//service/s3", "@com_github_azure_azure_sdk_for_go_sdk_storage_azblob//:azblob", + "@com_github_azure_azure_sdk_for_go_sdk_storage_azblob//bloberror", "@com_github_fsouza_fake_gcs_server//fakestorage", "@com_github_golang_mock//gomock", "@com_github_pingcap_errors//:errors", diff --git a/br/pkg/storage/azblob.go b/br/pkg/storage/azblob.go index f985af7d42155..a5fa5524e14b0 100644 --- a/br/pkg/storage/azblob.go +++ b/br/pkg/storage/azblob.go @@ -12,9 +12,14 @@ import ( "path" "strings" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blob" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/bloberror" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blockblob" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/container" "github.com/google/uuid" "github.com/pingcap/errors" backuppb "github.com/pingcap/kvproto/pkg/brpb" @@ -29,14 +34,17 @@ const ( azblobAccessTierOption = "azblob.access-tier" azblobAccountName = "azblob.account-name" azblobAccountKey = "azblob.account-key" + azblobSASToken = "azblob.sas-token" ) const azblobRetryTimes int32 = 5 func getDefaultClientOptions() *azblob.ClientOptions { return &azblob.ClientOptions{ - Retry: policy.RetryOptions{ - MaxRetries: azblobRetryTimes, + ClientOptions: azcore.ClientOptions{ + Retry: policy.RetryOptions{ + MaxRetries: azblobRetryTimes, + }, }, } } @@ -47,6 +55,7 @@ type AzblobBackendOptions struct { AccountName string `json:"account-name" toml:"account-name"` AccountKey string `json:"account-key" toml:"account-key"` AccessTier string `json:"access-tier" toml:"access-tier"` + SASToken string `json:"sas-token" toml:"sas-token"` } func (options *AzblobBackendOptions) apply(azblob *backuppb.AzureBlobStorage) error { @@ -54,6 +63,7 @@ func (options *AzblobBackendOptions) apply(azblob *backuppb.AzureBlobStorage) er azblob.StorageClass = options.AccessTier azblob.AccountName = options.AccountName azblob.SharedKey = options.AccountKey + return nil } @@ -62,6 +72,7 @@ func defineAzblobFlags(flags *pflag.FlagSet) { flags.String(azblobAccessTierOption, "", "Specify the storage class for azblob") flags.String(azblobAccountName, "", "Specify the account name for azblob") flags.String(azblobAccountKey, "", "Specify the account key for azblob") + flags.String(azblobSASToken, "", "Specify the SAS (shared access signatures) for azblob") } func hiddenAzblobFlags(flags *pflag.FlagSet) { @@ -69,6 +80,7 @@ func hiddenAzblobFlags(flags *pflag.FlagSet) { _ = flags.MarkHidden(azblobAccessTierOption) _ = flags.MarkHidden(azblobAccountName) _ = flags.MarkHidden(azblobAccountKey) + _ = flags.MarkHidden(azblobSASToken) } func (options *AzblobBackendOptions) parseFromFlags(flags *pflag.FlagSet) error { @@ -92,13 +104,19 @@ func (options *AzblobBackendOptions) parseFromFlags(flags *pflag.FlagSet) error if err != nil { return errors.Trace(err) } + + options.SASToken, err = flags.GetString(azblobSASToken) + if err != nil { + return errors.Trace(err) + } + return nil } // ClientBuilder provides common method to build a service client. type ClientBuilder interface { // Example of serviceURL: https://.blob.core.windows.net - GetServiceClient() (azblob.ServiceClient, error) + GetServiceClient() (*azblob.Client, error) GetAccountName() string } @@ -111,14 +129,31 @@ type sharedKeyClientBuilder struct { clientOptions *azblob.ClientOptions } -func (b *sharedKeyClientBuilder) GetServiceClient() (azblob.ServiceClient, error) { - return azblob.NewServiceClientWithSharedKey(b.serviceURL, b.cred, b.clientOptions) +func (b *sharedKeyClientBuilder) GetServiceClient() (*azblob.Client, error) { + return azblob.NewClientWithSharedKeyCredential(b.serviceURL, b.cred, b.clientOptions) } func (b *sharedKeyClientBuilder) GetAccountName() string { return b.accountName } +// use SAS to access azure blob storage +type sasClientBuilder struct { + accountName string + // Example of serviceURL: https://.blob.core.windows.net/? + serviceURL string + + clientOptions *azblob.ClientOptions +} + +func (b *sasClientBuilder) GetServiceClient() (*azblob.Client, error) { + return azblob.NewClientWithNoCredential(b.serviceURL, b.clientOptions) +} + +func (b *sasClientBuilder) GetAccountName() string { + return b.accountName +} + // use token to access azure blob storage type tokenClientBuilder struct { cred *azidentity.ClientSecretCredential @@ -128,8 +163,8 @@ type tokenClientBuilder struct { clientOptions *azblob.ClientOptions } -func (b *tokenClientBuilder) GetServiceClient() (azblob.ServiceClient, error) { - return azblob.NewServiceClient(b.serviceURL, b.cred, b.clientOptions) +func (b *tokenClientBuilder) GetServiceClient() (*azblob.Client, error) { + return azblob.NewClient(b.serviceURL, b.cred, b.clientOptions) } func (b *tokenClientBuilder) GetAccountName() string { @@ -150,7 +185,7 @@ func getAzureServiceClientBuilder(options *backuppb.AzureBlobStorage, opts *Exte clientOptions := getDefaultClientOptions() if opts != nil && opts.HTTPClient != nil { - clientOptions.Transporter = opts.HTTPClient + clientOptions.Transport = opts.HTTPClient } if len(options.AccountName) > 0 && len(options.SharedKey) > 0 { @@ -234,9 +269,12 @@ func getAzureServiceClientBuilder(options *backuppb.AzureBlobStorage, opts *Exte type AzureBlobStorage struct { options *backuppb.AzureBlobStorage - containerClient azblob.ContainerClient + containerClient *container.Client + + accessTier blob.AccessTier - accessTier azblob.AccessTier + cpkScope *blob.CPKScopeInfo + cpkInfo *blob.CPKInfo } func newAzureBlobStorage(ctx context.Context, options *backuppb.AzureBlobStorage, opts *ExternalStorageOptions) (*AzureBlobStorage, error) { @@ -254,29 +292,24 @@ func newAzureBlobStorageWithClientBuilder(ctx context.Context, options *backuppb return nil, errors.Annotate(err, "Failed to create azure service client") } - containerClient := serviceClient.NewContainerClient(options.Bucket) - _, err = containerClient.Create(ctx, nil) - if err != nil { - var errResp *azblob.StorageError - if internalErr, ok := err.(*azblob.InternalError); !(ok && internalErr.As(&errResp)) { - return nil, errors.Annotate(err, "Failed to create the container: error can not be parsed") - } - if errResp.ErrorCode != azblob.StorageErrorCodeContainerAlreadyExists { - return nil, errors.Annotate(err, fmt.Sprintf("Failed to create the container: %s", errResp.ErrorCode)) - } + containerClient := serviceClient.ServiceClient().NewContainerClient(options.Bucket) + if _, err = containerClient.GetProperties(ctx, &container.GetPropertiesOptions{}); err != nil { + return nil, errors.Trace(err) } + var cpkScope *blob.CPKScopeInfo = nil + var cpkInfo *blob.CPKInfo = nil // parse storage access-tier - var accessTier azblob.AccessTier + var accessTier blob.AccessTier switch options.StorageClass { case "Archive", "archive": - accessTier = azblob.AccessTierArchive + accessTier = blob.AccessTierArchive case "Cool", "cool": - accessTier = azblob.AccessTierCool + accessTier = blob.AccessTierCool case "Hot", "hot": - accessTier = azblob.AccessTierHot + accessTier = blob.AccessTierHot default: - accessTier = azblob.AccessTier(options.StorageClass) + accessTier = blob.AccessTier(options.StorageClass) } log.Debug("select accessTier", zap.String("accessTier", string(accessTier))) @@ -285,6 +318,8 @@ func newAzureBlobStorageWithClientBuilder(ctx context.Context, options *backuppb options, containerClient, accessTier, + cpkScope, + cpkInfo, }, nil } @@ -295,29 +330,39 @@ func (s *AzureBlobStorage) withPrefix(name string) string { // WriteFile writes a file to Azure Blob Storage. func (s *AzureBlobStorage) WriteFile(ctx context.Context, name string, data []byte) error { client := s.containerClient.NewBlockBlobClient(s.withPrefix(name)) - resp, err := client.UploadBufferToBlockBlob(ctx, data, azblob.HighLevelUploadToBlockBlobOption{AccessTier: &s.accessTier}) + // the encryption scope/key and the access tier can not be both in the HTTP headers + options := &blockblob.UploadBufferOptions{ + CPKScopeInfo: s.cpkScope, + CPKInfo: s.cpkInfo, + } + + if len(s.accessTier) > 0 { + options.AccessTier = &s.accessTier + } + _, err := client.UploadBuffer(ctx, data, options) if err != nil { return errors.Annotatef(err, "Failed to write azure blob file, file info: bucket(container)='%s', key='%s'", s.options.Bucket, s.withPrefix(name)) } - defer resp.Body.Close() return nil } // ReadFile reads a file from Azure Blob Storage. func (s *AzureBlobStorage) ReadFile(ctx context.Context, name string) ([]byte, error) { client := s.containerClient.NewBlockBlobClient(s.withPrefix(name)) - resp, err := client.Download(ctx, nil) + resp, err := client.DownloadStream(ctx, &blob.DownloadStreamOptions{ + CPKInfo: s.cpkInfo, + }) if err != nil { return nil, errors.Annotatef(err, "Failed to download azure blob file, file info: bucket(container)='%s', key='%s'", s.options.Bucket, s.withPrefix(name)) } - defer resp.RawResponse.Body.Close() - data, err := io.ReadAll(resp.Body(azblob.RetryReaderOptions{ - MaxRetryRequests: int(azblobRetryTimes), - })) + body := resp.NewRetryReader(ctx, &blob.RetryReaderOptions{ + MaxRetries: azblobRetryTimes, + }) + data, err := io.ReadAll(body) if err != nil { return nil, errors.Annotatef(err, "Failed to read azure blob file, file info: bucket(container)='%s', key='%s'", s.options.Bucket, s.withPrefix(name)) } - return data, err + return data, body.Close() } // FileExists checks if a file exists in Azure Blob Storage. @@ -325,11 +370,8 @@ func (s *AzureBlobStorage) FileExists(ctx context.Context, name string) (bool, e client := s.containerClient.NewBlockBlobClient(s.withPrefix(name)) _, err := client.GetProperties(ctx, nil) if err != nil { - var errResp *azblob.StorageError - if internalErr, ok := err.(*azblob.InternalError); ok && internalErr.As(&errResp) { - if errResp.ErrorCode == azblob.StorageErrorCodeBlobNotFound { - return false, nil - } + if bloberror.HasCode(err, bloberror.BlobNotFound) { + return false, nil } return false, errors.Trace(err) } @@ -346,15 +388,39 @@ func (s *AzureBlobStorage) DeleteFile(ctx context.Context, name string) error { return nil } +// DeleteFile deletes the files with the given names. +func (s *AzureBlobStorage) DeleteFiles(ctx context.Context, names []string) error { + for _, name := range names { + err := s.DeleteFile(ctx, name) + if err != nil { + return err + } + } + return nil +} + // Open implements the StorageReader interface. func (s *AzureBlobStorage) Open(ctx context.Context, name string) (ExternalFileReader, error) { client := s.containerClient.NewBlockBlobClient(s.withPrefix(name)) + resp, err := client.GetProperties(ctx, nil) + if err != nil { + return nil, errors.Annotate(err, "Failed to get properties from the azure blob") + } + + pos := int64(0) + totalSize := *resp.ContentLength + endPos := totalSize + return &azblobObjectReader{ blobClient: client, - pos: 0, + pos: pos, + endPos: endPos, + totalSize: totalSize, ctx: ctx, + + cpkInfo: s.cpkInfo, }, nil } @@ -363,32 +429,24 @@ func (s *AzureBlobStorage) WalkDir(ctx context.Context, opt *WalkOption, fn func if opt == nil { opt = &WalkOption{} } - if len(opt.ObjPrefix) != 0 { - return errors.New("azure storage not support ObjPrefix for now") - } prefix := path.Join(s.options.Prefix, opt.SubDir) if len(prefix) > 0 && !strings.HasSuffix(prefix, "/") { prefix += "/" } + if len(opt.ObjPrefix) != 0 { + prefix += opt.ObjPrefix + } - listOption := &azblob.ContainerListBlobFlatSegmentOptions{Prefix: &prefix} - for { - respIter := s.containerClient.ListBlobsFlat(listOption) - - err := respIter.Err() + pager := s.containerClient.NewListBlobsFlatPager(&container.ListBlobsFlatOptions{ + Prefix: &prefix, + }) + for pager.More() { + page, err := pager.NextPage(ctx) if err != nil { return errors.Annotatef(err, "Failed to list azure blobs, bucket(container)='%s'", s.options.Bucket) } - if !respIter.NextPage(ctx) { - err := respIter.Err() - if err != nil { - return errors.Annotatef(err, "Failed to list azure blobs, bucket(container)='%s'", s.options.Bucket) - } - break - } - - for _, blob := range respIter.PageResponse().Segment.BlobItems { + for _, blob := range page.Segment.BlobItems { // when walk on specify directory, the result include storage.Prefix, // which can not be reuse in other API(Open/Read) directly. // so we use TrimPrefix to filter Prefix for next Open/Read. @@ -399,11 +457,6 @@ func (s *AzureBlobStorage) WalkDir(ctx context.Context, opt *WalkOption, fn func return errors.Trace(err) } } - - listOption.Marker = respIter.PageResponse().NextMarker - if len(*listOption.Marker) == 0 { - break - } } return nil @@ -414,6 +467,8 @@ func (s *AzureBlobStorage) URI() string { return "azure://" + s.options.Bucket + "/" + s.options.Prefix } +const azblobChunkSize = 64 * 1024 * 1024 + // Create implements the StorageWriter interface. func (s *AzureBlobStorage) Create(_ context.Context, name string, _ *WriterOption) (ExternalFileWriter, error) { client := s.containerClient.NewBlockBlobClient(s.withPrefix(name)) @@ -423,9 +478,12 @@ func (s *AzureBlobStorage) Create(_ context.Context, name string, _ *WriterOptio blockIDList: make([]string, 0, 4), accessTier: s.accessTier, + + cpkScope: s.cpkScope, + cpkInfo: s.cpkInfo, } - uploaderWriter := newBufferedWriter(uploader, azblob.BlockBlobMaxUploadBlobBytes, NoCompression) + uploaderWriter := newBufferedWriter(uploader, azblobChunkSize, NoCompression) return uploaderWriter, nil } @@ -442,31 +500,53 @@ func (s *AzureBlobStorage) Rename(ctx context.Context, oldFileName, newFileName return s.DeleteFile(ctx, oldFileName) } +// Close implements the ExternalStorage interface. +func (*AzureBlobStorage) Close() {} + type azblobObjectReader struct { - blobClient azblob.BlockBlobClient + blobClient *blockblob.Client - pos int64 + pos int64 + endPos int64 + totalSize int64 ctx context.Context + + cpkInfo *blob.CPKInfo + // opened lazily + reader io.ReadCloser } // Read implement the io.Reader interface. func (r *azblobObjectReader) Read(p []byte) (n int, err error) { - count := int64(len(p)) - resp, err := r.blobClient.Download(r.ctx, &azblob.DownloadBlobOptions{Offset: &r.pos, Count: &count}) - if err != nil { - return 0, errors.Annotatef(err, "Failed to read data from azure blob, data info: pos='%d', count='%d'", r.pos, count) + maxCnt := r.endPos - r.pos + if maxCnt > int64(len(p)) { + maxCnt = int64(len(p)) + } + if maxCnt == 0 { + return 0, io.EOF } - n, err = resp.Body(azblob.RetryReaderOptions{}).Read(p) + if r.reader == nil { + if err2 := r.reopenReader(); err2 != nil { + return 0, err2 + } + } + buf := p[:maxCnt] + n, err = r.reader.Read(buf) if err != nil && err != io.EOF { - return 0, errors.Annotatef(err, "Failed to read data from azure blob response, data info: pos='%d', count='%d'", r.pos, count) + return 0, errors.Annotatef(err, "Failed to read data from azure blob response, data info: pos='%d', count='%d'", r.pos, maxCnt) } r.pos += int64(n) return n, nil } // Close implement the io.Closer interface. -func (*azblobObjectReader) Close() error { +func (r *azblobObjectReader) Close() error { + if r.reader != nil { + err := errors.Trace(r.reader.Close()) + r.reader = nil + return err + } return nil } @@ -484,29 +564,54 @@ func (r *azblobObjectReader) Seek(offset int64, whence int) (int64, error) { return 0, errors.Annotatef(berrors.ErrInvalidArgument, "Seek: offset '%v' out of range. current pos is '%v'.", offset, r.pos) } case io.SeekEnd: - if offset >= 0 { + if offset > 0 { return 0, errors.Annotatef(berrors.ErrInvalidArgument, "Seek: offset '%v' should be negative.", offset) } - realOffset = offset + realOffset = offset + r.totalSize default: return 0, errors.Annotatef(berrors.ErrStorageUnknown, "Seek: invalid whence '%d'", whence) } - if realOffset < 0 { - resp, err := r.blobClient.GetProperties(r.ctx, nil) + if realOffset < 0 || realOffset > r.totalSize { + return 0, errors.Annotatef(berrors.ErrInvalidArgument, "Seek: offset is %d, but length of content is only %d", realOffset, r.totalSize) + } + if realOffset == r.pos { + return r.pos, nil + } + r.pos = realOffset + // azblob reader can only read forward, so we need to reopen the reader + if err := r.reopenReader(); err != nil { + return 0, err + } + return r.pos, nil +} + +func (r *azblobObjectReader) reopenReader() error { + if r.reader != nil { + err := errors.Trace(r.reader.Close()) if err != nil { - return 0, errors.Annotate(err, "Failed to get properties from the azure blob") + log.Warn("failed to close azblob reader", zap.Error(err)) } + } - contentLength := *resp.ContentLength - r.pos = contentLength + realOffset - if r.pos < 0 { - return 0, errors.Annotatef(err, "Seek: offset is %d, but length of content is only %d", realOffset, contentLength) - } - } else { - r.pos = realOffset + resp, err := r.blobClient.DownloadStream(r.ctx, &blob.DownloadStreamOptions{ + Range: blob.HTTPRange{ + Offset: r.pos, + }, + CPKInfo: r.cpkInfo, + }) + if err != nil { + return errors.Annotatef(err, "Failed to read data from azure blob, data info: pos='%d'", r.pos) } - return r.pos, nil + body := resp.NewRetryReader(r.ctx, &blob.RetryReaderOptions{ + MaxRetries: azblobRetryTimes, + }) + r.reader = body + return nil +} + +func (r *azblobObjectReader) GetFileSize() (int64, error) { + return r.totalSize, nil } type nopCloser struct { @@ -522,11 +627,14 @@ func (nopCloser) Close() error { } type azblobUploader struct { - blobClient azblob.BlockBlobClient + blobClient *blockblob.Client blockIDList []string - accessTier azblob.AccessTier + accessTier blob.AccessTier + + cpkScope *blob.CPKScopeInfo + cpkInfo *blob.CPKInfo } func (u *azblobUploader) Write(ctx context.Context, data []byte) (int, error) { @@ -536,7 +644,10 @@ func (u *azblobUploader) Write(ctx context.Context, data []byte) (int, error) { } blockID := base64.StdEncoding.EncodeToString([]byte(generatedUUID.String())) - _, err = u.blobClient.StageBlock(ctx, blockID, newNopCloser(bytes.NewReader(data)), nil) + _, err = u.blobClient.StageBlock(ctx, blockID, newNopCloser(bytes.NewReader(data)), &blockblob.StageBlockOptions{ + CPKScopeInfo: u.cpkScope, + CPKInfo: u.cpkInfo, + }) if err != nil { return 0, errors.Annotate(err, "Failed to upload block to azure blob") } @@ -546,6 +657,15 @@ func (u *azblobUploader) Write(ctx context.Context, data []byte) (int, error) { } func (u *azblobUploader) Close(ctx context.Context) error { - _, err := u.blobClient.CommitBlockList(ctx, u.blockIDList, &azblob.CommitBlockListOptions{Tier: &u.accessTier}) + // the encryption scope and the access tier can not be both in the HTTP headers + options := &blockblob.CommitBlockListOptions{ + CPKScopeInfo: u.cpkScope, + CPKInfo: u.cpkInfo, + } + + if len(u.accessTier) > 0 { + options.Tier = &u.accessTier + } + _, err := u.blobClient.CommitBlockList(ctx, u.blockIDList, options) return errors.Trace(err) } diff --git a/br/pkg/storage/azblob_test.go b/br/pkg/storage/azblob_test.go index 74ddfa7125699..0aac850327e5e 100644 --- a/br/pkg/storage/azblob_test.go +++ b/br/pkg/storage/azblob_test.go @@ -14,6 +14,8 @@ import ( "testing" "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/bloberror" + "github.com/pingcap/errors" backuppb "github.com/pingcap/kvproto/pkg/brpb" "github.com/stretchr/testify/require" ) @@ -22,31 +24,52 @@ import ( type sharedKeyAzuriteClientBuilder struct { } -func (b *sharedKeyAzuriteClientBuilder) GetServiceClient() (azblob.ServiceClient, error) { +func (b *sharedKeyAzuriteClientBuilder) GetServiceClient() (*azblob.Client, error) { connStr := "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;" - return azblob.NewServiceClientFromConnectionString(connStr, nil) + return azblob.NewClientFromConnectionString(connStr, nil) } func (b *sharedKeyAzuriteClientBuilder) GetAccountName() string { return "devstoreaccount1" } +func createContainer( + ctx context.Context, + clientBuilder *sharedKeyAzuriteClientBuilder, + container string, +) (bool, error) { + serviceClient, err := clientBuilder.GetServiceClient() + if err != nil { + return false, errors.Annotate(err, "Failed to create azure service client") + } + containerClient := serviceClient.ServiceClient().NewContainerClient(container) + _, err = containerClient.Create(ctx, nil) + if err != nil && !bloberror.HasCode(err, bloberror.ContainerAlreadyExists) { + if strings.Contains(err.Error(), "connect: connection refused") { + return true, nil + } + return false, errors.Annotate(err, "Failed to create container") + } + return false, nil +} + func TestAzblob(t *testing.T) { ctx := context.Background() options := &backuppb.AzureBlobStorage{ Bucket: "test", Prefix: "a/b/", } - - azblobStorage, err := newAzureBlobStorageWithClientBuilder(ctx, options, &sharedKeyAzuriteClientBuilder{}) - if err != nil { - if strings.Contains(err.Error(), "connect: connection refused") { - t.Log("azurite is not running, skip test") - return - } + builder := &sharedKeyAzuriteClientBuilder{} + skip, err := createContainer(ctx, builder, options.Bucket) + if skip || err != nil { + t.Skip("azurite is not running, skip test") + return } require.NoError(t, err) + azblobStorage, err := newAzureBlobStorageWithClientBuilder(ctx, options, builder) + require.NoError(t, err) + err = azblobStorage.WriteFile(ctx, "key", []byte("data")) require.NoError(t, err) @@ -307,9 +330,9 @@ type fakeClientBuilder struct { Endpoint string } -func (b *fakeClientBuilder) GetServiceClient() (azblob.ServiceClient, error) { +func (b *fakeClientBuilder) GetServiceClient() (*azblob.Client, error) { connStr := fmt.Sprintf("DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=%s/devstoreaccount1;", b.Endpoint) - return azblob.NewServiceClientFromConnectionString(connStr, getDefaultClientOptions()) + return azblob.NewClientFromConnectionString(connStr, getDefaultClientOptions()) } func (b *fakeClientBuilder) GetAccountName() string { @@ -322,7 +345,7 @@ func TestDownloadRetry(t *testing.T) { server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { t.Log(r.URL) if strings.Contains(r.URL.String(), "restype=container") { - w.WriteHeader(201) + w.WriteHeader(200) return } lock.Lock() @@ -339,8 +362,9 @@ func TestDownloadRetry(t *testing.T) { t.Log(server.URL) options := &backuppb.AzureBlobStorage{ - Bucket: "test", - Prefix: "a/b/", + Bucket: "test", + Prefix: "a/b/", + StorageClass: "Hot", } ctx := context.Background() diff --git a/br/pkg/streamhelper/integration_test.go b/br/pkg/streamhelper/integration_test.go index 4b989dc4ab2ba..f6f2fb1504e00 100644 --- a/br/pkg/streamhelper/integration_test.go +++ b/br/pkg/streamhelper/integration_test.go @@ -50,8 +50,8 @@ func runEtcd(t *testing.T) (*embed.Etcd, *clientv3.Client) { cfg := embed.NewConfig() cfg.Dir = t.TempDir() clientURL := getRandomLocalAddr() - cfg.LCUrls = []url.URL{clientURL} - cfg.LPUrls = []url.URL{getRandomLocalAddr()} + cfg.ListenClientUrls = []url.URL{clientURL} + cfg.ListenPeerUrls = []url.URL{getRandomLocalAddr()} cfg.LogLevel = "fatal" etcd, err := embed.StartEtcd(cfg) if err != nil { diff --git a/br/pkg/summary/main_test.go b/br/pkg/summary/main_test.go index e167e079b78ff..9150de5865620 100644 --- a/br/pkg/summary/main_test.go +++ b/br/pkg/summary/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/br/pkg/task/stream.go b/br/pkg/task/stream.go index 6f508c9a5bf27..0777828d4bb91 100644 --- a/br/pkg/task/stream.go +++ b/br/pkg/task/stream.go @@ -401,8 +401,8 @@ func (s *streamMgr) buildObserveRanges(ctx context.Context) ([]kv.KeyRange, erro mRange := stream.BuildObserveMetaRange() rs := append([]kv.KeyRange{*mRange}, dRanges...) - slices.SortFunc(rs, func(i, j kv.KeyRange) bool { - return bytes.Compare(i.StartKey, j.StartKey) < 0 + slices.SortFunc(rs, func(i, j kv.KeyRange) int { + return bytes.Compare(i.StartKey, j.StartKey) }) return rs, nil diff --git a/br/pkg/trace/main_test.go b/br/pkg/trace/main_test.go index 299dc7a11398f..0c69a7c12f4d9 100644 --- a/br/pkg/trace/main_test.go +++ b/br/pkg/trace/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/br/pkg/trace/tracing.go b/br/pkg/trace/tracing.go index ff961367ff282..34f60251ec5ae 100644 --- a/br/pkg/trace/tracing.go +++ b/br/pkg/trace/tracing.go @@ -88,7 +88,7 @@ func dfsTree(t *appdash.Trace, prefix string, isLast bool, tub *tabby.Tabby) { tub.AddLine(prefix+suffix+t.Span.Name(), start.Format("15:04:05.000000"), duration.String()) // Sort events by their start time - slices.SortFunc(t.Sub, func(i, j *appdash.Trace) bool { + slices.SortFunc(t.Sub, func(i, j *appdash.Trace) int { var istart, jstart time.Time if ievent, err := i.TimespanEvent(); err == nil { istart = ievent.Start() @@ -96,7 +96,7 @@ func dfsTree(t *appdash.Trace, prefix string, isLast bool, tub *tabby.Tabby) { if jevent, err := j.TimespanEvent(); err == nil { jstart = jevent.Start() } - return istart.Before(jstart) + return istart.Compare(jstart) }) for i, sp := range t.Sub { diff --git a/br/pkg/utils/main_test.go b/br/pkg/utils/main_test.go index f1a0e7c1e39e5..516eb946fdfc7 100644 --- a/br/pkg/utils/main_test.go +++ b/br/pkg/utils/main_test.go @@ -23,7 +23,7 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), } diff --git a/build/BUILD.bazel b/build/BUILD.bazel index aa885fdec93c0..6ed7c7d51cd0b 100644 --- a/build/BUILD.bazel +++ b/build/BUILD.bazel @@ -1,6 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_go//go:def.bzl", "nogo") +load("@io_bazel_rules_go//go:def.bzl", "go_library", "nogo") load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") load("//build/linter/staticcheck:def.bzl", "staticcheck_analyzers") @@ -28,9 +28,9 @@ STATICHECK_ANALYZERS = [ "S1006", "S1007", "S1008", - "S1009", + #"S1009", "S1010", - "S1011", + #"S1011", "S1012", "S1016", "S1017", @@ -108,7 +108,7 @@ nogo( "@org_golang_x_tools//go/analysis/passes/nilfunc:go_default_library", "@org_golang_x_tools//go/analysis/passes/nilness:go_default_library", "@org_golang_x_tools//go/analysis/passes/pkgfact:go_default_library", - "@org_golang_x_tools//go/analysis/passes/printf:go_default_library", + #"@org_golang_x_tools//go/analysis/passes/printf:go_default_library", "@org_golang_x_tools//go/analysis/passes/shift:go_default_library", "@org_golang_x_tools//go/analysis/passes/sortslice:go_default_library", "@org_golang_x_tools//go/analysis/passes/stdmethods:go_default_library", @@ -124,27 +124,35 @@ nogo( "//build/linter/bodyclose", "//build/linter/durationcheck", "//build/linter/etcdconfig", - "//build/linter/exportloopref", "//build/linter/forcetypeassert", "//build/linter/gofmt", "//build/linter/gci", - "//build/linter/gosec", - "//build/linter/ineffassign", + #"//build/linter/gosec", + #"//build/linter/ineffassign", "//build/linter/makezero", "//build/linter/misspell", - "//build/linter/noloopclosure", "//build/linter/prealloc", - "//build/linter/predeclared", + #"//build/linter/predeclared", "//build/linter/unconvert", - "//build/linter/rowserrcheck", + #"//build/linter/rowserrcheck", ] + staticcheck_analyzers(STATICHECK_ANALYZERS) + select({ "//build:with_nogo": [ - "//build/linter/allrevive", - "//build/linter/errcheck", + #"//build/linter/allrevive", + #"//build/linter/errcheck", "//build/linter/filepermission", - "//build/linter/revive", + #"//build/linter/revive", ], "//conditions:default": [], }), ) + +go_library( + name = "build", + srcs = ["config.go"], + embedsrcs = [ + "nogo_config.json", + ], + importpath = "github.com/pingcap/tidb/build", + visibility = ["//visibility:public"], +) diff --git a/build/config.go b/build/config.go new file mode 100644 index 0000000000000..7bdbc5608c38c --- /dev/null +++ b/build/config.go @@ -0,0 +1,42 @@ +// Copyright 2023 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package build + +import ( + _ "embed" + "encoding/json" +) + +//go:embed nogo_config.json +var configFile []byte + +// NogoConfig is the nogo config file +var NogoConfig NogoConfigFormat + +// NogoConfigFormat is the format of the nogo config file +type NogoConfigFormat map[string]AnalysisConfig + +// AnalysisConfig represents the config of an analysis pass +type AnalysisConfig struct { + ExcludeFiles map[string]string `json:"exclude_files"` + OnlyFiles map[string]string `json:"only_files"` +} + +func init() { + err := json.Unmarshal(configFile, &NogoConfig) + if err != nil { + panic("fail to parse nogo_config.json") + } +} diff --git a/build/linter/BUILD.bazel b/build/linter/BUILD.bazel new file mode 100644 index 0000000000000..e5407284430fa --- /dev/null +++ b/build/linter/BUILD.bazel @@ -0,0 +1,9 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "linter", + srcs = ["linter.go"], + importpath = "github.com/pingcap/tidb/build/linter", + visibility = ["//visibility:public"], + deps = ["@com_github_apache_skywalking_eyes//pkg/config"], +) diff --git a/build/linter/allrevive/BUILD.bazel b/build/linter/allrevive/BUILD.bazel index b13604af6eef3..6e5ab459f3c5f 100644 --- a/build/linter/allrevive/BUILD.bazel +++ b/build/linter/allrevive/BUILD.bazel @@ -7,6 +7,7 @@ go_library( visibility = ["//visibility:public"], deps = [ "//build/linter/util", + "@com_github_hashicorp_go_version//:go-version", "@com_github_mgechev_revive//config", "@com_github_mgechev_revive//lint", "@com_github_mgechev_revive//rule", diff --git a/build/linter/allrevive/analyzer.go b/build/linter/allrevive/analyzer.go index efdccf67d21a7..eba5b0fd6af9a 100644 --- a/build/linter/allrevive/analyzer.go +++ b/build/linter/allrevive/analyzer.go @@ -16,10 +16,10 @@ package allrevive import ( "encoding/json" - "fmt" "go/token" "os" + goversion "github.com/hashicorp/go-version" "github.com/mgechev/revive/config" "github.com/mgechev/revive/lint" "github.com/mgechev/revive/rule" @@ -37,6 +37,7 @@ var Analyzer = &analysis.Analyzer{ } func init() { + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } @@ -88,11 +89,11 @@ var allRules = append([]lint.Rule{ &rule.ConstantLogicalExprRule{}, &rule.BoolLiteralRule{}, //&rule.RedefinesBuiltinIDRule{}, - &rule.ImportsBlacklistRule{}, + &rule.BlankImportsRule{}, //&rule.FunctionResultsLimitRule{}, //&rule.MaxPublicStructsRule{}, - &rule.RangeValInClosureRule{}, - &rule.RangeValAddress{}, + //&rule.RangeValInClosureRule{}, + //&rule.RangeValAddress{}, &rule.WaitGroupByValueRule{}, &rule.AtomicRule{}, &rule.EmptyLinesRule{}, @@ -106,7 +107,7 @@ var allRules = append([]lint.Rule{ //&rule.CognitiveComplexityRule{}, &rule.StringOfIntRule{}, &rule.StringFormatRule{}, - //&rule.EarlyReturnRule{}, + &rule.EarlyReturnRule{}, &rule.UnconditionalRecursionRule{}, &rule.IdenticalBranchesRule{}, &rule.DeferRule{}, @@ -126,9 +127,13 @@ func run(pass *analysis.Pass) (any, error) { files = append(files, pass.Fset.PositionFor(file.Pos(), false).Filename) } packages := [][]string{files} - + gv, err := goversion.NewVersion("1.21") + if err != nil { + panic(err) + } revive := lint.New(os.ReadFile, 1024) conf := lint.Config{ + GoVersion: gv, IgnoreGeneratedHeader: false, Confidence: 0.8, Severity: "error", @@ -140,7 +145,7 @@ func run(pass *analysis.Pass) (any, error) { conf.Rules[r.Name()] = lint.RuleConfig{} } conf.Rules["defer"] = lint.RuleConfig{ - Arguments: []interface{}{[]interface{}{"loop", "method-call", "immediate-recover", "return"}}, + Arguments: []any{[]any{"loop", "method-call", "immediate-recover", "return"}}, } lintingRules, err := config.GetLintingRules(&conf, []lint.Rule{}) @@ -187,12 +192,12 @@ func run(pass *analysis.Pass) (any, error) { } for i := range results { res := &results[i] - text := fmt.Sprintf("%s: %s", res.RuleName, res.Failure.Failure) fileContent, tf, err := util.ReadFile(pass.Fset, res.Position.Start.Filename) if err != nil { panic(err) } - pass.Reportf(token.Pos(tf.Base()+util.FindOffset(string(fileContent), res.Position.Start.Line, res.Position.Start.Column)), text) + pass.Reportf(token.Pos(tf.Base()+util.FindOffset(string(fileContent), res.Position.Start.Line, res.Position.Start.Column)), + "%s: %s", res.RuleName, res.Failure.Failure) } return nil, nil } diff --git a/build/linter/asciicheck/BUILD.bazel b/build/linter/asciicheck/BUILD.bazel index f686bc348ca2c..a4eae8a573d48 100644 --- a/build/linter/asciicheck/BUILD.bazel +++ b/build/linter/asciicheck/BUILD.bazel @@ -5,5 +5,8 @@ go_library( srcs = ["analysis.go"], importpath = "github.com/pingcap/tidb/build/linter/asciicheck", visibility = ["//visibility:public"], - deps = ["@com_github_tdakkota_asciicheck//:asciicheck"], + deps = [ + "//build/linter/util", + "@com_github_tdakkota_asciicheck//:asciicheck", + ], ) diff --git a/build/linter/asciicheck/analysis.go b/build/linter/asciicheck/analysis.go index c78c5db3fd066..ce210e5c6596b 100644 --- a/build/linter/asciicheck/analysis.go +++ b/build/linter/asciicheck/analysis.go @@ -14,7 +14,14 @@ package asciicheck -import "github.com/tdakkota/asciicheck" +import ( + "github.com/pingcap/tidb/build/linter/util" + "github.com/tdakkota/asciicheck" +) // Analyzer is the analyzer struct of asciicheck. var Analyzer = asciicheck.NewAnalyzer() + +func init() { + util.SkipAnalyzerByConfig(Analyzer) +} diff --git a/build/linter/durationcheck/analyzer.go b/build/linter/durationcheck/analyzer.go index 1ebee429959fd..fe571f23c9f95 100644 --- a/build/linter/durationcheck/analyzer.go +++ b/build/linter/durationcheck/analyzer.go @@ -23,5 +23,6 @@ import ( var Analyzer = durationcheck.Analyzer func init() { + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } diff --git a/build/linter/errcheck/analyzer.go b/build/linter/errcheck/analyzer.go index ea5049689059e..49f374e09695d 100644 --- a/build/linter/errcheck/analyzer.go +++ b/build/linter/errcheck/analyzer.go @@ -34,5 +34,6 @@ func init() { if err != nil { log.Fatal(err) } + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } diff --git a/build/linter/errcheck/errcheck_excludes.txt b/build/linter/errcheck/errcheck_excludes.txt index c6492845207f9..2ac78431d61ed 100644 --- a/build/linter/errcheck/errcheck_excludes.txt +++ b/build/linter/errcheck/errcheck_excludes.txt @@ -13,7 +13,7 @@ fmt.Sscanf (*bufio.Writer).Flush (*google.golang.org/grpc.ClientConn).Close (*github.com/pingcap/tidb/util/sqlexec.RecordSet).Close -(*github.com/pingcap/tidb/br/pkg/lightning/mydump.blockParser).Close +(*github.com/pingcap/tidb/pkg/lightning/mydump.blockParser).Close (*github.com/pingcap/tidb/kv.Storage).Close (*database/sql.DB).Close (*database/sql.Rows).Close diff --git a/build/linter/etcdconfig/BUILD.bazel b/build/linter/etcdconfig/BUILD.bazel index beff516fd4837..17fa61e2adfb9 100644 --- a/build/linter/etcdconfig/BUILD.bazel +++ b/build/linter/etcdconfig/BUILD.bazel @@ -6,6 +6,7 @@ go_library( importpath = "github.com/pingcap/tidb/build/linter/etcdconfig", visibility = ["//visibility:public"], deps = [ + "//build/linter/util", "@org_golang_x_tools//go/analysis", "@org_golang_x_tools//go/analysis/passes/inspect", ], diff --git a/build/linter/etcdconfig/analyzer.go b/build/linter/etcdconfig/analyzer.go index 566a920a2f10e..265a48e3e30f9 100644 --- a/build/linter/etcdconfig/analyzer.go +++ b/build/linter/etcdconfig/analyzer.go @@ -17,6 +17,7 @@ package etcdconfig import ( "go/ast" + "github.com/pingcap/tidb/build/linter/util" "golang.org/x/tools/go/analysis" "golang.org/x/tools/go/analysis/passes/inspect" ) @@ -35,20 +36,9 @@ const ( configStructName = "Config" ) -// Adapted from https://github.com/mdempsky/unconvert/blob/beb68d938016d2dec1d1b078054f4d3db25f97be/unconvert.go#L371-L414. -func run(pass *analysis.Pass) (interface{}, error) { +func run(pass *analysis.Pass) (any, error) { for _, file := range pass.Files { - packageName := "" - for _, spec := range file.Imports { - if spec.Path.Value != "\""+configPackagePath+"\"" { - continue - } - if spec.Name != nil { - packageName = spec.Name.Name - } else { - packageName = configPackageName - } - } + packageName := util.GetPackageName(file.Imports, configPackagePath, configPackageName) if packageName == "" { continue } @@ -98,3 +88,6 @@ func run(pass *analysis.Pass) (interface{}, error) { } return nil, nil } +func init() { + util.SkipAnalyzerByConfig(Analyzer) +} diff --git a/build/linter/filepermission/BUILD.bazel b/build/linter/filepermission/BUILD.bazel index 1062b955877a6..0528c637d9b03 100644 --- a/build/linter/filepermission/BUILD.bazel +++ b/build/linter/filepermission/BUILD.bazel @@ -5,5 +5,8 @@ go_library( srcs = ["checker.go"], importpath = "github.com/pingcap/tidb/build/linter/filepermission", visibility = ["//visibility:public"], - deps = ["@org_golang_x_tools//go/analysis"], + deps = [ + "//build/linter/util", + "@org_golang_x_tools//go/analysis", + ], ) diff --git a/build/linter/filepermission/checker.go b/build/linter/filepermission/checker.go index c2aa6162796ce..4bef08c7d067d 100644 --- a/build/linter/filepermission/checker.go +++ b/build/linter/filepermission/checker.go @@ -17,6 +17,7 @@ package filepermission import ( "os" + "github.com/pingcap/tidb/build/linter/util" "golang.org/x/tools/go/analysis" ) @@ -30,7 +31,7 @@ var Analyzer = &analysis.Analyzer{ Run: run, } -func run(pass *analysis.Pass) (interface{}, error) { +func run(pass *analysis.Pass) (any, error) { for _, f := range pass.Files { fn := pass.Fset.PositionFor(f.Pos(), false).Filename if fn != "" { @@ -46,3 +47,7 @@ func run(pass *analysis.Pass) (interface{}, error) { return nil, nil } + +func init() { + util.SkipAnalyzerByConfig(Analyzer) +} diff --git a/build/linter/forcetypeassert/analysis.go b/build/linter/forcetypeassert/analysis.go index de7469fa337e9..eb95da1036d8d 100644 --- a/build/linter/forcetypeassert/analysis.go +++ b/build/linter/forcetypeassert/analysis.go @@ -23,5 +23,6 @@ import ( var Analyzer = forcetypeassert.Analyzer func init() { + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } diff --git a/build/linter/gci/BUILD.bazel b/build/linter/gci/BUILD.bazel index b1495627c85a7..4b858b6fb3dcb 100644 --- a/build/linter/gci/BUILD.bazel +++ b/build/linter/gci/BUILD.bazel @@ -6,6 +6,7 @@ go_library( importpath = "github.com/pingcap/tidb/build/linter/gci", visibility = ["//visibility:public"], deps = [ + "//build/linter/util", "@com_github_daixiang0_gci//pkg/config", "@com_github_daixiang0_gci//pkg/gci", "@org_golang_x_tools//go/analysis", diff --git a/build/linter/gci/analysis.go b/build/linter/gci/analysis.go index a7ad2f9e32bd4..8ca5cb884359b 100644 --- a/build/linter/gci/analysis.go +++ b/build/linter/gci/analysis.go @@ -20,6 +20,7 @@ import ( "github.com/daixiang0/gci/pkg/config" "github.com/daixiang0/gci/pkg/gci" + "github.com/pingcap/tidb/build/linter/util" "golang.org/x/tools/go/analysis" ) @@ -65,3 +66,7 @@ func run(pass *analysis.Pass) (any, error) { return nil, nil } + +func init() { + util.SkipAnalyzerByConfig(Analyzer) +} diff --git a/build/linter/gofmt/BUILD.bazel b/build/linter/gofmt/BUILD.bazel index c21e7e7e9fe40..cc1b3eef5e5d9 100644 --- a/build/linter/gofmt/BUILD.bazel +++ b/build/linter/gofmt/BUILD.bazel @@ -6,6 +6,7 @@ go_library( importpath = "github.com/pingcap/tidb/build/linter/gofmt", visibility = ["//visibility:public"], deps = [ + "//build/linter/util", "@com_github_golangci_gofmt//gofmt", "@org_golang_x_tools//go/analysis", ], diff --git a/build/linter/gofmt/analyzer.go b/build/linter/gofmt/analyzer.go index 05c266b0bbe20..d5f2cb9184540 100644 --- a/build/linter/gofmt/analyzer.go +++ b/build/linter/gofmt/analyzer.go @@ -19,6 +19,7 @@ import ( "strings" "github.com/golangci/gofmt/gofmt" + "github.com/pingcap/tidb/build/linter/util" "golang.org/x/tools/go/analysis" ) @@ -44,9 +45,9 @@ func run(pass *analysis.Pass) (any, error) { fileNames = append(fileNames, pos.Filename) } } - + rules := []gofmt.RewriteRule{} for _, f := range fileNames { - diff, err := gofmt.Run(f, needSimplify) + diff, err := gofmt.RunRewrite(f, needSimplify, rules) if err != nil { return nil, fmt.Errorf("could not run gofmt: %w (%s)", err, f) } @@ -63,3 +64,7 @@ func run(pass *analysis.Pass) (any, error) { return nil, nil } + +func init() { + util.SkipAnalyzerByConfig(Analyzer) +} diff --git a/build/linter/gosec/analysis.go b/build/linter/gosec/analysis.go index 2e93dbbdd3d59..8f4338b0e4806 100644 --- a/build/linter/gosec/analysis.go +++ b/build/linter/gosec/analysis.go @@ -18,7 +18,7 @@ import ( "fmt" "go/token" "go/types" - "io/ioutil" + "io" "log" "strconv" @@ -41,10 +41,11 @@ var Analyzer = &analysis.Analyzer{ } func init() { + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } -func run(pass *analysis.Pass) (interface{}, error) { +func run(pass *analysis.Pass) (any, error) { gasConfig := gosec.NewConfig() enabledRules := rules.Generate(func(id string) bool { if id == "G104" || id == "G103" || id == "G101" || id == "G201" { @@ -52,7 +53,7 @@ func run(pass *analysis.Pass) (interface{}, error) { } return false }) - logger := log.New(ioutil.Discard, "", 0) + logger := log.New(io.Discard, "", 0) analyzer := gosec.NewAnalyzer(gasConfig, logger) analyzer.LoadRules(enabledRules.Builders()) @@ -60,7 +61,6 @@ func run(pass *analysis.Pass) (interface{}, error) { createdPkgs = append(createdPkgs, util.MakeFakeLoaderPackageInfo(pass)) allPkgs := make(map[*types.Package]*loader.PackageInfo) for _, pkg := range createdPkgs { - pkg := pkg allPkgs[pkg.Pkg] = pkg } prog := &loader.Program{ @@ -82,7 +82,6 @@ func run(pass *analysis.Pass) (interface{}, error) { if err != nil { panic(err) } - text := fmt.Sprintf("[%s] %s: %s", Name, i.RuleID, i.What) // TODO: use severity and confidence var r *result.Range line, err := strconv.Atoi(i.Line) if err != nil { @@ -92,8 +91,8 @@ func run(pass *analysis.Pass) (interface{}, error) { } line = r.From } - - pass.Reportf(token.Pos(tf.Base()+util.FindOffset(string(fileContent), line, 1)), text) + pass.Reportf(token.Pos(tf.Base()+util.FindOffset(string(fileContent), line, 1)), + "[%s] %s: %s", Name, i.RuleID, i.What) // TODO: use severity and confidence } return nil, nil diff --git a/build/linter/ineffassign/analyzer.go b/build/linter/ineffassign/analyzer.go index 0651b6a944f59..1b923f60b5b8b 100644 --- a/build/linter/ineffassign/analyzer.go +++ b/build/linter/ineffassign/analyzer.go @@ -23,5 +23,6 @@ import ( var Analyzer = ineffassign.Analyzer func init() { + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } diff --git a/build/linter/linter.go b/build/linter/linter.go new file mode 100644 index 0000000000000..794a7c37039ef --- /dev/null +++ b/build/linter/linter.go @@ -0,0 +1,20 @@ +// Copyright 2023 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package linter + +import ( + // it is necessary to make skywalking-eye into gomod. + _ "github.com/apache/skywalking-eyes/pkg/config" +) diff --git a/build/linter/makezero/analyzer.go b/build/linter/makezero/analyzer.go index b0f7b1ea885de..07336f0642027 100644 --- a/build/linter/makezero/analyzer.go +++ b/build/linter/makezero/analyzer.go @@ -23,5 +23,6 @@ import ( var Analyzer = analyzer.NewAnalyzer() func init() { + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } diff --git a/build/linter/mirror/BUILD.bazel b/build/linter/mirror/BUILD.bazel new file mode 100644 index 0000000000000..33ff6e4126703 --- /dev/null +++ b/build/linter/mirror/BUILD.bazel @@ -0,0 +1,12 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "mirror", + srcs = ["analyzer.go"], + importpath = "github.com/pingcap/tidb/build/linter/mirror", + visibility = ["//visibility:public"], + deps = [ + "//build/linter/util", + "@com_github_butuzov_mirror//:mirror", + ], +) diff --git a/build/linter/noloopclosure/analysis.go b/build/linter/mirror/analyzer.go similarity index 81% rename from build/linter/noloopclosure/analysis.go rename to build/linter/mirror/analyzer.go index 1118be4038b8b..6b64c2c52ea88 100644 --- a/build/linter/noloopclosure/analysis.go +++ b/build/linter/mirror/analyzer.go @@ -12,16 +12,17 @@ // See the License for the specific language governing permissions and // limitations under the License. -package noloopclosure +package mirror import ( - nlc "github.com/fatanugraha/noloopclosure" + "github.com/butuzov/mirror" "github.com/pingcap/tidb/build/linter/util" ) -// Analyzer is the analyzer struct of misspell. -var Analyzer = nlc.Analyzer +// Analyzer is the analyzer struct of mirror. +var Analyzer = mirror.NewAnalyzer() func init() { + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } diff --git a/build/linter/misspell/analyzer.go b/build/linter/misspell/analyzer.go index 3bf4dd16ae77c..ad50fd437d0a0 100644 --- a/build/linter/misspell/analyzer.go +++ b/build/linter/misspell/analyzer.go @@ -34,6 +34,7 @@ var Analyzer = &analysis.Analyzer{ } func init() { + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } @@ -43,15 +44,13 @@ type Misspell struct { IgnoreWords []string `mapstructure:"ignore-words"` } -func run(pass *analysis.Pass) (interface{}, error) { +func run(pass *analysis.Pass) (any, error) { r := misspell.Replacer{ Replacements: misspell.DictMain, } // Figure out regional variations - settings := &Misspell{ - Locale: "", - } + settings := &Misspell{} if len(settings.IgnoreWords) != 0 { r.RemoveRule(settings.IgnoreWords) @@ -85,8 +84,8 @@ func runOnFile(fileName string, r *misspell.Replacer, pass *analysis.Pass) error // tool uses r.Replace by default. _, diffs := r.Replace(string(fileContent)) for _, diff := range diffs { - text := fmt.Sprintf("[%s] `%s` is a misspelling of `%s`", Name, diff.Original, diff.Corrected) - pass.Reportf(token.Pos(tf.Base()+util.FindOffset(string(fileContent), diff.Line, diff.Column)), text) + pass.Reportf(token.Pos(tf.Base()+util.FindOffset(string(fileContent), diff.Line, diff.Column)), + "[%s] `%s` is a misspelling of `%s`", Name, diff.Original, diff.Corrected) } return nil } diff --git a/build/linter/noloopclosure/BUILD.bazel b/build/linter/noloopclosure/BUILD.bazel deleted file mode 100644 index 9797664c65634..0000000000000 --- a/build/linter/noloopclosure/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "noloopclosure", - srcs = ["analysis.go"], - importpath = "github.com/pingcap/tidb/build/linter/noloopclosure", - visibility = ["//visibility:public"], - deps = [ - "//build/linter/util", - "@com_github_fatanugraha_noloopclosure//:noloopclosure", - ], -) diff --git a/build/linter/prealloc/analyzer.go b/build/linter/prealloc/analyzer.go index 5e9d38aa8daa9..811b431af1d17 100644 --- a/build/linter/prealloc/analyzer.go +++ b/build/linter/prealloc/analyzer.go @@ -39,7 +39,7 @@ var Analyzer = &analysis.Analyzer{ Run: run, } -func run(pass *analysis.Pass) (interface{}, error) { +func run(pass *analysis.Pass) (any, error) { s := &Settings{ Simple: true, RangeLoops: true, @@ -56,5 +56,6 @@ func run(pass *analysis.Pass) (interface{}, error) { } func init() { + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } diff --git a/build/linter/predeclared/analysis.go b/build/linter/predeclared/analysis.go index 605b631553f24..9988d928a1c65 100644 --- a/build/linter/predeclared/analysis.go +++ b/build/linter/predeclared/analysis.go @@ -23,5 +23,6 @@ import ( var Analyzer = predeclared.Analyzer func init() { + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } diff --git a/build/linter/revive/BUILD.bazel b/build/linter/revive/BUILD.bazel index 922f493b7160c..6493822598212 100644 --- a/build/linter/revive/BUILD.bazel +++ b/build/linter/revive/BUILD.bazel @@ -7,6 +7,7 @@ go_library( visibility = ["//visibility:public"], deps = [ "//build/linter/util", + "@com_github_hashicorp_go_version//:go-version", "@com_github_mgechev_revive//config", "@com_github_mgechev_revive//lint", "@com_github_mgechev_revive//rule", diff --git a/build/linter/revive/analyzer.go b/build/linter/revive/analyzer.go index a3d269aad48e9..d81a2cf6a4462 100644 --- a/build/linter/revive/analyzer.go +++ b/build/linter/revive/analyzer.go @@ -16,10 +16,10 @@ package revive import ( "encoding/json" - "fmt" "go/token" "os" + goversion "github.com/hashicorp/go-version" "github.com/mgechev/revive/config" "github.com/mgechev/revive/lint" "github.com/mgechev/revive/rule" @@ -37,6 +37,7 @@ var Analyzer = &analysis.Analyzer{ } func init() { + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } @@ -95,9 +96,13 @@ func run(pass *analysis.Pass) (any, error) { files = append(files, pass.Fset.PositionFor(file.Pos(), false).Filename) } packages := [][]string{files} - + gv, err := goversion.NewVersion("1.21") + if err != nil { + panic(err) + } revive := lint.New(os.ReadFile, 1024) conf := lint.Config{ + GoVersion: gv, IgnoreGeneratedHeader: false, Confidence: 0.8, Severity: "error", @@ -109,7 +114,7 @@ func run(pass *analysis.Pass) (any, error) { conf.Rules[r.Name()] = lint.RuleConfig{} } conf.Rules["defer"] = lint.RuleConfig{ - Arguments: []interface{}{[]interface{}{"loop", "method-call", "immediate-recover", "return"}}, + Arguments: []any{[]any{"loop", "method-call", "immediate-recover", "return"}}, } lintingRules, err := config.GetLintingRules(&conf, []lint.Rule{}) if err != nil { @@ -155,12 +160,12 @@ func run(pass *analysis.Pass) (any, error) { } for i := range results { res := &results[i] - text := fmt.Sprintf("%s: %s", res.RuleName, res.Failure.Failure) fileContent, tf, err := util.ReadFile(pass.Fset, res.Position.Start.Filename) if err != nil { panic(err) } - pass.Reportf(token.Pos(tf.Base()+util.FindOffset(string(fileContent), res.Position.Start.Line, res.Position.Start.Column)), text) + pass.Reportf(token.Pos(tf.Base()+util.FindOffset(string(fileContent), res.Position.Start.Line, res.Position.Start.Column)), + "%s: %s", res.RuleName, res.Failure.Failure) } return nil, nil } diff --git a/build/linter/rowserrcheck/analyzer.go b/build/linter/rowserrcheck/analyzer.go index 5c4749b01cc6d..63cedd4482b95 100644 --- a/build/linter/rowserrcheck/analyzer.go +++ b/build/linter/rowserrcheck/analyzer.go @@ -23,5 +23,6 @@ import ( var Analyzer = rowserr.NewAnalyzer() func init() { + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } diff --git a/build/linter/staticcheck/analyzer.go b/build/linter/staticcheck/analyzer.go index cb13969093aa9..9ca8874734966 100644 --- a/build/linter/staticcheck/analyzer.go +++ b/build/linter/staticcheck/analyzer.go @@ -29,5 +29,6 @@ var ( func init() { Analyzer = FindAnalyzerByName(name) + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } diff --git a/build/linter/unconvert/analysis.go b/build/linter/unconvert/analysis.go index a015cc39c9fea..41f119500e860 100644 --- a/build/linter/unconvert/analysis.go +++ b/build/linter/unconvert/analysis.go @@ -37,11 +37,12 @@ var Analyzer = &analysis.Analyzer{ } func init() { + util.SkipAnalyzerByConfig(Analyzer) util.SkipAnalyzer(Analyzer) } // Adapted from https://github.com/mdempsky/unconvert/blob/beb68d938016d2dec1d1b078054f4d3db25f97be/unconvert.go#L371-L414. -func run(pass *analysis.Pass) (interface{}, error) { +func run(pass *analysis.Pass) (any, error) { inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector) nodeFilter := []ast.Node{ diff --git a/build/linter/util/BUILD.bazel b/build/linter/util/BUILD.bazel index f8e81695c03eb..d09af5577100b 100644 --- a/build/linter/util/BUILD.bazel +++ b/build/linter/util/BUILD.bazel @@ -1,13 +1,26 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "util", - srcs = ["util.go"], + srcs = [ + "exclude.go", + "util.go", + ], importpath = "github.com/pingcap/tidb/build/linter/util", visibility = ["//visibility:public"], deps = [ + "//build", "@co_honnef_go_tools//analysis/report", "@org_golang_x_tools//go/analysis", "@org_golang_x_tools//go/loader", ], ) + +go_test( + name = "util_test", + timeout = "short", + srcs = ["exclude_test.go"], + embed = [":util"], + flaky = True, + deps = ["@com_github_stretchr_testify//require"], +) diff --git a/build/linter/util/exclude.go b/build/linter/util/exclude.go new file mode 100644 index 0000000000000..2fd98a8838a40 --- /dev/null +++ b/build/linter/util/exclude.go @@ -0,0 +1,62 @@ +// Copyright 2023 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package util + +import ( + "fmt" + "regexp" + + "github.com/pingcap/tidb/build" +) + +// shouldRun checks whether a `file` should be analyzed in the specific pass +func shouldRun(passName string, fileName string) bool { + config, ok := build.NogoConfig[passName] + if !ok { + return true + } + + if config.OnlyFiles != nil { + for f := range config.OnlyFiles { + matched, err := regexp.MatchString(f, fileName) + if err != nil { + panic(fmt.Sprintf("regex is wrong: %s", f)) + } + + if matched { + return true + } + } + + return false + } + + if config.ExcludeFiles != nil { + for f := range config.ExcludeFiles { + matched, err := regexp.MatchString(f, fileName) + if err != nil { + panic(fmt.Sprintf("regex is wrong: %s", f)) + } + + if matched { + return false + } + } + + return true + } + + return true +} diff --git a/build/linter/util/exclude_test.go b/build/linter/util/exclude_test.go new file mode 100644 index 0000000000000..599dd59590568 --- /dev/null +++ b/build/linter/util/exclude_test.go @@ -0,0 +1,27 @@ +// Copyright 2023 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package util + +import ( + "testing" + + "github.com/stretchr/testify/require" +) + +func TestShouldRun(t *testing.T) { + require.True(t, shouldRun("gofmt", "some.go")) + require.False(t, shouldRun("gofmt", "uca_generated.go")) + require.True(t, shouldRun("revive", "/pkg/meta/distributed_lock.go")) +} diff --git a/build/linter/util/util.go b/build/linter/util/util.go index c26da13c859d7..b8199a5d51e82 100644 --- a/build/linter/util/util.go +++ b/build/linter/util/util.go @@ -18,7 +18,7 @@ import ( "fmt" "go/ast" "go/token" - "io/ioutil" + "os" "reflect" "strings" @@ -86,7 +86,7 @@ func ParseDirectives(files []*ast.File, fset *token.FileSet) []Directive { return dirs } -func doDirectives(pass *analysis.Pass) (interface{}, error) { +func doDirectives(pass *analysis.Pass) (any, error) { return ParseDirectives(pass.Files, pass.Fset), nil } @@ -104,11 +104,34 @@ var Directives = &analysis.Analyzer{ func SkipAnalyzer(analyzer *analysis.Analyzer) { analyzer.Requires = append(analyzer.Requires, Directives) oldRun := analyzer.Run - analyzer.Run = func(p *analysis.Pass) (interface{}, error) { + analyzer.Run = func(p *analysis.Pass) (any, error) { pass := *p + + // skip running analysis on files by excluding them from `pass.Files` + ignoreFiles := make(map[string]struct{}) + dirs := pass.ResultOf[Directives].([]Directive) + for _, dir := range dirs { + cmd := dir.Command + switch cmd { + case skipFile: + ignorePos := report.DisplayPosition(pass.Fset, dir.Node.Pos()) + ignoreFiles[ignorePos.Filename] = struct{}{} + default: + continue + } + } + + newPassFiles := make([]*ast.File, 0, len(pass.Files)) + for _, f := range p.Files { + pos := pass.Fset.PositionFor(f.Pos(), false) + if _, ok := ignoreFiles[pos.Filename]; !ok { + newPassFiles = append(newPassFiles, f) + } + } + pass.Files = newPassFiles + oldReport := p.Report pass.Report = func(diag analysis.Diagnostic) { - dirs := pass.ResultOf[Directives].([]Directive) for _, dir := range dirs { cmd := dir.Command linters := dir.Linters @@ -125,9 +148,8 @@ func SkipAnalyzer(analyzer *analysis.Analyzer) { } } case skipFile: - ignorePos := report.DisplayPosition(pass.Fset, dir.Node.Pos()) nodePos := report.DisplayPosition(pass.Fset, diag.Pos) - if ignorePos.Filename == nodePos.Filename { + if _, ok := ignoreFiles[nodePos.Filename]; ok { return } default: @@ -140,6 +162,26 @@ func SkipAnalyzer(analyzer *analysis.Analyzer) { } } +// SkipAnalyzerByConfig updates an analyzer to skip files according to `exclude_files` +func SkipAnalyzerByConfig(analyzer *analysis.Analyzer) { + oldRun := analyzer.Run + analyzer.Run = func(p *analysis.Pass) (any, error) { + pass := *p + + // modify the `p.Files` according to the `shouldRun` + newPassFiles := make([]*ast.File, 0, len(pass.Files)) + for _, f := range p.Files { + pos := pass.Fset.PositionFor(f.Pos(), false) + if shouldRun(analyzer.Name, pos.Filename) { + newPassFiles = append(newPassFiles, f) + } + } + pass.Files = newPassFiles + + return oldRun(&pass) + } +} + // FormatCode is to format code for nogo. func FormatCode(code string) string { if strings.Contains(code, "`") { @@ -172,7 +214,7 @@ func MakeFakeLoaderPackageInfo(pass *analysis.Pass) *loader.PackageInfo { // so that we can report errors against it using lineStart. func ReadFile(fset *token.FileSet, filename string) ([]byte, *token.File, error) { //nolint: gosec - content, err := ioutil.ReadFile(filename) + content, err := os.ReadFile(filename) if err != nil { return nil, nil, err } @@ -203,3 +245,17 @@ func FindOffset(fileText string, line, column int) int { } return -1 //not found } + +// GetPackageName returns the package name used in this file. +func GetPackageName(imports []*ast.ImportSpec, path, defaultName string) string { + quoted := `"` + path + `"` + for _, imp := range imports { + if imp.Path.Value == quoted { + if imp.Name != nil { + return imp.Name.Name + } + return defaultName + } + } + return "" +} diff --git a/build/nogo_config.json b/build/nogo_config.json index 4a0ee73f9e5bd..96a17d8bb1fb9 100644 --- a/build/nogo_config.json +++ b/build/nogo_config.json @@ -1,77 +1,104 @@ { "all_revive": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "/rules_go_work-*": "ignore generated code", - ".*_/testmain\\.go$": "ignore code" + ".*_/testmain\\.go$": "ignore code", + "pkg/extension/enterprise/audit/entry.go": "pkg/extension/enterprise/audit/entry.go", + "pkg/extension/enterprise/audit/filter.go": "pkg/extension/enterprise/audit/filter.go" } }, "asciicheck": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "br/pkg/lightning/web/res_vfsdata.go": "ignore code" } }, "asmdecl": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "assign": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "atomic": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "atomicalign": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "bodyclose": { "exclude_files": { + "parser/parser.go": "parser/parser.go code", "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "bools": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "buildtag": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, + "printexpression": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code", + "build/linter/printexpression/testdata/": "ignore test code" + } + }, "printf": { "exclude_files": { - "/external/": "no need to vet third party code", - ".*_generated\\.go$": "ignore generated code" + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code", + "pkg/planner/core/plan_clone_generator.go": "ignore plan_clone_generator code", + "pkg/util/dbterror/ddl_terror.go": "ignore ddl_terror code" } }, "unreachable": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "composites": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "br/pkg/glue/console_glue_test.go": "ignore code", "br/pkg/restore/db_test.go": "ignore code", ".*_/testmain\\.go$": "ignore code" @@ -79,122 +106,152 @@ }, "copylocks": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "/cgo/": "ignore cgo code" } }, + "copyloopvar": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code" + } + }, "ctrlflow": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "deadcode": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code" + } + }, + "defers": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "deepequalerrors": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "durationcheck": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", "/rules_go_work-*": "ignore generated code", ".*_generated\\.go$": "ignore generated code" } }, "errorsas": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "errcheck": { "exclude_files": { - "/external/": "no need to vet third party code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", ".*_test\\.go$": "ignore generated code", - "util/logutil": "ignore util/logutil code", + "pkg/util/logutil": "ignore util/logutil code", "tools/": "ignore tools code", "/src/net/conf.go": "ignore code", "/rules_go_work-*": "ignore generated code", "GOROOT/": "ignore code", "/parser/": "ignore code", + "pkg/server/internal/testserverclient/server_client.go": "ignore code", ".*_/testmain\\.go$": "ignore code" } }, - "exportloopref": { - "exclude_files": { - "/external/": "no need to vet third party code", - ".*_generated\\.go$": "ignore generated code" - } - }, "filepermission": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".cgo/": "no need to cgo code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", ".*_/testmain\\.go$": "ignore code" } }, "fieldalignment": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "pkg/statistics/table.go": "disable this limitation that prevents us from splitting struct fields for clarity", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", ".*_/testmain\\.go$": "ignore code", ".*_test\\.go$": "ignore test code" }, "only_files": { - "util/checksum": "util/checksum code", - "util/processinfo.go": "util/processinfo.go code", - "util/cpuprofile/": "util/cpuprofile/ code", - "util/cteutil/": "util/cteutil/ code", - "util/dbutil/": "util/dbutil/ code", - "util/deadlockhistory/": "util/deadlockhistory/ code", - "util/domainutil/": "util/domainutil/ code", - "util/encrypt/": "util/encrypt/ code", - "util/etcd/": "util/etcd/ code", - "util/expensivequery/": "util/expensivequery/ code", - "util/filter/": "util/filter/ code", - "util/importer/": "util/importer/ code", - "util/keydecoder/": "util/keydecoder/ code", - "util/kvcache/": "util/kvcache/ code", - "util/localpool/": "util/localpool/ code", - "util/mathutil/": "util/mathutil/ code", - "util/memory/": "util/memory/ code", - "util/mock/": "util/mock/ code", - "util/mvmap/": "util/mvmap/ code", - "util/profile/": "util/profile/ code", - "util/ranger/": "util/ranger/ code", - "util/regexpr-router/": "util/regexpr-router/ code", - "util/schemacmp/": "util/schemacmp/ code", - "util/sqlexec/": "util/sqlexec/ code", - "util/stringutil/": "util/stringutil/ code", - "util/table-router/": "util/table-router/ code", - "util/timeutil/": "util/timeutil/ code", - "util/topsql/": "util/topsql/ code", - "util/tracing/": "util/tracing/ code", - "util/trxevents/": "util/trxevents/ code", - "util/watcher/": "util/watcher/ code", - "util/gctuner": "util/gctuner", - "store/mockstore/unistore/util": "store/mockstore/unistore/util code", - "ddl/util/": "ddl/util code" + "pkg/statistics/": "statistics/ code", + "pkg/util/checksum": "util/checksum code", + "pkg/util/processinfo.go": "util/processinfo.go code", + "pkg/util/cpuprofile/": "util/cpuprofile/ code", + "pkg/util/cteutil/": "util/cteutil/ code", + "pkg/util/dbutil/": "util/dbutil/ code", + "pkg/util/deadlockhistory/": "util/deadlockhistory/ code", + "pkg/util/domainutil/": "util/domainutil/ code", + "pkg/util/encrypt/": "util/encrypt/ code", + "pkg/util/etcd/": "util/etcd/ code", + "pkg/util/expensivequery/": "util/expensivequery/ code", + "pkg/util/filter/": "util/filter/ code", + "pkg/util/importer/": "util/importer/ code", + "pkg/util/keydecoder/": "util/keydecoder/ code", + "pkg/util/kvcache/": "util/kvcache/ code", + "pkg/util/localpool/": "util/localpool/ code", + "pkg/util/mathutil/": "util/mathutil/ code", + "pkg/util/memory/": "util/memory/ code", + "pkg/util/mock/": "util/mock/ code", + "pkg/util/mvmap/": "util/mvmap/ code", + "pkg/util/profile/": "util/profile/ code", + "pkg/util/ranger/": "util/ranger/ code", + "pkg/util/regexpr-router/": "util/regexpr-router/ code", + "pkg/util/schemacmp/": "util/schemacmp/ code", + "pkg/util/sqlexec/": "util/sqlexec/ code", + "pkg/util/stringutil/": "util/stringutil/ code", + "pkg/util/table-router/": "util/table-router/ code", + "pkg/util/timeutil/": "util/timeutil/ code", + "pkg/util/topsql/": "util/topsql/ code", + "pkg/util/tracing/": "util/tracing/ code", + "pkg/util/trxevents/": "util/trxevents/ code", + "pkg/util/watcher/": "util/watcher/ code", + "pkg/util/gctuner": "util/gctuner", + "pkg/store/mockstore/unistore/util": "store/mockstore/unistore/util code", + "pkg/ddl/util/": "ddl/util code", + "pkg/server/internal": "server/internal code", + "pkg/planner/core/internal": "planner/core/internal code", + "pkg/executor/internal": "executor/internal code" } }, "findcall": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "forcetypeassert": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + ".*test_/testmain\\.go$": "ignore generated code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" }, "only_files": { @@ -219,142 +276,160 @@ }, "gofmt": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/": "parser/*.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "/cgo/": "ignore cgo code", "/rules_go_work-*": "ignore generated code", ".*test_/testmain\\.go$": "ignore generated code", - ".*failpoint_binding__.go$": "ignore generated code" + ".*failpoint_binding__.go$": "ignore generated code", + "_cgo_gotypes.go": "skip _cgo_gotypes.go", + "_cgo_imports.go": "skip _cgo_imports.go", + ".*.cgo1.go": "skip cgo1.go" } }, "gci": { "exclude_files": { "external/": "no need to vet third party code", - "/external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "/cgo/": "ignore cgo code", ".*\\.pb\\.go$": "generated code", "/rules_go_work-*": "ignore generated code", ".*test_/testmain\\.go$": "ignore generated code", ".*failpoint_binding__.go$": "ignore generated code", - "util/printer/printer.go": "ignore util/printer code", + "pkg/util/printer/printer.go": "ignore util/printer code", "parser/parser.go": "ignore parser code", "parser/hintparser.go": "ignore parser/hintparser code" } }, "gosec": { "exclude_files": { + "parser/parser.go": "parser/parser.go code", "external/": "no need to vet third party code", "parser/goyacc/": "ignore goyacc code", ".*_test\\.go$": "ignore generated code", "/cgo/": "ignore cgo code", "/rules_go_work-*": "ignore generated code", "tools/check/ut.go": "ignore tools/check code", + "cmd/mirror": "ignore cmd/mirror code", "tools/check/xprog.go": "ignore tools/check code", "cmd/pluginpkg/pluginpkg.go": "ignore cmd/pluginpkg code", "tools/check/xprog.go:": "ignore tools/check code", - "cmd/explaintest/main.go": "ignore cmd/explaintest code", + "tests/integrationtest/main.go": "ignore tests/integrationtest code", "GOROOT/": "ignore code", + "pkg/server/internal/testserverclient/server_client.go": "ignore server_client code", ".*_generated\\.go$": "ignore generated code" } }, "httpresponse": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "ifaceassert": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "ineffassign": { "exclude_files": { - "/external/": "no need to vet third party code", - ".*_generated\\.go$": "ignore generated code" + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", + "/cgo/": "no need to vet cgo code" } }, - "inspect": { + "intrange": { "exclude_files": { - "/external/": "no need to vet third party code", - ".*_generated\\.go$": "ignore generated code" + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", + "/cgo/": "no need to vet cgo code" + }, + "only_files": { + "pkg/util/": "util code" } }, - "loopclosure": { + "inspect": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "lostcancel": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "makezero": { "exclude_files": { + "parser/parser.go": "parser/parser.go code", "/cgo/": "ignore cgo code", ".*_test\\.go$": "ignore generated code", - "/external/": "no need to vet third party code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "misspell": { "exclude_files": { + "parser/parser.go": "parser/parser.go code", "/cgo/": "ignore cgo code", - "/external/": "no need to vet third party code", + "external/": "no need to vet third party code", + "$GOROOT/": "ignore GOROOT code", ".*_generated\\.go$": "ignore generated code" } }, "nilfunc": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "nilness": { "exclude_files": { - "/external/": "no need to vet third party code", + "br/pkg/streamhelper/advancer_test.go": "please fix it", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "/cgo/": "ignore cgo" } }, - "noloopclosure": { - "exclude_files": { - "/external/": "no need to vet third party code", - ".*_generated\\.go$": "ignore generated code" - }, - "only_files": { - "br/pkg/lightning/mydump/": "br/pkg/lightning/mydump/", - "br/pkg/lightning/restore/opts": "br/pkg/lightning/restore/opts", - "kv/": "kv code", - "util/memory": "util/memory", - "ddl/": "ddl", - "planner/": "planner", - "extension/": "extension code" - } - }, "pkgfact": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "revive": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", "GOROOT/": "ignore code", "/cgo/": "ignore cgo", "tools/": "ignore tool code", "parser/goyacc/": "ignore goyacc code", "parser/ast/": "ignore parser/ast code", "parser/test_driver/": "ignore parser/test_driver code", - "dumpling/export/sql_type.go": "please fix it", + "pkg/planner/core/plan_clone_generated.go": "ignore plan_clone_generated code", + "pkg/planner/core/operator/logicalop/hash64_equals_generated.go": "ignore hash64_equals_generated code", ".*_test\\.go$": "ignore generated code", - ".*_generated\\.go$": "ignore generated code" + ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", + "pkg/plugin/conn_ip_example/": "plugin/conn_ip_example/" }, "only_files": { "br/pkg/lightning/mydump/": "br/pkg/lightning/mydump/", @@ -409,511 +484,736 @@ }, "shift": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "sortslice": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "stdmethods": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "stringintconv": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "structtag": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "testinggoroutine": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "tests": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, + "toomanytests": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", + "/cgo/": "ignore cgo code", + "/rules_go_work-*": "ignore generated code", + ".*test_/testmain\\.go$": "ignore generated code", + ".*failpoint_binding__.go$": "ignore generated code", + "pkg/util/chunk": "ignore util/chunk", + "pkg/lightning/mydump/": "more than 50", + "lightning/pkg/importer/": "more than 50", + "pkg/lightning/backend/local/": "more than 50", + "br/pkg/restore/": "more than 50", + "pkg/ddl/tests/partition/": "more than 50" + }, + "only_files": { + "br/pkg/version/": "br/pkg/version/ coded", + "br/pkg/utils/storewatch/": "br/pkg/utils/storewatch/ coded", + "br/pkg/utils/iter/": "br/pkg/utils/iter/ coded", + "br/pkg/utils/": "br/pkg/utils/ coded", + "br/pkg/task/show/": "br/pkg/task/show/ coded", + "br/pkg/task/": "br/pkg/task/ coded", + "br/pkg/streamhelper/spans/": "br/pkg/streamhelper/spans/ coded", + "br/pkg/streamhelper/": "br/pkg/streamhelper/ coded", + "br/pkg/stream/": "br/pkg/stream/ coded", + "br/pkg/storage/": "br/pkg/storage/ coded", + "br/pkg/rtree/": "br/pkg/rtree/ coded", + "br/pkg/restore/tiflashrec/": "br/pkg/restore/tiflashrec/ coded", + "br/pkg/restore/split/": "br/pkg/restore/split/ coded", + "br/pkg/restore/ingestrec/": "br/pkg/restore/ingestrec/ coded", + "br/pkg/pdutil/": "br/pkg/pdutil/ coded", + "br/pkg/metautil/": "br/pkg/metautil/ coded", + "br/pkg/logutil/": "br/pkg/logutil/ coded", + "br/pkg/gluetidb/": "br/pkg/gluetidb/ coded", + "br/pkg/conn/": "br/pkg/conn/ coded", + "br/pkg/checkpoint/": "br/pkg/checkpoint/ coded", + "br/pkg/backup/": "br/pkg/backup/ coded", + "pkg/planer/core/casetest/binaryplan": "planer/core/casetest/binaryplan", + "pkg/planer/core/casetest/cbotest": "planer/core/casetest/cbotest", + "pkg/planer/core/casetest/dag": "planer/core/casetest/dag", + "pkg/planer/core/casetest/enforcempp": "planer/core/casetest/enforcempp", + "pkg/planer/core/casetest/flatplan": "planer/core/casetest/flatplan", + "pkg/planer/core/casetest/hint": "planer/core/casetest/hint", + "pkg/planer/core/casetest/mpp": "planer/core/casetest/mpp", + "pkg/planer/core/casetest/partition": "planer/core/casetest/partition", + "pkg/planer/core/casetest/pushdown": "planer/core/casetest/pushdown", + "pkg/planer/core/casetest/rule": "planer/core/casetest/rule", + "pkg/planer/core/casetest/scalarsubquery": "planer/core/casetest/scalarsubquery", + "pkg/planer/core/casetest/testdata": "planer/core/casetest/testdata", + "pkg/planer/core/casetest/windows": "planer/core/casetest/windows", + "pkg/planer/core/tests/": "planer/core/tests/", + "pkg/executor/test/admintest": "executor/test/admintest", + "pkg/executor/test/aggregate": "executor/test/aggregate", + "pkg/executor/test/autoidtest": "executor/test/autoidtest", + "pkg/executor/test/distsqltest": "executor/test/distsqltest", + "pkg/executor/test/fktest": "executor/test/fktest", + "pkg/executor/test/indexmergereadtest": "executor/test/indexmergereadtest", + "pkg/executor/test/jointest": "executor/test/jointest", + "pkg/executor/test/kvtest": "executor/test/kvtest", + "pkg/executor/test/loaddatatest": "executor/test/loaddatatest", + "pkg/executor/test/loadremotetest": "executor/test/loadremotetest", + "pkg/executor/test/memtest": "executor/test/memtest", + "pkg/executor/test/oomtest": "executor/test/oomtest", + "pkg/executor/test/partitiontest": "executor/test/partitiontest", + "pkg/executor/test/passwordtest": "executor/test/passwordtest", + "pkg/executor/test/seqtest": "executor/test/seqtest", + "pkg/executor/test/showtest": "executor/test/showtest", + "pkg/executor/test/simpletest": "executor/test/simpletest", + "pkg/executor/test/splittest": "executor/test/splittest", + "pkg/executor/test/tiflashtest": "executor/test/tiflashtest", + "pkg/executor/test/unstabletest": "executor/test/unstabletest", + "br/": "br code", + "pkg/session/test": "session/test code", + "pkg/ddl/tests": "ddl/tests code", + "pkg/disttask/": "disttask code", + "pkg/timer/": "timer code", + "pkg/util/": "util code", + "pkg/lightning/config/": "pkg/lightning/config code", + "br/pkg/storage": "br/pkg/storage code", + "br/pkg/utils": "br/pkg/utils code", + "pkg/planner/cascades": "planner/cascades code", + "pkg/store/": "store code", + "pkg/ttl/": "ttl code", + "pkg/bindinfo/": "bindinfo code", + "pkg/domain/": "domain code" + } + }, "unconvert": { "exclude_files": { - "/external/": "no need to vet third party code", + "external/": "no need to vet third party code", ".*\\.pb\\.go$": "generated code", "parser/parser.go": "generated code", "/cgo/": "no need to vet third party code for cgo", - "br/pkg/lightning/common/conn.go": "ignore: to fix it", - "br/pkg/lightning/common/storage_unix.go": "ignore: to fix it", + "pkg/lightning/common/conn.go": "ignore: to fix it", + "pkg/lightning/common/storage_unix.go": "ignore: to fix it", "br/pkg/task/common.go": "ignore: to fix it", ".*_generated\\.go$": "ignore generated code" } }, "unmarshal": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "unsafeptr": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "parser/digester.go": "ignore code" } }, "unusedresult": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "parser/digester_test.go": "ignore code" } }, "rowserrcheck": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", - "server/tidb_test.go": "ignore test code", - "server/tidb_serial_test.go": "ignore test code", - "server/statistics_handler_test.go": "ignore test code", - "server/server_test.go": "ignore test code", - "server/optimize_trace_test.go": "ignore test code", - "server/plan_replayer_test.go": "ignore test code" + ".*mock.go$": "ignore generated code", + "pkg/server/tidb_test.go": "ignore test code", + "pkg/server/tests/tidb_test.go": "ignore test code", + "pkg/server/tests/commontest/tidb_test.go": "ignore test code", + "pkg/server/tests/tidb_serial_test.go": "ignore test code", + "pkg/server/tidb_serial_test.go": "ignore test code", + "pkg/server/statistics_handler_test.go": "ignore test code", + "pkg/server/handler/optimizor/optimize_trace_test.go": "ignore test code", + "pkg/server/handler/optimizor/plan_replayer_test.go": "ignore test code", + "pkg/server/handler/optimizor/statistics_handler_test.go": "ignore test code", + "pkg/server/server_test.go": "ignore test code", + "pkg/server/optimize_trace_test.go": "ignore test code", + "pkg/server/plan_replayer_test.go": "ignore test code", + "pkg/server/internal/testserverclient/server_client.go": "ignore test code" } }, "S1000": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1001": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1002": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1003": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1004": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1005": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1006": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1007": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1008": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1009": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1010": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1011": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1012": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1013": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1014": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1015": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1016": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1017": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1018": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1019": { "exclude_files": { - "/external/": "no need to vet third party code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "parser/parser.go": "ignore code" } }, "S1020": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1021": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "tools/check/ut.go": "ignore code" } }, "S1022": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1023": { "exclude_files": { - "/external/": "no need to vet third party code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "parser/parser.go": "ignore code" } }, "S1024": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1025": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1026": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1027": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1028": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1029": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1030": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1031": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1032": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1033": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1034": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1035": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1036": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1037": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1038": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1039": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "S1040": { "exclude_files": { - "/external/": "no need to vet third party code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "parser/parser.go": "ignore generated code" } }, "SA1019": { "exclude_files": { + "parser/parser.go": "parser/parser.go code", "/build/": "no need to linter code", - "/external/": "no need to vet third party code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", - ".*_test\\.go$": "ignore test code" + ".*mock.go$": "ignore generated code", + ".*_test\\.go$": "ignore test code", + "br/pkg/restore/split/client.go": "github.com/golang/protobuf deprecated", + "br/pkg/streamhelper/advancer_cliext.go": "github.com/golang/protobuf deprecated", + "pkg/lightning/checkpoints/checkpoints.go": "cfg.TikvImporter.Addr is deprecated", + "pkg/lightning/checkpoints/glue_checkpoint.go": "cfg.TikvImporter.Addr is deprecated", + "pkg/lightning/backend/local/local.go": "grpc Compressor/Decompressor is deprecated", + "pkg/lightning/backend/local/compress.go": "grpc Compressor/Decompressor is deprecated", + "pkg/domain/infosync/resource_manager_client.go": "github.com/golang/protobuf deprecated" }, "only_files": { - "util/gctuner": "util/gctuner", - "util/cgroup": "util/cgroup code", - "util/watcher": "util/watcher", - "br/pkg/lightning/restore/": "br/pkg/lightning/restore/", - "br/pkg/lightning/mydump/": "br/pkg/lightning/mydump/", - "executor/aggregate.go": "executor/aggregate.go", - "types/json_binary_functions.go": "types/json_binary_functions.go", - "types/json_binary_test.go": "types/json_binary_test.go", - "ddl/": "enable to ddl", - "expression/builtin_cast.go": "enable expression/builtin_cast.go", - "planner/core/plan.go": "planner/core/plan.go", - "server/conn.go": "server/conn.go", - "server/conn_stmt.go": "server/conn_stmt.go", - "server/conn_test.go": "server/conn_test.go", - "extension/": "extension code" + "pkg/expression/bench_test.go": "expression/bench_test.go", + "pkg/domain/": "domain code", + "pkg/util/gctuner": "util/gctuner", + "pkg/util/cgroup": "util/cgroup code", + "pkg/util/watcher": "util/watcher", + "pkg/br/pkg/": "br/pkg", + "pkg/executor/aggregate.go": "executor/aggregate.go", + "pkg/types/": "types", + "pkg/ddl/": "enable to ddl", + "pkg/expression/builtin_cast.go": "enable expression/builtin_cast.go", + "pkg/planner/core/plan.go": "planner/core/plan.go", + "pkg/extension/": "extension code", + "pkg/resourcemanager/": "resourcemanager code", + "pkg/keyspace/": "keyspace code", + "pkg/server/": "server code", + "pkg/owner/": "owner code", + "pkg/meta": "meta code", + "pkg/timer/": "timer code", + "pkg/statistics/": "statistics code" + } + }, + "SA1029": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", + ".*_test\\.go$": "ignore test code" } }, "SA2000": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA2001": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA2003": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA3000": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA3001": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code" + } + }, + "SA4004": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + "server/http_status.go": "ignore server/http_status.go", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA4009": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code" + } + }, + "SA4018": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA5000": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA5001": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA5002": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA5003": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA5004": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA5005": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA5007": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA5008": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA5009": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA5010": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA5011": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA5012": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA6000": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "SA6001": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code" + } + }, + "SA6002": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + "pkg/util/zeropool/pool_test.go": "util/zeropool/pool_test.go", ".*_generated\\.go$": "ignore generated code" } }, "SA6005": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, "prealloc": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "cmd/mirror": "cmd/mirror code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "parser/yy_parser.go": "ignore generated code", "/cgo/": "no need to vet third party code for cgo" } }, "predeclared": { "exclude_files": { - "/external/": "no need to vet third party code", + "external/": "no need to vet third party code", + "cmd/mirror": "no need to mirror", ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "parser/yy_parser.go": "ignore generated code", "parser/parser.go": "ignore generated code", - "/cgo/": "no need to vet third party code for cgo" + "/cgo/": "no need to vet third party code for cgo", + "util/mathutil/math.go": "tmp" } }, "U1000": { "exclude_files": { - "/external/": "no need to vet third party code", + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", ".*_generated\\.go$": "ignore generated code" } }, @@ -921,7 +1221,75 @@ "exclude_files": { "parser/parser.go": "parser/parser.go code", ".*_test.go": "ignore test code", + ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", "external/": "no need to vet third party code" } + }, + "constructor": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", + "external/": "no need to vet third party code", + "build/linter/constructor/testdata/": "no need to vet the test inside the linter" + } + }, + "deferrecover": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + ".*_test.go": "ignore test code", + ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", + "external/": "no need to vet third party code" + } + }, + "QF1002": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + ".*_test.go": "ignore test code", + ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", + "external/": "no need to vet third party code" + } + }, + "QF1004": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + ".*_test.go": "ignore test code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", + "/cgo/": "no need to vet third party code for cgo" + } + }, + "QF1012": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + ".*_test.go": "ignore test code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code", + ".*mock.go$": "ignore generated code", + "/cgo/": "no need to vet third party code for cgo" + } + }, + "bootstrap": { + "only_files": { + "pkg/session/": "bootstrap code" + } + }, + "appends": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code" + } + }, + "unusedwrite": { + "exclude_files": { + "parser/parser.go": "parser/parser.go code", + "external/": "no need to vet third party code", + ".*_generated\\.go$": "ignore generated code" + } } } diff --git a/build/patches/com_github_grpc_ecosystem_grpc_gateway.patch b/build/patches/com_github_grpc_ecosystem_grpc_gateway.patch index 304063a90cb27..db8e4120035a1 100644 --- a/build/patches/com_github_grpc_ecosystem_grpc_gateway.patch +++ b/build/patches/com_github_grpc_ecosystem_grpc_gateway.patch @@ -63,13 +63,13 @@ index c4d18f624..41d5319fb 100644 - "@io_bazel_rules_go//proto/wkt:field_mask_go_proto", - "@io_bazel_rules_go//proto/wkt:timestamp_go_proto", - "@io_bazel_rules_go//proto/wkt:wrappers_go_proto", -+ "@com_github_golang_protobuf//protoc-gen-go/descriptor:go_default_library", ++ "@com_github_golang_protobuf//protoc-gen-go/descriptor:go_default_library", + "@com_github_golang_protobuf//ptypes:go_default_library", + "@com_github_golang_protobuf//ptypes/any:go_default_library", + "@com_github_golang_protobuf//ptypes/duration:go_default_library", + "@com_github_golang_protobuf//ptypes/timestamp:go_default_library", + "@com_github_golang_protobuf//ptypes/wrappers:go_default_library", -+ "@org_golang_google_genproto//googleapis/api/httpbody:go_default_library", ++ "@org_golang_google_genproto_googleapis_api//httpbody", + "@org_golang_google_genproto//protobuf/field_mask:go_default_library", "@org_golang_google_grpc//codes:go_default_library", "@org_golang_google_grpc//grpclog:go_default_library", diff --git a/cmd/ddltest/main_test.go b/cmd/ddltest/main_test.go index 7f6815d4f6340..9761c0df01e5c 100644 --- a/cmd/ddltest/main_test.go +++ b/cmd/ddltest/main_test.go @@ -33,7 +33,7 @@ func TestMain(m *testing.M) { os.Exit(1) } opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/cmd/explaintest/main.go b/cmd/explaintest/main.go index d5f7f0c98b0a1..9e2a55efebe0f 100644 --- a/cmd/explaintest/main.go +++ b/cmd/explaintest/main.go @@ -408,6 +408,7 @@ func (t *tester) create(tableName string, qText string) error { fmt.Printf("import data for table %s of test %s:\n", tableName, t.name) path := "./importer -t \"" + qText + "\"" + "-P" + fmt.Sprint(port) + "-n 2000 -c 100" + //nolint: gosec cmd := exec.Command("sh", "-c", path) stdoutIn, err := cmd.StdoutPipe() if err != nil { diff --git a/config/config_test.go b/config/config_test.go index b4b439744045e..90ad5b293ffb6 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -56,7 +56,7 @@ func TestAtomicBoolUnmarshal(t *testing.T) { require.Equal(t, "ab = \"false\"\n", firstBuffer.String()) _, err = toml.Decode("ab = 1", &d) - require.EqualError(t, err, "Invalid value for bool type: 1") + require.EqualError(t, err, "toml: line 1 (last key \"ab\"): Invalid value for bool type: 1") } func TestNullableBoolUnmarshal(t *testing.T) { @@ -92,7 +92,7 @@ func TestNullableBoolUnmarshal(t *testing.T) { require.Equal(t, nbUnset, log.EnableErrorStack) _, err = toml.Decode("enable-error-stack = 1", &log) - require.EqualError(t, err, "Invalid value for bool type: 1") + require.EqualError(t, err, "toml: line 1 (last key \"enable-error-stack\"): Invalid value for bool type: 1") require.Equal(t, nbUnset, log.EnableErrorStack) // Test for UnmarshalJSON diff --git a/config/main_test.go b/config/main_test.go index 3458dc358ad86..31fc1fa72ff31 100644 --- a/config/main_test.go +++ b/config/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/ddl/cluster.go b/ddl/cluster.go index e05964c8826fa..e84828845d433 100644 --- a/ddl/cluster.go +++ b/ddl/cluster.go @@ -16,6 +16,7 @@ package ddl import ( "bytes" + "cmp" "context" "encoding/hex" "fmt" @@ -274,8 +275,8 @@ func GetFlashbackKeyRanges(sess sessionctx.Context) ([]kv.KeyRange, error) { } } - slices.SortFunc(flashbackIDs, func(a, b flashbackID) bool { - return a.id < b.id + slices.SortFunc(flashbackIDs, func(a, b flashbackID) int { + return cmp.Compare(a.id, b.id) }) lastExcludeIdx := -1 diff --git a/ddl/ddl.go b/ddl/ddl.go index ed774c202b14a..b01742a9fd041 100644 --- a/ddl/ddl.go +++ b/ddl/ddl.go @@ -19,6 +19,7 @@ package ddl import ( + "cmp" "context" "encoding/json" "flag" @@ -1699,8 +1700,8 @@ func getDDLJobs(t *meta.Meta) ([]*model.Job, error) { return nil, errors.Trace(err) } jobs := append(generalJobs, addIdxJobs...) - slices.SortFunc(jobs, func(i, j *model.Job) bool { - return i.ID < j.ID + slices.SortFunc(jobs, func(i, j *model.Job) int { + return cmp.Compare(i.ID, j.ID) }) return jobs, nil } @@ -1860,8 +1861,8 @@ func GetAllHistoryDDLJobs(m *meta.Meta) ([]*model.Job, error) { } } // sort job. - slices.SortFunc(allJobs, func(i, j *model.Job) bool { - return i.ID < j.ID + slices.SortFunc(allJobs, func(i, j *model.Job) int { + return cmp.Compare(i.ID, j.ID) }) return allJobs, nil } diff --git a/ddl/ddl_api_test.go b/ddl/ddl_api_test.go index 9283389047ecf..2b8874294dde8 100644 --- a/ddl/ddl_api_test.go +++ b/ddl/ddl_api_test.go @@ -15,6 +15,7 @@ package ddl_test import ( + "cmp" "context" "fmt" "sync" @@ -110,8 +111,8 @@ func TestGetDDLJobsIsSort(t *testing.T) { require.NoError(t, err) require.Len(t, currJobs, 15) - isSort := slices.IsSortedFunc(currJobs, func(i, j *model.Job) bool { - return i.ID <= j.ID + isSort := slices.IsSortedFunc(currJobs, func(i, j *model.Job) int { + return cmp.Compare(i.ID, j.ID) }) require.True(t, isSort) diff --git a/ddl/failtest/main_test.go b/ddl/failtest/main_test.go index c136cb0fa6b94..7b008bf9883ac 100644 --- a/ddl/failtest/main_test.go +++ b/ddl/failtest/main_test.go @@ -35,7 +35,7 @@ func TestMain(m *testing.M) { ddl.SetWaitTimeWhenErrorOccurred(time.Microsecond) opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/ddl/index.go b/ddl/index.go index be5ce0df8d495..d7acabdcdd8b7 100644 --- a/ddl/index.go +++ b/ddl/index.go @@ -16,6 +16,7 @@ package ddl import ( "bytes" + "cmp" "context" "encoding/hex" "fmt" @@ -1055,7 +1056,7 @@ func RemoveDependentHiddenColumns(tblInfo *model.TableInfo, idxInfo *model.Index } } // Sort the offset in descending order. - slices.SortFunc(hiddenColOffs, func(a, b int) bool { return a > b }) + slices.SortFunc(hiddenColOffs, func(a, b int) int { return cmp.Compare(a, b) }) // Move all the dependent hidden columns to the end. endOffset := len(tblInfo.Columns) - 1 for _, offset := range hiddenColOffs { diff --git a/ddl/label/main_test.go b/ddl/label/main_test.go index 559584b77f407..2458b19b20e51 100644 --- a/ddl/label/main_test.go +++ b/ddl/label/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/ddl/main_test.go b/ddl/main_test.go index 3418d16a23ece..91ec89c79009f 100644 --- a/ddl/main_test.go +++ b/ddl/main_test.go @@ -59,7 +59,7 @@ func TestMain(m *testing.M) { } opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("github.com/tikv/client-go/v2/txnkv/transaction.keepAlive"), diff --git a/ddl/metadatalocktest/main_test.go b/ddl/metadatalocktest/main_test.go index 4a52dad904905..93854188d63d8 100644 --- a/ddl/metadatalocktest/main_test.go +++ b/ddl/metadatalocktest/main_test.go @@ -35,7 +35,7 @@ func TestMain(m *testing.M) { ddl.SetWaitTimeWhenErrorOccurred(time.Microsecond) opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/ddl/util/main_test.go b/ddl/util/main_test.go index ae8004db124ba..247e3c0e91f0e 100644 --- a/ddl/util/main_test.go +++ b/ddl/util/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/distsql/main_test.go b/distsql/main_test.go index 10e6ed474ce70..33aa940acde49 100644 --- a/distsql/main_test.go +++ b/distsql/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/domain/globalconfigsync/globalconfig_test.go b/domain/globalconfigsync/globalconfig_test.go index d6013f2887693..874334b89837b 100644 --- a/domain/globalconfigsync/globalconfig_test.go +++ b/domain/globalconfigsync/globalconfig_test.go @@ -35,7 +35,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/domain/infosync/info_test.go b/domain/infosync/info_test.go index b3e95415cc9f8..95120a777abd2 100644 --- a/domain/infosync/info_test.go +++ b/domain/infosync/info_test.go @@ -39,7 +39,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/domain/main_test.go b/domain/main_test.go index f236b8461fa12..6714037d9bd4b 100644 --- a/domain/main_test.go +++ b/domain/main_test.go @@ -26,7 +26,7 @@ func TestMain(m *testing.M) { server.RunInGoTest = true testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/dumpling/export/main_test.go b/dumpling/export/main_test.go index da19d470dc94f..1049fda523cf1 100644 --- a/dumpling/export/main_test.go +++ b/dumpling/export/main_test.go @@ -48,7 +48,7 @@ func TestMain(m *testing.M) { registry.MustRegister(collectors.NewGoCollector()) opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), } diff --git a/errors.toml b/errors.toml index 235a8a9375977..13823c13c19d9 100644 --- a/errors.toml +++ b/errors.toml @@ -1273,7 +1273,7 @@ Invalid storage current version: %d ["ddl:8210"] error = ''' -Invalid %!s(MISSING) state: %!v(MISSING) +Invalid %s state: %v ''' ["ddl:8211"] diff --git a/executor/aggfuncs/main_test.go b/executor/aggfuncs/main_test.go index 09b07cea808ec..0c0ed25104cda 100644 --- a/executor/aggfuncs/main_test.go +++ b/executor/aggfuncs/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/executor/aggregate.go b/executor/aggregate.go index 561bd4dcd9502..7520521607e78 100644 --- a/executor/aggregate.go +++ b/executor/aggregate.go @@ -16,6 +16,7 @@ package executor import ( "bytes" + "cmp" "context" "fmt" "sync" @@ -1188,7 +1189,7 @@ func (*HashAggRuntimeStats) workerString(buf *bytes.Buffer, prefix string, concu time.Duration(wallTime), concurrency, totalTaskNum, time.Duration(totalWait), time.Duration(totalExec), time.Duration(totalTime))) n := len(workerStats) if n > 0 { - slices.SortFunc(workerStats, func(i, j *AggWorkerStat) bool { return i.WorkerTime < j.WorkerTime }) + slices.SortFunc(workerStats, func(i, j *AggWorkerStat) int { return cmp.Compare(i.WorkerTime, j.WorkerTime) }) buf.WriteString(fmt.Sprintf(", max:%v, p95:%v", time.Duration(workerStats[n-1].WorkerTime), time.Duration(workerStats[n*19/20].WorkerTime))) } diff --git a/executor/analyzetest/main_test.go b/executor/analyzetest/main_test.go index 5ebf42dc764a2..713ca5941822a 100644 --- a/executor/analyzetest/main_test.go +++ b/executor/analyzetest/main_test.go @@ -22,7 +22,7 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), } diff --git a/executor/autoidtest/main_test.go b/executor/autoidtest/main_test.go index 1dc33b2085dd4..edde1b16dc012 100644 --- a/executor/autoidtest/main_test.go +++ b/executor/autoidtest/main_test.go @@ -34,7 +34,7 @@ func TestMain(m *testing.M) { tikv.EnableFailpoints() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("gopkg.in/natefinch/lumberjack%2ev2.(*Logger).millRun"), diff --git a/executor/batch_point_get.go b/executor/batch_point_get.go index 965708073a097..3134d37c0366e 100644 --- a/executor/batch_point_get.go +++ b/executor/batch_point_get.go @@ -250,11 +250,11 @@ func (e *BatchPointGetExec) initialize(ctx context.Context) error { toFetchIndexKeys = append(toFetchIndexKeys, idxKey) } if e.keepOrder { - slices.SortFunc(toFetchIndexKeys, func(i, j kv.Key) bool { + slices.SortFunc(toFetchIndexKeys, func(i, j kv.Key) int { if e.desc { - return i.Cmp(j) > 0 + return j.Cmp(i) } - return i.Cmp(j) < 0 + return i.Cmp(j) }) } @@ -318,11 +318,11 @@ func (e *BatchPointGetExec) initialize(ctx context.Context) error { failpoint.InjectContext(ctx, "batchPointGetRepeatableReadTest-step2", nil) }) } else if e.keepOrder { - less := func(i, j kv.Handle) bool { + less := func(i, j kv.Handle) int { if e.desc { - return i.Compare(j) > 0 + return j.Compare(i) } - return i.Compare(j) < 0 + return i.Compare(j) } if e.tblInfo.PKIsHandle && mysql.HasUnsignedFlag(e.tblInfo.GetPkColInfo().GetFlag()) { uintComparator := func(i, h kv.Handle) int { @@ -339,11 +339,11 @@ func (e *BatchPointGetExec) initialize(ctx context.Context) error { } return 0 } - less = func(i, j kv.Handle) bool { + less = func(i, j kv.Handle) int { if e.desc { - return uintComparator(i, j) > 0 + return uintComparator(j, i) } - return uintComparator(i, j) < 0 + return uintComparator(i, j) } } slices.SortFunc(e.handles, less) diff --git a/executor/builder.go b/executor/builder.go index 83a932d1e1064..1bb30c9c338f2 100644 --- a/executor/builder.go +++ b/executor/builder.go @@ -16,6 +16,7 @@ package executor import ( "bytes" + "cmp" "context" "math" "strconv" @@ -3521,8 +3522,8 @@ func (b *executorBuilder) buildTableReader(v *plannercore.PhysicalTableReader) E } // Sort the partition is necessary to make the final multiple partition key ranges ordered. - slices.SortFunc(partitions, func(i, j table.PhysicalTable) bool { - return i.GetPhysicalID() < j.GetPhysicalID() + slices.SortFunc(partitions, func(i, j table.PhysicalTable) int { + return cmp.Compare(i.GetPhysicalID(), j.GetPhysicalID()) }) ret.kvRangeBuilder = kvRangeBuilderFromRangeAndPartition{ sctx: b.ctx, @@ -3641,8 +3642,8 @@ func (builder *dataReaderBuilder) prunePartitionForInnerExecutor(tbl table.Table } // To make the final key ranges involving multiple partitions ordered. - slices.SortFunc(usedPartition, func(i, j table.PhysicalTable) bool { - return i.GetPhysicalID() < j.GetPhysicalID() + slices.SortFunc(usedPartition, func(i, j table.PhysicalTable) int { + return cmp.Compare(i.GetPhysicalID(), j.GetPhysicalID()) }) return usedPartition, true, contentPos, nil } @@ -4244,8 +4245,8 @@ func (builder *dataReaderBuilder) buildTableReaderForIndexJoin(ctx context.Conte } } // The key ranges should be ordered. - slices.SortFunc(kvRanges, func(i, j kv.KeyRange) bool { - return bytes.Compare(i.StartKey, j.StartKey) < 0 + slices.SortFunc(kvRanges, func(i, j kv.KeyRange) int { + return bytes.Compare(i.StartKey, j.StartKey) }) return builder.buildTableReaderFromKvRanges(ctx, e, kvRanges) } @@ -4282,8 +4283,8 @@ func (builder *dataReaderBuilder) buildTableReaderForIndexJoin(ctx context.Conte } // The key ranges should be ordered. - slices.SortFunc(kvRanges, func(i, j kv.KeyRange) bool { - return bytes.Compare(i.StartKey, j.StartKey) < 0 + slices.SortFunc(kvRanges, func(i, j kv.KeyRange) int { + return bytes.Compare(i.StartKey, j.StartKey) }) return builder.buildTableReaderFromKvRanges(ctx, e, kvRanges) } @@ -4403,8 +4404,8 @@ func (builder *dataReaderBuilder) buildTableReaderBase(ctx context.Context, e *T func (builder *dataReaderBuilder) buildTableReaderFromHandles(ctx context.Context, e *TableReaderExecutor, handles []kv.Handle, canReorderHandles bool) (*TableReaderExecutor, error) { if canReorderHandles { - slices.SortFunc(handles, func(i, j kv.Handle) bool { - return i.Compare(j) < 0 + slices.SortFunc(handles, func(i, j kv.Handle) int { + return i.Compare(j) }) } var b distsql.RequestBuilder @@ -4658,8 +4659,8 @@ func buildKvRangesForIndexJoin(ctx sessionctx.Context, tableID, indexID int64, l memTracker.Consume(2 * types.EstimatedMemUsage(tmpDatumRanges[0].LowVal, len(tmpDatumRanges))) } if cwc == nil { - slices.SortFunc(kvRanges, func(i, j kv.KeyRange) bool { - return bytes.Compare(i.StartKey, j.StartKey) < 0 + slices.SortFunc(kvRanges, func(i, j kv.KeyRange) int { + return bytes.Compare(i.StartKey, j.StartKey) }) return kvRanges, nil } diff --git a/executor/distsql.go b/executor/distsql.go index ac531a452fb8f..7188b234d48f0 100644 --- a/executor/distsql.go +++ b/executor/distsql.go @@ -325,8 +325,8 @@ func (e *IndexReaderExecutor) open(ctx context.Context, kvRanges *kv.KeyRanges) e.memTracker = memory.NewTracker(e.id, -1) } e.memTracker.AttachTo(e.ctx.GetSessionVars().StmtCtx.MemTracker) - kvRanges.SortByFunc(func(i, j kv.KeyRange) bool { - return bytes.Compare(i.StartKey, j.StartKey) < 0 + kvRanges.SortByFunc(func(i, j kv.KeyRange) int { + return bytes.Compare(i.StartKey, j.StartKey) }) var builder distsql.RequestBuilder builder.SetWrappedKeyRanges(kvRanges). @@ -636,8 +636,8 @@ func (e *IndexLookUpExecutor) startIndexWorker(ctx context.Context, workCh chan< // init kvReq, result and worker for this partition // The key ranges should be ordered. - slices.SortFunc(kvRange, func(i, j kv.KeyRange) bool { - return bytes.Compare(i.StartKey, j.StartKey) < 0 + slices.SortFunc(kvRange, func(i, j kv.KeyRange) int { + return bytes.Compare(i.StartKey, j.StartKey) }) kvReq, err := builder.SetKeyRanges(kvRange).Build() if err != nil { diff --git a/executor/distsqltest/main_test.go b/executor/distsqltest/main_test.go index 6bdc92f1e5cc6..1ef29dda80cce 100644 --- a/executor/distsqltest/main_test.go +++ b/executor/distsqltest/main_test.go @@ -34,7 +34,7 @@ func TestMain(m *testing.M) { tikv.EnableFailpoints() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("gopkg.in/natefinch/lumberjack%2ev2.(*Logger).millRun"), diff --git a/executor/fktest/main_test.go b/executor/fktest/main_test.go index 00c470717f529..2f2633b88f192 100644 --- a/executor/fktest/main_test.go +++ b/executor/fktest/main_test.go @@ -34,7 +34,7 @@ func TestMain(m *testing.M) { tikv.EnableFailpoints() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("gopkg.in/natefinch/lumberjack%2ev2.(*Logger).millRun"), diff --git a/executor/index_lookup_join.go b/executor/index_lookup_join.go index ee654b282cfe4..1c6a9cab4aa09 100644 --- a/executor/index_lookup_join.go +++ b/executor/index_lookup_join.go @@ -655,12 +655,12 @@ func (iw *innerWorker) sortAndDedupLookUpContents(lookUpContents []*indexJoinLoo return lookUpContents } sc := iw.ctx.GetSessionVars().StmtCtx - slices.SortFunc(lookUpContents, func(i, j *indexJoinLookUpContent) bool { + slices.SortFunc(lookUpContents, func(i, j *indexJoinLookUpContent) int { cmp := compareRow(sc, i.keys, j.keys, iw.keyCollators) if cmp != 0 || iw.nextColCompareFilters == nil { - return cmp < 0 + return cmp } - return iw.nextColCompareFilters.CompareRow(i.row, j.row) < 0 + return iw.nextColCompareFilters.CompareRow(i.row, j.row) }) deDupedLookupKeys := lookUpContents[:1] for i := 1; i < len(lookUpContents); i++ { diff --git a/executor/index_lookup_merge_join.go b/executor/index_lookup_merge_join.go index e0fb176fff589..60b9eacd4e73f 100644 --- a/executor/index_lookup_merge_join.go +++ b/executor/index_lookup_merge_join.go @@ -449,23 +449,29 @@ func (imw *innerMergeWorker) handleTask(ctx context.Context, task *lookUpMergeJo // Because the necessary condition of merge join is both outer and inner keep order of join keys. // In this case, we need sort the outer side. if imw.outerMergeCtx.needOuterSort { - slices.SortFunc(task.outerOrderIdx, func(idxI, idxJ chunk.RowPtr) bool { + slices.SortFunc(task.outerOrderIdx, func(idxI, idxJ chunk.RowPtr) int { rowI, rowJ := task.outerResult.GetRow(idxI), task.outerResult.GetRow(idxJ) - var cmp int64 + var c int64 var err error for _, keyOff := range imw.keyOff2KeyOffOrderByIdx { joinKey := imw.outerMergeCtx.joinKeys[keyOff] - cmp, _, err = imw.outerMergeCtx.compareFuncs[keyOff](imw.ctx, joinKey, joinKey, rowI, rowJ) + c, _, err = imw.outerMergeCtx.compareFuncs[keyOff](imw.ctx, joinKey, joinKey, rowI, rowJ) terror.Log(err) - if cmp != 0 { + if c != 0 { break } } - if cmp != 0 || imw.nextColCompareFilters == nil { - return (cmp < 0 && !imw.desc) || (cmp > 0 && imw.desc) + if c != 0 || imw.nextColCompareFilters == nil { + if imw.desc { + return int(-c) + } + return int(c) + } + c = int64(imw.nextColCompareFilters.CompareRow(rowI, rowJ)) + if imw.desc { + return int(-c) } - cmp = int64(imw.nextColCompareFilters.CompareRow(rowI, rowJ)) - return (cmp < 0 && !imw.desc) || (cmp > 0 && imw.desc) + return int(c) }) } dLookUpKeys, err := imw.constructDatumLookupKeys(task) diff --git a/executor/index_merge_reader.go b/executor/index_merge_reader.go index 46b6db3ecf678..20e78ee80f951 100644 --- a/executor/index_merge_reader.go +++ b/executor/index_merge_reader.go @@ -384,8 +384,8 @@ func (e *IndexMergeReaderExecutor) startPartialIndexWorker(ctx context.Context, // init kvReq and worker for this partition // The key ranges should be ordered. - slices.SortFunc(keyRange, func(i, j kv.KeyRange) bool { - return bytes.Compare(i.StartKey, j.StartKey) < 0 + slices.SortFunc(keyRange, func(i, j kv.KeyRange) int { + return bytes.Compare(i.StartKey, j.StartKey) }) kvReq, err := builder.SetKeyRanges(keyRange).Build() if err != nil { diff --git a/executor/infoschema_reader.go b/executor/infoschema_reader.go index 786c3aa41dc4a..4dbefb0dca10f 100644 --- a/executor/infoschema_reader.go +++ b/executor/infoschema_reader.go @@ -16,6 +16,7 @@ package executor import ( "bytes" + "cmp" "context" "encoding/hex" "encoding/json" @@ -3009,8 +3010,8 @@ func (e *hugeMemTableRetriever) retrieve(ctx context.Context, sctx sessionctx.Co if !e.initialized { is := sctx.GetInfoSchema().(infoschema.InfoSchema) dbs := is.AllSchemas() - slices.SortFunc(dbs, func(i, j *model.DBInfo) bool { - return i.Name.L < j.Name.L + slices.SortFunc(dbs, func(i, j *model.DBInfo) int { + return cmp.Compare(i.Name.L, j.Name.L) }) e.dbs = dbs e.initialized = true diff --git a/executor/inspection_result.go b/executor/inspection_result.go index 55793a7729274..e70ef5b5f80e9 100644 --- a/executor/inspection_result.go +++ b/executor/inspection_result.go @@ -15,6 +15,7 @@ package executor import ( + "cmp" "context" "fmt" "math" @@ -169,20 +170,22 @@ func (e *inspectionResultRetriever) retrieve(ctx context.Context, sctx sessionct continue } // make result stable - slices.SortFunc(results, func(i, j inspectionResult) bool { - if i.degree != j.degree { - return i.degree > j.degree + slices.SortFunc(results, func(i, j inspectionResult) int { + if c := cmp.Compare(i.degree, j.degree); c != 0 { + return -c } - if lhs, rhs := i.item, j.item; lhs != rhs { - return lhs < rhs + // lhs and rhs + if c := cmp.Compare(i.item, j.item); c != 0 { + return c } - if i.actual != j.actual { - return i.actual < j.actual + if c := cmp.Compare(i.actual, j.actual); c != 0 { + return c } - if lhs, rhs := i.tp, j.tp; lhs != rhs { - return lhs < rhs + // lhs and rhs + if c := cmp.Compare(i.tp, j.tp); c != 0 { + return c } - return i.instance < j.instance + return cmp.Compare(i.instance, j.instance) }) for _, result := range results { if len(result.instance) == 0 { diff --git a/executor/issuetest/main_test.go b/executor/issuetest/main_test.go index daecbf2f06859..25d37b71f892e 100644 --- a/executor/issuetest/main_test.go +++ b/executor/issuetest/main_test.go @@ -34,7 +34,7 @@ func TestMain(m *testing.M) { tikv.EnableFailpoints() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/executor/kvtest/main_test.go b/executor/kvtest/main_test.go index 592d8ba5276bf..20ca5537d3627 100644 --- a/executor/kvtest/main_test.go +++ b/executor/kvtest/main_test.go @@ -34,7 +34,7 @@ func TestMain(m *testing.M) { tikv.EnableFailpoints() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/executor/main_test.go b/executor/main_test.go index 512eced5b50fa..fcdf1e4226abb 100644 --- a/executor/main_test.go +++ b/executor/main_test.go @@ -55,7 +55,7 @@ func TestMain(m *testing.M) { tikv.EnableFailpoints() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("gopkg.in/natefinch/lumberjack%2ev2.(*Logger).millRun"), diff --git a/executor/memtable_reader.go b/executor/memtable_reader.go index dc215e71fe3bb..60c8a798292d8 100644 --- a/executor/memtable_reader.go +++ b/executor/memtable_reader.go @@ -16,6 +16,7 @@ package executor import ( "bytes" + "cmp" "container/heap" "context" "encoding/json" @@ -252,7 +253,7 @@ func fetchClusterConfig(sctx sessionctx.Context, nodeTypes, nodeAddrs set.String } items = append(items, item{key: key, val: str}) } - slices.SortFunc(items, func(i, j item) bool { return i.key < j.key }) + slices.SortFunc(items, func(i, j item) int { return cmp.Compare(i.key, j.key) }) var rows [][]types.Datum for _, item := range items { rows = append(rows, types.MakeDatums( @@ -279,7 +280,7 @@ func fetchClusterConfig(sctx sessionctx.Context, nodeTypes, nodeAddrs set.String } results = append(results, result) } - slices.SortFunc(results, func(i, j result) bool { return i.idx < j.idx }) + slices.SortFunc(results, func(i, j result) int { return cmp.Compare(i.idx, j.idx) }) for _, result := range results { finalRows = append(finalRows, result.rows...) } @@ -357,7 +358,7 @@ func (e *clusterServerInfoRetriever) retrieve(ctx context.Context, sctx sessionc } results = append(results, result) } - slices.SortFunc(results, func(i, j result) bool { return i.idx < j.idx }) + slices.SortFunc(results, func(i, j result) int { return cmp.Compare(i.idx, j.idx) }) for _, result := range results { finalRows = append(finalRows, result.rows...) } diff --git a/executor/memtest/main_test.go b/executor/memtest/main_test.go index a3b3edb4ff962..d3818ceadab95 100644 --- a/executor/memtest/main_test.go +++ b/executor/memtest/main_test.go @@ -34,7 +34,7 @@ func TestMain(m *testing.M) { tikv.EnableFailpoints() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/executor/oomtest/oom_test.go b/executor/oomtest/oom_test.go index 8a9f2c0263d76..14303912e7e24 100644 --- a/executor/oomtest/oom_test.go +++ b/executor/oomtest/oom_test.go @@ -36,7 +36,7 @@ func TestMain(m *testing.M) { testsetup.SetupForCommonTest() registerHook() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/executor/sample.go b/executor/sample.go index e7eb9bd223639..b35d8c5deb4a6 100644 --- a/executor/sample.go +++ b/executor/sample.go @@ -228,12 +228,12 @@ func splitIntoMultiRanges(store kv.Storage, startKey, endKey kv.Key) ([]kv.KeyRa } func sortRanges(ranges []kv.KeyRange, isDesc bool) { - slices.SortFunc(ranges, func(i, j kv.KeyRange) bool { + slices.SortFunc(ranges, func(i, j kv.KeyRange) int { ir, jr := i.StartKey, j.StartKey if !isDesc { - return ir.Cmp(jr) < 0 + return ir.Cmp(jr) } - return ir.Cmp(jr) > 0 + return jr.Cmp(ir) }) } diff --git a/executor/seqtest/main_test.go b/executor/seqtest/main_test.go index 299cc69a8a26f..5352c37d438e4 100644 --- a/executor/seqtest/main_test.go +++ b/executor/seqtest/main_test.go @@ -29,7 +29,7 @@ func TestMain(m *testing.M) { conf.TiKVClient.AsyncCommit.AllowedClockDrift = 0 }) opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("github.com/pingcap/tidb/executor.readProjectionInput"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), diff --git a/executor/show_placement.go b/executor/show_placement.go index ae562105476be..56e9abc08f6e0 100644 --- a/executor/show_placement.go +++ b/executor/show_placement.go @@ -15,6 +15,7 @@ package executor import ( + "cmp" "context" gjson "encoding/json" "fmt" @@ -251,7 +252,7 @@ func (e *ShowExec) fetchShowPlacement(ctx context.Context) error { func (e *ShowExec) fetchAllPlacementPolicies() error { policies := e.is.AllPlacementPolicies() - slices.SortFunc(policies, func(i, j *model.PolicyInfo) bool { return i.Name.O < j.Name.O }) + slices.SortFunc(policies, func(i, j *model.PolicyInfo) int { return cmp.Compare(i.Name.O, j.Name.O) }) for _, policy := range policies { name := policy.Name settings := policy.PlacementSettings @@ -266,7 +267,7 @@ func (e *ShowExec) fetchAllDBPlacements(ctx context.Context, scheduleState map[i activeRoles := e.ctx.GetSessionVars().ActiveRoles dbs := e.is.AllSchemas() - slices.SortFunc(dbs, func(i, j *model.DBInfo) bool { return i.Name.O < j.Name.O }) + slices.SortFunc(dbs, func(i, j *model.DBInfo) int { return cmp.Compare(i.Name.O, j.Name.O) }) for _, dbInfo := range dbs { if e.ctx.GetSessionVars().User != nil && checker != nil && !checker.DBIsVisible(activeRoles, dbInfo.Name.O) { @@ -300,7 +301,7 @@ func (e *ShowExec) fetchAllTablePlacements(ctx context.Context, scheduleState ma activeRoles := e.ctx.GetSessionVars().ActiveRoles dbs := e.is.AllSchemas() - slices.SortFunc(dbs, func(i, j *model.DBInfo) bool { return i.Name.O < j.Name.O }) + slices.SortFunc(dbs, func(i, j *model.DBInfo) int { return cmp.Compare(i.Name.O, j.Name.O) }) for _, dbInfo := range dbs { tableRowSets := make([]tableRowSet, 0) @@ -359,7 +360,7 @@ func (e *ShowExec) fetchAllTablePlacements(ctx context.Context, scheduleState ma } } - slices.SortFunc(tableRowSets, func(i, j tableRowSet) bool { return i.name < j.name }) + slices.SortFunc(tableRowSets, func(i, j tableRowSet) int { return cmp.Compare(i.name, j.name) }) for _, rowSet := range tableRowSets { for _, row := range rowSet.rows { e.appendRow(row) diff --git a/executor/show_stats.go b/executor/show_stats.go index 6161a173e8fe4..0773fac49565f 100644 --- a/executor/show_stats.go +++ b/executor/show_stats.go @@ -15,6 +15,7 @@ package executor import ( + "cmp" "fmt" "strings" @@ -382,7 +383,7 @@ func stableColsStats(colStats map[int64]*statistics.Column) (cols []*statistics. for _, col := range colStats { cols = append(cols, col) } - slices.SortFunc(cols, func(i, j *statistics.Column) bool { return i.ID < j.ID }) + slices.SortFunc(cols, func(i, j *statistics.Column) int { return cmp.Compare(i.ID, j.ID) }) return } @@ -390,7 +391,7 @@ func stableIdxsStats(idxStats map[int64]*statistics.Index) (idxs []*statistics.I for _, idx := range idxStats { idxs = append(idxs, idx) } - slices.SortFunc(idxs, func(i, j *statistics.Index) bool { return i.ID < j.ID }) + slices.SortFunc(idxs, func(i, j *statistics.Index) int { return cmp.Compare(i.ID, j.ID) }) return } diff --git a/executor/showtest/main_test.go b/executor/showtest/main_test.go index cc9e1f5aecbb3..c37cfd90b5d5a 100644 --- a/executor/showtest/main_test.go +++ b/executor/showtest/main_test.go @@ -34,7 +34,7 @@ func TestMain(m *testing.M) { tikv.EnableFailpoints() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("gopkg.in/natefinch/lumberjack%2ev2.(*Logger).millRun"), diff --git a/executor/simpletest/main_test.go b/executor/simpletest/main_test.go index 6772de87c1301..0c1f676b3ad8d 100644 --- a/executor/simpletest/main_test.go +++ b/executor/simpletest/main_test.go @@ -22,7 +22,7 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("github.com/tikv/client-go/v2/txnkv/transaction.keepAlive"), } diff --git a/executor/slow_query.go b/executor/slow_query.go index 395d8f4eba8ac..d5d6dad2de313 100644 --- a/executor/slow_query.go +++ b/executor/slow_query.go @@ -962,8 +962,8 @@ func (e *slowQueryRetriever) getAllFiles(ctx context.Context, sctx sessionctx.Co } } // Sort by start time - slices.SortFunc(logFiles, func(i, j logFile) bool { - return i.start.Before(j.start) + slices.SortFunc(logFiles, func(i, j logFile) int { + return i.start.Compare(j.start) }) return logFiles, err } diff --git a/executor/sort.go b/executor/sort.go index cb2c97e68a8e4..d11e4a7e10fc5 100644 --- a/executor/sort.go +++ b/executor/sort.go @@ -275,6 +275,20 @@ func (e *SortExec) lessRow(rowI, rowJ chunk.Row) bool { return false } +func (e *SortExec) compressRow(rowI, rowJ chunk.Row) int { + for i, colIdx := range e.keyColumns { + cmpFunc := e.keyCmpFuncs[i] + cmp := cmpFunc(rowI, colIdx, rowJ, colIdx) + if e.ByItems[i].Desc { + cmp = -cmp + } + if cmp != 0 { + return cmp + } + } + return 0 +} + type partitionPointer struct { row chunk.Row partitionID int @@ -378,6 +392,12 @@ func (e *TopNExec) keyColumnsLess(i, j chunk.RowPtr) bool { return e.lessRow(rowI, rowJ) } +func (e *TopNExec) keyColumnsCompare(i, j chunk.RowPtr) int { + rowI := e.rowChunks.GetRow(i) + rowJ := e.rowChunks.GetRow(j) + return e.compressRow(rowI, rowJ) +} + func (e *TopNExec) initPointers() { e.rowPtrs = make([]chunk.RowPtr, 0, e.rowChunks.Len()) e.memTracker.Consume(int64(8 * e.rowChunks.Len())) @@ -483,7 +503,7 @@ func (e *TopNExec) executeTopN(ctx context.Context) error { } } } - slices.SortFunc(e.rowPtrs, e.keyColumnsLess) + slices.SortFunc(e.rowPtrs, e.keyColumnsCompare) return nil } diff --git a/executor/splittest/main_test.go b/executor/splittest/main_test.go index c7f44e57f49d5..c850261d76213 100644 --- a/executor/splittest/main_test.go +++ b/executor/splittest/main_test.go @@ -22,7 +22,7 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), } goleak.VerifyTestMain(m, opts...) diff --git a/executor/table_reader.go b/executor/table_reader.go index aa8fcf910be1b..374f21c805e1c 100644 --- a/executor/table_reader.go +++ b/executor/table_reader.go @@ -16,6 +16,7 @@ package executor import ( "bytes" + "cmp" "context" "time" @@ -318,8 +319,8 @@ func (e *TableReaderExecutor) buildResp(ctx context.Context, ranges []*ranger.Ra if err != nil { return nil, err } - kvReq.KeyRanges.SortByFunc(func(i, j kv.KeyRange) bool { - return bytes.Compare(i.StartKey, j.StartKey) < 0 + kvReq.KeyRanges.SortByFunc(func(i, j kv.KeyRange) int { + return bytes.Compare(i.StartKey, j.StartKey) }) e.kvRanges = kvReq.KeyRanges.AppendSelfTo(e.kvRanges) @@ -457,9 +458,10 @@ func buildVirtualColumnIndex(schema *expression.Schema, columns []*model.ColumnI virtualColumnIndex = append(virtualColumnIndex, i) } } - slices.SortFunc(virtualColumnIndex, func(i, j int) bool { - return plannercore.FindColumnInfoByID(columns, schema.Columns[i].ID).Offset < - plannercore.FindColumnInfoByID(columns, schema.Columns[j].ID).Offset + slices.SortFunc(virtualColumnIndex, func(i, j int) int { + return cmp.Compare(plannercore.FindColumnInfoByID(columns, schema.Columns[i].ID).Offset, + plannercore.FindColumnInfoByID(columns, schema.Columns[j].ID).Offset) + }) return virtualColumnIndex } diff --git a/executor/test/explain/main_test.go b/executor/test/explain/main_test.go index 365c88b4af771..6de9cc4926f22 100644 --- a/executor/test/explain/main_test.go +++ b/executor/test/explain/main_test.go @@ -22,7 +22,7 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("github.com/tikv/client-go/v2/txnkv/transaction.keepAlive"), } diff --git a/executor/tiflashtest/main_test.go b/executor/tiflashtest/main_test.go index 708cb54bb0283..96a8fc14b388c 100644 --- a/executor/tiflashtest/main_test.go +++ b/executor/tiflashtest/main_test.go @@ -38,7 +38,7 @@ func TestMain(m *testing.M) { goleak.Cleanup(func(_ int) { view.Stop() }), - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("gopkg.in/natefinch/lumberjack%2ev2.(*Logger).millRun"), diff --git a/executor/trace.go b/executor/trace.go index d0ffd92677c10..70634a1190ccf 100644 --- a/executor/trace.go +++ b/executor/trace.go @@ -312,7 +312,7 @@ func dfsTree(t *appdash.Trace, prefix string, isLast bool, chk *chunk.Chunk) { chk.AppendString(2, duration.String()) // Sort events by their start time - slices.SortFunc(t.Sub, func(i, j *appdash.Trace) bool { + slices.SortFunc(t.Sub, func(i, j *appdash.Trace) int { var istart, jstart time.Time if ievent, err := i.TimespanEvent(); err == nil { istart = ievent.Start() @@ -320,7 +320,7 @@ func dfsTree(t *appdash.Trace, prefix string, isLast bool, chk *chunk.Chunk) { if jevent, err := j.TimespanEvent(); err == nil { jstart = jevent.Start() } - return istart.Before(jstart) + return istart.Compare(jstart) }) for i, sp := range t.Sub { diff --git a/expression/aggregation/main_test.go b/expression/aggregation/main_test.go index 11504899f250f..44a7ad54767d6 100644 --- a/expression/aggregation/main_test.go +++ b/expression/aggregation/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/expression/column.go b/expression/column.go index abeca17409ce9..b8b9709870ab1 100644 --- a/expression/column.go +++ b/expression/column.go @@ -15,6 +15,7 @@ package expression import ( + "cmp" "fmt" "strings" "unsafe" @@ -725,8 +726,8 @@ func (col *Column) Repertoire() Repertoire { func SortColumns(cols []*Column) []*Column { sorted := make([]*Column, len(cols)) copy(sorted, cols) - slices.SortFunc(sorted, func(i, j *Column) bool { - return i.UniqueID < j.UniqueID + slices.SortFunc(sorted, func(i, j *Column) int { + return cmp.Compare(i.UniqueID, j.UniqueID) }) return sorted } diff --git a/expression/main_test.go b/expression/main_test.go index 1875fcaf9869d..c8de67bd61649 100644 --- a/expression/main_test.go +++ b/expression/main_test.go @@ -52,7 +52,7 @@ func TestMain(m *testing.M) { testDataMap.LoadTestSuiteData("testdata", "expression_suite") opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/extension/main_test.go b/extension/main_test.go index 7ffc36a917470..a2600e2ad71ca 100644 --- a/extension/main_test.go +++ b/extension/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/go.mod b/go.mod index 8f6f93aafe182..8636f7565fa63 100644 --- a/go.mod +++ b/go.mod @@ -1,67 +1,69 @@ module github.com/pingcap/tidb -go 1.19 +go 1.23 require ( - cloud.google.com/go/storage v1.27.0 - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.20.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.12.0 - github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.2.0 - github.com/BurntSushi/toml v1.2.1 + cloud.google.com/go/storage v1.30.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.12.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.0.0 + github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c github.com/DATA-DOG/go-sqlmock v1.5.0 + github.com/IBM/sarama v1.43.3 github.com/Jeffail/gabs/v2 v2.5.1 github.com/Masterminds/semver v1.5.0 - github.com/Shopify/sarama v1.29.0 github.com/aliyun/alibaba-cloud-sdk-go v1.61.1581 + github.com/apache/skywalking-eyes v0.4.0 github.com/ashanbrown/makezero v1.1.1 github.com/aws/aws-sdk-go v1.44.259 github.com/blacktear23/go-proxyprotocol v1.0.6 + github.com/butuzov/mirror v1.2.0 github.com/carlmjohnson/flagext v0.21.0 - github.com/charithe/durationcheck v0.0.9 + github.com/charithe/durationcheck v0.0.10 github.com/cheggaaa/pb/v3 v3.0.8 github.com/cheynewallace/tabby v1.1.1 github.com/cockroachdb/errors v1.8.1 github.com/cockroachdb/pebble v0.0.0-20210719141320-8c3bd06debb5 github.com/coocood/freecache v1.2.1 - github.com/coreos/go-semver v0.3.0 + github.com/coreos/go-semver v0.3.1 github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 - github.com/daixiang0/gci v0.8.5 + github.com/daixiang0/gci v0.13.5 github.com/danjacques/gofslock v0.0.0-20191023191349-0a45f885bc37 github.com/dgraph-io/ristretto v0.1.1 github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 github.com/docker/go-units v0.4.0 github.com/emirpasic/gods v1.18.1 - github.com/fatanugraha/noloopclosure v0.1.1 - github.com/fatih/color v1.13.0 + github.com/fatih/color v1.18.0 github.com/fsouza/fake-gcs-server v1.19.0 github.com/go-sql-driver/mysql v1.6.0 github.com/gogo/protobuf v1.3.2 - github.com/golang/mock v1.6.0 - github.com/golang/protobuf v1.5.2 + github.com/golang/mock v1.7.0-rc.1 + github.com/golang/protobuf v1.5.4 github.com/golang/snappy v0.0.4 - github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2 - github.com/golangci/golangci-lint v1.50.1 + github.com/golangci/gofmt v0.0.0-20240816233607-d8596aa466a9 + github.com/golangci/golangci-lint v1.62.0 github.com/golangci/gosec v0.0.0-20180901114220-8afd9cbb6cfb - github.com/golangci/misspell v0.3.5 + github.com/golangci/misspell v0.6.0 github.com/golangci/prealloc v0.0.0-20180630174525-215b22d4de21 github.com/google/btree v1.1.2 github.com/google/pprof v0.0.0-20211122183932-1daafda22083 - github.com/google/uuid v1.3.0 - github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8 + github.com/google/uuid v1.6.0 + github.com/gordonklaus/ineffassign v0.1.0 github.com/gorilla/mux v1.8.0 github.com/gostaticanalysis/forcetypeassert v0.1.0 github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 + github.com/hashicorp/go-version v1.7.0 github.com/iancoleman/strcase v0.2.0 github.com/influxdata/tdigest v0.0.1 github.com/jarcoal/httpmock v1.2.0 github.com/jedib0t/go-pretty/v6 v6.2.2 github.com/jingyugao/rowserrcheck v1.1.1 github.com/joho/sqltocsv v0.0.0-20210428211105-a6d6801d59df - github.com/kisielk/errcheck v1.6.2 - github.com/klauspost/compress v1.15.1 - github.com/kyoh86/exportloopref v0.1.8 - github.com/lestrrat-go/jwx/v2 v2.0.17 - github.com/mgechev/revive v1.2.4 + github.com/kisielk/errcheck v1.8.0 + github.com/klauspost/compress v1.17.9 + github.com/kyoh86/exportloopref v0.1.11 + github.com/lestrrat-go/jwx/v2 v2.0.21 + github.com/mgechev/revive v1.5.0 github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7 github.com/nishanths/predeclared v0.2.2 github.com/opentracing/basictracer-go v1.0.0 @@ -77,74 +79,79 @@ require ( github.com/pingcap/tidb/parser v0.0.0-20211011031125-9b13dc409c5e github.com/pingcap/tipb v0.0.0-20221123081521-2fb828910813 github.com/pkg/errors v0.9.1 - github.com/prometheus/client_golang v1.13.0 - github.com/prometheus/client_model v0.2.0 - github.com/prometheus/common v0.37.0 + github.com/prometheus/client_golang v1.20.5 + github.com/prometheus/client_model v0.6.1 + github.com/prometheus/common v0.55.0 github.com/prometheus/prometheus v0.0.0-20190525122359-d20e84d0fb64 - github.com/shirou/gopsutil/v3 v3.22.9 + github.com/shirou/gopsutil/v3 v3.24.5 github.com/shurcooL/httpgzip v0.0.0-20190720172056-320755c1c1b0 github.com/soheilhy/cmux v0.1.5 - github.com/spf13/cobra v1.6.1 + github.com/spf13/cobra v1.8.1 github.com/spf13/pflag v1.0.5 github.com/spkg/bom v1.0.0 - github.com/stretchr/testify v1.8.4 - github.com/tdakkota/asciicheck v0.1.1 + github.com/stretchr/testify v1.9.0 + github.com/tdakkota/asciicheck v0.2.0 github.com/tiancaiamao/appdash v0.0.0-20181126055449-889f96f722a2 github.com/tikv/client-go/v2 v2.0.4-0.20231121073938-194639470f84 github.com/tikv/pd/client v0.0.0-20230904040343-947701a32c05 - github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144 + github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 github.com/twmb/murmur3 v1.1.3 github.com/uber/jaeger-client-go v2.22.1+incompatible github.com/vbauerster/mpb/v7 v7.5.3 github.com/wangjohn/quickselect v0.0.0-20161129230411-ed8402a42d5f github.com/xitongsys/parquet-go v1.5.5-0.20201110004701-b09c49d6d457 github.com/xitongsys/parquet-go-source v0.0.0-20200817004010-026bad9b25d0 - go.etcd.io/etcd/api/v3 v3.5.2 - go.etcd.io/etcd/client/pkg/v3 v3.5.2 - go.etcd.io/etcd/client/v3 v3.5.2 - go.etcd.io/etcd/server/v3 v3.5.2 + go.etcd.io/etcd/api/v3 v3.5.10 + go.etcd.io/etcd/client/pkg/v3 v3.5.10 + go.etcd.io/etcd/client/v3 v3.5.10 + go.etcd.io/etcd/server/v3 v3.5.10 go.etcd.io/etcd/tests/v3 v3.5.2 go.opencensus.io v0.24.0 go.uber.org/atomic v1.10.0 - go.uber.org/automaxprocs v1.5.3 - go.uber.org/goleak v1.2.0 + go.uber.org/automaxprocs v1.6.0 + go.uber.org/goleak v1.3.0 go.uber.org/multierr v1.8.0 - go.uber.org/zap v1.23.0 - golang.org/x/exp v0.0.0-20221023144134-a1e5550cf13e - golang.org/x/net v0.18.0 - golang.org/x/oauth2 v0.2.0 - golang.org/x/sync v0.5.0 - golang.org/x/sys v0.14.0 - golang.org/x/term v0.14.0 - golang.org/x/text v0.14.0 + go.uber.org/zap v1.24.0 + golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 + golang.org/x/net v0.31.0 + golang.org/x/oauth2 v0.21.0 + golang.org/x/sync v0.9.0 + golang.org/x/sys v0.27.0 + golang.org/x/term v0.26.0 + golang.org/x/text v0.20.0 golang.org/x/time v0.2.0 - golang.org/x/tools v0.15.0 - google.golang.org/api v0.103.0 - google.golang.org/grpc v1.51.0 + golang.org/x/tools v0.27.0 + google.golang.org/api v0.128.0 + google.golang.org/grpc v1.59.0 gopkg.in/yaml.v2 v2.4.0 - honnef.co/go/tools v0.3.3 + honnef.co/go/tools v0.5.1 k8s.io/api v0.24.0 sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0 sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67 ) require ( - cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.13.0 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect - cloud.google.com/go/iam v0.7.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.1 // indirect + cloud.google.com/go v0.110.7 // indirect + cloud.google.com/go/compute/metadata v0.3.0 // indirect + cloud.google.com/go/iam v1.1.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v1.3.1 // indirect github.com/DataDog/zstd v1.4.5 // indirect github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect + github.com/Masterminds/goutils v1.1.1 // indirect + github.com/Masterminds/semver/v3 v3.3.0 // indirect + github.com/Masterminds/sprig/v3 v3.2.3 // indirect github.com/VividCortex/ewma v1.2.0 // indirect github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d // indirect - github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d // indirect + github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect github.com/apache/thrift v0.13.1-0.20201008052519-daf620915714 // indirect github.com/benbjohnson/clock v1.3.0 // indirect github.com/beorn7/perks v1.0.1 // indirect + github.com/bmatcuk/doublestar/v2 v2.0.4 // indirect + github.com/cenkalti/backoff/v4 v4.1.1 // indirect github.com/cespare/xxhash v1.1.0 // indirect - github.com/cespare/xxhash/v2 v2.1.2 // indirect - github.com/chavacava/garif v0.0.0-20220630083739-93517212f375 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/chavacava/garif v0.1.0 // indirect github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f // indirect github.com/cockroachdb/redact v1.0.8 // indirect github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 // indirect @@ -154,106 +161,118 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect github.com/dustin/go-humanize v1.0.0 // indirect - github.com/eapache/go-resiliency v1.2.0 // indirect - github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect + github.com/eapache/go-resiliency v1.7.0 // indirect + github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // indirect github.com/eapache/queue v1.1.0 // indirect github.com/fatih/structtag v1.2.0 // indirect github.com/felixge/httpsnoop v1.0.1 // indirect - github.com/form3tech-oss/jwt-go v3.2.5+incompatible // indirect github.com/go-kit/kit v0.9.0 // indirect github.com/go-logfmt/logfmt v0.5.1 // indirect github.com/go-logr/logr v1.2.0 // indirect github.com/go-ole/go-ole v1.3.0 // indirect github.com/goccy/go-json v0.10.2 // indirect - github.com/golang/glog v1.0.0 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // indirect + github.com/golang-jwt/jwt/v5 v5.2.1 // indirect + github.com/golang/glog v1.1.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/google/go-cmp v0.5.9 // indirect github.com/google/gofuzz v1.1.0 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect - github.com/googleapis/gax-go/v2 v2.7.0 // indirect + github.com/google/licensecheck v0.3.1 // indirect + github.com/google/s2a-go v0.1.4 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.4 // indirect + github.com/googleapis/gax-go/v2 v2.11.0 // indirect github.com/gorilla/handlers v1.5.1 // indirect github.com/gorilla/websocket v1.4.2 // indirect github.com/gostaticanalysis/analysisutil v0.7.1 // indirect github.com/gostaticanalysis/comment v1.4.2 // indirect + github.com/gostaticanalysis/testutil v0.4.0 // indirect github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect - github.com/hashicorp/go-uuid v1.0.2 // indirect + github.com/hashicorp/errwrap v1.0.0 // indirect + github.com/hashicorp/go-multierror v1.1.1 // indirect + github.com/hashicorp/go-uuid v1.0.3 // indirect github.com/hexops/gotextdiff v1.0.3 // indirect - github.com/inconshreveable/mousetrap v1.0.1 // indirect + github.com/huandu/xstrings v1.4.0 // indirect + github.com/imdario/mergo v0.3.16 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jcmturner/aescts/v2 v2.0.0 // indirect github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect - github.com/jcmturner/gofork v1.0.0 // indirect - github.com/jcmturner/gokrb5/v8 v8.4.2 // indirect + github.com/jcmturner/gofork v1.7.6 // indirect + github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect github.com/jcmturner/rpc/v2 v2.0.3 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jonboulle/clockwork v0.2.2 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/cpuid v1.3.1 // indirect - github.com/kr/pretty v0.3.0 // indirect + github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect github.com/lestrrat-go/blackmagic v1.0.2 // indirect github.com/lestrrat-go/httpcc v1.0.1 // indirect - github.com/lestrrat-go/httprc v1.0.4 // indirect + github.com/lestrrat-go/httprc v1.0.5 // indirect github.com/lestrrat-go/iter v1.0.2 // indirect github.com/lestrrat-go/option v1.0.1 // indirect github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.16 // indirect - github.com/mattn/go-runewidth v0.0.14 // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/mattn/go-runewidth v0.0.16 // indirect + github.com/mitchellh/copystructure v1.2.0 // indirect + github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect github.com/ncw/directio v1.0.5 // indirect github.com/ngaut/sync2 v0.0.0-20141008032647-7a24ed77b2ef // indirect github.com/oklog/ulid v1.3.1 // indirect github.com/olekukonko/tablewriter v0.0.5 // indirect - github.com/pierrec/lz4 v2.6.1+incompatible // indirect + github.com/pierrec/lz4/v4 v4.1.21 // indirect github.com/pingcap/check v0.0.0-20200212061837-5e12011dc712 // indirect github.com/pingcap/goleveldb v0.0.0-20191226122134-f82aafb29989 // indirect - github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4 // indirect + github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect - github.com/prometheus/procfs v0.8.0 // indirect + github.com/prometheus/procfs v0.15.1 // indirect github.com/prometheus/tsdb v0.8.0 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect - github.com/rivo/uniseg v0.4.2 // indirect - github.com/rogpeppe/go-internal v1.6.1 // indirect + github.com/rivo/uniseg v0.4.7 // indirect + github.com/rogpeppe/go-internal v1.13.1 // indirect github.com/segmentio/asm v1.2.0 // indirect + github.com/shoenig/go-m1cpu v0.1.6 // indirect + github.com/shopspring/decimal v1.3.1 // indirect github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 // indirect github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd // indirect - github.com/sirupsen/logrus v1.9.0 // indirect + github.com/sirupsen/logrus v1.9.3 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect + github.com/spf13/cast v1.5.0 // indirect github.com/stathat/consistent v1.0.0 // indirect - github.com/tklauser/go-sysconf v0.3.10 // indirect - github.com/tklauser/numcpus v0.4.0 // indirect + github.com/tklauser/go-sysconf v0.3.12 // indirect + github.com/tklauser/numcpus v0.6.1 // indirect github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect - github.com/yusufpapurcu/wmi v1.2.2 // indirect - go.etcd.io/bbolt v1.3.6 // indirect - go.etcd.io/etcd/client/v2 v2.305.2 // indirect - go.etcd.io/etcd/pkg/v3 v3.5.2 // indirect - go.etcd.io/etcd/raft/v3 v3.5.2 // indirect - go.opentelemetry.io/contrib v0.20.0 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0 // indirect - go.opentelemetry.io/otel v0.20.0 // indirect - go.opentelemetry.io/otel/exporters/otlp v0.20.0 // indirect - go.opentelemetry.io/otel/metric v0.20.0 // indirect - go.opentelemetry.io/otel/sdk v0.20.0 // indirect - go.opentelemetry.io/otel/sdk/export/metric v0.20.0 // indirect - go.opentelemetry.io/otel/sdk/metric v0.20.0 // indirect - go.opentelemetry.io/otel/trace v0.20.0 // indirect - go.opentelemetry.io/proto/otlp v0.7.0 // indirect - golang.org/x/crypto v0.15.0 // indirect - golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 // indirect - golang.org/x/mod v0.14.0 // indirect + github.com/yusufpapurcu/wmi v1.2.4 // indirect + go.etcd.io/bbolt v1.3.8 // indirect + go.etcd.io/etcd/client/v2 v2.305.10 // indirect + go.etcd.io/etcd/pkg/v3 v3.5.10 // indirect + go.etcd.io/etcd/raft/v3 v3.5.10 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.25.0 // indirect + go.opentelemetry.io/otel v1.0.1 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.0.1 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.0.1 // indirect + go.opentelemetry.io/otel/sdk v1.0.1 // indirect + go.opentelemetry.io/otel/trace v1.0.1 // indirect + go.opentelemetry.io/proto/otlp v0.9.0 // indirect + golang.org/x/crypto v0.29.0 // indirect + golang.org/x/exp/typeparams v0.0.0-20240909161429-701f63a606c0 // indirect + golang.org/x/mod v0.22.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect gonum.org/v1/gonum v0.8.2 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd // indirect - google.golang.org/protobuf v1.28.1 // indirect + google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect + google.golang.org/protobuf v1.34.2 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 7a1f8f85000da..1715981726879 100644 --- a/go.sum +++ b/go.sum @@ -13,24 +13,21 @@ cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKV cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= +cloud.google.com/go v0.110.7 h1:rJyC7nWRg2jWGZ4wSJ5nY65GTdYJkg0cd/uXb+ACI6o= +cloud.google.com/go v0.110.7/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc= +cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= -cloud.google.com/go/iam v0.7.0 h1:k4MuwOsS7zGJJ+QfZ5vBK8SgHBAvYN/23BWsiihJ1vs= -cloud.google.com/go/iam v0.7.0/go.mod h1:H5Br8wRaDGNc8XP3keLc4unfUUZeyH3Sfl9XpQEYOeg= -cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= +cloud.google.com/go/iam v1.1.1 h1:lW7fzj15aVIXYHREOqjRBV9PsH0Z6u8Y46a1YGvQP4Y= +cloud.google.com/go/iam v1.1.1/go.mod h1:A5avdyVL2tCppe4unb0951eI9jreack+RJ0/d+KUZOU= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= @@ -40,24 +37,26 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -cloud.google.com/go/storage v1.27.0 h1:YOO045NZI9RKfCj1c5A/ZtuuENUc8OAW+gHdGnDgyMQ= -cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= +cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM= +cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= contrib.go.opencensus.io/exporter/ocagent v0.4.12/go.mod h1:450APlNTSR6FrvC3CTRqYosuDstRB9un7SOx2k/9ckA= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= github.com/Azure/azure-sdk-for-go v23.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.20.0 h1:KQgdWmEOmaJKxaUUZwHAYh12t+b+ZJf8q3friycK1kA= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.20.0/go.mod h1:ZPW/Z0kLCTdDZaDbYTetxc9Cxl/2lNqxYHYNOF2bti0= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.12.0 h1:VBvHGLJbaY0+c66NZHdS9cgjHVYSH6DDa0XJMyrblsI= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.12.0/go.mod h1:GJzjM4SR9T0KyX5gKCVyz1ytD8FeWeUPCwtFCt1AyfE= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.1 h1:BUYIbDf/mMZ8945v3QkG3OuqGVyS4Iek0AOLwdRAYoc= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= -github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.2.0 h1:62Ew5xXg5UCGIXDOM7+y4IL5/6mQJq1nenhBCJAeGX8= -github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.2.0/go.mod h1:eHWhQKXc1Gv1DvWH//UzgWjWFEo0Pp4pH2vBzjBw8Fc= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.12.0 h1:1nGuui+4POelzDwI7RG56yfQJHCnKvwfMoU7VsEp+Zg= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.12.0/go.mod h1:99EvauvlcJ1U06amZiksfYz/3aFGyIhWGHVyiZXtBAI= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 h1:tfLQ34V6F7tVSwoTf/4lH5sE0o6eCJuNDTmH09nDpbc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0/go.mod h1:9kIvujWAA58nmPmWB1m23fyWic1kYZMxD9CxaWn4Qpg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 h1:ywEEhmNahHBihViHepv3xPBn1663uRv2t2q/ESv9seY= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0/go.mod h1:iZDifYGJTIgIIkYRNWPENUnqx6bJ2xnSDFI2tjwZNuY= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.0.0 h1:u/LLAOFgsMv7HmNL4Qufg58y+qElGOt5qv0z1mURkRY= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.0.0/go.mod h1:2e8rMJtl2+2j+HXbTBwnyGpm5Nou7KhvSfxOq8JpTag= github.com/Azure/go-autorest v11.2.8+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= +github.com/AzureAD/microsoft-authentication-library-for-go v1.3.1 h1:gUDtaZk8heteyfdmv+pcfHvhR9llnh7c7GMwZ8RVG04= +github.com/AzureAD/microsoft-authentication-library-for-go v1.3.1/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= -github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c h1:pxW6RcqyfI9/kWtOwnv/G+AzdKuy2ZrqINhenH4HyNs= +github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/CloudyKit/fastprinter v0.0.0-20170127035650-74b38d55f37a/go.mod h1:EFZQ978U7x8IRnstaskI3IysnWY5Ao3QgZUKOXlsAdw= github.com/CloudyKit/jet v2.1.3-0.20180809161101-62edd43e4f88+incompatible/go.mod h1:HPYO+50pSWkPoj9Q/eq0aRGByCL6ScRlUmiEX5Zgm+w= @@ -67,12 +66,23 @@ github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ= github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM= github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= +github.com/IBM/sarama v1.43.3 h1:Yj6L2IaNvb2mRBop39N7mmJAHBVY3dTPncr3qGVkxPA= +github.com/IBM/sarama v1.43.3/go.mod h1:FVIRaLrhK3Cla/9FfRF5X9Zua2KpS3SYIXxhac1H+FQ= github.com/Jeffail/gabs/v2 v2.5.1 h1:ANfZYjpMlfTTKebycu4X1AgkVWumFVDYQl7JwOr4mDk= github.com/Jeffail/gabs/v2 v2.5.1/go.mod h1:xCn81vdHKxFUuWWAaD5jCTQDNPBMh5pPs9IJ+NcziBI= github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY= github.com/Joker/jade v1.0.1-0.20190614124447-d475f43051e7/go.mod h1:6E6s8o2AE4KhCrqr6GRJjdC/gNfTdxkIXvuGZZda2VM= +github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= +github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= +github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= +github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0= +github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= +github.com/Masterminds/sprig/v3 v3.2.2/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= +github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= +github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/OneOfOne/xxhash v1.2.5 h1:zl/OfRA6nftbBK9qTohYBJ5xvw6C/oNKizR7cZGl3cI= @@ -80,10 +90,6 @@ github.com/OneOfOne/xxhash v1.2.5/go.mod h1:eZbhyaAYD41SGSSsnmcpxVoRiQ/MPUTjUdII github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0= -github.com/Shopify/sarama v1.29.0 h1:ARid8o8oieau9XrHI55f/L3EoRAhm9px6sonbD7yuUE= -github.com/Shopify/sarama v1.29.0/go.mod h1:2QpgD79wpdAESqNQMxNc0KYMkycd4slxGdV3TWSVqrU= -github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc= -github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= github.com/StackExchange/wmi v0.0.0-20180725035823-b12b22c5341f/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= github.com/VividCortex/ewma v1.1.1/go.mod h1:2Tkkvm3sRDVXaiyucHiACn4cqf7DpdyLvmxzcbUokwA= github.com/VividCortex/ewma v1.2.0 h1:f58SaIzcDXrSy3kWaHNvuJgJ3Nmz59Zji6XoJR/q1ow= @@ -96,12 +102,15 @@ github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuy github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d h1:UQZhZ2O0vMHr2cI+DC1Mbh0TJxzA3RcLoMsFw+aXw7E= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 h1:s6gZFSlWYmbqAuRjVTiNNhvNRfY2Wxp9nhfyel4rklc= +github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= github.com/aliyun/alibaba-cloud-sdk-go v1.61.1581 h1:Q/yk4z/cHUVZfgTqtD09qeYBxHwshQAjVRX73qs8UH0= github.com/aliyun/alibaba-cloud-sdk-go v1.61.1581/go.mod h1:RcDobYh8k5VP6TNybz9m++gL3ijVI5wueVr0EM10VsU= github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/apache/skywalking-eyes v0.4.0 h1:O13kdRU6FCEZevfD01mdhTgCZLLfPZIQ0GXZrLl7FpQ= +github.com/apache/skywalking-eyes v0.4.0/go.mod h1:WblDbBgOLsLN0FJEBa9xj6PhuUA/J6spKYVTG4/F8Ls= github.com/apache/thrift v0.0.0-20181112125854-24918abba929/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/apache/thrift v0.13.1-0.20201008052519-daf620915714 h1:Jz3KVLYY5+JO7rDiX0sAuRGtuv2vG01r17Y9nLMWNUw= github.com/apache/thrift v0.13.1-0.20201008052519-daf620915714/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= @@ -131,9 +140,15 @@ github.com/biogo/store v0.0.0-20160505134755-913427a1d5e8/go.mod h1:Iev9Q3MErcn+ github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= github.com/blacktear23/go-proxyprotocol v1.0.6 h1:eTt6UMpEnq59NjON49b3Cay8Dm0sCs1nDliwgkyEsRM= github.com/blacktear23/go-proxyprotocol v1.0.6/go.mod h1:FSCbgnRZrQXazBLL5snfBbrcFSMtcmUDhSRb9OfFA1o= +github.com/bmatcuk/doublestar/v2 v2.0.4 h1:6I6oUiT/sU27eE2OFcWqBhL1SwjyvQuOssxT4a1yidI= +github.com/bmatcuk/doublestar/v2 v2.0.4/go.mod h1:QMmcs3H2AUQICWhfzLXz+IYln8lRQmTZRptLie8RgRw= +github.com/butuzov/mirror v1.2.0 h1:9YVK1qIjNspaqWutSv8gsge2e/Xpq1eqEkslEUHy5cs= +github.com/butuzov/mirror v1.2.0/go.mod h1:DqZZDtzm42wIAIyHXeN8W/qb1EPlb9Qn/if9icBOpdQ= github.com/carlmjohnson/flagext v0.21.0 h1:/c4uK3ie786Z7caXLcIMvePNSSiH3bQVGDvmGLMme60= github.com/carlmjohnson/flagext v0.21.0/go.mod h1:Eenv0epIUAr4NuedNmkzI8WmBmjIxZC239XcKxYS2ac= github.com/cenk/backoff v2.0.0+incompatible/go.mod h1:7FtoeaSnHoZnmZzz47cM35Y9nSW7tNyaidugnHTaFDE= +github.com/cenkalti/backoff/v4 v4.1.1 h1:G2HAfAmvm/GcKan2oOQpBXOd2tT2G57ZnZGWa1PxPBQ= +github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/census-instrumentation/opencensus-proto v0.2.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/certifi/gocertifi v0.0.0-20180905225744-ee1a9a0726d2/go.mod h1:GJKEexRPVJrBSOjoqN5VNOIKJ5Q3RViH6eu3puDRwx4= @@ -142,12 +157,13 @@ github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054/go.mod h1:sGbDF6 github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/charithe/durationcheck v0.0.9 h1:mPP4ucLrf/rKZiIG/a9IPXHGlh8p4CzgpyTy6EEutYk= -github.com/charithe/durationcheck v0.0.9/go.mod h1:SSbRIBVfMjCi/kEB6K65XEA83D6prSM8ap1UCpNKtgg= -github.com/chavacava/garif v0.0.0-20220630083739-93517212f375 h1:E7LT642ysztPWE0dfz43cWOvMiF42DyTRC+eZIaO4yI= -github.com/chavacava/garif v0.0.0-20220630083739-93517212f375/go.mod h1:4m1Rv7xfuwWPNKXlThldNuJvutYM6J95wNuuVmn55To= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/charithe/durationcheck v0.0.10 h1:wgw73BiocdBDQPik+zcEoBG/ob8uyBHf2iyoHGPf5w4= +github.com/charithe/durationcheck v0.0.10/go.mod h1:bCWXb7gYRysD1CU3C+u4ceO49LoGOY1C1L6uouGNreQ= +github.com/chavacava/garif v0.1.0 h1:2JHa3hbYf5D9dsgseMKAmc/MZ109otzgNFk5s87H9Pc= +github.com/chavacava/garif v0.1.0/go.mod h1:XMyYCkEL58DF0oyW4qDjjnPWONs2HBqYKI+UIPD+Gww= github.com/cheggaaa/pb/v3 v3.0.8 h1:bC8oemdChbke2FHIIGy9mn4DPJ2caZYQnfbRqwmdCoA= github.com/cheggaaa/pb/v3 v3.0.8/go.mod h1:UICbiLec/XO6Hw6k+BHEtHeQFzzBH4i2/qk/ow1EJTA= github.com/cheynewallace/tabby v1.1.1 h1:JvUR8waht4Y0S3JF17G6Vhyt+FRhnqVCkk8l4YrOU54= @@ -159,16 +175,20 @@ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDk github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4 h1:/inchEIKaYC1Akx+H+gqO04wryn5h75LSazbRlnya1k= +github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= github.com/cockroachdb/cmux v0.0.0-20170110192607-30d10be49292/go.mod h1:qRiX68mZX1lGBkTWyp3CLcenw9I94W2dLeRvMzcn9N4= github.com/cockroachdb/cockroach v0.0.0-20170608034007-84bc9597164f/go.mod h1:xeT/CQ0qZHangbYbWShlCGAx31aV4AjGswDUjhKS6HQ= github.com/cockroachdb/cockroach-go v0.0.0-20181001143604-e0a95dfd547c/go.mod h1:XGLbWH/ujMcbPbhZq52Nv6UrCghb1yGn//133kEsvDk= github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5/go.mod h1:h6jFvWxBdQXxjopDMZyH2UVceIRfR84bdzbkoKrsWNo= -github.com/cockroachdb/datadriven v1.0.0 h1:uhZrAfEayBecH2w2tZmhe20HJ7hDvrrA4x2Bg9YdZKM= github.com/cockroachdb/datadriven v1.0.0/go.mod h1:5Ib8Meh+jk1RlHIXej6Pzevx/NLlNvQB9pmSBZErGA4= +github.com/cockroachdb/datadriven v1.0.2 h1:H9MtNqVoVhvd9nCBwOyDjUEdZCREqbIdCJD93PBm/jA= +github.com/cockroachdb/datadriven v1.0.2/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= github.com/cockroachdb/errors v1.2.4/go.mod h1:rQD95gz6FARkaKkQXUksEje/d9a6wBJoCr5oaCLELYA= github.com/cockroachdb/errors v1.6.1/go.mod h1:tm6FTP5G81vwJ5lC0SizQo374JNCOPrHyXGitRJoDqM= github.com/cockroachdb/errors v1.8.1 h1:A5+txlVZfOqFBDa4mGz2bUWSp0aHElvHX2bKkdbQu+Y= @@ -196,27 +216,28 @@ github.com/coreos/etcd v3.3.12+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM= github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-semver v0.3.1 h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr4= +github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd/v22 v22.3.2 h1:D9/bQk5vlXQFZ6Kwuu6zaiXJ9oTPe68++AzAJc1DzSI= github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 h1:iwZdTE0PVqJCos1vaoKsclOGD3ADKpshg3SRtYBbwso= github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548/go.mod h1:e6NPNENfs9mPDVNRekM7lKScauxd5kXTr1Mfyig6TDM= -github.com/daixiang0/gci v0.8.5 h1:yBdsd376w+RIBvFXjj0MAcGWS8cSCfAlRNPfn5xvjl0= -github.com/daixiang0/gci v0.8.5/go.mod h1:EpVfrztufwVgQRXjnX4zuNinEpLj5OmMjtu/+MB0V0c= +github.com/daixiang0/gci v0.13.5 h1:kThgmH1yBmZSBCh1EJVxQ7JsHpm5Oms0AMed/0LaH4c= +github.com/daixiang0/gci v0.13.5/go.mod h1:12etP2OniiIdP4q+kjUGrC/rUagga7ODbqsom5Eo5Yk= github.com/danjacques/gofslock v0.0.0-20191023191349-0a45f885bc37 h1:X6mKGhCFOxrKeeHAjv/3UvT6e5RRxW6wRdlqlV6/H4w= github.com/danjacques/gofslock v0.0.0-20191023191349-0a45f885bc37/go.mod h1:DC3JtzuG7kxMvJ6dZmf2ymjNyoXwgtklr7FN+Um2B0U= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= @@ -227,18 +248,15 @@ github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUn github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= -github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= -github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= github.com/docker/go-units v0.4.0 h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw= github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/eapache/go-resiliency v1.2.0 h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUKorFR1Q= -github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8/yCZMuEPMUDHG0CW/brkkEp8mzqk2+ODEitlw= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= +github.com/eapache/go-resiliency v1.7.0 h1:n3NRTnBn5N0Cbi/IeOHuQn9s2UwVUH7Ga0ZWcP+9JTA= +github.com/eapache/go-resiliency v1.7.0/go.mod h1:5yPzW0MIvSe0JDsv0v+DvcjEv2FyD6iZYSs1ZI+iQho= +github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 h1:Oy0F4ALJ04o5Qqpdz8XLIpNA3WM/iSIXqxtqo7UGVws= +github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3/go.mod h1:YvSRo5mw33fLEx1+DlK6L2VV43tJt5Eyel9n9XBcR+0= github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM= @@ -253,20 +271,21 @@ github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.m github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/envoyproxy/protoc-gen-validate v1.0.2 h1:QkIBuU5k+x7/QXPvPPnWXWlCdaBFApVqftFV6k087DA= +github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE= github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw= github.com/etcd-io/gofail v0.0.0-20190801230047-ad7f989257ca/go.mod h1:49H/RkXP8pKaZy4h0d+NW16rSLhyVBt4o6VLJbmOqDE= github.com/evanphx/json-patch v4.1.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/facebookgo/clock v0.0.0-20150410010913-600d898af40a/go.mod h1:7Ga40egUymuWXxAe151lTNnCv97MddSOVsjpPPkityA= github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8= -github.com/fatanugraha/noloopclosure v0.1.1 h1:AhepjAikNpk50qTZoipHZqeZtnyKT/C2Tk5dGn7nC+A= -github.com/fatanugraha/noloopclosure v0.1.1/go.mod h1:Mi9CiG5QvEgvPLtZLsTzjYwjIDnWAbo10r0BG7JpJII= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= -github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= -github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= +github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4= github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= @@ -275,16 +294,15 @@ github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/flosch/pongo2 v0.0.0-20190707114632-bbf5a6c351f4/go.mod h1:T9YF2M40nIgbVgp3rreNmTged+9HrbNTIQf1PsaIiTA= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= -github.com/form3tech-oss/jwt-go v3.2.5+incompatible h1:/l4kBbb4/vGSsdtB5nUe8L7B9mImVMaBPw9L/0TBHU8= -github.com/form3tech-oss/jwt-go v3.2.5+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/form3tech-oss/jwt-go v3.2.6-0.20210809144907-32ab6a8243d7+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= -github.com/frankban/quicktest v1.11.3 h1:8sXhOn0uLys67V8EsXLc6eszDs8VXWxL3iRvebPhedY= -github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= +github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= +github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= github.com/fsouza/fake-gcs-server v1.19.0 h1:XyaGOlqo+R5sjT03x2ymk0xepaQlgwhRLTT2IopW0zA= github.com/fsouza/fake-gcs-server v1.19.0/go.mod h1:JtXHY/QzHhtyIxsNfIuQ+XgHtRb5B/w8nqbL5O8zqo0= github.com/fzipp/gocyclo v0.3.1/go.mod h1:DJHO6AUmbdqj2ET4Z9iArSuwWgYDRryYt2wASxc7x3E= @@ -307,7 +325,6 @@ github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2 github.com/go-kit/kit v0.9.0 h1:wDJmvq38kDhkVxi50ni9ykkdUr1PKgqKOoi01fa0Mdk= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= -github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= @@ -349,10 +366,14 @@ github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/gogo/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM= github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d/go.mod h1:nnjvkQ9ptGaCkuDUx6wNykzzlUixGxvkme+H/lnzb+A= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= +github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ= -github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= +github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= +github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= github.com/golang/groupcache v0.0.0-20180924190550-6f2cf27854a4/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -366,8 +387,8 @@ github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= +github.com/golang/mock v1.7.0-rc.1 h1:YojYx61/OLFsiv6Rw1Z96LpldJIy31o+UHmwAUMJ6/U= +github.com/golang/mock v1.7.0-rc.1/go.mod h1:s42URUywIqd+OcERslBJvOjepvNymP31m3q8d/GkuRs= github.com/golang/protobuf v0.0.0-20180814211427-aa810b61a9c7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -386,21 +407,22 @@ github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2 h1:amWTbTGqOZ71ruzrdA+Nx5WA3tV1N0goTspwmKCQvBY= -github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2/go.mod h1:9wOXstvyDRshQ9LggQuzBCGysxs3b6Uo/1MvYCR2NMs= -github.com/golangci/golangci-lint v1.50.1 h1:C829clMcZXEORakZlwpk7M4iDw2XiwxxKaG504SZ9zY= -github.com/golangci/golangci-lint v1.50.1/go.mod h1:AQjHBopYS//oB8xs0y0M/dtxdKHkdhl0RvmjUct0/4w= +github.com/golangci/gofmt v0.0.0-20240816233607-d8596aa466a9 h1:/1322Qns6BtQxUZDTAT4SdcoxknUki7IAoK4SAXr8ME= +github.com/golangci/gofmt v0.0.0-20240816233607-d8596aa466a9/go.mod h1:Oesb/0uFAyWoaw1U1qS5zyjCg5NP9C9iwjnI4tIsXEE= +github.com/golangci/golangci-lint v1.62.0 h1:/G0g+bi1BhmGJqLdNQkKBWjcim8HjOPc4tsKuHDOhcI= +github.com/golangci/golangci-lint v1.62.0/go.mod h1:jtoOhQcKTz8B6dGNFyfQV3WZkQk+YvBDewDtNpiAJts= github.com/golangci/gosec v0.0.0-20180901114220-8afd9cbb6cfb h1:Bi7BYmZVg4C+mKGi8LeohcP2GGUl2XJD4xCkJoZSaYc= github.com/golangci/gosec v0.0.0-20180901114220-8afd9cbb6cfb/go.mod h1:ON/c2UR0VAAv6ZEAFKhjCLplESSmRFfZcDLASbI1GWo= -github.com/golangci/misspell v0.3.5 h1:pLzmVdl3VxTOncgzHcvLOKirdvcx/TydsClUQXTehjo= -github.com/golangci/misspell v0.3.5/go.mod h1:dEbvlSfYbMQDtrpRMQU675gSDLDNa8sCPPChZ7PhiVA= +github.com/golangci/misspell v0.6.0 h1:JCle2HUTNWirNlDIAUO44hUsKhOFqGPoC4LZxlaSXDs= +github.com/golangci/misspell v0.6.0/go.mod h1:keMNyY6R9isGaSAu+4Q8NMBwMPkh15Gtc8UCVoDtAWo= github.com/golangci/prealloc v0.0.0-20180630174525-215b22d4de21 h1:leSNB7iYzLYSSx3J/s5sVf4Drkc68W2wm4Ixh/mr0us= github.com/golangci/prealloc v0.0.0-20180630174525-215b22d4de21/go.mod h1:tf5+bzsHdTM0bsB7+8mt0GUMvjCgwLpTapNZHU8AajI= github.com/gomodule/redigo v1.7.1-0.20190724094224-574c33c3df38/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4= @@ -422,17 +444,22 @@ github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-github/v33 v33.0.0/go.mod h1:GMdDnVZY/2TsWgp/lkYnpSAh6TrzhANBBwm6k6TTEXg= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= +github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.1.0 h1:Hsa8mG0dQ46ij8Sl2AYJDUv1oA9/d6Vk+3LG99Oe02g= github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/licensecheck v0.3.1 h1:QoxgoDkaeC4nFrtGN1jV7IPmDCHFNIVh54e5hSt6sPs= +github.com/google/licensecheck v0.3.1/go.mod h1:ORkR35t/JjW+emNKtfJDII0zlciG9JgbT7SmsohlHmY= github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.2.1 h1:d8MncMlErDFTwQGBK1xhv026j9kqhvw1Qv9IbWT1VLQ= +github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= +github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= github.com/google/pprof v0.0.0-20180605153948-8b03ce837f34/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= @@ -444,20 +471,23 @@ github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20211122183932-1daafda22083 h1:c8EUapQFi+kjzedr4c6WqbwMdmB95+oDBWZ5XFHFYxY= github.com/google/pprof v0.0.0-20211122183932-1daafda22083/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/s2a-go v0.1.4 h1:1kZ/sQM3srePvKs3tXAvQzo66XfcReoqFpIpIccE7Oc= +github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.2.4 h1:uGy6JWR/uMIILU8wbf+OkstIrNiMjGpEIyhx8f6W7s4= +github.com/googleapis/enterprise-certificate-proxy v0.2.4/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= -github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= +github.com/googleapis/gax-go/v2 v2.11.0 h1:9V9PWXEsWnPpQhu/PeQIkS4eGzMlTLGgt80cUUI8Ki4= +github.com/googleapis/gax-go/v2 v2.11.0/go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5iydzRfb3peWZJI= github.com/googleapis/gnostic v0.2.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= github.com/gophercloud/gophercloud v0.0.0-20190301152420-fca40860790e/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8 h1:PVRE9d4AQKmbelZ7emNig1+NT27DUmKZn5qXxfio54U= -github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= +github.com/gordonklaus/ineffassign v0.1.0 h1:y2Gd/9I7MdY1oEIt+n+rowjBNDcLQq3RsH5hwJd0f9s= +github.com/gordonklaus/ineffassign v0.1.0/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= github.com/gorilla/handlers v1.4.2/go.mod h1:Qkdc/uu4tH4g6mTK6auzZ766c4CA0Ng8+o/OAirnOIQ= github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= @@ -469,7 +499,6 @@ github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/z github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gostaticanalysis/analysisutil v0.0.0-20190318220348-4088753ea4d3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= github.com/gostaticanalysis/comment v1.4.2 h1:hlnx5+S2fY9Zo9ePo4AhgYsYHbM2+eAv8m/s1JiCd6Q= @@ -478,6 +507,7 @@ github.com/gostaticanalysis/forcetypeassert v0.1.0 h1:6eUflI3DiGusXGK6X7cCcIgVCp github.com/gostaticanalysis/forcetypeassert v0.1.0/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= github.com/gostaticanalysis/testutil v0.4.0 h1:nhdCmubdmDF6VEatUNjgUZBJKWRqugoISdUv3PPQgHY= +github.com/gostaticanalysis/testutil v0.4.0/go.mod h1:bLIoPefWXrRi/ssLFWX1dx7Repi5x3CuviD3dgAZaBU= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= @@ -491,12 +521,15 @@ github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFb github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw= github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-msgpack v0.5.4/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= +github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A= @@ -504,11 +537,13 @@ github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdv github.com/hashicorp/go-uuid v0.0.0-20180228145832-27454136f036/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= +github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= +github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= +github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= @@ -520,15 +555,22 @@ github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/J github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= +github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/hydrogen18/memlistener v0.0.0-20141126152155-54553eb933fb/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0= github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= +github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= +github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= +github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc= -github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/influxdata/influxdb v0.0.0-20170331210902-15e594fc09f1/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY= github.com/influxdata/tdigest v0.0.1 h1:XpFptwYmnEKUqmkcDjrzffswZ3nvNeevbUSLPP/ZzIY= github.com/influxdata/tdigest v0.0.1/go.mod h1:Z0kXnxzbTC2qrx4NaIzYkE1k66+6oEDQTvL95hQFh5Y= @@ -545,12 +587,12 @@ github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90 github.com/jcmturner/dnsutils/v2 v2.0.0 h1:lltnkeZGL0wILNvrNiVCR6Ro5PGU/SeBvVO/8c/iPbo= github.com/jcmturner/dnsutils/v2 v2.0.0/go.mod h1:b0TnjGOvI/n42bZa+hmXL+kFJZsFT7G4t3HTlQ184QM= github.com/jcmturner/gofork v0.0.0-20180107083740-2aebee971930/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= -github.com/jcmturner/gofork v1.0.0 h1:J7uCkflzTEhUZ64xqKnkDxq3kzc96ajM1Gli5ktUem8= -github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= +github.com/jcmturner/gofork v1.7.6 h1:QH0l3hzAU1tfT3rZCnW5zXl+orbkNMMRGJfdJjHVETg= +github.com/jcmturner/gofork v1.7.6/go.mod h1:1622LH6i/EZqLloHfE7IeZ0uEJwMSUyQ/nDd82IeqRo= github.com/jcmturner/goidentity/v6 v6.0.1 h1:VKnZd2oEIMorCTsFBnJWbExfNN7yZr3EhJAxwOkZg6o= github.com/jcmturner/goidentity/v6 v6.0.1/go.mod h1:X1YW3bgtvwAXju7V3LCIMpY0Gbxyjn/mY9zx4tFonSg= -github.com/jcmturner/gokrb5/v8 v8.4.2 h1:6ZIM6b/JJN0X8UM43ZOM6Z4SJzla+a/u7scXFJzodkA= -github.com/jcmturner/gokrb5/v8 v8.4.2/go.mod h1:sb+Xq/fTY5yktf/VxLsE3wlfPqQjp0aWNYyvBVK62bc= +github.com/jcmturner/gokrb5/v8 v8.4.4 h1:x1Sv4HaTpepFkXbt2IkL29DXRf8sOfZXo8eRKh687T8= +github.com/jcmturner/gokrb5/v8 v8.4.4/go.mod h1:1btQEpgT6k+unzCwX1KdWMEwPPkkgBtP+F6aCACiMrs= github.com/jcmturner/rpc/v2 v2.0.3 h1:7FXXj8Ti1IaVFpSAziCZWNzbNuZmnvw/i6CqLNdWfZY= github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= github.com/jedib0t/go-pretty/v6 v6.2.2 h1:o3McN0rQ4X+IU+HduppSp9TwRdGLRW2rhJXy9CJaCRw= @@ -570,6 +612,7 @@ github.com/joho/sqltocsv v0.0.0-20210428211105-a6d6801d59df/go.mod h1:mAVCUAYtW9 github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jonboulle/clockwork v0.2.2 h1:UOGuzwb1PwsrDAObMuhUnj0p5ULPj8V/xJ7Kx9qUBdQ= github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= +github.com/josharian/txtarfs v0.0.0-20210218200122-0702f000015a/go.mod h1:izVPOvVRsHiKkeGCT6tYBNWyDVuzj9wAaBb5R9qamfw= github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= @@ -596,8 +639,8 @@ github.com/kataras/pio v0.0.0-20190103105442-ea782b38602d/go.mod h1:NV88laa9UiiD github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/errcheck v1.6.2 h1:uGQ9xI8/pgc9iOoCe7kWQgRE6SBTrCGmTSf0LrEtY7c= -github.com/kisielk/errcheck v1.6.2/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= +github.com/kisielk/errcheck v1.8.0 h1:ZX/URYa7ilESY19ik/vBmCn6zdGQLxACwjAcWbHlYlg= +github.com/kisielk/errcheck v1.8.0/go.mod h1:1kLL+jV4e+CFfueBmI1dSK2ADDyQnlrnrY/FqKluHJQ= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.9.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= @@ -605,9 +648,8 @@ github.com/klauspost/compress v1.9.5/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0 github.com/klauspost/compress v1.9.7/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.5/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.12.2/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= -github.com/klauspost/compress v1.15.1 h1:y9FcTHGyrebwfP0ZZqFiaxTaiDnUrGkJkI+f583BL1A= -github.com/klauspost/compress v1.15.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= +github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/cpuid v1.3.1 h1:5JNjFYYQrZeKRJ0734q51WCEEn2huer72Dc7K+R/b6s= github.com/klauspost/cpuid v1.3.1/go.mod h1:bYW4mA6ZgKPob1/Dlai2LviZJO7KGI3uoWLd42rAQw4= @@ -617,28 +659,28 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxv github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/kyoh86/exportloopref v0.1.8 h1:5Ry/at+eFdkX9Vsdw3qU4YkvGtzuVfzT4X7S77LoN/M= -github.com/kyoh86/exportloopref v0.1.8/go.mod h1:1tUcJeiioIs7VWe5gcOObrux3lb66+sBqGZrRkMwPgg= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= +github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/kyoh86/exportloopref v0.1.11 h1:1Z0bcmTypkL3Q4k+IDHMWTcnCliEZcaPiIe0/ymEyhQ= +github.com/kyoh86/exportloopref v0.1.11/go.mod h1:qkV4UF1zGl6EkF1ox8L5t9SwyeBAZ3qLMd6up458uqA= github.com/labstack/echo/v4 v4.1.11/go.mod h1:i541M3Fj6f76NZtHSj7TXnyM8n2gaodfvfxNnFqi74g= github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= github.com/lestrrat-go/blackmagic v1.0.2 h1:Cg2gVSc9h7sz9NOByczrbUvLopQmXrfFx//N+AkAr5k= github.com/lestrrat-go/blackmagic v1.0.2/go.mod h1:UrEqBzIR2U6CnzVyUtfM6oZNMt/7O7Vohk2J0OGSAtU= github.com/lestrrat-go/httpcc v1.0.1 h1:ydWCStUeJLkpYyjLDHihupbn2tYmZ7m22BGkcvZZrIE= github.com/lestrrat-go/httpcc v1.0.1/go.mod h1:qiltp3Mt56+55GPVCbTdM9MlqhvzyuL6W/NMDA8vA5E= -github.com/lestrrat-go/httprc v1.0.4 h1:bAZymwoZQb+Oq8MEbyipag7iSq6YIga8Wj6GOiJGdI8= -github.com/lestrrat-go/httprc v1.0.4/go.mod h1:mwwz3JMTPBjHUkkDv/IGJ39aALInZLrhBp0X7KGUZlo= +github.com/lestrrat-go/httprc v1.0.5 h1:bsTfiH8xaKOJPrg1R+E3iE/AWZr/x0Phj9PBTG/OLUk= +github.com/lestrrat-go/httprc v1.0.5/go.mod h1:mwwz3JMTPBjHUkkDv/IGJ39aALInZLrhBp0X7KGUZlo= github.com/lestrrat-go/iter v1.0.2 h1:gMXo1q4c2pHmC3dn8LzRhJfP1ceCbgSiT9lUydIzltI= github.com/lestrrat-go/iter v1.0.2/go.mod h1:Momfcq3AnRlRjI5b5O8/G5/BvpzrhoFTZcn06fEOPt4= -github.com/lestrrat-go/jwx/v2 v2.0.17 h1:+WavkdKVWO90ECnIzUetOnjY+kcqqw4WXEUmil7sMCE= -github.com/lestrrat-go/jwx/v2 v2.0.17/go.mod h1:G8randPHLGAqhcNCqtt6/V/7E6fvJRl3Sf9z777eTQ0= -github.com/lestrrat-go/option v1.0.0/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I= +github.com/lestrrat-go/jwx/v2 v2.0.21 h1:jAPKupy4uHgrHFEdjVjNkUgoBKtVDgrQPB/h55FHrR0= +github.com/lestrrat-go/jwx/v2 v2.0.21/go.mod h1:09mLW8zto6bWL9GbwnqAli+ArLf+5M33QLQPDggkUWM= github.com/lestrrat-go/option v1.0.1 h1:oAzP2fvZGQKWkvHa1/SAcFolBEca1oN+mQ7eooNBEYU= github.com/lestrrat-go/option v1.0.1/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= @@ -652,7 +694,6 @@ github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= @@ -660,27 +701,30 @@ github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk= github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= -github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU= -github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= +github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw= -github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/maxatome/go-testdeep v1.11.0 h1:Tgh5efyCYyJFGUYiT0qxBSIDeXw0F5zSoatlou685kk= +github.com/maxatome/go-testdeep v1.11.0/go.mod h1:011SgQ6efzZYAen6fDn4BqQ+lUR72ysdyKe7Dyogw70= github.com/mediocregopher/mediocre-go-lib v0.0.0-20181029021733-cb65787f37ed/go.mod h1:dSsfyI2zABAdhcbvkXqgxOxrCsbYeHCPgrZkku60dSg= github.com/mediocregopher/radix/v3 v3.3.0/go.mod h1:EmfVyvspXz1uZEyPBMyGK+kjWiKQGvsUt6O3Pj+LDCQ= -github.com/mgechev/revive v1.2.4 h1:+2Hd/S8oO2H0Ikq2+egtNwQsVhAeELHjxjIUFX5ajLI= -github.com/mgechev/revive v1.2.4/go.mod h1:iAWlQishqCuj4yhV24FTnKSXGpbAA+0SckXB8GQMX/Q= +github.com/mgechev/revive v1.5.0 h1:oaSmjA7rP8+HyoRuCgC531VHwnLH1AlJdjj+1AnQceQ= +github.com/mgechev/revive v1.5.0/go.mod h1:L6T3H8EoerRO86c7WuGpvohIUmiploGiyoYbtIWFmV8= github.com/microcosm-cc/bluemonday v1.0.2/go.mod h1:iVP4YcDBq+n/5fb23BhYFvIMq/leAFZyRl6bYmGDlGc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.10/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= +github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= +github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= @@ -689,7 +733,10 @@ github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS4 github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= +github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= +github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= @@ -698,10 +745,11 @@ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lN github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= github.com/montanaflynn/stats v0.0.0-20180911141734-db72e6cae808/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ= github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= @@ -735,10 +783,12 @@ github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108 github.com/onsi/ginkgo v1.13.0/go.mod h1:+REjRxOmWfHCjfv9TTWB1jD1Frx4XydAD3zm1lskyM0= github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.18.1 h1:M1GfJqGRrBrrGGsbxzV5dqM2U2ApXefZCQpkukxYRLE= +github.com/onsi/gomega v1.18.1/go.mod h1:0q+aL8jAiMXy9hbwj2mr5GziHiwhAIQpFmmtT5hitRs= github.com/opentracing-contrib/go-stdlib v0.0.0-20170113013457-1de4cc2120e7/go.mod h1:PLldrQSroqzH70Xl+1DQcGnefIbqsKR7UDaiux3zV+w= github.com/opentracing/basictracer-go v1.0.0 h1:YyUAhaEfjoWXclZVJ9sGoNct7j4TVk7lZWlQw5UXuoo= github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= @@ -759,9 +809,8 @@ github.com/peterbourgon/g2s v0.0.0-20170223122336-d4e7ad98afea/go.mod h1:1VcHEd3 github.com/petermattis/goid v0.0.0-20170504144140-0ded85884ba5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2 h1:JhzVVoYvbOACxoUmOs6V/G4D5nPVUW73rKvXxP4XUJc= github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2/go.mod h1:iIss55rKnNBTvrwdmkUpLnDpZoAHvWaiq5+iMmen4AE= -github.com/pierrec/lz4 v2.6.0+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4 v2.6.1+incompatible h1:9UY3+iC23yxF0UfGaYrGplQ+79Rg+h/q9FV9ix19jjM= -github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.1.21 h1:yOVMLb6qSIDP67pl/5F7RepeKYu/VmTyEXvuMI5d9mQ= +github.com/pierrec/lz4/v4 v4.1.21/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pingcap/badger v1.5.1-0.20220314162537-ab58fbf40580 h1:MKVFZuqFvAMiDtv3AbihOQ6rY5IE8LWflI1BuZ/hF0Y= github.com/pingcap/badger v1.5.1-0.20220314162537-ab58fbf40580/go.mod h1:upwDfet29M5y5koWilbWWA6ca3Lr0YVuzwX/DK58Vdk= github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8/go.mod h1:B1+S9LNcuMyLH/4HMTViQOJevkGiik3wW2AN9zb2fNQ= @@ -795,8 +844,9 @@ github.com/pingcap/sysutil v0.0.0-20220114020952-ea68d2dbf5b4 h1:HYbcxtnkN3s5tqr github.com/pingcap/sysutil v0.0.0-20220114020952-ea68d2dbf5b4/go.mod h1:sDCsM39cGiv2vwunZkaFA917vVkqDTGSPbbV7z4Oops= github.com/pingcap/tipb v0.0.0-20221123081521-2fb828910813 h1:DbmCfCbcavo0JG+gSp0ySvv1ub/c/j3hsnYzyYPzONo= github.com/pingcap/tipb v0.0.0-20221123081521-2fb828910813/go.mod h1:A7mrd7WHBl1o63LE2bIBGEJMTNWXqhgmYiOvMLxozfs= -github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4 h1:49lOXmGaUpV9Fz3gd7TFZY106KVlPVa5jcYD1gaQf98= -github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= +github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= +github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= @@ -808,6 +858,7 @@ github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndr github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw= github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g= +github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U= github.com/prometheus/client_golang v0.9.0/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= @@ -815,31 +866,29 @@ github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5Fsn github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= -github.com/prometheus/client_golang v1.13.0 h1:b71QUfeo5M8gq2+evJdTPfZhYMAU0uKPkyPJ7TPsloU= -github.com/prometheus/client_golang v1.13.0/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ= +github.com/prometheus/client_golang v1.20.5 h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y= +github.com/prometheus/client_golang v1.20.5/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= +github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= github.com/prometheus/common v0.0.0-20181020173914-7e9e6cabbd39/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.37.0 h1:ccBbHCgIiT9uSoFY0vX8H3zsNR5eLt17/RQLUvn8pXE= -github.com/prometheus/common v0.37.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= +github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc= +github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.8.0 h1:ODq8ZFEaYeCaZOJlZZdJA2AbQR98dSHSM1KW/You5mo= -github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= +github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= +github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= github.com/prometheus/prometheus v0.0.0-20190525122359-d20e84d0fb64 h1:3DyLm+sTAJkfLyR/1pJ3L+fU2lFufWbpcgMFlGtqeyA= github.com/prometheus/prometheus v0.0.0-20190525122359-d20e84d0fb64/go.mod h1:oYrT4Vs22/NcnoVYXt5m4cIHP+znvgyusahVpyETKTw= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= @@ -851,14 +900,15 @@ github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 h1:OdAsTTz6O github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rivo/uniseg v0.4.2 h1:YwD0ulJSJytLpiaWua0sBDusfsCZohxjxzVTYjwxfV8= -github.com/rivo/uniseg v0.4.2/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= +github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= +github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= github.com/rlmcpherson/s3gof3r v0.5.0/go.mod h1:s7vv7SMDPInkitQMuZzH615G7yWHdrU2r/Go7Bo71Rs= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= github.com/rubyist/circuitbreaker v2.2.1+incompatible/go.mod h1:Ycs3JgJADPuzJDwffe12k6BZT8hxVi6lFK+gWYJLN4A= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -874,9 +924,16 @@ github.com/segmentio/asm v1.2.0 h1:9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys= github.com/segmentio/asm v1.2.0/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shirou/gopsutil/v3 v3.21.12/go.mod h1:BToYZVTlSVlfazpDDYFnsVZLaoRG+g8ufT6fPQLdJzA= -github.com/shirou/gopsutil/v3 v3.22.9 h1:yibtJhIVEMcdw+tCTbOPiF1VcsuDeTE4utJ8Dm4c5eA= -github.com/shirou/gopsutil/v3 v3.22.9/go.mod h1:bBYl1kjgEJpWpxeHmLI+dVHWtyAwfcmSBLDsp2TNT8A= +github.com/shirou/gopsutil/v3 v3.24.5 h1:i0t8kL+kQTvpAYToeuiVk3TgDeKOFioZO3Ztz/iZ9pI= +github.com/shirou/gopsutil/v3 v3.24.5/go.mod h1:bsoOS1aStSs9ErQ1WWfxllSeS1K5D+U30r2NfcubMVk= +github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM= +github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ= +github.com/shoenig/test v0.6.4 h1:kVTaSd7WLz5WZ2IaoM0RSzRsUD+m8wRR+5qvntpn4LU= +github.com/shoenig/test v0.6.4/go.mod h1:byHiCGXqrVaflBLAMq/srcZIHynQPQgeyvkvXnjqq0k= github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= +github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= +github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= +github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 h1:bUGsEnyNbVPw06Bs80sCeARAlK8lhwqGyi6UT8ymuGk= github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= @@ -890,8 +947,9 @@ github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPx github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= -github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v0.0.0-20180222194500-ef6db91d284a/go.mod h1:XDJAKZRPZ1CvBcN2aX5YOUTYGHki24fSF0Iv48Ibg0s= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= @@ -908,10 +966,14 @@ github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2 github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= +github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= -github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= -github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= +github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= +github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= +github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= @@ -936,11 +998,13 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= -github.com/tdakkota/asciicheck v0.1.1 h1:PKzG7JUTUmVspQTDqtkX9eSiLGossXTybutHwTXuO0A= -github.com/tdakkota/asciicheck v0.1.1/go.mod h1:yHp0ai0Z9gUljN3o0xMhYJnH/IcvkdTBOX2fmJ93JEM= +github.com/tdakkota/asciicheck v0.2.0 h1:o8jvnUANo0qXtnslk2d3nMKTFNlOnJjRrNcj0j9qkHM= +github.com/tdakkota/asciicheck v0.2.0/go.mod h1:Qb7Y9EgjCLJGup51gDHFzbI08/gbGhL/UVhYIPWG2rg= github.com/tenntenn/modver v1.0.1 h1:2klLppGhDgzJrScMpkj9Ujy3rXPUspSjAcev9tSEBgA= github.com/tenntenn/modver v1.0.1/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0= github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3 h1:f+jULpRQGxTSkNYKJ51yaw6ChIqO+Je8UqsTKN/cDag= @@ -951,14 +1015,14 @@ github.com/tikv/client-go/v2 v2.0.4-0.20231121073938-194639470f84 h1:gj/NorS/bO3 github.com/tikv/client-go/v2 v2.0.4-0.20231121073938-194639470f84/go.mod h1:mmVCLP2OqWvQJPOIevQPZvGphzh/oq9vv8J5LDfpadQ= github.com/tikv/pd/client v0.0.0-20230904040343-947701a32c05 h1:e4hLUKfgfPeJPZwOfU+/I/03G0sn6IZqVcbX/5o+hvM= github.com/tikv/pd/client v0.0.0-20230904040343-947701a32c05/go.mod h1:MLIl+d2WbOF4A3U88WKtyXrQQW417wZDDvBcq2IW9bQ= -github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144 h1:kl4KhGNsJIbDHS9/4U9yQo1UcPQM0kOMJHn29EoH/Ro= -github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= +github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 h1:quvGphlmUVU+nhpFa4gg4yJyTRJ13reZMDHrKwYw53M= +github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966/go.mod h1:27bSVNWSBOHm+qRp1T9qzaIpsWEP6TbUnei/43HK+PQ= github.com/tklauser/go-sysconf v0.3.9/go.mod h1:11DU/5sG7UexIrp/O6g35hrWzu0JxlwQ3LSFUzyeuhs= -github.com/tklauser/go-sysconf v0.3.10 h1:IJ1AZGZRWbY8T5Vfk04D9WOA5WSejdflXxP03OUqALw= -github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk= +github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= +github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= github.com/tklauser/numcpus v0.3.0/go.mod h1:yFGUr7TUHQRAhyqBcEg0Ge34zDBAsIvJJcyE6boqnA8= -github.com/tklauser/numcpus v0.4.0 h1:E53Dm1HjH1/R2/aoCtXtPgzmElmn51aOkhCFSuZq//o= -github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ= +github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= +github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 h1:uruHq4dN7GR16kFc5fp3d1RIYzJW5onx8Ybykw2YQFA= github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -979,8 +1043,6 @@ github.com/vbauerster/mpb/v7 v7.5.3 h1:BkGfmb6nMrrBQDFECR/Q7RkKCw7ylMetCb4079CGs github.com/vbauerster/mpb/v7 v7.5.3/go.mod h1:i+h4QY6lmLvBNK2ah1fSreiw3ajskRlBp9AhY/PnuOE= github.com/wangjohn/quickselect v0.0.0-20161129230411-ed8402a42d5f h1:9DDCDwOyEy/gId+IEMrFHLuQ5R/WV0KNxWLler8X2OY= github.com/wangjohn/quickselect v0.0.0-20161129230411-ed8402a42d5f/go.mod h1:8sdOQnirw1PrcnTJYkmW1iOHtUmblMmGdUOHyWYycLI= -github.com/xdg/scram v1.0.3/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= -github.com/xdg/stringprep v1.0.3/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= @@ -1004,52 +1066,64 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg= github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= +github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= +github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU= go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4= -go.etcd.io/etcd/api/v3 v3.5.2 h1:tXok5yLlKyuQ/SXSjtqHc4uzNaMqZi2XsoSPr/LlJXI= +go.etcd.io/bbolt v1.3.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA= +go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= go.etcd.io/etcd/api/v3 v3.5.2/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= -go.etcd.io/etcd/client/pkg/v3 v3.5.2 h1:4hzqQ6hIb3blLyQ8usCU4h3NghkqcsohEQ3o3VetYxE= +go.etcd.io/etcd/api/v3 v3.5.10 h1:szRajuUUbLyppkhs9K6BRtjY37l66XQQmw7oZRANE4k= +go.etcd.io/etcd/api/v3 v3.5.10/go.mod h1:TidfmT4Uycad3NM/o25fG3J07odo4GBB9hoxaodFCtI= go.etcd.io/etcd/client/pkg/v3 v3.5.2/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v2 v2.305.2 h1:ymrVwTkefuqA/rPkSW7/B4ApijbPVefRumkY+stNfS0= +go.etcd.io/etcd/client/pkg/v3 v3.5.10 h1:kfYIdQftBnbAq8pUWFXfpuuxFSKzlmM5cSn76JByiT0= +go.etcd.io/etcd/client/pkg/v3 v3.5.10/go.mod h1:DYivfIviIuQ8+/lCq4vcxuseg2P2XbHygkKwFo9fc8U= go.etcd.io/etcd/client/v2 v2.305.2/go.mod h1:2D7ZejHVMIfog1221iLSYlQRzrtECw3kz4I4VAQm3qI= -go.etcd.io/etcd/client/v3 v3.5.2 h1:WdnejrUtQC4nCxK0/dLTMqKOB+U5TP/2Ya0BJL+1otA= +go.etcd.io/etcd/client/v2 v2.305.10 h1:MrmRktzv/XF8CvtQt+P6wLUlURaNpSDJHFZhe//2QE4= +go.etcd.io/etcd/client/v2 v2.305.10/go.mod h1:m3CKZi69HzilhVqtPDcjhSGp+kA1OmbNn0qamH80xjA= go.etcd.io/etcd/client/v3 v3.5.2/go.mod h1:kOOaWFFgHygyT0WlSmL8TJiXmMysO/nNUlEsSsN6W4o= +go.etcd.io/etcd/client/v3 v3.5.10 h1:W9TXNZ+oB3MCd/8UjxHTWK5J9Nquw9fQBLJd5ne5/Ao= +go.etcd.io/etcd/client/v3 v3.5.10/go.mod h1:RVeBnDz2PUEZqTpgqwAtUd8nAPf5kjyFyND7P1VkOKc= go.etcd.io/etcd/etcdutl/v3 v3.5.2/go.mod h1:f+KEUNxRzqQGq1Y/SsaDN5cmlOGRWgfE3lXEDi5F1Ys= -go.etcd.io/etcd/pkg/v3 v3.5.2 h1:YZUojdoPhOyl5QILYnR8LTUbbNefu/sV4ma+ZMr2tto= go.etcd.io/etcd/pkg/v3 v3.5.2/go.mod h1:zsXz+9D/kijzRiG/UnFGDTyHKcVp0orwiO8iMLAi+k0= -go.etcd.io/etcd/raft/v3 v3.5.2 h1:uCC37qOXqBvKqTGHGyhASsaCsnTuJugl1GvneJNwHWo= +go.etcd.io/etcd/pkg/v3 v3.5.10 h1:WPR8K0e9kWl1gAhB5A7gEa5ZBTNkT9NdNWrR8Qpo1CM= +go.etcd.io/etcd/pkg/v3 v3.5.10/go.mod h1:TKTuCKKcF1zxmfKWDkfz5qqYaE3JncKKZPFf8c1nFUs= go.etcd.io/etcd/raft/v3 v3.5.2/go.mod h1:G6pCP1sFgbjod7/KnEHY0vHUViqxjkdt6AiKsD0GRr8= -go.etcd.io/etcd/server/v3 v3.5.2 h1:B6ytJvS4Fmt8nkjzS2/8POf4tuPhFMluE0lWd4dx/7U= +go.etcd.io/etcd/raft/v3 v3.5.10 h1:cgNAYe7xrsrn/5kXMSaH8kM/Ky8mAdMqGOxyYwpP0LA= +go.etcd.io/etcd/raft/v3 v3.5.10/go.mod h1:odD6kr8XQXTy9oQnyMPBOr0TVe+gT0neQhElQ6jbGRc= go.etcd.io/etcd/server/v3 v3.5.2/go.mod h1:mlG8znIEz4N/28GABrohZCBM11FqgGVQcpbcyJgh0j0= +go.etcd.io/etcd/server/v3 v3.5.10 h1:4NOGyOwD5sUZ22PiWYKmfxqoeh72z6EhYjNosKGLmZg= +go.etcd.io/etcd/server/v3 v3.5.10/go.mod h1:gBplPHfs6YI0L+RpGkTQO7buDbHv5HJGG/Bst0/zIPo= go.etcd.io/etcd/tests/v3 v3.5.2 h1:uk7/uMGVebpBDl+roivowHt6gJ5Fnqwik3syDkoSKdo= go.etcd.io/etcd/tests/v3 v3.5.2/go.mod h1:Jdzbei4uFi9C3xDBfCwckRXjlX0UPooiP4g/zXgBMgQ= go.opencensus.io v0.23.1-0.20220331163232-052120675fac h1:+KpZCwn3HdqM4KgXC+ywfGPIC40XIwj6C5p+6mbC9a8= go.opencensus.io v0.23.1-0.20220331163232-052120675fac/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.opentelemetry.io/contrib v0.20.0 h1:ubFQUn0VCZ0gPwIoJfBJVpeBlyRMxu8Mm/huKWYd9p0= go.opentelemetry.io/contrib v0.20.0/go.mod h1:G/EtFaa6qaN7+LxqfIAT3GiZa7Wv5DTBUzl5H4LY0Kc= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0 h1:sO4WKdPAudZGKPcpZT4MJn6JaDmpyLrMPDGGyA1SttE= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0/go.mod h1:oVGt1LRbBOBq1A5BQLlUg9UaU/54aiHw8cgjV3aWZ/E= -go.opentelemetry.io/otel v0.20.0 h1:eaP0Fqu7SXHwvjiqDq83zImeehOHX8doTvU9AwXON8g= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.25.0 h1:Wx7nFnvCaissIUZxPkBqDz2963Z+Cl+PkYbDKzTxDqQ= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.25.0/go.mod h1:E5NNboN0UqSAki0Atn9kVwaN7I+l25gGxDqBueo/74E= go.opentelemetry.io/otel v0.20.0/go.mod h1:Y3ugLH2oa81t5QO+Lty+zXf8zC9L26ax4Nzoxm/dooo= -go.opentelemetry.io/otel/exporters/otlp v0.20.0 h1:PTNgq9MRmQqqJY0REVbZFvwkYOA85vbdQU/nVfxDyqg= +go.opentelemetry.io/otel v1.0.1 h1:4XKyXmfqJLOQ7feyV5DB6gsBFZ0ltB8vLtp6pj4JIcc= +go.opentelemetry.io/otel v1.0.1/go.mod h1:OPEOD4jIT2SlZPMmwT6FqZz2C0ZNdQqiWcoK6M0SNFU= go.opentelemetry.io/otel/exporters/otlp v0.20.0/go.mod h1:YIieizyaN77rtLJra0buKiNBOm9XQfkPEKBeuhoMwAM= -go.opentelemetry.io/otel/metric v0.20.0 h1:4kzhXFP+btKm4jwxpjIqjs41A7MakRFUS86bqLHTIw8= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.0.1 h1:ofMbch7i29qIUf7VtF+r0HRF6ac0SBaPSziSsKp7wkk= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.0.1/go.mod h1:Kv8liBeVNFkkkbilbgWRpV+wWuu+H5xdOT6HAgd30iw= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.0.1 h1:CFMFNoz+CGprjFAFy+RJFrfEe4GBia3RRm2a4fREvCA= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.0.1/go.mod h1:xOvWoTOrQjxjW61xtOmD/WKGRYb/P4NzRo3bs65U6Rk= go.opentelemetry.io/otel/metric v0.20.0/go.mod h1:598I5tYlH1vzBjn+BTuhzTCSb/9debfNp6R3s7Pr1eU= -go.opentelemetry.io/otel/oteltest v0.20.0 h1:HiITxCawalo5vQzdHfKeZurV8x7ljcqAgiWzF6Vaeaw= go.opentelemetry.io/otel/oteltest v0.20.0/go.mod h1:L7bgKf9ZB7qCwT9Up7i9/pn0PWIa9FqQ2IQ8LoxiGnw= -go.opentelemetry.io/otel/sdk v0.20.0 h1:JsxtGXd06J8jrnya7fdI/U/MR6yXA5DtbZy+qoHQlr8= go.opentelemetry.io/otel/sdk v0.20.0/go.mod h1:g/IcepuwNsoiX5Byy2nNV0ySUF1em498m7hBWC279Yc= -go.opentelemetry.io/otel/sdk/export/metric v0.20.0 h1:c5VRjxCXdQlx1HjzwGdQHzZaVI82b5EbBgOu2ljD92g= +go.opentelemetry.io/otel/sdk v1.0.1 h1:wXxFEWGo7XfXupPwVJvTBOaPBC9FEg0wB8hMNrKk+cA= +go.opentelemetry.io/otel/sdk v1.0.1/go.mod h1:HrdXne+BiwsOHYYkBE5ysIcv2bvdZstxzmCQhxTcZkI= go.opentelemetry.io/otel/sdk/export/metric v0.20.0/go.mod h1:h7RBNMsDJ5pmI1zExLi+bJK+Dr8NQCh0qGhm1KDnNlE= -go.opentelemetry.io/otel/sdk/metric v0.20.0 h1:7ao1wpzHRVKf0OQ7GIxiQJA6X7DLX9o14gmVon7mMK8= go.opentelemetry.io/otel/sdk/metric v0.20.0/go.mod h1:knxiS8Xd4E/N+ZqKmUPf3gTTZ4/0TjTXukfxjzSTpHE= -go.opentelemetry.io/otel/trace v0.20.0 h1:1DL6EXUdcg95gukhuRRvLDO/4X5THh/5dIV52lqtnbw= go.opentelemetry.io/otel/trace v0.20.0/go.mod h1:6GjCW8zgDjwGHGa6GkyeB8+/5vjT16gUEi0Nf1iBdgw= -go.opentelemetry.io/proto/otlp v0.7.0 h1:rwOQPCuKAKmwGKq2aVNnYIibI6wnV7EvzgfTCzcdGg8= +go.opentelemetry.io/otel/trace v1.0.1 h1:StTeIH6Q3G4r0Fiw34LTokUFESZgIDUr0qIJ7mKmAfw= +go.opentelemetry.io/otel/trace v1.0.1/go.mod h1:5g4i4fKLaX2BQpSBsxw8YYcgKpMMSW3x7ZTuYBr3sUk= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= +go.opentelemetry.io/proto/otlp v0.9.0 h1:C0g6TWmQYvjKRnljRULLWUVJGy8Uvu0NEL/5frY2/t4= +go.opentelemetry.io/proto/otlp v0.9.0/go.mod h1:1vKfU9rv61e9EVGthD1zNvUbiwPcimSsOPU9brfSHJg= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= @@ -1058,12 +1132,12 @@ go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= -go.uber.org/automaxprocs v1.5.3 h1:kWazyxZUrS3Gs4qUpbwo5kEIMGe/DAvi5Z4tl2NW4j8= -go.uber.org/automaxprocs v1.5.3/go.mod h1:eRbA25aqJrxAbsLO0xy5jVwPt7FQnRgjW+efnwa1WM0= +go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs= +go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk= -go.uber.org/goleak v1.2.0/go.mod h1:XJYK+MuIchqpmGmUSAzotztawfKvYLUIgg7guXrwVUo= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.4.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= @@ -1078,8 +1152,8 @@ go.uber.org/zap v1.12.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.20.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= -go.uber.org/zap v1.23.0 h1:OjGQ5KQDEUawVHxNwQgPpiypGHOxo2mNZsOqTak4fFY= -go.uber.org/zap v1.23.0/go.mod h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY= +go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= +go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= golang.org/x/crypto v0.0.0-20180723164146-c126467f60eb/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -1091,14 +1165,17 @@ golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201112155050-0c6587e931a9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.15.0 h1:frVn1TEaCEaZcn3Tmd7Y2b5KKPaZ+I32Q2OA3kYp5TA= -golang.org/x/crypto v0.15.0/go.mod h1:4ChreQoLWfG3xLDer1WdlH5NdlQ3+mwnQq1YTKY+72g= +golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220518034528-6f7dac969898/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= +golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= +golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= +golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ= +golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -1113,10 +1190,10 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20200513190911-00229845015e/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= -golang.org/x/exp v0.0.0-20221023144134-a1e5550cf13e h1:SkwG94eNiiYJhbeDE018Grw09HIN/KB9NlRmZsrzfWs= -golang.org/x/exp v0.0.0-20221023144134-a1e5550cf13e/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= -golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 h1:Ic/qN6TEifvObMGQy72k0n1LlJr7DjWWEi+MOsDOiSk= -golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk= +golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY= +golang.org/x/exp/typeparams v0.0.0-20240909161429-701f63a606c0 h1:bVwtbF629Xlyxk6xLQq2TDYmqP0uiWaet5LwRebuY0k= +golang.org/x/exp/typeparams v0.0.0-20240909161429-701f63a606c0/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= @@ -1130,7 +1207,6 @@ golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHl golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug= golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= @@ -1145,9 +1221,10 @@ golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0= -golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= +golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1185,34 +1262,30 @@ golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210427231257-85d9c07bbe3a/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220517181318-183a9ca12b87/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= +golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.18.0 h1:mIYleuAkSbHh0tCv7RvjL3F6ZVbLjq4+R7zbOn3Kokg= -golang.org/x/net v0.18.0/go.mod h1:/czyP5RqHAH4odGYxBJ1qz0+CE5WZ+2j1YgoEo8F2jQ= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.31.0 h1:68CPQngjLL0r2AlUKiSxtQFKvzRVbnzLwMUn5SzcLHo= +golang.org/x/net v0.31.0/go.mod h1:P4fl1q7dY2hnZFxEk4pPSkDHF+QqjitcnDjUQyMM+pM= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.2.0 h1:GtQkldQ9m7yvzCL1V+LrYow3Khe0eJH0w7RbX/VbaIU= -golang.org/x/oauth2 v0.2.0/go.mod h1:Cwn6afJ8jrQwYMxQDTpISoXmXW9I6qF6vDeuuoX3Ibs= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= +golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1226,8 +1299,8 @@ golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= -golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.9.0 h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ= +golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180816055513-1c9583448a9c/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1285,19 +1358,17 @@ golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210816074244-15123e1e1f71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211013075003-97ac67df715c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220517195934-5e4e11fc645e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1305,17 +1376,20 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= -golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= +golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.14.0 h1:LGK9IlZ8T9jvdy6cTdfKUCltatMFOehAQo9SRC46UQ8= -golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= +golang.org/x/term v0.26.0 h1:WEQa6V3Gja/BhNxg540hBip/kkaYtRg3cxg4oXSw4AU= +golang.org/x/term v0.26.0/go.mod h1:Si5m1o57C5nBNQo5z1iq+XDijt21BDBDp2bK0QI8e3E= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1327,9 +1401,8 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.20.0 h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug= +golang.org/x/text v0.20.0/go.mod h1:D4IsuqiFMhST5bX19pQ9ikHC2GsaKyk/oF+pn3ducp4= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1346,11 +1419,9 @@ golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190311215038-5c2858a9cfe5/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190321232350-e250d351ecad/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190322203728-c1a832b0ad89/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190327201419-c70d86f8b7cf/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= @@ -1385,14 +1456,12 @@ golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapK golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200414032229-332987a829c3/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200505023115-26f46d2f7ef8/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200622203043-20e05c1c8ffa/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= @@ -1404,16 +1473,19 @@ golang.org/x/tools v0.1.1-0.20210302220138-2ac05c832e1a/go.mod h1:9bzcO0MWcOuT0t golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.8/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.15.0 h1:zdAyfUGbYmuVokhzVmghFl2ZJh5QhcfebBgmVPFYA+8= -golang.org/x/tools v0.15.0/go.mod h1:hpksKq4dtpQWS1uQ61JkdqWM3LscIS6Slf+VVkm+wQk= +golang.org/x/tools v0.27.0 h1:qEKojBykQkQ4EynWy4S8Weg69NumxKdn40Fce3uc/8o= +golang.org/x/tools v0.27.0/go.mod h1:sUi0ZgbwW9ZPAq26Ekut+weQPR5eIM6GQLQ1Yjm1H0Q= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= @@ -1441,8 +1513,8 @@ google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0M google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.128.0 h1:RjPESny5CnQRn9V6siglged+DZCgfu9l6mO9dkX9VOg= +google.golang.org/api v0.128.0/go.mod h1:Y611qgqaE92On/7g65MQgxYul3c0rEB894kniWLY750= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -1486,8 +1558,12 @@ google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201019141844-1ed22bb0c154/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd h1:OjndDrsik+Gt+e6fs45z9AxiewiKyLKYpA45W5Kpkks= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= +google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d h1:VBu5YqKPv6XiJ199exd8Br+Aetz+o08F+PLMnwJQHAY= +google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d/go.mod h1:yZTlhN0tQnXo3h00fuXNCxJdLdIdnVFVBaRJ5LWBbw4= +google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d h1:DoPTO70H+bcDXcd39vOqb2viZxgqeBeSGtZ55yZU4/Q= +google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d/go.mod h1:KjSP20unUpOx5kyQUFa7k4OJg0qeJ7DEZflGDu2p6Bk= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= google.golang.org/grpc v0.0.0-20180607172857-7a6a684ca69e/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= @@ -1508,10 +1584,14 @@ google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTp google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.41.0/go.mod h1:U3l9uK9J0sini8mHphKoXyaqDA/8VyGnDee1zzIUK6k= google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc v1.51.0 h1:E1eGv1FTqoLIdnBCZufiSHgKjlqG6fKFf6pPWtMTh8U= -google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= +google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= +google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -1525,8 +1605,9 @@ google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlba google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= -google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -1567,6 +1648,7 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= @@ -1576,8 +1658,8 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.3.3 h1:oDx7VAwstgpYpb3wv0oxiZlxY+foCpRAwY7Vk6XpAgA= -honnef.co/go/tools v0.3.3/go.mod h1:jzwdWgg7Jdq75wlfblQxO4neNaFFSvgc1tD5Wv8U0Yw= +honnef.co/go/tools v0.5.1 h1:4bH5o3b5ZULQ4UrBmP+63W9r7qIkqJClEA9ko5YKx+I= +honnef.co/go/tools v0.5.1/go.mod h1:e9irvo83WDG9/irijV44wr3tbhcFeRnfpVlRqVwpzMs= k8s.io/api v0.0.0-20190409021203-6e4e0e4f393b/go.mod h1:iuAfoD4hCxJ8Onx9kaTIt30j7jUFS00AXQi6QMi99vA= k8s.io/api v0.24.0 h1:J0hann2hfxWr1hinZIDefw7Q96wmCBx6SSB8IY0MdDg= k8s.io/api v0.24.0/go.mod h1:5Jl90IUrJHUJYEMANRURMiVvJ0g7Ax7r3R1bqO8zx8I= @@ -1610,3 +1692,4 @@ sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q= sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= stathat.com/c/consistent v1.0.0 h1:ezyc51EGcRPJUxfHGSgJjWzJdj3NiMU9pNfLNGiXV0c= +stathat.com/c/consistent v1.0.0/go.mod h1:QkzMWzcbB+yQBL2AttO6sgsQS/JSTapcDISJalmCDS0= diff --git a/infoschema/builder.go b/infoschema/builder.go index 30f1a0da8c37e..b09952ed2c3d8 100644 --- a/infoschema/builder.go +++ b/infoschema/builder.go @@ -15,6 +15,7 @@ package infoschema import ( + "cmp" "context" "fmt" "strings" @@ -786,8 +787,8 @@ func (b *Builder) applyCreateTable(m *meta.Meta, dbInfo *model.DBInfo, tableID i bucketIdx := tableBucketIdx(tableID) sortedTbls := b.is.sortedTablesBuckets[bucketIdx] sortedTbls = append(sortedTbls, tbl) - slices.SortFunc(sortedTbls, func(i, j table.Table) bool { - return i.Meta().ID < j.Meta().ID + slices.SortFunc(sortedTbls, func(i, j table.Table) int { + return cmp.Compare(i.Meta().ID, j.Meta().ID) }) b.is.sortedTablesBuckets[bucketIdx] = sortedTbls @@ -981,8 +982,8 @@ func (b *Builder) InitWithDBInfos(dbInfos []*model.DBInfo, policies []*model.Pol // Sort all tables by `ID` for _, v := range info.sortedTablesBuckets { - slices.SortFunc(v, func(a, b table.Table) bool { - return a.Meta().ID < b.Meta().ID + slices.SortFunc(v, func(a, b table.Table) int { + return cmp.Compare(a.Meta().ID, b.Meta().ID) }) } return b, nil diff --git a/infoschema/infoschema.go b/infoschema/infoschema.go index 2076d0774a07c..13ff29618c52b 100644 --- a/infoschema/infoschema.go +++ b/infoschema/infoschema.go @@ -15,6 +15,7 @@ package infoschema import ( + "cmp" "fmt" "sort" "sync" @@ -135,8 +136,8 @@ func MockInfoSchema(tbList []*model.TableInfo) InfoSchema { result.sortedTablesBuckets[bucketIdx] = append(result.sortedTablesBuckets[bucketIdx], tbl) } for i := range result.sortedTablesBuckets { - slices.SortFunc(result.sortedTablesBuckets[i], func(i, j table.Table) bool { - return i.Meta().ID < j.Meta().ID + slices.SortFunc(result.sortedTablesBuckets[i], func(i, j table.Table) int { + return cmp.Compare(i.Meta().ID, j.Meta().ID) }) } return result @@ -162,8 +163,8 @@ func MockInfoSchemaWithSchemaVer(tbList []*model.TableInfo, schemaVer int64) Inf result.sortedTablesBuckets[bucketIdx] = append(result.sortedTablesBuckets[bucketIdx], tbl) } for i := range result.sortedTablesBuckets { - slices.SortFunc(result.sortedTablesBuckets[i], func(i, j table.Table) bool { - return i.Meta().ID < j.Meta().ID + slices.SortFunc(result.sortedTablesBuckets[i], func(i, j table.Table) int { + return cmp.Compare(i.Meta().ID, j.Meta().ID) }) } result.schemaMetaVersion = schemaVer diff --git a/infoschema/main_test.go b/infoschema/main_test.go index 09a412679f664..1d1b99c743ec1 100644 --- a/infoschema/main_test.go +++ b/infoschema/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/infoschema/perfschema/main_test.go b/infoschema/perfschema/main_test.go index 950b95993b536..4633b2f201852 100644 --- a/infoschema/perfschema/main_test.go +++ b/infoschema/perfschema/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/infoschema/perfschema/tables.go b/infoschema/perfschema/tables.go index 9a5a36235cfa4..ab6b184388c13 100644 --- a/infoschema/perfschema/tables.go +++ b/infoschema/perfschema/tables.go @@ -15,6 +15,7 @@ package perfschema import ( + "cmp" "context" "fmt" "net/http" @@ -394,7 +395,7 @@ func dataForRemoteProfile(ctx sessionctx.Context, nodeType, uri string, isGorout } results = append(results, result) } - slices.SortFunc(results, func(i, j result) bool { return i.addr < j.addr }) + slices.SortFunc(results, func(i, j result) int { return cmp.Compare(i.addr, j.addr) }) var finalRows [][]types.Datum for _, result := range results { addr := types.NewStringDatum(result.addr) diff --git a/kv/kv.go b/kv/kv.go index d84c34d1b89c4..0001d93459053 100644 --- a/kv/kv.go +++ b/kv/kv.go @@ -394,20 +394,20 @@ func (rr *KeyRanges) AppendSelfTo(ranges []KeyRange) []KeyRange { // SortByFunc sorts each partition's ranges. // Since the ranges are sorted in most cases, we check it first. -func (rr *KeyRanges) SortByFunc(sortFunc func(i, j KeyRange) bool) { - if !slices.IsSortedFunc(rr.ranges, func(i, j []KeyRange) bool { +func (rr *KeyRanges) SortByFunc(sortFunc func(i, j KeyRange) int) { + if !slices.IsSortedFunc(rr.ranges, func(i, j []KeyRange) int { // A simple short-circuit since the empty range actually won't make anything wrong. if len(i) == 0 || len(j) == 0 { - return true + return -1 } return sortFunc(i[0], j[0]) }) { - slices.SortFunc(rr.ranges, func(i, j []KeyRange) bool { + slices.SortFunc(rr.ranges, func(i, j []KeyRange) int { if len(i) == 0 { - return true + return -1 } if len(j) == 0 { - return false + return 1 } return sortFunc(i[0], j[0]) }) @@ -444,19 +444,19 @@ func (rr *KeyRanges) PartitionNum() int { // IsFullySorted checks whether the ranges are sorted inside partition and each partition is also sorated. func (rr *KeyRanges) IsFullySorted() bool { - sortedByPartition := slices.IsSortedFunc(rr.ranges, func(i, j []KeyRange) bool { + sortedByPartition := slices.IsSortedFunc(rr.ranges, func(i, j []KeyRange) int { // A simple short-circuit since the empty range actually won't make anything wrong. if len(i) == 0 || len(j) == 0 { - return true + return -1 } - return bytes.Compare(i[0].StartKey, j[0].StartKey) < 0 + return bytes.Compare(i[0].StartKey, j[0].StartKey) }) if !sortedByPartition { return false } for _, ranges := range rr.ranges { - if !slices.IsSortedFunc(ranges, func(i, j KeyRange) bool { - return bytes.Compare(i.StartKey, j.StartKey) < 0 + if !slices.IsSortedFunc(ranges, func(i, j KeyRange) int { + return bytes.Compare(i.StartKey, j.StartKey) }) { return false } diff --git a/kv/main_test.go b/kv/main_test.go index 3d161d7ce0704..b7a2f3d8cf567 100644 --- a/kv/main_test.go +++ b/kv/main_test.go @@ -25,7 +25,7 @@ func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/meta/autoid/main_test.go b/meta/autoid/main_test.go index 7eb312e043e3a..40a7da98f94d7 100644 --- a/meta/autoid/main_test.go +++ b/meta/autoid/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/meta/main_test.go b/meta/main_test.go index 3e4abdaa12624..57e1b739ae0bc 100644 --- a/meta/main_test.go +++ b/meta/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), diff --git a/metrics/main_test.go b/metrics/main_test.go index 887847a12ba86..78595382d8e0b 100644 --- a/metrics/main_test.go +++ b/metrics/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/owner/main_test.go b/owner/main_test.go index b1e1355258582..fe648e2ff817b 100644 --- a/owner/main_test.go +++ b/owner/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), diff --git a/parser/ast/dml.go b/parser/ast/dml.go index 249c51e6003cd..d5a047219b5de 100644 --- a/parser/ast/dml.go +++ b/parser/ast/dml.go @@ -1245,7 +1245,7 @@ func (n *SelectStmt) Restore(ctx *format.RestoreCtx) error { ctx.WriteKeyWord("SQL_CALC_FOUND_ROWS ") } - if n.TableHints != nil && len(n.TableHints) != 0 { + if n.TableHints != nil { ctx.WritePlain("/*+ ") for i, tableHint := range n.TableHints { if i != 0 { @@ -1436,7 +1436,7 @@ func (n *SelectStmt) Accept(v Visitor) (Node, bool) { n.With = node.(*WithClause) } - if n.TableHints != nil && len(n.TableHints) != 0 { + if n.TableHints != nil { newHints := make([]*TableOptimizerHint, len(n.TableHints)) for i, hint := range n.TableHints { node, ok := hint.Accept(v) @@ -2046,7 +2046,7 @@ func (n *InsertStmt) Restore(ctx *format.RestoreCtx) error { ctx.WriteKeyWord("INSERT ") } - if n.TableHints != nil && len(n.TableHints) != 0 { + if n.TableHints != nil { ctx.WritePlain("/*+ ") for i, tableHint := range n.TableHints { if i != 0 { @@ -2275,7 +2275,7 @@ func (n *DeleteStmt) Restore(ctx *format.RestoreCtx) error { ctx.WriteKeyWord("DELETE ") - if n.TableHints != nil && len(n.TableHints) != 0 { + if n.TableHints != nil { ctx.WritePlain("/*+ ") for i, tableHint := range n.TableHints { if i != 0 { @@ -2527,7 +2527,7 @@ func (n *UpdateStmt) Restore(ctx *format.RestoreCtx) error { ctx.WriteKeyWord("UPDATE ") - if n.TableHints != nil && len(n.TableHints) != 0 { + if n.TableHints != nil { ctx.WritePlain("/*+ ") for i, tableHint := range n.TableHints { if i != 0 { diff --git a/parser/charset/BUILD.bazel b/parser/charset/BUILD.bazel index 5337fcefd44a9..bddfebf197f3b 100644 --- a/parser/charset/BUILD.bazel +++ b/parser/charset/BUILD.bazel @@ -20,7 +20,6 @@ go_library( "//parser/terror", "@com_github_pingcap_errors//:errors", "@com_github_pingcap_log//:log", - "@org_golang_x_exp//slices", "@org_golang_x_text//encoding", "@org_golang_x_text//encoding/charmap", "@org_golang_x_text//encoding/japanese", diff --git a/parser/charset/charset.go b/parser/charset/charset.go index 6067e4f623424..48a4e8b082e03 100644 --- a/parser/charset/charset.go +++ b/parser/charset/charset.go @@ -14,6 +14,7 @@ package charset import ( + "slices" "strings" "github.com/pingcap/errors" @@ -21,7 +22,6 @@ import ( "github.com/pingcap/tidb/parser/mysql" "github.com/pingcap/tidb/parser/terror" "go.uber.org/zap" - "golang.org/x/exp/slices" ) var ( @@ -91,8 +91,8 @@ func GetSupportedCharsets() []*Charset { } // sort charset by name. - slices.SortFunc(charsets, func(i, j *Charset) bool { - return i.Name < j.Name + slices.SortFunc(charsets, func(i, j *Charset) int { + return strings.Compare(i.Name, j.Name) }) return charsets } diff --git a/parser/go.mod b/parser/go.mod index 1f49f53d36814..f3ab4e764828f 100644 --- a/parser/go.mod +++ b/parser/go.mod @@ -32,4 +32,4 @@ require ( modernc.org/strutil v1.1.0 // indirect ) -go 1.18 +go 1.22 diff --git a/parser/go.sum b/parser/go.sum index 267fe82580882..6af5b8c75f91d 100644 --- a/parser/go.sum +++ b/parser/go.sum @@ -57,6 +57,7 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= diff --git a/parser/model/model.go b/parser/model/model.go index 89db1169ebc9e..edb76121adab2 100644 --- a/parser/model/model.go +++ b/parser/model/model.go @@ -15,6 +15,7 @@ package model import ( "bytes" + "cmp" "encoding/json" "fmt" "strconv" @@ -1675,8 +1676,8 @@ func (db *DBInfo) Copy() *DBInfo { } // LessDBInfo is used for sorting DBInfo by DBInfo.Name. -func LessDBInfo(a *DBInfo, b *DBInfo) bool { - return a.Name.L < b.Name.L +func LessDBInfo(a *DBInfo, b *DBInfo) int { + return cmp.Compare(a.Name.L, b.Name.L) } // CIStr is case insensitive string. diff --git a/parser/terror/terror_test.go b/parser/terror/terror_test.go index 45bdf36f36714..2963037d5a287 100644 --- a/parser/terror/terror_test.go +++ b/parser/terror/terror_test.go @@ -138,7 +138,26 @@ func TestTraceAndLocation(t *testing.T) { goroot := strings.ReplaceAll(runtime.GOROOT(), string(os.PathSeparator), "/") var sysStack = 0 for _, line := range lines { - if strings.Contains(line, goroot) { + // When you run test case in the bazel. you will find the difference stack. It looks like this: + // + // ```go + // testing.tRunner + // GOROOT/src/testing/testing.go:1576 + // runtime.goexit + // src/runtime/asm_arm64.s:1172 + // ``` + // + // but run with ```go test```. It looks like this: + // + // ```go + // testing.tRunner + // /Users/pingcap/.gvm/gos/go1.20.1/src/testing/testing.go:1576 + // runtime.goexit + // /Users/pingcap/.gvm/gos/go1.20.1/src/runtime/asm_arm64.s:1172 + // ``` + // + // So we have to deal with these boundary conditions. + if strings.Contains(line, goroot) || strings.Contains(line, "src/runtime") { sysStack++ } } diff --git a/planner/cascades/main_test.go b/planner/cascades/main_test.go index 8e3fb1f656b17..c0e826a6fa134 100644 --- a/planner/cascades/main_test.go +++ b/planner/cascades/main_test.go @@ -47,7 +47,7 @@ func TestMain(m *testing.M) { testDataMap.GenerateOutputIfNeeded() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/planner/core/fragment.go b/planner/core/fragment.go index 917f4392d9f9e..b374da4e1e6c7 100644 --- a/planner/core/fragment.go +++ b/planner/core/fragment.go @@ -15,6 +15,7 @@ package core import ( + "cmp" "context" "time" "unsafe" @@ -392,8 +393,8 @@ func (e *mppTaskGenerator) constructMPPTasksImpl(ctx context.Context, ts *Physic } func (e *mppTaskGenerator) constructMPPBuildTaskReqForPartitionedTable(ts *PhysicalTableScan, splitedRanges []*ranger.Range, partitions []table.PhysicalTable) (*kv.MPPBuildTasksRequest, []int64, error) { - slices.SortFunc(partitions, func(i, j table.PhysicalTable) bool { - return i.GetPhysicalID() < j.GetPhysicalID() + slices.SortFunc(partitions, func(i, j table.PhysicalTable) int { + return cmp.Compare(i.GetPhysicalID(), j.GetPhysicalID()) }) partitionIDAndRanges := make([]kv.PartitionIDAndRanges, len(partitions)) allPartitionsIDs := make([]int64, len(partitions)) diff --git a/planner/core/hashcode.go b/planner/core/hashcode.go index 41b00de127390..9509483dc5dc1 100644 --- a/planner/core/hashcode.go +++ b/planner/core/hashcode.go @@ -79,7 +79,7 @@ func (p *LogicalSelection) HashCode() []byte { condHashCodes[i] = expr.HashCode(p.ctx.GetSessionVars().StmtCtx) } // Sort the conditions, so `a > 1 and a < 100` can equal to `a < 100 and a > 1`. - slices.SortFunc(condHashCodes, func(i, j []byte) bool { return bytes.Compare(i, j) < 0 }) + slices.SortFunc(condHashCodes, func(i, j []byte) int { return bytes.Compare(i, j) }) for _, condHashCode := range condHashCodes { result = encodeIntAsUint32(result, len(condHashCode)) diff --git a/planner/core/main_test.go b/planner/core/main_test.go index b3ad18514e9f2..c14791af9c4b8 100644 --- a/planner/core/main_test.go +++ b/planner/core/main_test.go @@ -57,7 +57,7 @@ func TestMain(m *testing.M) { planSuiteUnexportedData = testDataMap["plan_suite_unexported"] opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("gopkg.in/natefinch/lumberjack%2ev2.(*Logger).millRun"), diff --git a/planner/core/optimizer.go b/planner/core/optimizer.go index 4b30741c26200..2830237a866e4 100644 --- a/planner/core/optimizer.go +++ b/planner/core/optimizer.go @@ -15,6 +15,7 @@ package core import ( + "cmp" "context" "fmt" "math" @@ -319,24 +320,24 @@ func DoOptimize(ctx context.Context, sctx sessionctx.Context, flag uint64, logic func refineCETrace(sctx sessionctx.Context) { stmtCtx := sctx.GetSessionVars().StmtCtx stmtCtx.OptimizerCETrace = tracing.DedupCETrace(stmtCtx.OptimizerCETrace) - slices.SortFunc(stmtCtx.OptimizerCETrace, func(i, j *tracing.CETraceRecord) bool { + slices.SortFunc(stmtCtx.OptimizerCETrace, func(i, j *tracing.CETraceRecord) int { if i == nil && j != nil { - return true + return -1 } if i == nil || j == nil { - return false + return 1 } - if i.TableID != j.TableID { - return i.TableID < j.TableID + if c := cmp.Compare(i.TableID, j.TableID); c != 0 { + return c } - if i.Type != j.Type { - return i.Type < j.Type + if c := cmp.Compare(i.Type, j.Type); c != 0 { + return c } - if i.Expr != j.Expr { - return i.Expr < j.Expr + if c := cmp.Compare(i.Expr, j.Expr); c != 0 { + return c } - return i.RowCount < j.RowCount + return cmp.Compare(i.RowCount, j.RowCount) }) traceRecords := stmtCtx.OptimizerCETrace is := sctx.GetDomainInfoSchema().(infoschema.InfoSchema) diff --git a/planner/core/plan_cache_utils.go b/planner/core/plan_cache_utils.go index c8fbfa4cc6daf..8325849256565 100644 --- a/planner/core/plan_cache_utils.go +++ b/planner/core/plan_cache_utils.go @@ -15,6 +15,7 @@ package core import ( + "cmp" "context" "math" "strconv" @@ -97,8 +98,8 @@ func GeneratePlanCacheStmtWithAST(ctx context.Context, sctx sessionctx.Context, // The parameter markers are appended in visiting order, which may not // be the same as the position order in the query string. We need to // sort it by position. - slices.SortFunc(extractor.markers, func(i, j ast.ParamMarkerExpr) bool { - return i.(*driver.ParamMarkerExpr).Offset < j.(*driver.ParamMarkerExpr).Offset + slices.SortFunc(extractor.markers, func(i, j ast.ParamMarkerExpr) int { + return cmp.Compare(i.(*driver.ParamMarkerExpr).Offset, j.(*driver.ParamMarkerExpr).Offset) }) ParamCount := len(extractor.markers) for i := 0; i < ParamCount; i++ { diff --git a/planner/core/rule_partition_processor.go b/planner/core/rule_partition_processor.go index a5716bf28ded4..21bc732851712 100644 --- a/planner/core/rule_partition_processor.go +++ b/planner/core/rule_partition_processor.go @@ -16,6 +16,7 @@ package core import ( "bytes" + "cmp" "context" "fmt" gomath "math" @@ -1824,8 +1825,8 @@ func appendMakeUnionAllChildrenTranceStep(origin *DataSource, usedMap map[int64] for _, def := range usedMap { used = append(used, def) } - slices.SortFunc(used, func(i, j model.PartitionDefinition) bool { - return i.ID < j.ID + slices.SortFunc(used, func(i, j model.PartitionDefinition) int { + return cmp.Compare(i.ID, j.ID) }) if len(children) == 1 { newDS := plan.(*DataSource) diff --git a/planner/funcdep/fd_graph.go b/planner/funcdep/fd_graph.go index 2d6bfb540dc06..14eef66e47b22 100644 --- a/planner/funcdep/fd_graph.go +++ b/planner/funcdep/fd_graph.go @@ -912,10 +912,7 @@ func (s *FDSet) AddFrom(fds *FDSet) { s.AddLaxFunctionalDependency(fd.from, fd.to) } } - for i := range fds.ncEdges { - fd := fds.ncEdges[i] - s.ncEdges = append(s.ncEdges, fd) - } + s.ncEdges = append(s.ncEdges, fds.ncEdges...) s.NotNullCols.UnionWith(fds.NotNullCols) if s.HashCodeToUniqueID == nil { s.HashCodeToUniqueID = fds.HashCodeToUniqueID diff --git a/planner/funcdep/main_test.go b/planner/funcdep/main_test.go index 6d95dd208e1b7..0e5b0a59c8f46 100644 --- a/planner/funcdep/main_test.go +++ b/planner/funcdep/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/planner/implementation/main_test.go b/planner/implementation/main_test.go index 57f40ea9f20ac..14e9aa0fff203 100644 --- a/planner/implementation/main_test.go +++ b/planner/implementation/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/planner/memo/main_test.go b/planner/memo/main_test.go index 28382d1c818ec..4d205c61caafb 100644 --- a/planner/memo/main_test.go +++ b/planner/memo/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/planner/util/main_test.go b/planner/util/main_test.go index 7f62901b5534c..59738797650c6 100644 --- a/planner/util/main_test.go +++ b/planner/util/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/plugin/conn_ip_example/main_test.go b/plugin/conn_ip_example/main_test.go index 33e3beaa207d4..71350c1da3692 100644 --- a/plugin/conn_ip_example/main_test.go +++ b/plugin/conn_ip_example/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/plugin/main_test.go b/plugin/main_test.go index 9c7fbeda0f42e..dd1ac858afbd3 100644 --- a/plugin/main_test.go +++ b/plugin/main_test.go @@ -25,7 +25,7 @@ func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/privilege/privileges/cache.go b/privilege/privileges/cache.go index 301f95ef9a1e3..c8932a5c5493c 100644 --- a/privilege/privileges/cache.go +++ b/privilege/privileges/cache.go @@ -16,6 +16,7 @@ package privileges import ( "bytes" + "cmp" "context" "encoding/json" "fmt" @@ -444,21 +445,17 @@ func (p *MySQLPrivilege) buildUserMap() { p.UserMap = userMap } -func compareBaseRecord(x, y *baseRecord) bool { +func compareBaseRecord(x, y *baseRecord) int { // Compare two item by user's host first. c1 := compareHost(x.Host, y.Host) - if c1 < 0 { - return true - } - if c1 > 0 { - return false + if c1 != 0 { + return c1 } - // Then, compare item by user's name value. - return x.User < y.User + return cmp.Compare(x.User, y.User) } -func compareUserRecord(x, y UserRecord) bool { +func compareUserRecord(x, y UserRecord) int { return compareBaseRecord(&x.baseRecord, &y.baseRecord) } @@ -536,7 +533,7 @@ func (p *MySQLPrivilege) LoadDBTable(ctx sessionctx.Context) error { return nil } -func compareDBRecord(x, y dbRecord) bool { +func compareDBRecord(x, y dbRecord) int { return compareBaseRecord(&x.baseRecord, &y.baseRecord) } diff --git a/privilege/privileges/main_test.go b/privilege/privileges/main_test.go index f591389958fd5..47bce6f139bb3 100644 --- a/privilege/privileges/main_test.go +++ b/privilege/privileges/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/server/main_test.go b/server/main_test.go index cdf12551934db..f336bc2a7afa7 100644 --- a/server/main_test.go +++ b/server/main_test.go @@ -57,7 +57,7 @@ func TestMain(m *testing.M) { } opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("time.Sleep"), goleak.IgnoreTopFunction("database/sql.(*Tx).awaitDone"), diff --git a/session/main_test.go b/session/main_test.go index 790903eb68c8a..0f7b15aa1f124 100644 --- a/session/main_test.go +++ b/session/main_test.go @@ -55,7 +55,7 @@ func TestMain(m *testing.M) { tikv.EnableFailpoints() opts := []goleak.Option{ // TODO: figure the reason and shorten this list - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("github.com/tikv/client-go/v2/internal/retry.newBackoffFn.func1"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/v3.waitRetryBackoff"), diff --git a/session/session_test/main_test.go b/session/session_test/main_test.go index 849904506a0db..0c9c272d46dac 100644 --- a/session/session_test/main_test.go +++ b/session/session_test/main_test.go @@ -39,7 +39,7 @@ func TestMain(m *testing.M) { tikv.EnableFailpoints() opts := []goleak.Option{ // TODO: figure the reason and shorten this list - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("github.com/tikv/client-go/v2/internal/retry.newBackoffFn.func1"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/v3.waitRetryBackoff"), diff --git a/sessionctx/binloginfo/main_test.go b/sessionctx/binloginfo/main_test.go index 0459507352310..647225858fae7 100644 --- a/sessionctx/binloginfo/main_test.go +++ b/sessionctx/binloginfo/main_test.go @@ -26,7 +26,7 @@ func TestMain(m *testing.M) { opts := []goleak.Option{ goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), } goleak.VerifyTestMain(m, opts...) diff --git a/sessionctx/main_test.go b/sessionctx/main_test.go index e6c2bc990a57e..034773325c656 100644 --- a/sessionctx/main_test.go +++ b/sessionctx/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/sessionctx/stmtctx/main_test.go b/sessionctx/stmtctx/main_test.go index ba36da8e5c6b8..e5442883b97d3 100644 --- a/sessionctx/stmtctx/main_test.go +++ b/sessionctx/stmtctx/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/sessionctx/variable/main_test.go b/sessionctx/variable/main_test.go index c5eca2f3d1658..f382b6d861395 100644 --- a/sessionctx/variable/main_test.go +++ b/sessionctx/variable/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/sessiontxn/isolation/main_test.go b/sessiontxn/isolation/main_test.go index e0b8ace02bce6..a1c36e68e88ec 100644 --- a/sessiontxn/isolation/main_test.go +++ b/sessiontxn/isolation/main_test.go @@ -38,7 +38,7 @@ func TestMain(m *testing.M) { testsetup.SetupForCommonTest() tikv.EnableFailpoints() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/sessiontxn/staleread/main_test.go b/sessiontxn/staleread/main_test.go index fb4766298666c..4e66cfbfc12e2 100644 --- a/sessiontxn/staleread/main_test.go +++ b/sessiontxn/staleread/main_test.go @@ -25,7 +25,7 @@ func TestMain(m *testing.M) { testsetup.SetupForCommonTest() tikv.EnableFailpoints() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/sessiontxn/txn_context_test.go b/sessiontxn/txn_context_test.go index 7ecd85a1db982..be51e74523cab 100644 --- a/sessiontxn/txn_context_test.go +++ b/sessiontxn/txn_context_test.go @@ -39,7 +39,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/statistics/cmsketch.go b/statistics/cmsketch.go index 0757e7a0a3d4d..5ac3210696425 100644 --- a/statistics/cmsketch.go +++ b/statistics/cmsketch.go @@ -16,6 +16,7 @@ package statistics import ( "bytes" + "cmp" "fmt" "math" "reflect" @@ -650,8 +651,8 @@ func (c *TopN) Sort() { if c == nil { return } - slices.SortFunc(c.TopN, func(i, j TopNMeta) bool { - return bytes.Compare(i.Encoded, j.Encoded) < 0 + slices.SortFunc(c.TopN, func(i, j TopNMeta) int { + return bytes.Compare(i.Encoded, j.Encoded) }) } @@ -870,26 +871,35 @@ func checkEmptyTopNs(topNs []*TopN) bool { // SortTopnMeta sort topnMeta func SortTopnMeta(topnMetas []TopNMeta) []TopNMeta { - slices.SortFunc(topnMetas, func(i, j TopNMeta) bool { + slices.SortFunc(topnMetas, func(i, j TopNMeta) int { if i.Count != j.Count { - return i.Count > j.Count + return cmp.Compare(j.Count, i.Count) } - return bytes.Compare(i.Encoded, j.Encoded) < 0 + return bytes.Compare(i.Encoded, j.Encoded) }) return topnMetas } +// TopnMetaCompare compare topnMeta +func TopnMetaCompare(i, j TopNMeta) int { + c := cmp.Compare(i.Count, j.Count) + if c == 0 { + return c + } + return bytes.Compare(i.Encoded, j.Encoded) +} + // GetMergedTopNFromSortedSlice returns merged topn func GetMergedTopNFromSortedSlice(sorted []TopNMeta, n uint32) (*TopN, []TopNMeta) { return getMergedTopNFromSortedSlice(sorted, n) } func getMergedTopNFromSortedSlice(sorted []TopNMeta, n uint32) (*TopN, []TopNMeta) { - slices.SortFunc(sorted, func(i, j TopNMeta) bool { + slices.SortFunc(sorted, func(i, j TopNMeta) int { if i.Count != j.Count { - return i.Count > j.Count + return cmp.Compare(j.Count, i.Count) } - return bytes.Compare(i.Encoded, j.Encoded) < 0 + return bytes.Compare(i.Encoded, j.Encoded) }) n = mathutil.Min(uint32(len(sorted)), n) diff --git a/statistics/feedback.go b/statistics/feedback.go index 910d44167a1b0..ddbd688b913bf 100644 --- a/statistics/feedback.go +++ b/statistics/feedback.go @@ -353,19 +353,19 @@ func NonOverlappedFeedbacks(sc *stmtctx.StatementContext, fbs []Feedback) ([]Fee // Sort feedbacks by end point and start point incrementally, then pick every feedback that is not overlapped // with the previous chosen feedbacks. var existsErr bool - slices.SortFunc(fbs, func(i, j Feedback) bool { + slices.SortFunc(fbs, func(i, j Feedback) int { res, err := i.Upper.Compare(sc, j.Upper, collate.GetBinaryCollator()) if err != nil { existsErr = true } if existsErr || res != 0 { - return res < 0 + return res } res, err = i.Lower.Compare(sc, j.Lower, collate.GetBinaryCollator()) if err != nil { existsErr = true } - return res < 0 + return res }) if existsErr { return fbs, false diff --git a/statistics/handle/main_test.go b/statistics/handle/main_test.go index 5541a01a46aa9..285de7283a6d9 100644 --- a/statistics/handle/main_test.go +++ b/statistics/handle/main_test.go @@ -23,7 +23,7 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/statistics/handle/update.go b/statistics/handle/update.go index 28560ac5878a3..3f4698675fdf0 100644 --- a/statistics/handle/update.go +++ b/statistics/handle/update.go @@ -16,6 +16,7 @@ package handle import ( "bytes" + "cmp" "context" "fmt" "math" @@ -950,11 +951,11 @@ func (h *Handle) DumpColStatsUsageToKV() error { for id, t := range colMap { pairs = append(pairs, pair{tblColID: id, lastUsedAt: t.UTC().Format(types.TimeFormat)}) } - slices.SortFunc(pairs, func(i, j pair) bool { + slices.SortFunc(pairs, func(i, j pair) int { if i.tblColID.TableID == j.tblColID.TableID { - return i.tblColID.ID < j.tblColID.ID + return cmp.Compare(i.tblColID.ID, j.tblColID.ID) } - return i.tblColID.TableID < j.tblColID.TableID + return cmp.Compare(i.tblColID.TableID, j.tblColID.TableID) }) // Use batch insert to reduce cost. for i := 0; i < len(pairs); i += batchInsertSize { diff --git a/statistics/handle/update_test.go b/statistics/handle/update_test.go index f8113f96455ae..3e80922abb72a 100644 --- a/statistics/handle/update_test.go +++ b/statistics/handle/update_test.go @@ -2029,7 +2029,7 @@ func TestFeedbackCounter(t *testing.T) { newNum := &dto.Metric{} err = metrics.StoreQueryFeedbackCounter.WithLabelValues(metrics.LblOK).Write(newNum) require.NoError(t, err) - require.Equal(t, 20, subtraction(newNum, oldNum)) + require.Equal(t, 20.0, *newNum.Counter.Value-*oldNum.Counter.Value) } func TestMergeTopN(t *testing.T) { diff --git a/statistics/histogram.go b/statistics/histogram.go index a9aedf8a1d247..f1c50774ae578 100644 --- a/statistics/histogram.go +++ b/statistics/histogram.go @@ -347,8 +347,8 @@ func (hg *Histogram) RemoveVals(valCntPairs []TopNMeta) { // AddIdxVals adds the given values to the histogram. func (hg *Histogram) AddIdxVals(idxValCntPairs []TopNMeta) { totalAddCnt := int64(0) - slices.SortFunc(idxValCntPairs, func(i, j TopNMeta) bool { - return bytes.Compare(i.Encoded, j.Encoded) < 0 + slices.SortFunc(idxValCntPairs, func(i, j TopNMeta) int { + return bytes.Compare(i.Encoded, j.Encoded) }) for bktIdx, pairIdx := 0, 0; bktIdx < hg.Len(); bktIdx++ { for pairIdx < len(idxValCntPairs) { @@ -1475,19 +1475,19 @@ func MergePartitionHist2GlobalHist(sc *stmtctx.StatementContext, hists []*Histog buckets = buckets[:tail] var sortError error - slices.SortFunc(buckets, func(i, j *bucket4Merging) bool { + slices.SortFunc(buckets, func(i, j *bucket4Merging) int { res, err := i.upper.Compare(sc, j.upper, collate.GetBinaryCollator()) if err != nil { sortError = err } if res != 0 { - return res < 0 + return res } res, err = i.lower.Compare(sc, j.lower, collate.GetBinaryCollator()) if err != nil { sortError = err } - return res < 0 + return res }) if sortError != nil { return nil, sortError diff --git a/statistics/main_test.go b/statistics/main_test.go index 1d19e839a8297..00897fd496feb 100644 --- a/statistics/main_test.go +++ b/statistics/main_test.go @@ -48,7 +48,7 @@ func TestMain(m *testing.M) { testDataMap.LoadTestSuiteData("testdata", "trace_suite") opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/statistics/selectivity.go b/statistics/selectivity.go index 99458cc04bea6..acc6248c10d92 100644 --- a/statistics/selectivity.go +++ b/statistics/selectivity.go @@ -16,6 +16,7 @@ package statistics import ( "bytes" + "cmp" "math" "math/bits" @@ -534,11 +535,11 @@ func getMaskAndRanges(ctx sessionctx.Context, exprs []expression.Expression, ran // GetUsableSetsByGreedy will select the indices and pk used for calculate selectivity by greedy algorithm. func GetUsableSetsByGreedy(nodes []*StatsNode) (newBlocks []*StatsNode) { - slices.SortFunc(nodes, func(i, j *StatsNode) bool { + slices.SortFunc(nodes, func(i, j *StatsNode) int { if r := compareType(i.Tp, j.Tp); r != 0 { - return r < 0 + return r } - return i.ID < j.ID + return cmp.Compare(i.ID, j.ID) }) marked := make([]bool, len(nodes)) mask := int64(math.MaxInt64) diff --git a/statistics/table.go b/statistics/table.go index b9c0bcb5be777..a1f2df0639f39 100644 --- a/statistics/table.go +++ b/statistics/table.go @@ -15,6 +15,7 @@ package statistics import ( + "cmp" "fmt" "math" "strings" @@ -341,7 +342,7 @@ func (t *Table) String() string { for _, col := range t.Columns { cols = append(cols, col) } - slices.SortFunc(cols, func(i, j *Column) bool { return i.ID < j.ID }) + slices.SortFunc(cols, func(i, j *Column) int { return cmp.Compare(i.ID, j.ID) }) for _, col := range cols { strs = append(strs, col.String()) } @@ -349,7 +350,7 @@ func (t *Table) String() string { for _, idx := range t.Indices { idxs = append(idxs, idx) } - slices.SortFunc(idxs, func(i, j *Index) bool { return i.ID < j.ID }) + slices.SortFunc(idxs, func(i, j *Index) int { return cmp.Compare(i.ID, j.ID) }) for _, idx := range idxs { strs = append(strs, idx.String()) } diff --git a/store/copr/batch_coprocessor.go b/store/copr/batch_coprocessor.go index 3384eccfadaee..17f61e02e0dc8 100644 --- a/store/copr/batch_coprocessor.go +++ b/store/copr/batch_coprocessor.go @@ -16,6 +16,7 @@ package copr import ( "bytes" + "cmp" "context" "fmt" "io" @@ -207,13 +208,13 @@ func balanceBatchCopTaskWithContinuity(storeTaskMap map[uint64]*batchCopTask, ca storeTasks := deepCopyStoreTaskMap(storeTaskMap) // Sort regions by their key ranges. - slices.SortFunc(candidateRegionInfos, func(i, j RegionInfo) bool { + slices.SortFunc(candidateRegionInfos, func(i, j RegionInfo) int { // Special case: Sort empty ranges to the end. if i.Ranges.Len() < 1 || j.Ranges.Len() < 1 { - return i.Ranges.Len() > j.Ranges.Len() + return cmp.Compare(j.Ranges.Len(), i.Ranges.Len()) } // StartKey0 < StartKey1 - return bytes.Compare(i.Ranges.At(0).StartKey, j.Ranges.At(0).StartKey) == -1 + return bytes.Compare(i.Ranges.At(0).StartKey, j.Ranges.At(0).StartKey) }) balanceStart := time.Now() @@ -818,8 +819,8 @@ func (b *batchCopIterator) retryBatchCopTask(ctx context.Context, bo *backoff.Ba }) } // need to make sure the key ranges is sorted - slices.SortFunc(ranges, func(i, j kv.KeyRange) bool { - return bytes.Compare(i.StartKey, j.StartKey) < 0 + slices.SortFunc(ranges, func(i, j kv.KeyRange) int { + return bytes.Compare(i.StartKey, j.StartKey) }) ret, err := buildBatchCopTasksForNonPartitionedTable(bo, b.store, NewKeyRanges(ranges), b.req.StoreType, false, 0, false, 0) return ret, err @@ -839,8 +840,8 @@ func (b *batchCopIterator) retryBatchCopTask(ctx context.Context, bo *backoff.Ba } } // need to make sure the key ranges is sorted - slices.SortFunc(ranges, func(i, j kv.KeyRange) bool { - return bytes.Compare(i.StartKey, j.StartKey) < 0 + slices.SortFunc(ranges, func(i, j kv.KeyRange) int { + return bytes.Compare(i.StartKey, j.StartKey) }) keyRanges = append(keyRanges, NewKeyRanges(ranges)) } diff --git a/store/copr/copr_test/main_test.go b/store/copr/copr_test/main_test.go index 9b98a6a9ad944..d2d70af80a4e9 100644 --- a/store/copr/copr_test/main_test.go +++ b/store/copr/copr_test/main_test.go @@ -39,7 +39,7 @@ func TestMain(m *testing.M) { tikv.EnableFailpoints() opts := []goleak.Option{ // TODO: figure the reason and shorten this list - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("github.com/tikv/client-go/v2/internal/retry.newBackoffFn.func1"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/v3.waitRetryBackoff"), diff --git a/store/copr/main_test.go b/store/copr/main_test.go index 456b51156c8be..5e4a515a086fd 100644 --- a/store/copr/main_test.go +++ b/store/copr/main_test.go @@ -37,7 +37,7 @@ func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ goleak.IgnoreTopFunction("github.com/pingcap/goleveldb/leveldb.(*DB).mpoolDrain"), - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/store/driver/error/error_test.go b/store/driver/error/error_test.go index f1f2878fb7743..2088d6fee5940 100644 --- a/store/driver/error/error_test.go +++ b/store/driver/error/error_test.go @@ -28,7 +28,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/store/driver/main_test.go b/store/driver/main_test.go index e0c805a52a952..9da08210c56ec 100644 --- a/store/driver/main_test.go +++ b/store/driver/main_test.go @@ -40,7 +40,7 @@ func TestMain(m *testing.M) { testsetup.SetupForCommonTest() tikv.EnableFailpoints() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/store/driver/txn/main_test.go b/store/driver/txn/main_test.go index 7c5fb240d8958..59abd5c7df824 100644 --- a/store/driver/txn/main_test.go +++ b/store/driver/txn/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/store/gcworker/gc_worker.go b/store/gcworker/gc_worker.go index e9365d727777a..15f759d42ca9a 100644 --- a/store/gcworker/gc_worker.go +++ b/store/gcworker/gc_worker.go @@ -1234,8 +1234,8 @@ func (w *GCWorker) checkLockObservers(ctx context.Context, safePoint uint64, sto for i, lockInfo := range respInner.Locks { locks[i] = txnlock.NewLock(lockInfo) } - slices.SortFunc(locks, func(i, j *txnlock.Lock) bool { - return bytes.Compare(i.Key, j.Key) < 0 + slices.SortFunc(locks, func(i, j *txnlock.Lock) int { + return bytes.Compare(i.Key, j.Key) }) err = w.resolveLocksAcrossRegions(ctx, locks) diff --git a/store/gcworker/main_test.go b/store/gcworker/main_test.go index df72adb3a8f27..9528b1d02cd8c 100644 --- a/store/gcworker/main_test.go +++ b/store/gcworker/main_test.go @@ -30,7 +30,7 @@ func TestMain(m *testing.M) { opts := []goleak.Option{ goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), } callback := func(i int) int { diff --git a/store/helper/helper.go b/store/helper/helper.go index 5ff582f75e928..5674b251ad3f4 100644 --- a/store/helper/helper.go +++ b/store/helper/helper.go @@ -17,6 +17,7 @@ package helper import ( "bufio" "bytes" + "cmp" "context" "encoding/hex" "encoding/json" @@ -824,8 +825,8 @@ func (*Helper) GetTablesInfoWithKeyRange(schemas []*model.DBInfo) []TableInfoWit } } } - slices.SortFunc(tables, func(i, j TableInfoWithKeyRange) bool { - return i.getStartKey() < j.getStartKey() + slices.SortFunc(tables, func(i, j TableInfoWithKeyRange) int { + return cmp.Compare(i.StartKey, j.StartKey) }) return tables } @@ -838,8 +839,8 @@ func (*Helper) ParseRegionsTableInfos(regionsInfo []*RegionInfo, tables []TableI return tableInfos } // tables is sorted in GetTablesInfoWithKeyRange func - slices.SortFunc(regionsInfo, func(i, j *RegionInfo) bool { - return i.getStartKey() < j.getStartKey() + slices.SortFunc(regionsInfo, func(i, j *RegionInfo) int { + return cmp.Compare(i.StartKey, j.StartKey) }) idx := 0 diff --git a/store/helper/main_test.go b/store/helper/main_test.go index 3937580027775..d8521eeea02a7 100644 --- a/store/helper/main_test.go +++ b/store/helper/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/store/main_test.go b/store/main_test.go index 4d0820e80c89b..db9fa6e12c004 100644 --- a/store/main_test.go +++ b/store/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/store/mockstore/main_test.go b/store/mockstore/main_test.go index aa9718295ad04..d9e651ee3ec0e 100644 --- a/store/mockstore/main_test.go +++ b/store/mockstore/main_test.go @@ -31,7 +31,7 @@ func TestMain(m *testing.M) { return i } opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/store/mockstore/mockcopr/main_test.go b/store/mockstore/mockcopr/main_test.go index 279862588c465..d2649eacec8b4 100644 --- a/store/mockstore/mockcopr/main_test.go +++ b/store/mockstore/mockcopr/main_test.go @@ -26,7 +26,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/store/mockstore/unistore/cophandler/analyze.go b/store/mockstore/unistore/cophandler/analyze.go index a04b158e4b4a6..3a1ef32414e56 100644 --- a/store/mockstore/unistore/cophandler/analyze.go +++ b/store/mockstore/unistore/cophandler/analyze.go @@ -112,14 +112,7 @@ func handleAnalyzeIndexReq(dbReader *dbreader.DBReader, rans []kv.KeyRange, anal if processor.topNCurValuePair.Count != 0 { processor.topNValuePairs = append(processor.topNValuePairs, processor.topNCurValuePair) } - slices.SortFunc(processor.topNValuePairs, func(i, j statistics.TopNMeta) bool { - if i.Count > j.Count { - return true - } else if i.Count < j.Count { - return false - } - return bytes.Compare(i.Encoded, j.Encoded) < 0 - }) + slices.SortFunc(processor.topNValuePairs, statistics.TopnMetaCompare) if len(processor.topNValuePairs) > int(processor.topNCount) { processor.topNValuePairs = processor.topNValuePairs[:processor.topNCount] } @@ -564,14 +557,7 @@ func handleAnalyzeMixedReq(dbReader *dbreader.DBReader, rans []kv.KeyRange, anal if e.topNCurValuePair.Count != 0 { e.topNValuePairs = append(e.topNValuePairs, e.topNCurValuePair) } - slices.SortFunc(e.topNValuePairs, func(i, j statistics.TopNMeta) bool { - if i.Count > j.Count { - return true - } else if i.Count < j.Count { - return false - } - return bytes.Compare(i.Encoded, j.Encoded) < 0 - }) + slices.SortFunc(e.topNValuePairs, statistics.TopnMetaCompare) if len(e.topNValuePairs) > int(e.topNCount) { e.topNValuePairs = e.topNValuePairs[:e.topNCount] } diff --git a/store/mockstore/unistore/cophandler/main_test.go b/store/mockstore/unistore/cophandler/main_test.go index 5dbab5fb93a5b..44f1a68ca9748 100644 --- a/store/mockstore/unistore/cophandler/main_test.go +++ b/store/mockstore/unistore/cophandler/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/store/mockstore/unistore/lockstore/main_test.go b/store/mockstore/unistore/lockstore/main_test.go index 09e8ebf061f44..90e0fe6f2c2cd 100644 --- a/store/mockstore/unistore/lockstore/main_test.go +++ b/store/mockstore/unistore/lockstore/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/store/mockstore/unistore/main_test.go b/store/mockstore/unistore/main_test.go index a2bcc6e1531f9..894979442e47d 100644 --- a/store/mockstore/unistore/main_test.go +++ b/store/mockstore/unistore/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/store/mockstore/unistore/tikv/main_test.go b/store/mockstore/unistore/tikv/main_test.go index 6b242bcddf291..7edf80555f051 100644 --- a/store/mockstore/unistore/tikv/main_test.go +++ b/store/mockstore/unistore/tikv/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/store/mockstore/unistore/tikv/mock_region.go b/store/mockstore/unistore/tikv/mock_region.go index 2e3e4fa01ddb1..670f2a20b6e76 100644 --- a/store/mockstore/unistore/tikv/mock_region.go +++ b/store/mockstore/unistore/tikv/mock_region.go @@ -401,8 +401,8 @@ func (rm *MockRegionManager) SplitRegion(req *kvrpcpb.SplitRegionRequest) *kvrpc for _, rawKey := range req.SplitKeys { splitKeys = append(splitKeys, codec.EncodeBytes(nil, rawKey)) } - slices.SortFunc(splitKeys, func(i, j []byte) bool { - return bytes.Compare(i, j) < 0 + slices.SortFunc(splitKeys, func(i, j []byte) int { + return bytes.Compare(i, j) }) newRegions, err := rm.splitKeys(splitKeys) diff --git a/store/mockstore/unistore/tikv/mvcc.go b/store/mockstore/unistore/tikv/mvcc.go index 8efd8f26ee75c..672a117ee24df 100644 --- a/store/mockstore/unistore/tikv/mvcc.go +++ b/store/mockstore/unistore/tikv/mvcc.go @@ -17,6 +17,7 @@ package tikv import ( "bufio" "bytes" + "cmp" "context" "fmt" "math" @@ -175,8 +176,8 @@ func (store *MVCCStore) getDBItems(reqCtx *requestCtx, mutations []*kvrpcpb.Muta } func sortMutations(mutations []*kvrpcpb.Mutation) []*kvrpcpb.Mutation { - fn := func(i, j *kvrpcpb.Mutation) bool { - return bytes.Compare(i.Key, j.Key) < 0 + fn := func(i, j *kvrpcpb.Mutation) int { + return bytes.Compare(i.Key, j.Key) } if slices.IsSortedFunc(mutations, fn) { return mutations @@ -215,13 +216,10 @@ func (sorter pessimisticPrewriteSorter) Swap(i, j int) { } func sortKeys(keys [][]byte) [][]byte { - less := func(i, j []byte) bool { - return bytes.Compare(i, j) < 0 - } - if slices.IsSortedFunc(keys, less) { + if slices.IsSortedFunc(keys, bytes.Compare) { return keys } - slices.SortFunc(keys, less) + slices.SortFunc(keys, bytes.Compare) return keys } @@ -1447,8 +1445,8 @@ func (store *MVCCStore) MvccGetByKey(reqCtx *requestCtx, key []byte) (*kvrpcpb.M if err != nil { return nil, err } - slices.SortFunc(mvccInfo.Writes, func(i, j *kvrpcpb.MvccWrite) bool { - return i.CommitTs > j.CommitTs + slices.SortFunc(mvccInfo.Writes, func(i, j *kvrpcpb.MvccWrite) int { + return cmp.Compare(j.CommitTs, i.CommitTs) }) mvccInfo.Values = make([]*kvrpcpb.MvccValue, len(mvccInfo.Writes)) for i := 0; i < len(mvccInfo.Writes); i++ { diff --git a/store/mockstore/unistore/util/lockwaiter/lockwaiter.go b/store/mockstore/unistore/util/lockwaiter/lockwaiter.go index 979eed53652c2..9663e0064df71 100644 --- a/store/mockstore/unistore/util/lockwaiter/lockwaiter.go +++ b/store/mockstore/unistore/util/lockwaiter/lockwaiter.go @@ -15,6 +15,7 @@ package lockwaiter import ( + "cmp" "sync" "time" @@ -51,8 +52,8 @@ type queue struct { func (q *queue) getOldestWaiter() (*Waiter, []*Waiter) { // make the waiters in start ts order - slices.SortFunc(q.waiters, func(i, j *Waiter) bool { - return i.startTS < j.startTS + slices.SortFunc(q.waiters, func(i, j *Waiter) int { + return cmp.Compare(i.startTS, j.startTS) }) oldestWaiter := q.waiters[0] remainWaiter := q.waiters[1:] diff --git a/store/mockstore/unistore/util/lockwaiter/main_test.go b/store/mockstore/unistore/util/lockwaiter/main_test.go index 27b0a5b93bd25..d9d870c15f67d 100644 --- a/store/mockstore/unistore/util/lockwaiter/main_test.go +++ b/store/mockstore/unistore/util/lockwaiter/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/store/pdtypes/region_tree.go b/store/pdtypes/region_tree.go index cc99e981e0097..7971424dcd953 100644 --- a/store/pdtypes/region_tree.go +++ b/store/pdtypes/region_tree.go @@ -52,8 +52,8 @@ func (t *RegionTree) SetRegion(region *Region) { // ScanRange scans regions intersecting [start key, end key), returns at most // `limit` regions. limit <= 0 means no limit. func (t *RegionTree) ScanRange(startKey, endKey []byte, limit int) []*Region { - slices.SortFunc(t.Regions, func(i, j *Region) bool { - return bytes.Compare(i.Meta.StartKey, j.Meta.StartKey) < 0 + slices.SortFunc(t.Regions, func(i, j *Region) int { + return bytes.Compare(i.Meta.StartKey, j.Meta.StartKey) }) pivot := NewRegionInfo(&metapb.Region{StartKey: startKey, EndKey: endKey}, nil) var res []*Region diff --git a/structure/main_test.go b/structure/main_test.go index 956a8a8ad93d8..7167699c0a067 100644 --- a/structure/main_test.go +++ b/structure/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/table/main_test.go b/table/main_test.go index 019f53e9f303a..ad265d56a2254 100644 --- a/table/main_test.go +++ b/table/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/table/tables/main_test.go b/table/tables/main_test.go index d831e57364d33..c4051b28de223 100644 --- a/table/tables/main_test.go +++ b/table/tables/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/table/temptable/main_test.go b/table/temptable/main_test.go index 8c5c4f557e1ae..e5d1126a4bce6 100644 --- a/table/temptable/main_test.go +++ b/table/temptable/main_test.go @@ -38,7 +38,7 @@ func TestMain(m *testing.M) { opts := []goleak.Option{ goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), } testsetup.SetupForCommonTest() @@ -126,7 +126,7 @@ func newMockedRetriever(t *testing.T) *mockedRetriever { } func (r *mockedRetriever) SetData(data []*kv.Entry) *mockedRetriever { - lessFunc := func(i, j *kv.Entry) bool { return bytes.Compare(i.Key, j.Key) < 0 } + lessFunc := func(i, j *kv.Entry) int { return bytes.Compare(i.Key, j.Key) } if !slices.IsSortedFunc(data, lessFunc) { data = append([]*kv.Entry{}, data...) slices.SortFunc(data, lessFunc) diff --git a/tablecodec/main_test.go b/tablecodec/main_test.go index 5024acdb32bdf..e8bd50fb0d1c8 100644 --- a/tablecodec/main_test.go +++ b/tablecodec/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/tablecodec/rowindexcodec/main_test.go b/tablecodec/rowindexcodec/main_test.go index 11b7963a4bd14..8a1ee5618b228 100644 --- a/tablecodec/rowindexcodec/main_test.go +++ b/tablecodec/rowindexcodec/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/telemetry/cte_test/cte_test.go b/telemetry/cte_test/cte_test.go index c8f04eb2df1d4..708d9fe0d5b7f 100644 --- a/telemetry/cte_test/cte_test.go +++ b/telemetry/cte_test/cte_test.go @@ -34,7 +34,7 @@ func TestMain(m *testing.M) { opts := []goleak.Option{ goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), } diff --git a/telemetry/main_test.go b/telemetry/main_test.go index 0e8d98b2a4f6c..46ab5a777256c 100644 --- a/telemetry/main_test.go +++ b/telemetry/main_test.go @@ -38,7 +38,7 @@ func TestMain(m *testing.M) { opts := []goleak.Option{ goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), } diff --git a/testkit/result.go b/testkit/result.go index 5debc9b1ee242..44950b5faf039 100644 --- a/testkit/result.go +++ b/testkit/result.go @@ -71,15 +71,8 @@ func Rows(args ...string) [][]interface{} { // Sort sorts and return the result. func (res *Result) Sort() *Result { - slices.SortFunc(res.rows, func(a, b []string) bool { - for i := range a { - if a[i] < b[i] { - return true - } else if a[i] > b[i] { - return false - } - } - return false + slices.SortFunc(res.rows, func(a, b []string) int { + return slices.Compare(a, b) }) return res } diff --git a/tests/graceshutdown/main_test.go b/tests/graceshutdown/main_test.go index 56da5e1a0590a..8bf8392820147 100644 --- a/tests/graceshutdown/main_test.go +++ b/tests/graceshutdown/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("syscall.syscall6"), } diff --git a/tests/readonlytest/main_test.go b/tests/readonlytest/main_test.go index 53cdfef25456b..2dd04285455a1 100644 --- a/tests/readonlytest/main_test.go +++ b/tests/readonlytest/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/tests/realtikvtest/brietest/main_test.go b/tests/realtikvtest/brietest/main_test.go index 12b7cda9f1d1e..12683396fa501 100644 --- a/tests/realtikvtest/brietest/main_test.go +++ b/tests/realtikvtest/brietest/main_test.go @@ -25,11 +25,12 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("google.golang.org/grpc.(*ccBalancerWrapper).watcher"), goleak.IgnoreTopFunction("google.golang.org/grpc/internal/transport.(*http2Client).keepalive"), goleak.IgnoreTopFunction("google.golang.org/grpc/internal/transport.(*controlBuffer).get"), + goleak.IgnoreTopFunction("google.golang.org/grpc/internal/grpcsync.(*CallbackSerializer).run"), goleak.IgnoreTopFunction("net/http.(*persistConn).writeLoop"), goleak.IgnoreTopFunction("internal/poll.runtime_pollWait"), } diff --git a/tests/realtikvtest/testkit.go b/tests/realtikvtest/testkit.go index 06b34f20e7d53..6d4a1968d77a2 100644 --- a/tests/realtikvtest/testkit.go +++ b/tests/realtikvtest/testkit.go @@ -58,18 +58,26 @@ func RunTestMain(m *testing.M) { }) tikv.EnableFailpoints() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), + goleak.IgnoreTopFunction("github.com/bazelbuild/rules_go/go/tools/bzltestutil.RegisterTimeoutHandler.func1"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), - goleak.IgnoreTopFunction("github.com/tikv/client-go/v2/internal/retry.newBackoffFn.func1"), + goleak.IgnoreTopFunction("github.com/tikv/client-go/v2/config/retry.newBackoffFn.func1"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/v3.waitRetryBackoff"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("google.golang.org/grpc.(*addrConn).resetTransport"), goleak.IgnoreTopFunction("google.golang.org/grpc.(*ccBalancerWrapper).watcher"), goleak.IgnoreTopFunction("google.golang.org/grpc/internal/transport.(*controlBuffer).get"), - goleak.IgnoreTopFunction("google.golang.org/grpc/internal/transport.(*http2Client).keepalive"), + // top function of this routine might be "sync.runtime_notifyListWait(0xc0098f5450, 0x0)", so we use IgnoreAnyFunction. + goleak.IgnoreAnyFunction("google.golang.org/grpc/internal/transport.(*http2Client).keepalive"), + goleak.IgnoreTopFunction("google.golang.org/grpc/internal/grpcsync.(*CallbackSerializer).run"), goleak.IgnoreTopFunction("internal/poll.runtime_pollWait"), goleak.IgnoreTopFunction("net/http.(*persistConn).writeLoop"), goleak.IgnoreTopFunction("github.com/tikv/client-go/v2/txnkv/transaction.keepAlive"), + // backoff function will lead to sleep, so there is a high probability of goroutine leak while it's doing backoff. + goleak.IgnoreTopFunction("github.com/tikv/client-go/v2/config/retry.(*Config).createBackoffFn.newBackoffFn.func2"), + goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), + // the resolveFlushedLocks goroutine runs in the background to commit or rollback locks. + goleak.IgnoreAnyFunction("github.com/tikv/client-go/v2/txnkv/transaction.(*twoPhaseCommitter).resolveFlushedLocks.func1"), } callback := func(i int) int { // wait for MVCCLevelDB to close, MVCCLevelDB will be closed in one second diff --git a/tidb-binlog/driver/example/mysql/BUILD.bazel b/tidb-binlog/driver/example/mysql/BUILD.bazel index 5e56a58af65d0..36c5f13e9c12f 100644 --- a/tidb-binlog/driver/example/mysql/BUILD.bazel +++ b/tidb-binlog/driver/example/mysql/BUILD.bazel @@ -13,8 +13,8 @@ go_library( "//types/parser_driver", "//util/dbutil", "@com_github_go_sql_driver_mysql//:mysql", + "@com_github_ibm_sarama//:sarama", "@com_github_pingcap_log//:log", - "@com_github_shopify_sarama//:sarama", "@org_uber_go_zap//:zap", ], ) diff --git a/tidb-binlog/driver/example/mysql/mysql.go b/tidb-binlog/driver/example/mysql/mysql.go index e115c845b21e9..7b9f5ef627fee 100644 --- a/tidb-binlog/driver/example/mysql/mysql.go +++ b/tidb-binlog/driver/example/mysql/mysql.go @@ -19,7 +19,7 @@ import ( "fmt" "strings" - "github.com/Shopify/sarama" + "github.com/IBM/sarama" _ "github.com/go-sql-driver/mysql" "github.com/pingcap/log" "github.com/pingcap/tidb/parser" diff --git a/tidb-binlog/driver/example/print/BUILD.bazel b/tidb-binlog/driver/example/print/BUILD.bazel index 880e3bb790f6d..0518bfde8cb2f 100644 --- a/tidb-binlog/driver/example/print/BUILD.bazel +++ b/tidb-binlog/driver/example/print/BUILD.bazel @@ -7,8 +7,8 @@ go_library( visibility = ["//visibility:private"], deps = [ "//tidb-binlog/driver/reader", + "@com_github_ibm_sarama//:sarama", "@com_github_pingcap_log//:log", - "@com_github_shopify_sarama//:sarama", "@org_uber_go_zap//:zap", ], ) diff --git a/tidb-binlog/driver/example/print/print.go b/tidb-binlog/driver/example/print/print.go index e2c59b50020f1..3e697d45c5ea2 100644 --- a/tidb-binlog/driver/example/print/print.go +++ b/tidb-binlog/driver/example/print/print.go @@ -16,7 +16,7 @@ package main import ( "flag" - "github.com/Shopify/sarama" + "github.com/IBM/sarama" "github.com/pingcap/log" "github.com/pingcap/tidb/tidb-binlog/driver/reader" "go.uber.org/zap" diff --git a/tidb-binlog/driver/reader/BUILD.bazel b/tidb-binlog/driver/reader/BUILD.bazel index 32f271d627085..05c7edc7d6fc1 100644 --- a/tidb-binlog/driver/reader/BUILD.bazel +++ b/tidb-binlog/driver/reader/BUILD.bazel @@ -10,9 +10,9 @@ go_library( visibility = ["//visibility:public"], deps = [ "//tidb-binlog/proto/go-binlog", + "@com_github_ibm_sarama//:sarama", "@com_github_pingcap_errors//:errors", "@com_github_pingcap_log//:log", - "@com_github_shopify_sarama//:sarama", "@org_uber_go_zap//:zap", ], ) @@ -25,7 +25,7 @@ go_test( flaky = True, deps = [ "//tidb-binlog/proto/go-binlog", - "@com_github_shopify_sarama//:sarama", + "@com_github_ibm_sarama//:sarama", "@com_github_stretchr_testify//require", ], ) diff --git a/tidb-binlog/driver/reader/offset.go b/tidb-binlog/driver/reader/offset.go index bc91bb3cfb45e..e903ddc7e8335 100644 --- a/tidb-binlog/driver/reader/offset.go +++ b/tidb-binlog/driver/reader/offset.go @@ -17,7 +17,7 @@ package reader import ( "time" - "github.com/Shopify/sarama" + "github.com/IBM/sarama" "github.com/pingcap/errors" "github.com/pingcap/log" pb "github.com/pingcap/tidb/tidb-binlog/proto/go-binlog" diff --git a/tidb-binlog/driver/reader/offset_test.go b/tidb-binlog/driver/reader/offset_test.go index 55808cd550d02..0a1126788a451 100644 --- a/tidb-binlog/driver/reader/offset_test.go +++ b/tidb-binlog/driver/reader/offset_test.go @@ -19,7 +19,7 @@ import ( "testing" "time" - "github.com/Shopify/sarama" + "github.com/IBM/sarama" pb "github.com/pingcap/tidb/tidb-binlog/proto/go-binlog" "github.com/stretchr/testify/require" ) diff --git a/tidb-binlog/driver/reader/reader.go b/tidb-binlog/driver/reader/reader.go index 0418ce5324c79..82f720d7d4826 100644 --- a/tidb-binlog/driver/reader/reader.go +++ b/tidb-binlog/driver/reader/reader.go @@ -17,7 +17,7 @@ package reader import ( "time" - "github.com/Shopify/sarama" + "github.com/IBM/sarama" "github.com/pingcap/errors" "github.com/pingcap/log" pb "github.com/pingcap/tidb/tidb-binlog/proto/go-binlog" diff --git a/tidb-server/main_test.go b/tidb-server/main_test.go index cb0c53f4d2443..34b98fc53fc22 100644 --- a/tidb-server/main_test.go +++ b/tidb-server/main_test.go @@ -32,7 +32,7 @@ var isCoverageServer string func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/ttl/cache/main_test.go b/ttl/cache/main_test.go index e3846871bb55b..8b90f0a4dc116 100644 --- a/ttl/cache/main_test.go +++ b/ttl/cache/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/ttl/session/main_test.go b/ttl/session/main_test.go index 330dcd581dbff..d6c93194f026a 100644 --- a/ttl/session/main_test.go +++ b/ttl/session/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/ttl/sqlbuilder/main_test.go b/ttl/sqlbuilder/main_test.go index 76cecabaf752c..8198b07e6bdc5 100644 --- a/ttl/sqlbuilder/main_test.go +++ b/ttl/sqlbuilder/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/types/json_binary.go b/types/json_binary.go index eb9a818b6a7f5..808aad5e42b37 100644 --- a/types/json_binary.go +++ b/types/json_binary.go @@ -16,6 +16,7 @@ package types import ( "bytes" + "cmp" "encoding/base64" "encoding/binary" "encoding/json" @@ -812,8 +813,8 @@ func appendBinaryObject(buf []byte, x map[string]interface{}) ([]byte, error) { for key, val := range x { fields = append(fields, field{key: key, val: val}) } - slices.SortFunc(fields, func(i, j field) bool { - return i.key < j.key + slices.SortFunc(fields, func(i, j field) int { + return cmp.Compare(i.key, j.key) }) for i, field := range fields { keyEntryOff := keyEntryBegin + i*keyEntrySize diff --git a/types/json_binary_functions.go b/types/json_binary_functions.go index 2b02d5a0f65e7..56842fa82945e 100644 --- a/types/json_binary_functions.go +++ b/types/json_binary_functions.go @@ -933,8 +933,8 @@ func mergePatchBinaryJSON(target, patch *BinaryJSON) (result *BinaryJSON, err er for key := range keyValMap { keys = append(keys, []byte(key)) } - slices.SortFunc(keys, func(i, j []byte) bool { - return bytes.Compare(i, j) < 0 + slices.SortFunc(keys, func(i, j []byte) int { + return bytes.Compare(i, j) }) length = len(keys) values := make([]BinaryJSON, 0, len(keys)) @@ -1016,8 +1016,8 @@ func mergeBinaryObject(objects []BinaryJSON) BinaryJSON { } } } - slices.SortFunc(keys, func(i, j []byte) bool { - return bytes.Compare(i, j) < 0 + slices.SortFunc(keys, func(i, j []byte) int { + return bytes.Compare(i, j) }) values := make([]BinaryJSON, len(keys)) for i, key := range keys { diff --git a/types/main_test.go b/types/main_test.go index 3e4fb3f087159..8caf6e228dfc0 100644 --- a/types/main_test.go +++ b/types/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/types/parser_driver/main_test.go b/types/parser_driver/main_test.go index ebf7bf042bd54..eb42a285f3a87 100644 --- a/types/parser_driver/main_test.go +++ b/types/parser_driver/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/admin/main_test.go b/util/admin/main_test.go index ee1f2d5f2f116..c426d6d3c456b 100644 --- a/util/admin/main_test.go +++ b/util/admin/main_test.go @@ -31,7 +31,7 @@ func TestMain(m *testing.M) { }) opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/arena/main_test.go b/util/arena/main_test.go index a399ad116c1b6..fa57e3c65717a 100644 --- a/util/arena/main_test.go +++ b/util/arena/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/benchdaily/main_test.go b/util/benchdaily/main_test.go index 02836578e971d..a7996b81990fb 100644 --- a/util/benchdaily/main_test.go +++ b/util/benchdaily/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/bitmap/main_test.go b/util/bitmap/main_test.go index e023854dbc74e..465b1ff1d89c5 100644 --- a/util/bitmap/main_test.go +++ b/util/bitmap/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/checksum/main_test.go b/util/checksum/main_test.go index 4e41ef991f925..71f0d1d4e1c42 100644 --- a/util/checksum/main_test.go +++ b/util/checksum/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/chunk/disk_test.go b/util/chunk/disk_test.go index 2b80fe644cd58..a7a115b318968 100644 --- a/util/chunk/disk_test.go +++ b/util/chunk/disk_test.go @@ -178,6 +178,9 @@ func newListInDiskWriteDisk(fieldTypes []*types.FieldType) (*listInDiskWriteDisk func (l *listInDiskWriteDisk) GetRow(ptr RowPtr) (row Row, err error) { err = l.flushForTest() + if err != nil { + return + } off, err := l.getOffset(ptr.ChkIdx, ptr.RowIdx) if err != nil { return diff --git a/util/codec/main_test.go b/util/codec/main_test.go index d754807331c7f..4557d994e0ef0 100644 --- a/util/codec/main_test.go +++ b/util/codec/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/collate/collate.go b/util/collate/collate.go index d212fa49e8f18..a7c51fbee80c1 100644 --- a/util/collate/collate.go +++ b/util/collate/collate.go @@ -15,6 +15,7 @@ package collate import ( + "cmp" "fmt" "sync/atomic" @@ -255,8 +256,8 @@ func GetSupportedCollations() []*charset.Collation { newSupportedCollations = append(newSupportedCollations, coll) } } - slices.SortFunc(newSupportedCollations, func(i, j *charset.Collation) bool { - return i.Name < j.Name + slices.SortFunc(newSupportedCollations, func(i, j *charset.Collation) int { + return cmp.Compare(i.Name, j.Name) }) return newSupportedCollations } diff --git a/util/collate/main_test.go b/util/collate/main_test.go index 42632ee9bd640..c405ac95d08e4 100644 --- a/util/collate/main_test.go +++ b/util/collate/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/cteutil/main_test.go b/util/cteutil/main_test.go index 44a7aeb89bc09..db43cd22437c1 100644 --- a/util/cteutil/main_test.go +++ b/util/cteutil/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/dbterror/ddl_terror.go b/util/dbterror/ddl_terror.go index 1db0630977945..a58452f042b41 100644 --- a/util/dbterror/ddl_terror.go +++ b/util/dbterror/ddl_terror.go @@ -173,7 +173,7 @@ var ( // ErrFkDupName returns for duplicated FK name. ErrFkDupName = ClassDDL.NewStd(mysql.ErrFkDupName) // ErrInvalidDDLState returns for invalid ddl model object state. - ErrInvalidDDLState = ClassDDL.NewStdErr(mysql.ErrInvalidDDLState, parser_mysql.Message(fmt.Sprintf(mysql.MySQLErrName[mysql.ErrInvalidDDLState].Raw), nil)) + ErrInvalidDDLState = ClassDDL.NewStdErr(mysql.ErrInvalidDDLState, parser_mysql.Message(mysql.MySQLErrName[mysql.ErrInvalidDDLState].Raw, nil)) // ErrUnsupportedModifyPrimaryKey returns an error when add or drop the primary key. // It's exported for testing. ErrUnsupportedModifyPrimaryKey = ClassDDL.NewStdErr(mysql.ErrUnsupportedDDLOperation, parser_mysql.Message(fmt.Sprintf(mysql.MySQLErrName[mysql.ErrUnsupportedDDLOperation].Raw, "%s primary key"), nil)) diff --git a/util/dbterror/main_test.go b/util/dbterror/main_test.go index 9e86cc8d329e3..43f8dab796378 100644 --- a/util/dbterror/main_test.go +++ b/util/dbterror/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), } goleak.VerifyTestMain(m, opts...) diff --git a/util/deadlockhistory/main_test.go b/util/deadlockhistory/main_test.go index 388b04f00bbf0..94886db8018c3 100644 --- a/util/deadlockhistory/main_test.go +++ b/util/deadlockhistory/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/disjointset/main_test.go b/util/disjointset/main_test.go index 4c7620d69dc07..3681f9fdb7790 100644 --- a/util/disjointset/main_test.go +++ b/util/disjointset/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/disk/main_test.go b/util/disk/main_test.go index b5dc84c28cf70..e7aff82d5adc5 100644 --- a/util/disk/main_test.go +++ b/util/disk/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/execdetails/main_test.go b/util/execdetails/main_test.go index 0299931b53e97..880c233c16313 100644 --- a/util/execdetails/main_test.go +++ b/util/execdetails/main_test.go @@ -23,7 +23,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/expensivequery/expensivequerey_test.go b/util/expensivequery/expensivequerey_test.go index d7a83b14019fc..d5306ad69a7e8 100644 --- a/util/expensivequery/expensivequerey_test.go +++ b/util/expensivequery/expensivequerey_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/fastrand/main_test.go b/util/fastrand/main_test.go index 3aadf6e7f0a25..5d3eb374e072e 100644 --- a/util/fastrand/main_test.go +++ b/util/fastrand/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/format/main_test.go b/util/format/main_test.go index 080132ddf8844..807f4fac72817 100644 --- a/util/format/main_test.go +++ b/util/format/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/generatedexpr/main_test.go b/util/generatedexpr/main_test.go index fc8f011ecfa2b..b6fc95b22e181 100644 --- a/util/generatedexpr/main_test.go +++ b/util/generatedexpr/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/hack/main_test.go b/util/hack/main_test.go index 152f4c57d6bb7..30c391eac96a8 100644 --- a/util/hack/main_test.go +++ b/util/hack/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/keydecoder/main_test.go b/util/keydecoder/main_test.go index 893be9ecbb29e..6d035d482fd6f 100644 --- a/util/keydecoder/main_test.go +++ b/util/keydecoder/main_test.go @@ -23,7 +23,7 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/kvcache/main_test.go b/util/kvcache/main_test.go index b6b1f7ef92d8f..3906961f9abd1 100644 --- a/util/kvcache/main_test.go +++ b/util/kvcache/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/localpool/main_test.go b/util/localpool/main_test.go index 10314587bb0a7..821e8eb3475c7 100644 --- a/util/localpool/main_test.go +++ b/util/localpool/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/logutil/main_test.go b/util/logutil/main_test.go index 03fdc6cc0bc3c..d9d043dd09073 100644 --- a/util/logutil/main_test.go +++ b/util/logutil/main_test.go @@ -36,7 +36,7 @@ var ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("gopkg.in/natefinch/lumberjack%2ev2.(*Logger).millRun"), } diff --git a/util/main_test.go b/util/main_test.go index 05ed110d044d6..d02ded71f902b 100644 --- a/util/main_test.go +++ b/util/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/mathutil/main_test.go b/util/mathutil/main_test.go index 3bdc670b7df19..6d682151ee0ea 100644 --- a/util/mathutil/main_test.go +++ b/util/mathutil/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/memoryusagealarm/memoryusagealarm.go b/util/memoryusagealarm/memoryusagealarm.go index c8a6fd0eaecda..a7df61386548a 100644 --- a/util/memoryusagealarm/memoryusagealarm.go +++ b/util/memoryusagealarm/memoryusagealarm.go @@ -15,6 +15,7 @@ package memoryusagealarm import ( + "cmp" "fmt" "os" "path/filepath" @@ -263,7 +264,7 @@ func (record *memoryUsageAlarm) printTop10SqlInfo(pinfo []*util.ProcessInfo, f * } } -func (record *memoryUsageAlarm) getTop10SqlInfo(cmp func(i, j *util.ProcessInfo) bool, pinfo []*util.ProcessInfo) strings.Builder { +func (record *memoryUsageAlarm) getTop10SqlInfo(cmp func(i, j *util.ProcessInfo) int, pinfo []*util.ProcessInfo) strings.Builder { slices.SortFunc(pinfo, cmp) list := pinfo var buf strings.Builder @@ -302,14 +303,14 @@ func (record *memoryUsageAlarm) getTop10SqlInfo(cmp func(i, j *util.ProcessInfo) } func (record *memoryUsageAlarm) getTop10SqlInfoByMemoryUsage(pinfo []*util.ProcessInfo) strings.Builder { - return record.getTop10SqlInfo(func(i, j *util.ProcessInfo) bool { - return i.MemTracker.MaxConsumed() > j.MemTracker.MaxConsumed() + return record.getTop10SqlInfo(func(i, j *util.ProcessInfo) int { + return cmp.Compare(j.MemTracker.MaxConsumed(), i.MemTracker.MaxConsumed()) }, pinfo) } func (record *memoryUsageAlarm) getTop10SqlInfoByCostTime(pinfo []*util.ProcessInfo) strings.Builder { - return record.getTop10SqlInfo(func(i, j *util.ProcessInfo) bool { - return i.Time.Before(j.Time) + return record.getTop10SqlInfo(func(i, j *util.ProcessInfo) int { + return i.Time.Compare(j.Time) }, pinfo) } diff --git a/util/misc.go b/util/misc.go index 0e28baa5f62fc..ef03a3d609178 100644 --- a/util/misc.go +++ b/util/misc.go @@ -549,7 +549,18 @@ func LoadTLSCertificates(ca, key, cert string, autoTLS bool, rsaKeySize int) (tl // IsTLSExpiredError checks error is caused by TLS expired. func IsTLSExpiredError(err error) bool { err = errors.Cause(err) - if inval, ok := err.(x509.CertificateInvalidError); !ok || inval.Reason != x509.Expired { + switch inval := err.(type) { + case x509.CertificateInvalidError: + if inval.Reason != x509.Expired { + return false + } + case *tls.CertificateVerificationError: + invalid, ok := inval.Err.(x509.CertificateInvalidError) + if !ok || invalid.Reason != x509.Expired { + return false + } + return true + default: return false } return true diff --git a/util/mock/main_test.go b/util/mock/main_test.go index 4583bc43b0f13..f5bc77f62930e 100644 --- a/util/mock/main_test.go +++ b/util/mock/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/mvmap/main_test.go b/util/mvmap/main_test.go index 7a5f3a941f68c..2e56ef1ad4a03 100644 --- a/util/mvmap/main_test.go +++ b/util/mvmap/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/paging/main_test.go b/util/paging/main_test.go index 4fc9fe6e363ad..ee631933206c0 100644 --- a/util/paging/main_test.go +++ b/util/paging/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/parser/ast.go b/util/parser/ast.go index f9ab939c03bb3..d465bb8fe7aa4 100644 --- a/util/parser/ast.go +++ b/util/parser/ast.go @@ -79,7 +79,7 @@ func SimpleCases(node ast.StmtNode, defaultDB, origin string) (s string, ok bool if !ok { return "", false } - if insert.Select != nil || insert.Setlist != nil || insert.OnDuplicate != nil || (insert.TableHints != nil && len(insert.TableHints) != 0) { + if insert.Select != nil || insert.Setlist != nil || insert.OnDuplicate != nil || insert.TableHints != nil { return "", false } join := insert.Table.TableRefs diff --git a/util/parser/main_test.go b/util/parser/main_test.go index 4b1832ae442a3..1329c7f138c70 100644 --- a/util/parser/main_test.go +++ b/util/parser/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/plancodec/main_test.go b/util/plancodec/main_test.go index e91a5c7442f47..f794d84b4f6b3 100644 --- a/util/plancodec/main_test.go +++ b/util/plancodec/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/printer/main_test.go b/util/printer/main_test.go index d56b58e4e2c77..2457870f75511 100644 --- a/util/printer/main_test.go +++ b/util/printer/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/printer/printer.go b/util/printer/printer.go index 084033b603ef2..1355352d3c3c4 100644 --- a/util/printer/printer.go +++ b/util/printer/printer.go @@ -18,8 +18,7 @@ import ( "bytes" "encoding/json" "fmt" - _ "runtime" // import link package - _ "unsafe" // required by go:linkname + "runtime" "github.com/pingcap/tidb/config" "github.com/pingcap/tidb/parser/mysql" @@ -29,6 +28,12 @@ import ( "go.uber.org/zap" ) +var buildVersion string + +func init() { + buildVersion = runtime.Version() +} + // PrintTiDBInfo prints the TiDB version information. func PrintTiDBInfo() { logutil.BgLogger().Info("Welcome to TiDB.", @@ -167,6 +172,3 @@ func GetPrintResult(cols []string, datas [][]string) (string, bool) { value = append(value, getPrintDivLine(maxColLen)...) return string(value), true } - -//go:linkname buildVersion runtime.buildVersion -var buildVersion string diff --git a/util/profile/flamegraph.go b/util/profile/flamegraph.go index 5bb2a9cd3fb92..b99af1ffe56a4 100644 --- a/util/profile/flamegraph.go +++ b/util/profile/flamegraph.go @@ -15,6 +15,7 @@ package profile import ( + "cmp" "fmt" "math" @@ -93,11 +94,11 @@ func (n *flamegraphNode) sortedChildren() []flamegraphNodeWithLocation { locID: locID, }) } - slices.SortFunc(children, func(i, j flamegraphNodeWithLocation) bool { + slices.SortFunc(children, func(i, j flamegraphNodeWithLocation) int { if i.cumValue != j.cumValue { - return i.cumValue > j.cumValue + return cmp.Compare(j.cumValue, i.cumValue) } - return i.locID < j.locID + return cmp.Compare(i.locID, j.locID) }) return children diff --git a/util/profile/main_test.go b/util/profile/main_test.go index f55422d993b8b..f812e444a6cdd 100644 --- a/util/profile/main_test.go +++ b/util/profile/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/ranger/main_test.go b/util/ranger/main_test.go index 462007239334c..ebc0186b2add1 100644 --- a/util/ranger/main_test.go +++ b/util/ranger/main_test.go @@ -43,7 +43,7 @@ func TestMain(m *testing.M) { testDataMap.GenerateOutputIfNeeded() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), diff --git a/util/ranger/ranger.go b/util/ranger/ranger.go index ad83f68ebd258..bf43491544a07 100644 --- a/util/ranger/ranger.go +++ b/util/ranger/ranger.go @@ -587,8 +587,8 @@ func UnionRanges(sctx sessionctx.Context, ranges Ranges, mergeConsecutive bool) } objects = append(objects, &sortRange{originalValue: ran, encodedStart: left, encodedEnd: right}) } - slices.SortFunc(objects, func(i, j *sortRange) bool { - return bytes.Compare(i.encodedStart, j.encodedStart) < 0 + slices.SortFunc(objects, func(i, j *sortRange) int { + return bytes.Compare(i.encodedStart, j.encodedStart) }) ranges = ranges[:0] lastRange := objects[0] diff --git a/util/resourcegrouptag/main_test.go b/util/resourcegrouptag/main_test.go index 3b661ec89f0c6..a4c1196901461 100644 --- a/util/resourcegrouptag/main_test.go +++ b/util/resourcegrouptag/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/rowDecoder/main_test.go b/util/rowDecoder/main_test.go index 887a047796ea9..22a09c3e619fb 100644 --- a/util/rowDecoder/main_test.go +++ b/util/rowDecoder/main_test.go @@ -23,7 +23,7 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/rowcodec/main_test.go b/util/rowcodec/main_test.go index 8a4515ed1c558..9c634dc20d841 100644 --- a/util/rowcodec/main_test.go +++ b/util/rowcodec/main_test.go @@ -27,7 +27,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/schemacmp/table.go b/util/schemacmp/table.go index cf56db3559576..1fe25d5d7a327 100644 --- a/util/schemacmp/table.go +++ b/util/schemacmp/table.go @@ -15,6 +15,7 @@ package schemacmp import ( + "cmp" "strings" "github.com/pingcap/tidb/parser/format" @@ -294,8 +295,8 @@ func sortedMap(input map[string]interface{}) []kvPair { res = append(res, kvPair{key: key, value: value}) } - slices.SortFunc(res, func(a, b kvPair) bool { - return a.key < b.key + slices.SortFunc(res, func(a, b kvPair) int { + return cmp.Compare(a.key, b.key) }) return res } diff --git a/util/selection/main_test.go b/util/selection/main_test.go index 74c14e7867157..d39f68d3171bc 100644 --- a/util/selection/main_test.go +++ b/util/selection/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/sem/main_test.go b/util/sem/main_test.go index 7f6d20b904741..64ba584bbe162 100644 --- a/util/sem/main_test.go +++ b/util/sem/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/set/main_test.go b/util/set/main_test.go index 59f224554513f..71bbcc5dacf6c 100644 --- a/util/set/main_test.go +++ b/util/set/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/slice/main_test.go b/util/slice/main_test.go index 3e886afa6be7b..f1203e68b8368 100644 --- a/util/slice/main_test.go +++ b/util/slice/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/sqlexec/main_test.go b/util/sqlexec/main_test.go index f6e80059c0bab..51f112627a42c 100644 --- a/util/sqlexec/main_test.go +++ b/util/sqlexec/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/stmtsummary/main_test.go b/util/stmtsummary/main_test.go index b2e92cd9a56ba..a7176cf31aa07 100644 --- a/util/stmtsummary/main_test.go +++ b/util/stmtsummary/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/stmtsummary/statement_summary.go b/util/stmtsummary/statement_summary.go index b7710ec6745b1..948de47f0dd79 100644 --- a/util/stmtsummary/statement_summary.go +++ b/util/stmtsummary/statement_summary.go @@ -16,6 +16,7 @@ package stmtsummary import ( "bytes" + "cmp" "container/list" "fmt" "math" @@ -934,8 +935,8 @@ func formatBackoffTypes(backoffMap map[string]int) interface{} { for backoffType, count := range backoffMap { backoffArray = append(backoffArray, backoffStat{backoffType, count}) } - slices.SortFunc(backoffArray, func(i, j backoffStat) bool { - return i.count > j.count + slices.SortFunc(backoffArray, func(i, j backoffStat) int { + return cmp.Compare(j.count, i.count) }) var buffer bytes.Buffer diff --git a/util/stringutil/main_test.go b/util/stringutil/main_test.go index 09b386feae213..8c221bfbc060c 100644 --- a/util/stringutil/main_test.go +++ b/util/stringutil/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/sys/linux/main_test.go b/util/sys/linux/main_test.go index 88f9f2fdf24c3..ad4b3abef844d 100644 --- a/util/sys/linux/main_test.go +++ b/util/sys/linux/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/sys/storage/main_test.go b/util/sys/storage/main_test.go index ef6ea743450f3..e84a868f977e8 100644 --- a/util/sys/storage/main_test.go +++ b/util/sys/storage/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/systimemon/main_test.go b/util/systimemon/main_test.go index 9539aca3a1096..4a680afbae61d 100644 --- a/util/systimemon/main_test.go +++ b/util/systimemon/main_test.go @@ -25,7 +25,7 @@ func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("github.com/pingcap/tidb/util/systimemon.StartMonitor"), } diff --git a/util/texttree/main_test.go b/util/texttree/main_test.go index c73786745d798..6d79442706a0d 100644 --- a/util/texttree/main_test.go +++ b/util/texttree/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/timeutil/main_test.go b/util/timeutil/main_test.go index add3ffbb50126..e903b59b1d5a7 100644 --- a/util/timeutil/main_test.go +++ b/util/timeutil/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/topsql/collector/main_test.go b/util/topsql/collector/main_test.go index 1177b5d4f9c16..6a4f187350c64 100644 --- a/util/topsql/collector/main_test.go +++ b/util/topsql/collector/main_test.go @@ -30,7 +30,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/topsql/main_test.go b/util/topsql/main_test.go index 7317f50b2001b..5d16a6d64b443 100644 --- a/util/topsql/main_test.go +++ b/util/topsql/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/topsql/reporter/main_test.go b/util/topsql/reporter/main_test.go index f5f17f44ac7a6..5789feb5ba341 100644 --- a/util/topsql/reporter/main_test.go +++ b/util/topsql/reporter/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/topsql/stmtstats/main_test.go b/util/topsql/stmtstats/main_test.go index e75153cf9141f..5374b5f9ad331 100644 --- a/util/topsql/stmtstats/main_test.go +++ b/util/topsql/stmtstats/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/tracing/main_test.go b/util/tracing/main_test.go index 02cf4faecadb9..d19585dae66d4 100644 --- a/util/tracing/main_test.go +++ b/util/tracing/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), } diff --git a/util/vitess/main_test.go b/util/vitess/main_test.go index b5f91d4df1535..1eb50fd233a44 100644 --- a/util/vitess/main_test.go +++ b/util/vitess/main_test.go @@ -24,7 +24,7 @@ import ( func TestMain(m *testing.M) { testsetup.SetupForCommonTest() opts := []goleak.Option{ - goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), + goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"), goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"), }