From d0bf16ed7677e65432c0dff493f6bd6adfaf3074 Mon Sep 17 00:00:00 2001 From: iliana etaoin Date: Tue, 15 Jul 2025 12:03:51 -0700 Subject: [PATCH] remove bazel cruft --- .bazelignore | 6 - .bazelrc | 82 - .bazelversion | 1 - .github/BUILD.bazel | 3 - .node-version | 1 - BUILD.bazel | 204 - DEPS.bzl | 9388 ----------------- WORKSPACE | 494 - build/BUILD.bazel | 2 - build/bazelutil/BUILD.bazel | 36 - .../staticcheckanalyzers/BUILD.bazel | 1 - .../staticcheckanalyzers/s1000/BUILD.bazel | 13 - .../staticcheckanalyzers/s1001/BUILD.bazel | 13 - .../staticcheckanalyzers/s1002/BUILD.bazel | 13 - .../staticcheckanalyzers/s1003/BUILD.bazel | 13 - .../staticcheckanalyzers/s1004/BUILD.bazel | 13 - .../staticcheckanalyzers/s1005/BUILD.bazel | 13 - .../staticcheckanalyzers/s1006/BUILD.bazel | 13 - .../staticcheckanalyzers/s1007/BUILD.bazel | 13 - .../staticcheckanalyzers/s1008/BUILD.bazel | 13 - .../staticcheckanalyzers/s1009/BUILD.bazel | 13 - .../staticcheckanalyzers/s1010/BUILD.bazel | 13 - .../staticcheckanalyzers/s1011/BUILD.bazel | 13 - .../staticcheckanalyzers/s1012/BUILD.bazel | 13 - .../staticcheckanalyzers/s1016/BUILD.bazel | 13 - .../staticcheckanalyzers/s1017/BUILD.bazel | 13 - .../staticcheckanalyzers/s1018/BUILD.bazel | 13 - .../staticcheckanalyzers/s1019/BUILD.bazel | 13 - .../staticcheckanalyzers/s1020/BUILD.bazel | 13 - .../staticcheckanalyzers/s1021/BUILD.bazel | 13 - .../staticcheckanalyzers/s1023/BUILD.bazel | 13 - .../staticcheckanalyzers/s1024/BUILD.bazel | 13 - .../staticcheckanalyzers/s1025/BUILD.bazel | 13 - .../staticcheckanalyzers/s1028/BUILD.bazel | 13 - .../staticcheckanalyzers/s1029/BUILD.bazel | 13 - .../staticcheckanalyzers/s1030/BUILD.bazel | 13 - .../staticcheckanalyzers/s1031/BUILD.bazel | 13 - .../staticcheckanalyzers/s1032/BUILD.bazel | 13 - .../staticcheckanalyzers/s1033/BUILD.bazel | 13 - .../staticcheckanalyzers/s1034/BUILD.bazel | 13 - .../staticcheckanalyzers/s1035/BUILD.bazel | 13 - .../staticcheckanalyzers/s1036/BUILD.bazel | 13 - .../staticcheckanalyzers/s1037/BUILD.bazel | 13 - .../staticcheckanalyzers/s1038/BUILD.bazel | 13 - .../staticcheckanalyzers/s1039/BUILD.bazel | 13 - .../staticcheckanalyzers/s1040/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1000/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1001/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1002/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1003/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1004/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1005/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1006/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1007/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1008/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1010/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1011/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1012/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1013/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1014/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1015/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1016/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1017/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1018/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1019/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1020/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1021/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1023/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1024/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1025/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1026/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1027/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1028/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1029/BUILD.bazel | 13 - .../staticcheckanalyzers/sa1030/BUILD.bazel | 13 - .../staticcheckanalyzers/sa2000/BUILD.bazel | 13 - .../staticcheckanalyzers/sa2001/BUILD.bazel | 13 - .../staticcheckanalyzers/sa2002/BUILD.bazel | 13 - .../staticcheckanalyzers/sa2003/BUILD.bazel | 13 - .../staticcheckanalyzers/sa3000/BUILD.bazel | 13 - .../staticcheckanalyzers/sa3001/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4000/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4001/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4003/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4004/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4005/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4006/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4008/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4009/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4010/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4011/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4012/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4013/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4014/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4015/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4016/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4017/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4018/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4019/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4020/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4021/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4022/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4023/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4024/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4025/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4026/BUILD.bazel | 13 - .../staticcheckanalyzers/sa4027/BUILD.bazel | 13 - .../staticcheckanalyzers/sa5000/BUILD.bazel | 13 - .../staticcheckanalyzers/sa5001/BUILD.bazel | 13 - .../staticcheckanalyzers/sa5002/BUILD.bazel | 13 - .../staticcheckanalyzers/sa5003/BUILD.bazel | 13 - .../staticcheckanalyzers/sa5004/BUILD.bazel | 13 - .../staticcheckanalyzers/sa5005/BUILD.bazel | 13 - .../staticcheckanalyzers/sa5007/BUILD.bazel | 13 - .../staticcheckanalyzers/sa5008/BUILD.bazel | 13 - .../staticcheckanalyzers/sa5009/BUILD.bazel | 13 - .../staticcheckanalyzers/sa5010/BUILD.bazel | 13 - .../staticcheckanalyzers/sa5011/BUILD.bazel | 13 - .../staticcheckanalyzers/sa5012/BUILD.bazel | 13 - .../staticcheckanalyzers/sa6000/BUILD.bazel | 13 - .../staticcheckanalyzers/sa6001/BUILD.bazel | 13 - .../staticcheckanalyzers/sa6002/BUILD.bazel | 13 - .../staticcheckanalyzers/sa6003/BUILD.bazel | 13 - .../staticcheckanalyzers/sa6005/BUILD.bazel | 13 - .../staticcheckanalyzers/sa9001/BUILD.bazel | 13 - .../staticcheckanalyzers/sa9002/BUILD.bazel | 13 - .../staticcheckanalyzers/sa9003/BUILD.bazel | 13 - .../staticcheckanalyzers/sa9004/BUILD.bazel | 13 - .../staticcheckanalyzers/sa9005/BUILD.bazel | 13 - .../staticcheckanalyzers/sa9006/BUILD.bazel | 13 - .../staticcheckanalyzers/st1000/BUILD.bazel | 13 - .../staticcheckanalyzers/st1001/BUILD.bazel | 13 - .../staticcheckanalyzers/st1003/BUILD.bazel | 13 - .../staticcheckanalyzers/st1005/BUILD.bazel | 13 - .../staticcheckanalyzers/st1006/BUILD.bazel | 13 - .../staticcheckanalyzers/st1008/BUILD.bazel | 13 - .../staticcheckanalyzers/st1011/BUILD.bazel | 13 - .../staticcheckanalyzers/st1012/BUILD.bazel | 13 - .../staticcheckanalyzers/st1013/BUILD.bazel | 13 - .../staticcheckanalyzers/st1015/BUILD.bazel | 13 - .../staticcheckanalyzers/st1016/BUILD.bazel | 13 - .../staticcheckanalyzers/st1017/BUILD.bazel | 13 - .../staticcheckanalyzers/st1018/BUILD.bazel | 13 - .../staticcheckanalyzers/st1019/BUILD.bazel | 13 - .../staticcheckanalyzers/st1020/BUILD.bazel | 13 - .../staticcheckanalyzers/st1021/BUILD.bazel | 13 - .../staticcheckanalyzers/st1022/BUILD.bazel | 13 - .../staticcheckanalyzers/st1023/BUILD.bazel | 13 - .../staticcheckanalyzers/u1000/BUILD.bazel | 13 - build/bazelutil/whereis/BUILD.bazel | 14 - build/patches/BUILD.bazel | 7 - build/toolchains/BUILD.bazel | 239 - c-deps/BUILD.bazel | 205 - docs/generated/BUILD.bazel | 71 - docs/generated/http/BUILD.bazel | 79 - docs/generated/settings/BUILD.bazel | 21 - docs/generated/sql/BUILD.bazel | 17 - docs/generated/sql/bnf/BUILD.bazel | 290 - docs/generated/swagger/BUILD.bazel | 27 - pkg/BUILD.bazel | 529 - pkg/acceptance/BUILD.bazel | 59 - pkg/acceptance/cluster/BUILD.bazel | 63 - pkg/acceptance/localcluster/BUILD.bazel | 33 - pkg/acceptance/localcluster/tc/BUILD.bazel | 9 - pkg/base/BUILD.bazel | 76 - pkg/bench/BUILD.bazel | 49 - pkg/bench/cmd/pgbenchsetup/BUILD.bazel | 18 - pkg/bench/rttanalysis/BUILD.bazel | 62 - pkg/bench/tpcc/BUILD.bazel | 42 - pkg/blobs/BUILD.bazel | 57 - pkg/blobs/blobspb/BUILD.bazel | 27 - pkg/build/BUILD.bazel | 45 - pkg/build/bazel/BUILD.bazel | 9 - pkg/build/starlarkutil/BUILD.bazel | 16 - pkg/build/util/BUILD.bazel | 15 - pkg/cli/BUILD.bazel | 415 - pkg/cli/clicfg/BUILD.bazel | 12 - pkg/cli/clierror/BUILD.bazel | 54 - pkg/cli/clierrorplus/BUILD.bazel | 27 - pkg/cli/cliflags/BUILD.bazel | 16 - pkg/cli/clisqlcfg/BUILD.bazel | 21 - pkg/cli/clisqlclient/BUILD.bazel | 57 - pkg/cli/clisqlexec/BUILD.bazel | 55 - pkg/cli/clisqlshell/BUILD.bazel | 60 - pkg/cli/democluster/BUILD.bazel | 76 - pkg/cli/democluster/api/BUILD.bazel | 8 - pkg/cli/exit/BUILD.bazel | 20 - pkg/cli/syncbench/BUILD.bazel | 19 - pkg/cloud/BUILD.bazel | 35 - pkg/cloud/amazon/BUILD.bazel | 62 - pkg/cloud/azure/BUILD.bazel | 41 - pkg/cloud/cloudtestutils/BUILD.bazel | 23 - pkg/cloud/gcp/BUILD.bazel | 61 - pkg/cloud/httpsink/BUILD.bazel | 42 - pkg/cloud/impl/BUILD.bazel | 17 - pkg/cloud/impl/cloudimpltests/BUILD.bazel | 13 - pkg/cloud/nodelocal/BUILD.bazel | 34 - pkg/cloud/nullsink/BUILD.bazel | 31 - pkg/cloud/userfile/BUILD.bazel | 49 - pkg/cloud/userfile/filetable/BUILD.bazel | 20 - .../filetable/filetabletest/BUILD.bazel | 26 - pkg/clusterversion/BUILD.bazel | 77 - pkg/cmd/allocsim/BUILD.bazel | 27 - pkg/cmd/bazci/BUILD.bazel | 38 - pkg/cmd/cmdutil/BUILD.bazel | 8 - pkg/cmd/cmp-protocol/BUILD.bazel | 23 - pkg/cmd/cmp-protocol/pgconnect/BUILD.bazel | 14 - pkg/cmd/cmp-sql/BUILD.bazel | 20 - pkg/cmd/cmpconn/BUILD.bazel | 34 - pkg/cmd/cockroach-oss/BUILD.bazel | 30 - pkg/cmd/cockroach-short/BUILD.bazel | 18 - pkg/cmd/cockroach-sql/BUILD.bazel | 25 - pkg/cmd/cr2pg/BUILD.bazel | 20 - pkg/cmd/cr2pg/sqlstream/BUILD.bazel | 14 - pkg/cmd/dev/BUILD.bazel | 61 - pkg/cmd/dev/io/exec/BUILD.bazel | 12 - pkg/cmd/dev/io/os/BUILD.bazel | 11 - pkg/cmd/docgen/BUILD.bazel | 31 - pkg/cmd/docgen/extract/BUILD.bazel | 25 - pkg/cmd/docs-issue-generation/BUILD.bazel | 26 - pkg/cmd/fuzz/BUILD.bazel | 15 - pkg/cmd/generate-binary/BUILD.bazel | 19 - pkg/cmd/generate-distdir/BUILD.bazel | 23 - pkg/cmd/generate-metadata-tables/BUILD.bazel | 18 - .../rdbms/BUILD.bazel | 19 - pkg/cmd/generate-spatial-ref-sys/BUILD.bazel | 22 - pkg/cmd/generate-staticcheck/BUILD.bazel | 21 - pkg/cmd/generate-test-suites/BUILD.bazel | 15 - pkg/cmd/geoviz/BUILD.bazel | 23 - pkg/cmd/gossipsim/BUILD.bazel | 24 - pkg/cmd/import-tools/BUILD.bazel | 8 - pkg/cmd/internal/issues/BUILD.bazel | 39 - pkg/cmd/label-merged-pr/BUILD.bazel | 24 - pkg/cmd/mirror/BUILD.bazel | 36 - pkg/cmd/prereqs/BUILD.bazel | 25 - pkg/cmd/protoc-gen-gogoroach/BUILD.bazel | 72 - pkg/cmd/publish-artifacts/BUILD.bazel | 35 - .../publish-provisional-artifacts/BUILD.bazel | 32 - pkg/cmd/reduce/BUILD.bazel | 19 - pkg/cmd/reduce/reduce/BUILD.bazel | 26 - pkg/cmd/reduce/reduce/reducesql/BUILD.bazel | 30 - pkg/cmd/release/BUILD.bazel | 48 - pkg/cmd/returncheck/BUILD.bazel | 18 - pkg/cmd/roachprod-stress/BUILD.bazel | 18 - pkg/cmd/roachprod/BUILD.bazel | 34 - pkg/cmd/roachtest/BUILD.bazel | 92 - pkg/cmd/roachtest/cluster/BUILD.bazel | 19 - pkg/cmd/roachtest/option/BUILD.bazel | 17 - pkg/cmd/roachtest/prometheus/BUILD.bazel | 40 - pkg/cmd/roachtest/registry/BUILD.bazel | 20 - pkg/cmd/roachtest/spec/BUILD.bazel | 22 - pkg/cmd/roachtest/test/BUILD.bazel | 12 - pkg/cmd/roachtest/tests/BUILD.bazel | 257 - pkg/cmd/roachvet/BUILD.bazel | 52 - pkg/cmd/skip-test/BUILD.bazel | 22 - pkg/cmd/skiperrs/BUILD.bazel | 18 - pkg/cmd/skipped-tests/BUILD.bazel | 19 - pkg/cmd/smithcmp/BUILD.bazel | 24 - pkg/cmd/smithtest/BUILD.bazel | 26 - pkg/cmd/testfilter/BUILD.bazel | 28 - pkg/cmd/uptodate/BUILD.bazel | 19 - pkg/cmd/urlcheck/BUILD.bazel | 15 - pkg/cmd/urlcheck/lib/urlcheck/BUILD.bazel | 12 - pkg/cmd/workload/BUILD.bazel | 19 - pkg/cmd/wraprules/BUILD.bazel | 19 - pkg/cmd/zerosum/BUILD.bazel | 26 - pkg/col/coldata/BUILD.bazel | 76 - pkg/col/coldataext/BUILD.bazel | 38 - pkg/col/coldatatestutils/BUILD.bazel | 25 - pkg/col/colserde/BUILD.bazel | 64 - pkg/col/colserde/arrowserde/BUILD.bazel | 18 - pkg/col/typeconv/BUILD.bazel | 14 - pkg/compose/BUILD.bazel | 21 - pkg/compose/compare/compare/BUILD.bazel | 25 - pkg/config/BUILD.bazel | 77 - pkg/config/zonepb/BUILD.bazel | 61 - pkg/docs/BUILD.bazel | 9 - pkg/featureflag/BUILD.bazel | 17 - pkg/gen/BUILD.bazel | 38 - pkg/gen/genbzl/BUILD.bazel | 22 - pkg/geo/BUILD.bazel | 65 - pkg/geo/geodist/BUILD.bazel | 14 - pkg/geo/geogen/BUILD.bazel | 28 - pkg/geo/geogfn/BUILD.bazel | 61 - pkg/geo/geographiclib/BUILD.bazel | 33 - pkg/geo/geoindex/BUILD.bazel | 69 - pkg/geo/geomfn/BUILD.bazel | 114 - pkg/geo/geopb/BUILD.bazel | 38 - pkg/geo/geoproj/BUILD.bazel | 61 - pkg/geo/geoprojbase/BUILD.bazel | 28 - pkg/geo/geoprojbase/embeddedproj/BUILD.bazel | 8 - pkg/geo/geos/BUILD.bazel | 76 - pkg/geo/geosegmentize/BUILD.bazel | 14 - pkg/geo/geotransform/BUILD.bazel | 30 - pkg/geo/twkb/BUILD.bazel | 23 - pkg/gossip/BUILD.bazel | 119 - pkg/gossip/simulation/BUILD.bazel | 25 - .../client/requestbatcher/BUILD.bazel | 32 - pkg/internal/reporoot/BUILD.bazel | 9 - pkg/internal/rsg/BUILD.bazel | 22 - pkg/internal/rsg/yacc/BUILD.bazel | 25 - pkg/internal/sqlsmith/BUILD.bazel | 64 - pkg/internal/team/BUILD.bazel | 24 - pkg/jobs/BUILD.bazel | 152 - pkg/jobs/joberror/BUILD.bazel | 30 - pkg/jobs/jobspb/BUILD.bazel | 61 - pkg/jobs/jobsprotectedts/BUILD.bazel | 38 - pkg/jobs/jobstest/BUILD.bazel | 22 - pkg/keys/BUILD.bazel | 54 - pkg/keysbase/BUILD.bazel | 8 - pkg/kv/BUILD.bazel | 94 - pkg/kv/bulk/BUILD.bazel | 72 - pkg/kv/kvbase/BUILD.bazel | 8 - pkg/kv/kvclient/BUILD.bazel | 19 - pkg/kv/kvclient/kvcoord/BUILD.bazel | 221 - pkg/kv/kvclient/kvtenant/BUILD.bazel | 24 - pkg/kv/kvclient/rangecache/BUILD.bazel | 45 - .../rangecache/rangecachemock/BUILD.bazel | 30 - pkg/kv/kvclient/rangefeed/BUILD.bazel | 95 - .../rangefeed/rangefeedbuffer/BUILD.bazel | 35 - .../rangefeed/rangefeedcache/BUILD.bazel | 57 - pkg/kv/kvnemesis/BUILD.bazel | 116 - pkg/kv/kvprober/BUILD.bazel | 67 - pkg/kv/kvserver/BUILD.bazel | 479 - pkg/kv/kvserver/abortspan/BUILD.bazel | 35 - pkg/kv/kvserver/apply/BUILD.bazel | 31 - pkg/kv/kvserver/batcheval/BUILD.bazel | 171 - pkg/kv/kvserver/batcheval/result/BUILD.bazel | 32 - pkg/kv/kvserver/closedts/BUILD.bazel | 29 - .../kvserver/closedts/container/BUILD.bazel | 0 pkg/kv/kvserver/closedts/ctpb/BUILD.bazel | 42 - pkg/kv/kvserver/closedts/minprop/BUILD.bazel | 0 pkg/kv/kvserver/closedts/provider/BUILD.bazel | 0 .../closedts/provider/testutils/BUILD.bazel | 0 .../closedts/sidetransport/BUILD.bazel | 63 - pkg/kv/kvserver/closedts/storage/BUILD.bazel | 0 pkg/kv/kvserver/closedts/tracker/BUILD.bazel | 35 - .../kvserver/closedts/transport/BUILD.bazel | 0 .../closedts/transport/testutils/BUILD.bazel | 0 pkg/kv/kvserver/concurrency/BUILD.bazel | 98 - pkg/kv/kvserver/concurrency/lock/BUILD.bazel | 56 - .../kvserver/concurrency/poison/BUILD.bazel | 61 - pkg/kv/kvserver/constraint/BUILD.bazel | 9 - pkg/kv/kvserver/diskmap/BUILD.bazel | 8 - pkg/kv/kvserver/gc/BUILD.bazel | 59 - pkg/kv/kvserver/idalloc/BUILD.bazel | 43 - pkg/kv/kvserver/intentresolver/BUILD.bazel | 54 - pkg/kv/kvserver/kvserverbase/BUILD.bazel | 26 - pkg/kv/kvserver/kvserverpb/BUILD.bazel | 62 - pkg/kv/kvserver/liveness/BUILD.bazel | 68 - .../kvserver/liveness/livenesspb/BUILD.bazel | 40 - pkg/kv/kvserver/loqrecovery/BUILD.bazel | 76 - .../loqrecovery/loqrecoverypb/BUILD.bazel | 46 - pkg/kv/kvserver/protectedts/BUILD.bazel | 32 - .../kvserver/protectedts/ptcache/BUILD.bazel | 60 - pkg/kv/kvserver/protectedts/ptpb/BUILD.bazel | 44 - .../protectedts/ptprovider/BUILD.bazel | 21 - .../protectedts/ptreconcile/BUILD.bazel | 56 - .../protectedts/ptstorage/BUILD.bazel | 105 - .../kvserver/protectedts/ptutil/BUILD.bazel | 17 - pkg/kv/kvserver/raftentry/BUILD.bazel | 36 - pkg/kv/kvserver/rangefeed/BUILD.bazel | 79 - pkg/kv/kvserver/rditer/BUILD.bazel | 34 - pkg/kv/kvserver/readsummary/BUILD.bazel | 16 - pkg/kv/kvserver/readsummary/rspb/BUILD.bazel | 38 - pkg/kv/kvserver/reports/BUILD.bazel | 92 - pkg/kv/kvserver/spanlatch/BUILD.bazel | 58 - pkg/kv/kvserver/spanset/BUILD.bazel | 43 - pkg/kv/kvserver/split/BUILD.bazel | 36 - pkg/kv/kvserver/stateloader/BUILD.bazel | 41 - pkg/kv/kvserver/tenantrate/BUILD.bazel | 51 - pkg/kv/kvserver/tscache/BUILD.bazel | 53 - pkg/kv/kvserver/txnrecovery/BUILD.bazel | 38 - pkg/kv/kvserver/txnwait/BUILD.bazel | 44 - pkg/kv/kvserver/uncertainty/BUILD.bazel | 33 - pkg/migration/BUILD.bazel | 32 - pkg/migration/migrationcluster/BUILD.bazel | 56 - pkg/migration/migrationjob/BUILD.bazel | 23 - pkg/migration/migrationmanager/BUILD.bazel | 66 - pkg/migration/migrations/BUILD.bazel | 139 - pkg/migration/nodelivenesstest/BUILD.bazel | 12 - pkg/multitenant/BUILD.bazel | 26 - pkg/multitenant/tenantcostmodel/BUILD.bazel | 15 - pkg/release/BUILD.bazel | 18 - pkg/roachpb/BUILD.bazel | 212 - pkg/roachpb/gen/BUILD.bazel | 16 - pkg/roachpb/roachpbmock/BUILD.bazel | 33 - pkg/roachprod/BUILD.bazel | 33 - pkg/roachprod/cloud/BUILD.bazel | 38 - pkg/roachprod/config/BUILD.bazel | 18 - pkg/roachprod/errors/BUILD.bazel | 9 - pkg/roachprod/install/BUILD.bazel | 62 - pkg/roachprod/logger/BUILD.bazel | 12 - pkg/roachprod/ssh/BUILD.bazel | 17 - pkg/roachprod/ui/BUILD.bazel | 11 - pkg/roachprod/vm/BUILD.bazel | 23 - pkg/roachprod/vm/aws/BUILD.bazel | 60 - pkg/roachprod/vm/aws/terraformgen/BUILD.bazel | 18 - pkg/roachprod/vm/azure/BUILD.bazel | 35 - pkg/roachprod/vm/flagstub/BUILD.bazel | 13 - pkg/roachprod/vm/gce/BUILD.bazel | 21 - pkg/roachprod/vm/local/BUILD.bazel | 18 - pkg/rpc/BUILD.bazel | 153 - pkg/rpc/nodedialer/BUILD.bazel | 46 - pkg/scheduledjobs/BUILD.bazel | 18 - pkg/security/BUILD.bazel | 150 - pkg/security/certmgr/BUILD.bazel | 56 - pkg/security/pprompt/BUILD.bazel | 9 - pkg/security/securitytest/BUILD.bazel | 37 - pkg/security/sessionrevival/BUILD.bazel | 29 - pkg/server/BUILD.bazel | 464 - pkg/server/debug/BUILD.bazel | 58 - pkg/server/debug/goroutineui/BUILD.bazel | 23 - pkg/server/debug/pprofui/BUILD.bazel | 41 - pkg/server/diagnostics/BUILD.bazel | 74 - .../diagnostics/diagnosticspb/BUILD.bazel | 40 - pkg/server/dumpstore/BUILD.bazel | 24 - pkg/server/goroutinedumper/BUILD.bazel | 30 - pkg/server/heapprofiler/BUILD.bazel | 49 - pkg/server/pgurl/BUILD.bazel | 31 - pkg/server/serverpb/BUILD.bazel | 106 - pkg/server/settingswatcher/BUILD.bazel | 68 - pkg/server/status/BUILD.bazel | 152 - pkg/server/status/statuspb/BUILD.bazel | 35 - pkg/server/systemconfigwatcher/BUILD.bazel | 48 - .../systemconfigwatchertest/BUILD.bazel | 26 - pkg/server/telemetry/BUILD.bazel | 29 - pkg/server/tenantsettingswatcher/BUILD.bazel | 66 - pkg/server/tracedumper/BUILD.bazel | 44 - pkg/settings/BUILD.bazel | 72 - pkg/settings/cluster/BUILD.bazel | 16 - pkg/spanconfig/BUILD.bazel | 57 - pkg/spanconfig/spanconfigjob/BUILD.bazel | 24 - .../spanconfigkvaccessor/BUILD.bazel | 58 - .../spanconfigkvsubscriber/BUILD.bazel | 80 - pkg/spanconfig/spanconfiglimiter/BUILD.bazel | 23 - pkg/spanconfig/spanconfigmanager/BUILD.bazel | 57 - .../spanconfigptsreader/BUILD.bazel | 35 - .../spanconfigreconciler/BUILD.bazel | 34 - pkg/spanconfig/spanconfigsplitter/BUILD.bazel | 17 - .../spanconfigsqltranslator/BUILD.bazel | 29 - .../spanconfigsqlwatcher/BUILD.bazel | 75 - pkg/spanconfig/spanconfigstore/BUILD.bazel | 59 - .../spanconfigtestutils/BUILD.bazel | 29 - .../spanconfigtestcluster/BUILD.bazel | 41 - pkg/sql/BUILD.bazel | 768 -- pkg/sql/backfill/BUILD.bazel | 55 - pkg/sql/catalog/BUILD.bazel | 68 - pkg/sql/catalog/bootstrap/BUILD.bazel | 40 - pkg/sql/catalog/catalogkeys/BUILD.bazel | 29 - pkg/sql/catalog/catconstants/BUILD.bazel | 16 - pkg/sql/catalog/catformat/BUILD.bazel | 32 - pkg/sql/catalog/catpb/BUILD.bazel | 77 - pkg/sql/catalog/catprivilege/BUILD.bazel | 43 - pkg/sql/catalog/colinfo/BUILD.bazel | 52 - .../colinfo/colinfotestutils/BUILD.bazel | 14 - pkg/sql/catalog/database/BUILD.bazel | 0 pkg/sql/catalog/dbdesc/BUILD.bazel | 54 - .../catalog/defaultprivilegedesc/BUILD.bazel | 0 pkg/sql/catalog/descbuilder/BUILD.bazel | 19 - pkg/sql/catalog/descidgen/BUILD.bazel | 13 - pkg/sql/catalog/descpb/BUILD.bazel | 94 - pkg/sql/catalog/descs/BUILD.bazel | 116 - pkg/sql/catalog/desctestutils/BUILD.bazel | 18 - pkg/sql/catalog/hydratedtables/BUILD.bazel | 47 - pkg/sql/catalog/ingesting/BUILD.bazel | 34 - pkg/sql/catalog/internal/catkv/BUILD.bazel | 31 - pkg/sql/catalog/internal/validate/BUILD.bazel | 43 - pkg/sql/catalog/lease/BUILD.bazel | 117 - pkg/sql/catalog/multiregion/BUILD.bazel | 36 - pkg/sql/catalog/nstree/BUILD.bazel | 45 - pkg/sql/catalog/resolver/BUILD.bazel | 62 - pkg/sql/catalog/rewrite/BUILD.bazel | 29 - pkg/sql/catalog/schemadesc/BUILD.bazel | 53 - pkg/sql/catalog/schemaexpr/BUILD.bazel | 66 - pkg/sql/catalog/seqexpr/BUILD.bazel | 27 - pkg/sql/catalog/systemschema/BUILD.bazel | 43 - pkg/sql/catalog/tabledesc/BUILD.bazel | 119 - pkg/sql/catalog/typedesc/BUILD.bazel | 71 - pkg/sql/colcontainer/BUILD.bazel | 58 - pkg/sql/colconv/BUILD.bazel | 54 - pkg/sql/colencoding/BUILD.bazel | 44 - pkg/sql/colexec/BUILD.bazel | 222 - pkg/sql/colexec/colbuilder/BUILD.bazel | 79 - pkg/sql/colexec/colexecagg/BUILD.bazel | 79 - pkg/sql/colexec/colexecargs/BUILD.bazel | 35 - pkg/sql/colexec/colexecbase/BUILD.bazel | 103 - pkg/sql/colexec/colexeccmp/BUILD.bazel | 40 - pkg/sql/colexec/colexechash/BUILD.bazel | 74 - pkg/sql/colexec/colexecjoin/BUILD.bazel | 101 - pkg/sql/colexec/colexecproj/BUILD.bazel | 94 - pkg/sql/colexec/colexecsel/BUILD.bazel | 79 - pkg/sql/colexec/colexecspan/BUILD.bazel | 87 - pkg/sql/colexec/colexectestutils/BUILD.bazel | 65 - pkg/sql/colexec/colexecutils/BUILD.bazel | 72 - pkg/sql/colexec/colexecwindow/BUILD.bazel | 118 - pkg/sql/colexec/execgen/BUILD.bazel | 44 - .../colexec/execgen/cmd/execgen/BUILD.bazel | 93 - pkg/sql/colexecerror/BUILD.bazel | 25 - pkg/sql/colexecop/BUILD.bazel | 34 - pkg/sql/colfetcher/BUILD.bazel | 85 - pkg/sql/colflow/BUILD.bazel | 142 - pkg/sql/colflow/colrpc/BUILD.bazel | 78 - pkg/sql/colmem/BUILD.bazel | 52 - pkg/sql/commenter/BUILD.bazel | 0 pkg/sql/contention/BUILD.bazel | 65 - .../contention/contentionutils/BUILD.bazel | 21 - pkg/sql/contention/txnidcache/BUILD.bazel | 64 - pkg/sql/contentionpb/BUILD.bazel | 55 - pkg/sql/covering/BUILD.bazel | 23 - pkg/sql/delegate/BUILD.bazel | 67 - pkg/sql/descmetadata/BUILD.bazel | 26 - pkg/sql/distsql/BUILD.bazel | 98 - pkg/sql/doctor/BUILD.bazel | 50 - pkg/sql/enum/BUILD.bazel | 20 - pkg/sql/execinfra/BUILD.bazel | 122 - pkg/sql/execinfrapb/BUILD.bazel | 144 - pkg/sql/execstats/BUILD.bazel | 47 - pkg/sql/faketreeeval/BUILD.bazel | 25 - pkg/sql/flowinfra/BUILD.bazel | 116 - pkg/sql/gcjob/BUILD.bazel | 82 - pkg/sql/gcjob/gcjobnotifier/BUILD.bazel | 38 - pkg/sql/gcjob_test/BUILD.bazel | 48 - pkg/sql/idxusage/BUILD.bazel | 36 - pkg/sql/importer/BUILD.bazel | 242 - pkg/sql/inverted/BUILD.bazel | 54 - pkg/sql/kvstreamer/BUILD.bazel | 75 - pkg/sql/lex/BUILD.bazel | 44 - pkg/sql/lexbase/BUILD.bazel | 88 - pkg/sql/lexbase/allkeywords/BUILD.bazel | 14 - pkg/sql/logictest/BUILD.bazel | 99 - pkg/sql/memsize/BUILD.bazel | 13 - pkg/sql/mutations/BUILD.bazel | 9 - pkg/sql/oidext/BUILD.bazel | 20 - pkg/sql/opt/BUILD.bazel | 144 - pkg/sql/opt/bench/BUILD.bazel | 39 - pkg/sql/opt/cat/BUILD.bazel | 51 - pkg/sql/opt/constraint/BUILD.bazel | 52 - pkg/sql/opt/distribution/BUILD.bazel | 31 - pkg/sql/opt/exec/BUILD.bazel | 50 - pkg/sql/opt/exec/execbuilder/BUILD.bazel | 85 - pkg/sql/opt/exec/explain/BUILD.bazel | 114 - pkg/sql/opt/idxconstraint/BUILD.bazel | 41 - pkg/sql/opt/indexrec/BUILD.bazel | 48 - pkg/sql/opt/invertedexpr/BUILD.bazel | 35 - pkg/sql/opt/invertedidx/BUILD.bazel | 65 - pkg/sql/opt/memo/BUILD.bazel | 114 - pkg/sql/opt/norm/BUILD.bazel | 117 - pkg/sql/opt/opbench/BUILD.bazel | 31 - pkg/sql/opt/optbuilder/BUILD.bazel | 116 - pkg/sql/opt/optgen/cmd/langgen/BUILD.bazel | 40 - pkg/sql/opt/optgen/cmd/optfmt/BUILD.bazel | 31 - pkg/sql/opt/optgen/cmd/optgen/BUILD.bazel | 46 - pkg/sql/opt/optgen/exprgen/BUILD.bazel | 42 - pkg/sql/opt/optgen/lang/BUILD.bazel | 95 - pkg/sql/opt/ordering/BUILD.bazel | 68 - pkg/sql/opt/partialidx/BUILD.bazel | 40 - pkg/sql/opt/partition/BUILD.bazel | 28 - pkg/sql/opt/props/BUILD.bazel | 64 - pkg/sql/opt/props/physical/BUILD.bazel | 40 - pkg/sql/opt/testutils/BUILD.bazel | 34 - pkg/sql/opt/testutils/opttester/BUILD.bazel | 77 - pkg/sql/opt/testutils/testcat/BUILD.bazel | 65 - pkg/sql/opt/testutils/testexpr/BUILD.bazel | 14 - pkg/sql/opt/xform/BUILD.bazel | 125 - pkg/sql/optionalnodeliveness/BUILD.bazel | 13 - pkg/sql/paramparse/BUILD.bazel | 18 - pkg/sql/parser/BUILD.bazel | 152 - pkg/sql/parser/fuzz/BUILD.bazel | 8 - pkg/sql/pgwire/BUILD.bazel | 156 - pkg/sql/pgwire/hba/BUILD.bazel | 37 - pkg/sql/pgwire/identmap/BUILD.bazel | 20 - pkg/sql/pgwire/pgcode/BUILD.bazel | 11 - pkg/sql/pgwire/pgerror/BUILD.bazel | 71 - pkg/sql/pgwire/pgnotice/BUILD.bazel | 16 - pkg/sql/pgwire/pgwirebase/BUILD.bazel | 79 - pkg/sql/pgwire/pgwirecancel/BUILD.bazel | 42 - pkg/sql/physicalplan/BUILD.bazel | 86 - .../physicalplan/replicaoracle/BUILD.bazel | 36 - pkg/sql/privilege/BUILD.bazel | 37 - pkg/sql/protoreflect/BUILD.bazel | 45 - pkg/sql/protoreflect/test/BUILD.bazel | 30 - pkg/sql/querycache/BUILD.bazel | 33 - pkg/sql/randgen/BUILD.bazel | 76 - pkg/sql/roleoption/BUILD.bazel | 25 - pkg/sql/row/BUILD.bazel | 125 - pkg/sql/rowcontainer/BUILD.bazel | 67 - pkg/sql/rowenc/BUILD.bazel | 85 - pkg/sql/rowenc/keyside/BUILD.bazel | 47 - pkg/sql/rowenc/rowencpb/BUILD.bazel | 27 - pkg/sql/rowenc/valueside/BUILD.bazel | 54 - pkg/sql/rowexec/BUILD.bazel | 205 - pkg/sql/rowflow/BUILD.bazel | 68 - pkg/sql/rowinfra/BUILD.bazel | 8 - pkg/sql/scanner/BUILD.bazel | 19 - pkg/sql/scheduledlogging/BUILD.bazel | 49 - pkg/sql/schemachange/BUILD.bazel | 55 - pkg/sql/schemachanger/BUILD.bazel | 56 - pkg/sql/schemachanger/corpus/BUILD.bazel | 32 - pkg/sql/schemachanger/rel/BUILD.bazel | 67 - .../rel/internal/comparetest/BUILD.bazel | 23 - .../rel/internal/cyclegraphtest/BUILD.bazel | 24 - .../rel/internal/entitynodetest/BUILD.bazel | 24 - pkg/sql/schemachanger/rel/reltest/BUILD.bazel | 21 - pkg/sql/schemachanger/scbackup/BUILD.bazel | 21 - pkg/sql/schemachanger/scbuild/BUILD.bazel | 86 - .../scbuild/internal/scbuildstmt/BUILD.bazel | 47 - pkg/sql/schemachanger/scdecomp/BUILD.bazel | 51 - pkg/sql/schemachanger/scdeps/BUILD.bazel | 75 - .../scdeps/sctestdeps/BUILD.bazel | 53 - .../scdeps/sctestutils/BUILD.bazel | 30 - pkg/sql/schemachanger/scerrors/BUILD.bazel | 17 - pkg/sql/schemachanger/scexec/BUILD.bazel | 118 - .../scexec/scmutationexec/BUILD.bazel | 42 - pkg/sql/schemachanger/scjob/BUILD.bazel | 23 - pkg/sql/schemachanger/scop/BUILD.bazel | 98 - pkg/sql/schemachanger/scpb/BUILD.bazel | 100 - pkg/sql/schemachanger/scplan/BUILD.bazel | 71 - .../scplan/internal/opgen/BUILD.bazel | 79 - .../scplan/internal/rules/BUILD.bazel | 36 - .../scplan/internal/scgraph/BUILD.bazel | 49 - .../scplan/internal/scgraphviz/BUILD.bazel | 19 - .../scplan/internal/scstage/BUILD.bazel | 22 - pkg/sql/schemachanger/screl/BUILD.bazel | 59 - pkg/sql/schemachanger/scrun/BUILD.bazel | 26 - pkg/sql/schemachanger/sctest/BUILD.bazel | 42 - pkg/sql/scrub/BUILD.bazel | 9 - pkg/sql/sem/builtins/BUILD.bazel | 164 - pkg/sql/sem/catid/BUILD.bazel | 8 - pkg/sql/sem/transform/BUILD.bazel | 15 - pkg/sql/sem/tree/BUILD.bazel | 301 - pkg/sql/sem/tree/eval_test/BUILD.bazel | 38 - pkg/sql/sem/tree/treebin/BUILD.bazel | 12 - pkg/sql/sem/tree/treecmp/BUILD.bazel | 12 - pkg/sql/sem/tree/treewindow/BUILD.bazel | 15 - pkg/sql/sessiondata/BUILD.bazel | 41 - pkg/sql/sessiondatapb/BUILD.bazel | 55 - pkg/sql/sessioninit/BUILD.bazel | 54 - pkg/sql/sessionphase/BUILD.bazel | 8 - pkg/sql/span/BUILD.bazel | 49 - pkg/sql/sqlerrors/BUILD.bazel | 17 - pkg/sql/sqlfsm/BUILD.bazel | 8 - pkg/sql/sqlinstance/BUILD.bazel | 13 - .../sqlinstance/instanceprovider/BUILD.bazel | 48 - .../sqlinstance/instancestorage/BUILD.bazel | 73 - pkg/sql/sqlliveness/BUILD.bazel | 15 - pkg/sql/sqlliveness/slinstance/BUILD.bazel | 41 - pkg/sql/sqlliveness/slprovider/BUILD.bazel | 20 - pkg/sql/sqlliveness/slstorage/BUILD.bazel | 76 - .../sqllivenesstestutils/BUILD.bazel | 12 - pkg/sql/sqlstats/BUILD.bazel | 20 - .../sqlstats/persistedsqlstats/BUILD.bazel | 120 - .../sqlstatsutil/BUILD.bazel | 37 - pkg/sql/sqlstats/sslocal/BUILD.bazel | 72 - pkg/sql/sqlstats/ssmemstorage/BUILD.bazel | 27 - pkg/sql/sqltelemetry/BUILD.bazel | 41 - pkg/sql/sqltestutils/BUILD.bazel | 41 - pkg/sql/sqlutil/BUILD.bazel | 15 - pkg/sql/stats/BUILD.bazel | 147 - pkg/sql/stmtdiagnostics/BUILD.bazel | 62 - pkg/sql/storageparam/BUILD.bazel | 18 - .../indexstorageparam/BUILD.bazel | 19 - .../tablestorageparam/BUILD.bazel | 22 - pkg/sql/tests/BUILD.bazel | 118 - pkg/sql/ttl/ttljob/BUILD.bazel | 88 - pkg/sql/ttl/ttlschedule/BUILD.bazel | 27 - pkg/sql/types/BUILD.bazel | 76 - pkg/sql/vtable/BUILD.bazel | 16 - pkg/startupmigrations/BUILD.bazel | 66 - .../leasemanager/BUILD.bazel | 63 - pkg/storage/BUILD.bazel | 178 - pkg/storage/enginepb/BUILD.bazel | 70 - pkg/storage/fs/BUILD.bazel | 36 - pkg/storage/metamorphic/BUILD.bazel | 50 - pkg/testutils/BUILD.bazel | 60 - pkg/testutils/buildutil/BUILD.bazel | 12 - pkg/testutils/colcontainerutils/BUILD.bazel | 14 - pkg/testutils/diagutils/BUILD.bazel | 13 - pkg/testutils/distsqlutils/BUILD.bazel | 16 - pkg/testutils/docker/BUILD.bazel | 30 - .../docker/docker-fsnotify/BUILD.bazel | 20 - pkg/testutils/echotest/BUILD.bazel | 9 - pkg/testutils/floatcmp/BUILD.bazel | 19 - pkg/testutils/gossiputil/BUILD.bazel | 13 - pkg/testutils/grpcutils/BUILD.bazel | 28 - pkg/testutils/jobutils/BUILD.bazel | 22 - pkg/testutils/keysutils/BUILD.bazel | 29 - pkg/testutils/kvclientutils/BUILD.bazel | 18 - pkg/testutils/lint/BUILD.bazel | 41 - .../lint/passes/descriptormarshal/BUILD.bazel | 9 - .../lint/passes/errcheck/BUILD.bazel | 21 - pkg/testutils/lint/passes/errcmp/BUILD.bazel | 13 - pkg/testutils/lint/passes/errwrap/BUILD.bazel | 32 - pkg/testutils/lint/passes/fmtsafe/BUILD.bazel | 36 - .../lint/passes/forbiddenmethod/BUILD.bazel | 45 - .../passes/grpcclientconnclose/BUILD.bazel | 9 - .../passes/grpcstatuswithdetails/BUILD.bazel | 9 - pkg/testutils/lint/passes/hash/BUILD.bazel | 28 - .../lint/passes/leaktestcall/BUILD.bazel | 28 - pkg/testutils/lint/passes/nilness/BUILD.bazel | 27 - pkg/testutils/lint/passes/nocopy/BUILD.bazel | 29 - .../lint/passes/passesutil/BUILD.bazel | 31 - .../lint/passes/returncheck/BUILD.bazel | 13 - .../lint/passes/returnerrcheck/BUILD.bazel | 31 - .../lint/passes/staticcheck/BUILD.bazel | 14 - pkg/testutils/lint/passes/timer/BUILD.bazel | 29 - .../lint/passes/unconvert/BUILD.bazel | 37 - pkg/testutils/localtestcluster/BUILD.bazel | 34 - pkg/testutils/metrictestutils/BUILD.bazel | 9 - pkg/testutils/pgtest/BUILD.bazel | 18 - pkg/testutils/physicalplanutils/BUILD.bazel | 14 - pkg/testutils/serverutils/BUILD.bazel | 35 - pkg/testutils/skip/BUILD.bazel | 18 - pkg/testutils/sqlutils/BUILD.bazel | 62 - pkg/testutils/sstutil/BUILD.bazel | 21 - pkg/testutils/storageutils/BUILD.bazel | 14 - pkg/testutils/testcluster/BUILD.bazel | 65 - pkg/testutils/zerofields/BUILD.bazel | 17 - pkg/ts/BUILD.bazel | 97 - pkg/ts/catalog/BUILD.bazel | 46 - pkg/ts/testmodel/BUILD.bazel | 25 - pkg/ts/tspb/BUILD.bazel | 43 - pkg/ui/BUILD.bazel | 72 - pkg/ui/distoss/BUILD.bazel | 31 - pkg/ui/workspaces/cluster-ui/BUILD.bazel | 282 - pkg/ui/workspaces/db-console/BUILD.bazel | 327 - .../workspaces/db-console/src/js/BUILD.bazel | 21 - pkg/util/BUILD.bazel | 83 - pkg/util/admission/BUILD.bazel | 48 - pkg/util/arith/BUILD.bazel | 8 - pkg/util/binfetcher/BUILD.bazel | 28 - pkg/util/bitarray/BUILD.bazel | 21 - pkg/util/bufalloc/BUILD.bazel | 8 - pkg/util/buildutil/BUILD.bazel | 38 - pkg/util/cache/BUILD.bazel | 24 - pkg/util/caller/BUILD.bazel | 20 - pkg/util/cancelchecker/BUILD.bazel | 12 - pkg/util/cgroups/BUILD.bazel | 24 - pkg/util/circuit/BUILD.bazel | 38 - pkg/util/cloudinfo/BUILD.bazel | 20 - pkg/util/contextutil/BUILD.bazel | 34 - pkg/util/ctxgroup/BUILD.bazel | 21 - pkg/util/duration/BUILD.bazel | 45 - pkg/util/encoding/BUILD.bazel | 99 - pkg/util/encoding/csv/BUILD.bazel | 27 - pkg/util/encoding/encodingtype/BUILD.bazel | 8 - pkg/util/envutil/BUILD.bazel | 21 - pkg/util/errorutil/BUILD.bazel | 26 - pkg/util/errorutil/unimplemented/BUILD.bazel | 25 - pkg/util/fileutil/BUILD.bazel | 16 - pkg/util/flagutil/BUILD.bazel | 25 - pkg/util/fsm/BUILD.bazel | 25 - pkg/util/fsm/gen/BUILD.bazel | 1 - pkg/util/fuzzystrmatch/BUILD.bazel | 21 - pkg/util/goschedstats/BUILD.bazel | 30 - pkg/util/growstack/BUILD.bazel | 11 - pkg/util/grpcutil/BUILD.bazel | 51 - pkg/util/hlc/BUILD.bazel | 65 - pkg/util/httputil/BUILD.bazel | 32 - pkg/util/humanizeutil/BUILD.bazel | 32 - pkg/util/interval/BUILD.bazel | 36 - pkg/util/interval/generic/BUILD.bazel | 43 - pkg/util/ioctx/BUILD.bazel | 9 - pkg/util/ipaddr/BUILD.bazel | 25 - pkg/util/iterutil/BUILD.bazel | 9 - pkg/util/jobutil/BUILD.bazel | 0 pkg/util/json/BUILD.bazel | 55 - pkg/util/jsonbytes/BUILD.bazel | 8 - pkg/util/keysutil/BUILD.bazel | 13 - pkg/util/leaktest/BUILD.bazel | 13 - pkg/util/limit/BUILD.bazel | 26 - pkg/util/log/BUILD.bazel | 226 - pkg/util/log/channel/BUILD.bazel | 30 - pkg/util/log/eventpb/BUILD.bazel | 121 - pkg/util/log/gen/BUILD.bazel | 19 - pkg/util/log/logconfig/BUILD.bazel | 51 - pkg/util/log/logcrash/BUILD.bazel | 93 - pkg/util/log/logflags/BUILD.bazel | 8 - pkg/util/log/logpb/BUILD.bazel | 35 - pkg/util/log/logtestutils/BUILD.bazel | 13 - pkg/util/log/severity/BUILD.bazel | 30 - pkg/util/log/testshout/BUILD.bazel | 12 - pkg/util/memzipper/BUILD.bazel | 9 - pkg/util/metric/BUILD.bazel | 82 - pkg/util/metric/aggmetric/BUILD.bazel | 37 - pkg/util/mon/BUILD.bazel | 42 - pkg/util/netutil/BUILD.bazel | 40 - pkg/util/netutil/addr/BUILD.bazel | 18 - pkg/util/optional/BUILD.bazel | 47 - pkg/util/pprofutil/BUILD.bazel | 9 - pkg/util/pretty/BUILD.bazel | 19 - pkg/util/protoutil/BUILD.bazel | 61 - pkg/util/quotapool/BUILD.bazel | 47 - pkg/util/randutil/BUILD.bazel | 22 - pkg/util/retry/BUILD.bazel | 27 - pkg/util/ring/BUILD.bazel | 23 - pkg/util/sdnotify/BUILD.bazel | 80 - pkg/util/search/BUILD.bazel | 20 - pkg/util/shuffle/BUILD.bazel | 16 - pkg/util/sort/BUILD.bazel | 9 - pkg/util/span/BUILD.bazel | 30 - pkg/util/startup/BUILD.bazel | 40 - pkg/util/stop/BUILD.bazel | 39 - pkg/util/stringarena/BUILD.bazel | 16 - pkg/util/stringencoding/BUILD.bazel | 8 - pkg/util/syncutil/BUILD.bazel | 31 - pkg/util/syncutil/singleflight/BUILD.bazel | 17 - pkg/util/system/BUILD.bazel | 8 - pkg/util/sysutil/BUILD.bazel | 130 - pkg/util/targz/BUILD.bazel | 19 - pkg/util/targz/gen/BUILD.bazel | 18 - pkg/util/timeofday/BUILD.bazel | 20 - pkg/util/timetz/BUILD.bazel | 29 - pkg/util/timeutil/BUILD.bazel | 66 - pkg/util/timeutil/gen/BUILD.bazel | 16 - pkg/util/timeutil/pgdate/BUILD.bazel | 70 - pkg/util/tracing/BUILD.bazel | 106 - pkg/util/tracing/collector/BUILD.bazel | 48 - pkg/util/tracing/service/BUILD.bazel | 25 - pkg/util/tracing/tracingpb/BUILD.bazel | 46 - pkg/util/tracing/tracingservicepb/BUILD.bazel | 33 - pkg/util/tracing/tracingui/BUILD.bazel | 12 - pkg/util/tracing/zipper/BUILD.bazel | 16 - pkg/util/treeprinter/BUILD.bazel | 15 - pkg/util/uint128/BUILD.bazel | 16 - pkg/util/ulid/BUILD.bazel | 23 - pkg/util/unaccent/BUILD.bazel | 8 - pkg/util/unique/BUILD.bazel | 15 - pkg/util/uuid/BUILD.bazel | 39 - pkg/util/version/BUILD.bazel | 16 - pkg/workload/BUILD.bazel | 68 - pkg/workload/bank/BUILD.bazel | 41 - pkg/workload/bulkingest/BUILD.bazel | 19 - pkg/workload/cli/BUILD.bazel | 87 - pkg/workload/connectionlatency/BUILD.bazel | 16 - pkg/workload/debug/BUILD.bazel | 18 - pkg/workload/examples/BUILD.bazel | 15 - pkg/workload/faker/BUILD.bazel | 26 - pkg/workload/geospatial/BUILD.bazel | 21 - pkg/workload/histogram/BUILD.bazel | 27 - pkg/workload/indexes/BUILD.bazel | 17 - pkg/workload/jsonload/BUILD.bazel | 16 - pkg/workload/kv/BUILD.bazel | 21 - pkg/workload/ledger/BUILD.bazel | 31 - pkg/workload/movr/BUILD.bazel | 30 - pkg/workload/querybench/BUILD.bazel | 15 - pkg/workload/querylog/BUILD.bazel | 23 - pkg/workload/queue/BUILD.bazel | 14 - pkg/workload/rand/BUILD.bazel | 20 - pkg/workload/schemachange/BUILD.bazel | 47 - pkg/workload/sqlsmith/BUILD.bazel | 18 - pkg/workload/tpcc/BUILD.bazel | 62 - pkg/workload/tpccchecks/BUILD.bazel | 16 - pkg/workload/tpcds/BUILD.bazel | 19 - pkg/workload/tpch/BUILD.bazel | 41 - pkg/workload/ttllogger/BUILD.bazel | 18 - pkg/workload/workloadimpl/BUILD.bazel | 28 - pkg/workload/workloadsql/BUILD.bazel | 48 - pkg/workload/ycsb/BUILD.bazel | 44 - 859 files changed, 46499 deletions(-) delete mode 100644 .bazelignore delete mode 100644 .bazelrc delete mode 100644 .bazelversion delete mode 100644 .github/BUILD.bazel delete mode 100644 .node-version delete mode 100644 BUILD.bazel delete mode 100644 DEPS.bzl delete mode 100644 WORKSPACE delete mode 100644 build/BUILD.bazel delete mode 100644 build/bazelutil/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1000/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1001/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1002/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1003/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1004/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1005/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1006/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1007/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1008/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1009/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1010/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1011/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1012/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1016/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1017/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1018/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1019/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1020/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1021/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1023/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1024/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1025/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1028/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1029/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1030/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1031/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1032/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1033/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1034/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1035/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1036/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1037/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1038/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1039/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/s1040/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1000/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1001/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1002/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1003/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1004/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1005/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1006/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1007/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1008/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1010/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1011/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1012/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1013/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1014/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1015/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1016/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1017/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1018/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1019/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1020/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1021/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1023/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1024/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1025/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1026/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1027/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1028/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1029/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa1030/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa2000/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa2001/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa2002/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa2003/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa3000/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa3001/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4000/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4001/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4003/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4004/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4005/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4006/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4008/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4009/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4010/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4011/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4012/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4013/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4014/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4015/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4016/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4017/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4018/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4019/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4020/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4021/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4022/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4023/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4024/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4025/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4026/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa4027/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa5000/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa5001/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa5002/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa5003/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa5004/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa5005/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa5007/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa5008/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa5009/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa5010/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa5011/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa5012/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa6000/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa6001/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa6002/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa6003/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa6005/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa9001/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa9002/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa9003/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa9004/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa9005/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/sa9006/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1000/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1001/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1003/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1005/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1006/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1008/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1011/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1012/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1013/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1015/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1016/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1017/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1018/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1019/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1020/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1021/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1022/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/st1023/BUILD.bazel delete mode 100644 build/bazelutil/staticcheckanalyzers/u1000/BUILD.bazel delete mode 100644 build/bazelutil/whereis/BUILD.bazel delete mode 100644 build/patches/BUILD.bazel delete mode 100644 build/toolchains/BUILD.bazel delete mode 100644 c-deps/BUILD.bazel delete mode 100644 docs/generated/BUILD.bazel delete mode 100644 docs/generated/http/BUILD.bazel delete mode 100644 docs/generated/settings/BUILD.bazel delete mode 100644 docs/generated/sql/BUILD.bazel delete mode 100644 docs/generated/sql/bnf/BUILD.bazel delete mode 100644 docs/generated/swagger/BUILD.bazel delete mode 100644 pkg/BUILD.bazel delete mode 100644 pkg/acceptance/BUILD.bazel delete mode 100644 pkg/acceptance/cluster/BUILD.bazel delete mode 100644 pkg/acceptance/localcluster/BUILD.bazel delete mode 100644 pkg/acceptance/localcluster/tc/BUILD.bazel delete mode 100644 pkg/base/BUILD.bazel delete mode 100644 pkg/bench/BUILD.bazel delete mode 100644 pkg/bench/cmd/pgbenchsetup/BUILD.bazel delete mode 100644 pkg/bench/rttanalysis/BUILD.bazel delete mode 100644 pkg/bench/tpcc/BUILD.bazel delete mode 100644 pkg/blobs/BUILD.bazel delete mode 100644 pkg/blobs/blobspb/BUILD.bazel delete mode 100644 pkg/build/BUILD.bazel delete mode 100644 pkg/build/bazel/BUILD.bazel delete mode 100644 pkg/build/starlarkutil/BUILD.bazel delete mode 100644 pkg/build/util/BUILD.bazel delete mode 100644 pkg/cli/BUILD.bazel delete mode 100644 pkg/cli/clicfg/BUILD.bazel delete mode 100644 pkg/cli/clierror/BUILD.bazel delete mode 100644 pkg/cli/clierrorplus/BUILD.bazel delete mode 100644 pkg/cli/cliflags/BUILD.bazel delete mode 100644 pkg/cli/clisqlcfg/BUILD.bazel delete mode 100644 pkg/cli/clisqlclient/BUILD.bazel delete mode 100644 pkg/cli/clisqlexec/BUILD.bazel delete mode 100644 pkg/cli/clisqlshell/BUILD.bazel delete mode 100644 pkg/cli/democluster/BUILD.bazel delete mode 100644 pkg/cli/democluster/api/BUILD.bazel delete mode 100644 pkg/cli/exit/BUILD.bazel delete mode 100644 pkg/cli/syncbench/BUILD.bazel delete mode 100644 pkg/cloud/BUILD.bazel delete mode 100644 pkg/cloud/amazon/BUILD.bazel delete mode 100644 pkg/cloud/azure/BUILD.bazel delete mode 100644 pkg/cloud/cloudtestutils/BUILD.bazel delete mode 100644 pkg/cloud/gcp/BUILD.bazel delete mode 100644 pkg/cloud/httpsink/BUILD.bazel delete mode 100644 pkg/cloud/impl/BUILD.bazel delete mode 100644 pkg/cloud/impl/cloudimpltests/BUILD.bazel delete mode 100644 pkg/cloud/nodelocal/BUILD.bazel delete mode 100644 pkg/cloud/nullsink/BUILD.bazel delete mode 100644 pkg/cloud/userfile/BUILD.bazel delete mode 100644 pkg/cloud/userfile/filetable/BUILD.bazel delete mode 100644 pkg/cloud/userfile/filetable/filetabletest/BUILD.bazel delete mode 100644 pkg/clusterversion/BUILD.bazel delete mode 100644 pkg/cmd/allocsim/BUILD.bazel delete mode 100644 pkg/cmd/bazci/BUILD.bazel delete mode 100644 pkg/cmd/cmdutil/BUILD.bazel delete mode 100644 pkg/cmd/cmp-protocol/BUILD.bazel delete mode 100644 pkg/cmd/cmp-protocol/pgconnect/BUILD.bazel delete mode 100644 pkg/cmd/cmp-sql/BUILD.bazel delete mode 100644 pkg/cmd/cmpconn/BUILD.bazel delete mode 100644 pkg/cmd/cockroach-oss/BUILD.bazel delete mode 100644 pkg/cmd/cockroach-short/BUILD.bazel delete mode 100644 pkg/cmd/cockroach-sql/BUILD.bazel delete mode 100644 pkg/cmd/cr2pg/BUILD.bazel delete mode 100644 pkg/cmd/cr2pg/sqlstream/BUILD.bazel delete mode 100644 pkg/cmd/dev/BUILD.bazel delete mode 100644 pkg/cmd/dev/io/exec/BUILD.bazel delete mode 100644 pkg/cmd/dev/io/os/BUILD.bazel delete mode 100644 pkg/cmd/docgen/BUILD.bazel delete mode 100644 pkg/cmd/docgen/extract/BUILD.bazel delete mode 100644 pkg/cmd/docs-issue-generation/BUILD.bazel delete mode 100644 pkg/cmd/fuzz/BUILD.bazel delete mode 100644 pkg/cmd/generate-binary/BUILD.bazel delete mode 100644 pkg/cmd/generate-distdir/BUILD.bazel delete mode 100644 pkg/cmd/generate-metadata-tables/BUILD.bazel delete mode 100644 pkg/cmd/generate-metadata-tables/rdbms/BUILD.bazel delete mode 100644 pkg/cmd/generate-spatial-ref-sys/BUILD.bazel delete mode 100644 pkg/cmd/generate-staticcheck/BUILD.bazel delete mode 100644 pkg/cmd/generate-test-suites/BUILD.bazel delete mode 100644 pkg/cmd/geoviz/BUILD.bazel delete mode 100644 pkg/cmd/gossipsim/BUILD.bazel delete mode 100644 pkg/cmd/import-tools/BUILD.bazel delete mode 100644 pkg/cmd/internal/issues/BUILD.bazel delete mode 100644 pkg/cmd/label-merged-pr/BUILD.bazel delete mode 100644 pkg/cmd/mirror/BUILD.bazel delete mode 100644 pkg/cmd/prereqs/BUILD.bazel delete mode 100644 pkg/cmd/protoc-gen-gogoroach/BUILD.bazel delete mode 100644 pkg/cmd/publish-artifacts/BUILD.bazel delete mode 100644 pkg/cmd/publish-provisional-artifacts/BUILD.bazel delete mode 100644 pkg/cmd/reduce/BUILD.bazel delete mode 100644 pkg/cmd/reduce/reduce/BUILD.bazel delete mode 100644 pkg/cmd/reduce/reduce/reducesql/BUILD.bazel delete mode 100644 pkg/cmd/release/BUILD.bazel delete mode 100644 pkg/cmd/returncheck/BUILD.bazel delete mode 100644 pkg/cmd/roachprod-stress/BUILD.bazel delete mode 100644 pkg/cmd/roachprod/BUILD.bazel delete mode 100644 pkg/cmd/roachtest/BUILD.bazel delete mode 100644 pkg/cmd/roachtest/cluster/BUILD.bazel delete mode 100644 pkg/cmd/roachtest/option/BUILD.bazel delete mode 100644 pkg/cmd/roachtest/prometheus/BUILD.bazel delete mode 100644 pkg/cmd/roachtest/registry/BUILD.bazel delete mode 100644 pkg/cmd/roachtest/spec/BUILD.bazel delete mode 100644 pkg/cmd/roachtest/test/BUILD.bazel delete mode 100644 pkg/cmd/roachtest/tests/BUILD.bazel delete mode 100644 pkg/cmd/roachvet/BUILD.bazel delete mode 100644 pkg/cmd/skip-test/BUILD.bazel delete mode 100644 pkg/cmd/skiperrs/BUILD.bazel delete mode 100644 pkg/cmd/skipped-tests/BUILD.bazel delete mode 100644 pkg/cmd/smithcmp/BUILD.bazel delete mode 100644 pkg/cmd/smithtest/BUILD.bazel delete mode 100644 pkg/cmd/testfilter/BUILD.bazel delete mode 100644 pkg/cmd/uptodate/BUILD.bazel delete mode 100644 pkg/cmd/urlcheck/BUILD.bazel delete mode 100644 pkg/cmd/urlcheck/lib/urlcheck/BUILD.bazel delete mode 100644 pkg/cmd/workload/BUILD.bazel delete mode 100644 pkg/cmd/wraprules/BUILD.bazel delete mode 100644 pkg/cmd/zerosum/BUILD.bazel delete mode 100644 pkg/col/coldata/BUILD.bazel delete mode 100644 pkg/col/coldataext/BUILD.bazel delete mode 100644 pkg/col/coldatatestutils/BUILD.bazel delete mode 100644 pkg/col/colserde/BUILD.bazel delete mode 100644 pkg/col/colserde/arrowserde/BUILD.bazel delete mode 100644 pkg/col/typeconv/BUILD.bazel delete mode 100644 pkg/compose/BUILD.bazel delete mode 100644 pkg/compose/compare/compare/BUILD.bazel delete mode 100644 pkg/config/BUILD.bazel delete mode 100644 pkg/config/zonepb/BUILD.bazel delete mode 100644 pkg/docs/BUILD.bazel delete mode 100644 pkg/featureflag/BUILD.bazel delete mode 100644 pkg/gen/BUILD.bazel delete mode 100644 pkg/gen/genbzl/BUILD.bazel delete mode 100644 pkg/geo/BUILD.bazel delete mode 100644 pkg/geo/geodist/BUILD.bazel delete mode 100644 pkg/geo/geogen/BUILD.bazel delete mode 100644 pkg/geo/geogfn/BUILD.bazel delete mode 100644 pkg/geo/geographiclib/BUILD.bazel delete mode 100644 pkg/geo/geoindex/BUILD.bazel delete mode 100644 pkg/geo/geomfn/BUILD.bazel delete mode 100644 pkg/geo/geopb/BUILD.bazel delete mode 100644 pkg/geo/geoproj/BUILD.bazel delete mode 100644 pkg/geo/geoprojbase/BUILD.bazel delete mode 100644 pkg/geo/geoprojbase/embeddedproj/BUILD.bazel delete mode 100644 pkg/geo/geos/BUILD.bazel delete mode 100644 pkg/geo/geosegmentize/BUILD.bazel delete mode 100644 pkg/geo/geotransform/BUILD.bazel delete mode 100644 pkg/geo/twkb/BUILD.bazel delete mode 100644 pkg/gossip/BUILD.bazel delete mode 100644 pkg/gossip/simulation/BUILD.bazel delete mode 100644 pkg/internal/client/requestbatcher/BUILD.bazel delete mode 100644 pkg/internal/reporoot/BUILD.bazel delete mode 100644 pkg/internal/rsg/BUILD.bazel delete mode 100644 pkg/internal/rsg/yacc/BUILD.bazel delete mode 100644 pkg/internal/sqlsmith/BUILD.bazel delete mode 100644 pkg/internal/team/BUILD.bazel delete mode 100644 pkg/jobs/BUILD.bazel delete mode 100644 pkg/jobs/joberror/BUILD.bazel delete mode 100644 pkg/jobs/jobspb/BUILD.bazel delete mode 100644 pkg/jobs/jobsprotectedts/BUILD.bazel delete mode 100644 pkg/jobs/jobstest/BUILD.bazel delete mode 100644 pkg/keys/BUILD.bazel delete mode 100644 pkg/keysbase/BUILD.bazel delete mode 100644 pkg/kv/BUILD.bazel delete mode 100644 pkg/kv/bulk/BUILD.bazel delete mode 100644 pkg/kv/kvbase/BUILD.bazel delete mode 100644 pkg/kv/kvclient/BUILD.bazel delete mode 100644 pkg/kv/kvclient/kvcoord/BUILD.bazel delete mode 100644 pkg/kv/kvclient/kvtenant/BUILD.bazel delete mode 100644 pkg/kv/kvclient/rangecache/BUILD.bazel delete mode 100644 pkg/kv/kvclient/rangecache/rangecachemock/BUILD.bazel delete mode 100644 pkg/kv/kvclient/rangefeed/BUILD.bazel delete mode 100644 pkg/kv/kvclient/rangefeed/rangefeedbuffer/BUILD.bazel delete mode 100644 pkg/kv/kvclient/rangefeed/rangefeedcache/BUILD.bazel delete mode 100644 pkg/kv/kvnemesis/BUILD.bazel delete mode 100644 pkg/kv/kvprober/BUILD.bazel delete mode 100644 pkg/kv/kvserver/BUILD.bazel delete mode 100644 pkg/kv/kvserver/abortspan/BUILD.bazel delete mode 100644 pkg/kv/kvserver/apply/BUILD.bazel delete mode 100644 pkg/kv/kvserver/batcheval/BUILD.bazel delete mode 100644 pkg/kv/kvserver/batcheval/result/BUILD.bazel delete mode 100644 pkg/kv/kvserver/closedts/BUILD.bazel delete mode 100644 pkg/kv/kvserver/closedts/container/BUILD.bazel delete mode 100644 pkg/kv/kvserver/closedts/ctpb/BUILD.bazel delete mode 100644 pkg/kv/kvserver/closedts/minprop/BUILD.bazel delete mode 100644 pkg/kv/kvserver/closedts/provider/BUILD.bazel delete mode 100644 pkg/kv/kvserver/closedts/provider/testutils/BUILD.bazel delete mode 100644 pkg/kv/kvserver/closedts/sidetransport/BUILD.bazel delete mode 100644 pkg/kv/kvserver/closedts/storage/BUILD.bazel delete mode 100644 pkg/kv/kvserver/closedts/tracker/BUILD.bazel delete mode 100644 pkg/kv/kvserver/closedts/transport/BUILD.bazel delete mode 100644 pkg/kv/kvserver/closedts/transport/testutils/BUILD.bazel delete mode 100644 pkg/kv/kvserver/concurrency/BUILD.bazel delete mode 100644 pkg/kv/kvserver/concurrency/lock/BUILD.bazel delete mode 100644 pkg/kv/kvserver/concurrency/poison/BUILD.bazel delete mode 100644 pkg/kv/kvserver/constraint/BUILD.bazel delete mode 100644 pkg/kv/kvserver/diskmap/BUILD.bazel delete mode 100644 pkg/kv/kvserver/gc/BUILD.bazel delete mode 100644 pkg/kv/kvserver/idalloc/BUILD.bazel delete mode 100644 pkg/kv/kvserver/intentresolver/BUILD.bazel delete mode 100644 pkg/kv/kvserver/kvserverbase/BUILD.bazel delete mode 100644 pkg/kv/kvserver/kvserverpb/BUILD.bazel delete mode 100644 pkg/kv/kvserver/liveness/BUILD.bazel delete mode 100644 pkg/kv/kvserver/liveness/livenesspb/BUILD.bazel delete mode 100644 pkg/kv/kvserver/loqrecovery/BUILD.bazel delete mode 100644 pkg/kv/kvserver/loqrecovery/loqrecoverypb/BUILD.bazel delete mode 100644 pkg/kv/kvserver/protectedts/BUILD.bazel delete mode 100644 pkg/kv/kvserver/protectedts/ptcache/BUILD.bazel delete mode 100644 pkg/kv/kvserver/protectedts/ptpb/BUILD.bazel delete mode 100644 pkg/kv/kvserver/protectedts/ptprovider/BUILD.bazel delete mode 100644 pkg/kv/kvserver/protectedts/ptreconcile/BUILD.bazel delete mode 100644 pkg/kv/kvserver/protectedts/ptstorage/BUILD.bazel delete mode 100644 pkg/kv/kvserver/protectedts/ptutil/BUILD.bazel delete mode 100644 pkg/kv/kvserver/raftentry/BUILD.bazel delete mode 100644 pkg/kv/kvserver/rangefeed/BUILD.bazel delete mode 100644 pkg/kv/kvserver/rditer/BUILD.bazel delete mode 100644 pkg/kv/kvserver/readsummary/BUILD.bazel delete mode 100644 pkg/kv/kvserver/readsummary/rspb/BUILD.bazel delete mode 100644 pkg/kv/kvserver/reports/BUILD.bazel delete mode 100644 pkg/kv/kvserver/spanlatch/BUILD.bazel delete mode 100644 pkg/kv/kvserver/spanset/BUILD.bazel delete mode 100644 pkg/kv/kvserver/split/BUILD.bazel delete mode 100644 pkg/kv/kvserver/stateloader/BUILD.bazel delete mode 100644 pkg/kv/kvserver/tenantrate/BUILD.bazel delete mode 100644 pkg/kv/kvserver/tscache/BUILD.bazel delete mode 100644 pkg/kv/kvserver/txnrecovery/BUILD.bazel delete mode 100644 pkg/kv/kvserver/txnwait/BUILD.bazel delete mode 100644 pkg/kv/kvserver/uncertainty/BUILD.bazel delete mode 100644 pkg/migration/BUILD.bazel delete mode 100644 pkg/migration/migrationcluster/BUILD.bazel delete mode 100644 pkg/migration/migrationjob/BUILD.bazel delete mode 100644 pkg/migration/migrationmanager/BUILD.bazel delete mode 100644 pkg/migration/migrations/BUILD.bazel delete mode 100644 pkg/migration/nodelivenesstest/BUILD.bazel delete mode 100644 pkg/multitenant/BUILD.bazel delete mode 100644 pkg/multitenant/tenantcostmodel/BUILD.bazel delete mode 100644 pkg/release/BUILD.bazel delete mode 100644 pkg/roachpb/BUILD.bazel delete mode 100644 pkg/roachpb/gen/BUILD.bazel delete mode 100644 pkg/roachpb/roachpbmock/BUILD.bazel delete mode 100644 pkg/roachprod/BUILD.bazel delete mode 100644 pkg/roachprod/cloud/BUILD.bazel delete mode 100644 pkg/roachprod/config/BUILD.bazel delete mode 100644 pkg/roachprod/errors/BUILD.bazel delete mode 100644 pkg/roachprod/install/BUILD.bazel delete mode 100644 pkg/roachprod/logger/BUILD.bazel delete mode 100644 pkg/roachprod/ssh/BUILD.bazel delete mode 100644 pkg/roachprod/ui/BUILD.bazel delete mode 100644 pkg/roachprod/vm/BUILD.bazel delete mode 100644 pkg/roachprod/vm/aws/BUILD.bazel delete mode 100644 pkg/roachprod/vm/aws/terraformgen/BUILD.bazel delete mode 100644 pkg/roachprod/vm/azure/BUILD.bazel delete mode 100644 pkg/roachprod/vm/flagstub/BUILD.bazel delete mode 100644 pkg/roachprod/vm/gce/BUILD.bazel delete mode 100644 pkg/roachprod/vm/local/BUILD.bazel delete mode 100644 pkg/rpc/BUILD.bazel delete mode 100644 pkg/rpc/nodedialer/BUILD.bazel delete mode 100644 pkg/scheduledjobs/BUILD.bazel delete mode 100644 pkg/security/BUILD.bazel delete mode 100644 pkg/security/certmgr/BUILD.bazel delete mode 100644 pkg/security/pprompt/BUILD.bazel delete mode 100644 pkg/security/securitytest/BUILD.bazel delete mode 100644 pkg/security/sessionrevival/BUILD.bazel delete mode 100644 pkg/server/BUILD.bazel delete mode 100644 pkg/server/debug/BUILD.bazel delete mode 100644 pkg/server/debug/goroutineui/BUILD.bazel delete mode 100644 pkg/server/debug/pprofui/BUILD.bazel delete mode 100644 pkg/server/diagnostics/BUILD.bazel delete mode 100644 pkg/server/diagnostics/diagnosticspb/BUILD.bazel delete mode 100644 pkg/server/dumpstore/BUILD.bazel delete mode 100644 pkg/server/goroutinedumper/BUILD.bazel delete mode 100644 pkg/server/heapprofiler/BUILD.bazel delete mode 100644 pkg/server/pgurl/BUILD.bazel delete mode 100644 pkg/server/serverpb/BUILD.bazel delete mode 100644 pkg/server/settingswatcher/BUILD.bazel delete mode 100644 pkg/server/status/BUILD.bazel delete mode 100644 pkg/server/status/statuspb/BUILD.bazel delete mode 100644 pkg/server/systemconfigwatcher/BUILD.bazel delete mode 100644 pkg/server/systemconfigwatcher/systemconfigwatchertest/BUILD.bazel delete mode 100644 pkg/server/telemetry/BUILD.bazel delete mode 100644 pkg/server/tenantsettingswatcher/BUILD.bazel delete mode 100644 pkg/server/tracedumper/BUILD.bazel delete mode 100644 pkg/settings/BUILD.bazel delete mode 100644 pkg/settings/cluster/BUILD.bazel delete mode 100644 pkg/spanconfig/BUILD.bazel delete mode 100644 pkg/spanconfig/spanconfigjob/BUILD.bazel delete mode 100644 pkg/spanconfig/spanconfigkvaccessor/BUILD.bazel delete mode 100644 pkg/spanconfig/spanconfigkvsubscriber/BUILD.bazel delete mode 100644 pkg/spanconfig/spanconfiglimiter/BUILD.bazel delete mode 100644 pkg/spanconfig/spanconfigmanager/BUILD.bazel delete mode 100644 pkg/spanconfig/spanconfigptsreader/BUILD.bazel delete mode 100644 pkg/spanconfig/spanconfigreconciler/BUILD.bazel delete mode 100644 pkg/spanconfig/spanconfigsplitter/BUILD.bazel delete mode 100644 pkg/spanconfig/spanconfigsqltranslator/BUILD.bazel delete mode 100644 pkg/spanconfig/spanconfigsqlwatcher/BUILD.bazel delete mode 100644 pkg/spanconfig/spanconfigstore/BUILD.bazel delete mode 100644 pkg/spanconfig/spanconfigtestutils/BUILD.bazel delete mode 100644 pkg/spanconfig/spanconfigtestutils/spanconfigtestcluster/BUILD.bazel delete mode 100644 pkg/sql/BUILD.bazel delete mode 100644 pkg/sql/backfill/BUILD.bazel delete mode 100644 pkg/sql/catalog/BUILD.bazel delete mode 100644 pkg/sql/catalog/bootstrap/BUILD.bazel delete mode 100644 pkg/sql/catalog/catalogkeys/BUILD.bazel delete mode 100644 pkg/sql/catalog/catconstants/BUILD.bazel delete mode 100644 pkg/sql/catalog/catformat/BUILD.bazel delete mode 100644 pkg/sql/catalog/catpb/BUILD.bazel delete mode 100644 pkg/sql/catalog/catprivilege/BUILD.bazel delete mode 100644 pkg/sql/catalog/colinfo/BUILD.bazel delete mode 100644 pkg/sql/catalog/colinfo/colinfotestutils/BUILD.bazel delete mode 100644 pkg/sql/catalog/database/BUILD.bazel delete mode 100644 pkg/sql/catalog/dbdesc/BUILD.bazel delete mode 100644 pkg/sql/catalog/defaultprivilegedesc/BUILD.bazel delete mode 100644 pkg/sql/catalog/descbuilder/BUILD.bazel delete mode 100644 pkg/sql/catalog/descidgen/BUILD.bazel delete mode 100644 pkg/sql/catalog/descpb/BUILD.bazel delete mode 100644 pkg/sql/catalog/descs/BUILD.bazel delete mode 100644 pkg/sql/catalog/desctestutils/BUILD.bazel delete mode 100644 pkg/sql/catalog/hydratedtables/BUILD.bazel delete mode 100644 pkg/sql/catalog/ingesting/BUILD.bazel delete mode 100644 pkg/sql/catalog/internal/catkv/BUILD.bazel delete mode 100644 pkg/sql/catalog/internal/validate/BUILD.bazel delete mode 100644 pkg/sql/catalog/lease/BUILD.bazel delete mode 100644 pkg/sql/catalog/multiregion/BUILD.bazel delete mode 100644 pkg/sql/catalog/nstree/BUILD.bazel delete mode 100644 pkg/sql/catalog/resolver/BUILD.bazel delete mode 100644 pkg/sql/catalog/rewrite/BUILD.bazel delete mode 100644 pkg/sql/catalog/schemadesc/BUILD.bazel delete mode 100644 pkg/sql/catalog/schemaexpr/BUILD.bazel delete mode 100644 pkg/sql/catalog/seqexpr/BUILD.bazel delete mode 100644 pkg/sql/catalog/systemschema/BUILD.bazel delete mode 100644 pkg/sql/catalog/tabledesc/BUILD.bazel delete mode 100644 pkg/sql/catalog/typedesc/BUILD.bazel delete mode 100644 pkg/sql/colcontainer/BUILD.bazel delete mode 100644 pkg/sql/colconv/BUILD.bazel delete mode 100644 pkg/sql/colencoding/BUILD.bazel delete mode 100644 pkg/sql/colexec/BUILD.bazel delete mode 100644 pkg/sql/colexec/colbuilder/BUILD.bazel delete mode 100644 pkg/sql/colexec/colexecagg/BUILD.bazel delete mode 100644 pkg/sql/colexec/colexecargs/BUILD.bazel delete mode 100644 pkg/sql/colexec/colexecbase/BUILD.bazel delete mode 100644 pkg/sql/colexec/colexeccmp/BUILD.bazel delete mode 100644 pkg/sql/colexec/colexechash/BUILD.bazel delete mode 100644 pkg/sql/colexec/colexecjoin/BUILD.bazel delete mode 100644 pkg/sql/colexec/colexecproj/BUILD.bazel delete mode 100644 pkg/sql/colexec/colexecsel/BUILD.bazel delete mode 100644 pkg/sql/colexec/colexecspan/BUILD.bazel delete mode 100644 pkg/sql/colexec/colexectestutils/BUILD.bazel delete mode 100644 pkg/sql/colexec/colexecutils/BUILD.bazel delete mode 100644 pkg/sql/colexec/colexecwindow/BUILD.bazel delete mode 100644 pkg/sql/colexec/execgen/BUILD.bazel delete mode 100644 pkg/sql/colexec/execgen/cmd/execgen/BUILD.bazel delete mode 100644 pkg/sql/colexecerror/BUILD.bazel delete mode 100644 pkg/sql/colexecop/BUILD.bazel delete mode 100644 pkg/sql/colfetcher/BUILD.bazel delete mode 100644 pkg/sql/colflow/BUILD.bazel delete mode 100644 pkg/sql/colflow/colrpc/BUILD.bazel delete mode 100644 pkg/sql/colmem/BUILD.bazel delete mode 100644 pkg/sql/commenter/BUILD.bazel delete mode 100644 pkg/sql/contention/BUILD.bazel delete mode 100644 pkg/sql/contention/contentionutils/BUILD.bazel delete mode 100644 pkg/sql/contention/txnidcache/BUILD.bazel delete mode 100644 pkg/sql/contentionpb/BUILD.bazel delete mode 100644 pkg/sql/covering/BUILD.bazel delete mode 100644 pkg/sql/delegate/BUILD.bazel delete mode 100644 pkg/sql/descmetadata/BUILD.bazel delete mode 100644 pkg/sql/distsql/BUILD.bazel delete mode 100644 pkg/sql/doctor/BUILD.bazel delete mode 100644 pkg/sql/enum/BUILD.bazel delete mode 100644 pkg/sql/execinfra/BUILD.bazel delete mode 100644 pkg/sql/execinfrapb/BUILD.bazel delete mode 100644 pkg/sql/execstats/BUILD.bazel delete mode 100644 pkg/sql/faketreeeval/BUILD.bazel delete mode 100644 pkg/sql/flowinfra/BUILD.bazel delete mode 100644 pkg/sql/gcjob/BUILD.bazel delete mode 100644 pkg/sql/gcjob/gcjobnotifier/BUILD.bazel delete mode 100644 pkg/sql/gcjob_test/BUILD.bazel delete mode 100644 pkg/sql/idxusage/BUILD.bazel delete mode 100644 pkg/sql/importer/BUILD.bazel delete mode 100644 pkg/sql/inverted/BUILD.bazel delete mode 100644 pkg/sql/kvstreamer/BUILD.bazel delete mode 100644 pkg/sql/lex/BUILD.bazel delete mode 100644 pkg/sql/lexbase/BUILD.bazel delete mode 100644 pkg/sql/lexbase/allkeywords/BUILD.bazel delete mode 100644 pkg/sql/logictest/BUILD.bazel delete mode 100644 pkg/sql/memsize/BUILD.bazel delete mode 100644 pkg/sql/mutations/BUILD.bazel delete mode 100644 pkg/sql/oidext/BUILD.bazel delete mode 100644 pkg/sql/opt/BUILD.bazel delete mode 100644 pkg/sql/opt/bench/BUILD.bazel delete mode 100644 pkg/sql/opt/cat/BUILD.bazel delete mode 100644 pkg/sql/opt/constraint/BUILD.bazel delete mode 100644 pkg/sql/opt/distribution/BUILD.bazel delete mode 100644 pkg/sql/opt/exec/BUILD.bazel delete mode 100644 pkg/sql/opt/exec/execbuilder/BUILD.bazel delete mode 100644 pkg/sql/opt/exec/explain/BUILD.bazel delete mode 100644 pkg/sql/opt/idxconstraint/BUILD.bazel delete mode 100644 pkg/sql/opt/indexrec/BUILD.bazel delete mode 100644 pkg/sql/opt/invertedexpr/BUILD.bazel delete mode 100644 pkg/sql/opt/invertedidx/BUILD.bazel delete mode 100644 pkg/sql/opt/memo/BUILD.bazel delete mode 100644 pkg/sql/opt/norm/BUILD.bazel delete mode 100644 pkg/sql/opt/opbench/BUILD.bazel delete mode 100644 pkg/sql/opt/optbuilder/BUILD.bazel delete mode 100644 pkg/sql/opt/optgen/cmd/langgen/BUILD.bazel delete mode 100644 pkg/sql/opt/optgen/cmd/optfmt/BUILD.bazel delete mode 100644 pkg/sql/opt/optgen/cmd/optgen/BUILD.bazel delete mode 100644 pkg/sql/opt/optgen/exprgen/BUILD.bazel delete mode 100644 pkg/sql/opt/optgen/lang/BUILD.bazel delete mode 100644 pkg/sql/opt/ordering/BUILD.bazel delete mode 100644 pkg/sql/opt/partialidx/BUILD.bazel delete mode 100644 pkg/sql/opt/partition/BUILD.bazel delete mode 100644 pkg/sql/opt/props/BUILD.bazel delete mode 100644 pkg/sql/opt/props/physical/BUILD.bazel delete mode 100644 pkg/sql/opt/testutils/BUILD.bazel delete mode 100644 pkg/sql/opt/testutils/opttester/BUILD.bazel delete mode 100644 pkg/sql/opt/testutils/testcat/BUILD.bazel delete mode 100644 pkg/sql/opt/testutils/testexpr/BUILD.bazel delete mode 100644 pkg/sql/opt/xform/BUILD.bazel delete mode 100644 pkg/sql/optionalnodeliveness/BUILD.bazel delete mode 100644 pkg/sql/paramparse/BUILD.bazel delete mode 100644 pkg/sql/parser/BUILD.bazel delete mode 100644 pkg/sql/parser/fuzz/BUILD.bazel delete mode 100644 pkg/sql/pgwire/BUILD.bazel delete mode 100644 pkg/sql/pgwire/hba/BUILD.bazel delete mode 100644 pkg/sql/pgwire/identmap/BUILD.bazel delete mode 100644 pkg/sql/pgwire/pgcode/BUILD.bazel delete mode 100644 pkg/sql/pgwire/pgerror/BUILD.bazel delete mode 100644 pkg/sql/pgwire/pgnotice/BUILD.bazel delete mode 100644 pkg/sql/pgwire/pgwirebase/BUILD.bazel delete mode 100644 pkg/sql/pgwire/pgwirecancel/BUILD.bazel delete mode 100644 pkg/sql/physicalplan/BUILD.bazel delete mode 100644 pkg/sql/physicalplan/replicaoracle/BUILD.bazel delete mode 100644 pkg/sql/privilege/BUILD.bazel delete mode 100644 pkg/sql/protoreflect/BUILD.bazel delete mode 100644 pkg/sql/protoreflect/test/BUILD.bazel delete mode 100644 pkg/sql/querycache/BUILD.bazel delete mode 100644 pkg/sql/randgen/BUILD.bazel delete mode 100644 pkg/sql/roleoption/BUILD.bazel delete mode 100644 pkg/sql/row/BUILD.bazel delete mode 100644 pkg/sql/rowcontainer/BUILD.bazel delete mode 100644 pkg/sql/rowenc/BUILD.bazel delete mode 100644 pkg/sql/rowenc/keyside/BUILD.bazel delete mode 100644 pkg/sql/rowenc/rowencpb/BUILD.bazel delete mode 100644 pkg/sql/rowenc/valueside/BUILD.bazel delete mode 100644 pkg/sql/rowexec/BUILD.bazel delete mode 100644 pkg/sql/rowflow/BUILD.bazel delete mode 100644 pkg/sql/rowinfra/BUILD.bazel delete mode 100644 pkg/sql/scanner/BUILD.bazel delete mode 100644 pkg/sql/scheduledlogging/BUILD.bazel delete mode 100644 pkg/sql/schemachange/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/corpus/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/rel/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/rel/internal/comparetest/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/rel/internal/cyclegraphtest/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/rel/internal/entitynodetest/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/rel/reltest/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scbackup/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scbuild/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scbuild/internal/scbuildstmt/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scdecomp/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scdeps/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scdeps/sctestdeps/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scdeps/sctestutils/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scerrors/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scexec/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scexec/scmutationexec/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scjob/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scop/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scpb/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scplan/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scplan/internal/opgen/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scplan/internal/rules/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scplan/internal/scgraph/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scplan/internal/scgraphviz/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scplan/internal/scstage/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/screl/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/scrun/BUILD.bazel delete mode 100644 pkg/sql/schemachanger/sctest/BUILD.bazel delete mode 100644 pkg/sql/scrub/BUILD.bazel delete mode 100644 pkg/sql/sem/builtins/BUILD.bazel delete mode 100644 pkg/sql/sem/catid/BUILD.bazel delete mode 100644 pkg/sql/sem/transform/BUILD.bazel delete mode 100644 pkg/sql/sem/tree/BUILD.bazel delete mode 100644 pkg/sql/sem/tree/eval_test/BUILD.bazel delete mode 100644 pkg/sql/sem/tree/treebin/BUILD.bazel delete mode 100644 pkg/sql/sem/tree/treecmp/BUILD.bazel delete mode 100644 pkg/sql/sem/tree/treewindow/BUILD.bazel delete mode 100644 pkg/sql/sessiondata/BUILD.bazel delete mode 100644 pkg/sql/sessiondatapb/BUILD.bazel delete mode 100644 pkg/sql/sessioninit/BUILD.bazel delete mode 100644 pkg/sql/sessionphase/BUILD.bazel delete mode 100644 pkg/sql/span/BUILD.bazel delete mode 100644 pkg/sql/sqlerrors/BUILD.bazel delete mode 100644 pkg/sql/sqlfsm/BUILD.bazel delete mode 100644 pkg/sql/sqlinstance/BUILD.bazel delete mode 100644 pkg/sql/sqlinstance/instanceprovider/BUILD.bazel delete mode 100644 pkg/sql/sqlinstance/instancestorage/BUILD.bazel delete mode 100644 pkg/sql/sqlliveness/BUILD.bazel delete mode 100644 pkg/sql/sqlliveness/slinstance/BUILD.bazel delete mode 100644 pkg/sql/sqlliveness/slprovider/BUILD.bazel delete mode 100644 pkg/sql/sqlliveness/slstorage/BUILD.bazel delete mode 100644 pkg/sql/sqlliveness/sqllivenesstestutils/BUILD.bazel delete mode 100644 pkg/sql/sqlstats/BUILD.bazel delete mode 100644 pkg/sql/sqlstats/persistedsqlstats/BUILD.bazel delete mode 100644 pkg/sql/sqlstats/persistedsqlstats/sqlstatsutil/BUILD.bazel delete mode 100644 pkg/sql/sqlstats/sslocal/BUILD.bazel delete mode 100644 pkg/sql/sqlstats/ssmemstorage/BUILD.bazel delete mode 100644 pkg/sql/sqltelemetry/BUILD.bazel delete mode 100644 pkg/sql/sqltestutils/BUILD.bazel delete mode 100644 pkg/sql/sqlutil/BUILD.bazel delete mode 100644 pkg/sql/stats/BUILD.bazel delete mode 100644 pkg/sql/stmtdiagnostics/BUILD.bazel delete mode 100644 pkg/sql/storageparam/BUILD.bazel delete mode 100644 pkg/sql/storageparam/indexstorageparam/BUILD.bazel delete mode 100644 pkg/sql/storageparam/tablestorageparam/BUILD.bazel delete mode 100644 pkg/sql/tests/BUILD.bazel delete mode 100644 pkg/sql/ttl/ttljob/BUILD.bazel delete mode 100644 pkg/sql/ttl/ttlschedule/BUILD.bazel delete mode 100644 pkg/sql/types/BUILD.bazel delete mode 100644 pkg/sql/vtable/BUILD.bazel delete mode 100644 pkg/startupmigrations/BUILD.bazel delete mode 100644 pkg/startupmigrations/leasemanager/BUILD.bazel delete mode 100644 pkg/storage/BUILD.bazel delete mode 100644 pkg/storage/enginepb/BUILD.bazel delete mode 100644 pkg/storage/fs/BUILD.bazel delete mode 100644 pkg/storage/metamorphic/BUILD.bazel delete mode 100644 pkg/testutils/BUILD.bazel delete mode 100644 pkg/testutils/buildutil/BUILD.bazel delete mode 100644 pkg/testutils/colcontainerutils/BUILD.bazel delete mode 100644 pkg/testutils/diagutils/BUILD.bazel delete mode 100644 pkg/testutils/distsqlutils/BUILD.bazel delete mode 100644 pkg/testutils/docker/BUILD.bazel delete mode 100644 pkg/testutils/docker/docker-fsnotify/BUILD.bazel delete mode 100644 pkg/testutils/echotest/BUILD.bazel delete mode 100644 pkg/testutils/floatcmp/BUILD.bazel delete mode 100644 pkg/testutils/gossiputil/BUILD.bazel delete mode 100644 pkg/testutils/grpcutils/BUILD.bazel delete mode 100644 pkg/testutils/jobutils/BUILD.bazel delete mode 100644 pkg/testutils/keysutils/BUILD.bazel delete mode 100644 pkg/testutils/kvclientutils/BUILD.bazel delete mode 100644 pkg/testutils/lint/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/descriptormarshal/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/errcheck/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/errcmp/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/errwrap/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/fmtsafe/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/forbiddenmethod/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/grpcclientconnclose/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/grpcstatuswithdetails/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/hash/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/leaktestcall/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/nilness/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/nocopy/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/passesutil/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/returncheck/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/returnerrcheck/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/staticcheck/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/timer/BUILD.bazel delete mode 100644 pkg/testutils/lint/passes/unconvert/BUILD.bazel delete mode 100644 pkg/testutils/localtestcluster/BUILD.bazel delete mode 100644 pkg/testutils/metrictestutils/BUILD.bazel delete mode 100644 pkg/testutils/pgtest/BUILD.bazel delete mode 100644 pkg/testutils/physicalplanutils/BUILD.bazel delete mode 100644 pkg/testutils/serverutils/BUILD.bazel delete mode 100644 pkg/testutils/skip/BUILD.bazel delete mode 100644 pkg/testutils/sqlutils/BUILD.bazel delete mode 100644 pkg/testutils/sstutil/BUILD.bazel delete mode 100644 pkg/testutils/storageutils/BUILD.bazel delete mode 100644 pkg/testutils/testcluster/BUILD.bazel delete mode 100644 pkg/testutils/zerofields/BUILD.bazel delete mode 100644 pkg/ts/BUILD.bazel delete mode 100644 pkg/ts/catalog/BUILD.bazel delete mode 100644 pkg/ts/testmodel/BUILD.bazel delete mode 100644 pkg/ts/tspb/BUILD.bazel delete mode 100644 pkg/ui/BUILD.bazel delete mode 100644 pkg/ui/distoss/BUILD.bazel delete mode 100644 pkg/ui/workspaces/cluster-ui/BUILD.bazel delete mode 100644 pkg/ui/workspaces/db-console/BUILD.bazel delete mode 100644 pkg/ui/workspaces/db-console/src/js/BUILD.bazel delete mode 100644 pkg/util/BUILD.bazel delete mode 100644 pkg/util/admission/BUILD.bazel delete mode 100644 pkg/util/arith/BUILD.bazel delete mode 100644 pkg/util/binfetcher/BUILD.bazel delete mode 100644 pkg/util/bitarray/BUILD.bazel delete mode 100644 pkg/util/bufalloc/BUILD.bazel delete mode 100644 pkg/util/buildutil/BUILD.bazel delete mode 100644 pkg/util/cache/BUILD.bazel delete mode 100644 pkg/util/caller/BUILD.bazel delete mode 100644 pkg/util/cancelchecker/BUILD.bazel delete mode 100644 pkg/util/cgroups/BUILD.bazel delete mode 100644 pkg/util/circuit/BUILD.bazel delete mode 100644 pkg/util/cloudinfo/BUILD.bazel delete mode 100644 pkg/util/contextutil/BUILD.bazel delete mode 100644 pkg/util/ctxgroup/BUILD.bazel delete mode 100644 pkg/util/duration/BUILD.bazel delete mode 100644 pkg/util/encoding/BUILD.bazel delete mode 100644 pkg/util/encoding/csv/BUILD.bazel delete mode 100644 pkg/util/encoding/encodingtype/BUILD.bazel delete mode 100644 pkg/util/envutil/BUILD.bazel delete mode 100644 pkg/util/errorutil/BUILD.bazel delete mode 100644 pkg/util/errorutil/unimplemented/BUILD.bazel delete mode 100644 pkg/util/fileutil/BUILD.bazel delete mode 100644 pkg/util/flagutil/BUILD.bazel delete mode 100644 pkg/util/fsm/BUILD.bazel delete mode 100644 pkg/util/fsm/gen/BUILD.bazel delete mode 100644 pkg/util/fuzzystrmatch/BUILD.bazel delete mode 100644 pkg/util/goschedstats/BUILD.bazel delete mode 100644 pkg/util/growstack/BUILD.bazel delete mode 100644 pkg/util/grpcutil/BUILD.bazel delete mode 100644 pkg/util/hlc/BUILD.bazel delete mode 100644 pkg/util/httputil/BUILD.bazel delete mode 100644 pkg/util/humanizeutil/BUILD.bazel delete mode 100644 pkg/util/interval/BUILD.bazel delete mode 100644 pkg/util/interval/generic/BUILD.bazel delete mode 100644 pkg/util/ioctx/BUILD.bazel delete mode 100644 pkg/util/ipaddr/BUILD.bazel delete mode 100644 pkg/util/iterutil/BUILD.bazel delete mode 100644 pkg/util/jobutil/BUILD.bazel delete mode 100644 pkg/util/json/BUILD.bazel delete mode 100644 pkg/util/jsonbytes/BUILD.bazel delete mode 100644 pkg/util/keysutil/BUILD.bazel delete mode 100644 pkg/util/leaktest/BUILD.bazel delete mode 100644 pkg/util/limit/BUILD.bazel delete mode 100644 pkg/util/log/BUILD.bazel delete mode 100644 pkg/util/log/channel/BUILD.bazel delete mode 100644 pkg/util/log/eventpb/BUILD.bazel delete mode 100644 pkg/util/log/gen/BUILD.bazel delete mode 100644 pkg/util/log/logconfig/BUILD.bazel delete mode 100644 pkg/util/log/logcrash/BUILD.bazel delete mode 100644 pkg/util/log/logflags/BUILD.bazel delete mode 100644 pkg/util/log/logpb/BUILD.bazel delete mode 100644 pkg/util/log/logtestutils/BUILD.bazel delete mode 100644 pkg/util/log/severity/BUILD.bazel delete mode 100644 pkg/util/log/testshout/BUILD.bazel delete mode 100644 pkg/util/memzipper/BUILD.bazel delete mode 100644 pkg/util/metric/BUILD.bazel delete mode 100644 pkg/util/metric/aggmetric/BUILD.bazel delete mode 100644 pkg/util/mon/BUILD.bazel delete mode 100644 pkg/util/netutil/BUILD.bazel delete mode 100644 pkg/util/netutil/addr/BUILD.bazel delete mode 100644 pkg/util/optional/BUILD.bazel delete mode 100644 pkg/util/pprofutil/BUILD.bazel delete mode 100644 pkg/util/pretty/BUILD.bazel delete mode 100644 pkg/util/protoutil/BUILD.bazel delete mode 100644 pkg/util/quotapool/BUILD.bazel delete mode 100644 pkg/util/randutil/BUILD.bazel delete mode 100644 pkg/util/retry/BUILD.bazel delete mode 100644 pkg/util/ring/BUILD.bazel delete mode 100644 pkg/util/sdnotify/BUILD.bazel delete mode 100644 pkg/util/search/BUILD.bazel delete mode 100644 pkg/util/shuffle/BUILD.bazel delete mode 100644 pkg/util/sort/BUILD.bazel delete mode 100644 pkg/util/span/BUILD.bazel delete mode 100644 pkg/util/startup/BUILD.bazel delete mode 100644 pkg/util/stop/BUILD.bazel delete mode 100644 pkg/util/stringarena/BUILD.bazel delete mode 100644 pkg/util/stringencoding/BUILD.bazel delete mode 100644 pkg/util/syncutil/BUILD.bazel delete mode 100644 pkg/util/syncutil/singleflight/BUILD.bazel delete mode 100644 pkg/util/system/BUILD.bazel delete mode 100644 pkg/util/sysutil/BUILD.bazel delete mode 100644 pkg/util/targz/BUILD.bazel delete mode 100644 pkg/util/targz/gen/BUILD.bazel delete mode 100644 pkg/util/timeofday/BUILD.bazel delete mode 100644 pkg/util/timetz/BUILD.bazel delete mode 100644 pkg/util/timeutil/BUILD.bazel delete mode 100644 pkg/util/timeutil/gen/BUILD.bazel delete mode 100644 pkg/util/timeutil/pgdate/BUILD.bazel delete mode 100644 pkg/util/tracing/BUILD.bazel delete mode 100644 pkg/util/tracing/collector/BUILD.bazel delete mode 100644 pkg/util/tracing/service/BUILD.bazel delete mode 100644 pkg/util/tracing/tracingpb/BUILD.bazel delete mode 100644 pkg/util/tracing/tracingservicepb/BUILD.bazel delete mode 100644 pkg/util/tracing/tracingui/BUILD.bazel delete mode 100644 pkg/util/tracing/zipper/BUILD.bazel delete mode 100644 pkg/util/treeprinter/BUILD.bazel delete mode 100644 pkg/util/uint128/BUILD.bazel delete mode 100644 pkg/util/ulid/BUILD.bazel delete mode 100644 pkg/util/unaccent/BUILD.bazel delete mode 100644 pkg/util/unique/BUILD.bazel delete mode 100644 pkg/util/uuid/BUILD.bazel delete mode 100644 pkg/util/version/BUILD.bazel delete mode 100644 pkg/workload/BUILD.bazel delete mode 100644 pkg/workload/bank/BUILD.bazel delete mode 100644 pkg/workload/bulkingest/BUILD.bazel delete mode 100644 pkg/workload/cli/BUILD.bazel delete mode 100644 pkg/workload/connectionlatency/BUILD.bazel delete mode 100644 pkg/workload/debug/BUILD.bazel delete mode 100644 pkg/workload/examples/BUILD.bazel delete mode 100644 pkg/workload/faker/BUILD.bazel delete mode 100644 pkg/workload/geospatial/BUILD.bazel delete mode 100644 pkg/workload/histogram/BUILD.bazel delete mode 100644 pkg/workload/indexes/BUILD.bazel delete mode 100644 pkg/workload/jsonload/BUILD.bazel delete mode 100644 pkg/workload/kv/BUILD.bazel delete mode 100644 pkg/workload/ledger/BUILD.bazel delete mode 100644 pkg/workload/movr/BUILD.bazel delete mode 100644 pkg/workload/querybench/BUILD.bazel delete mode 100644 pkg/workload/querylog/BUILD.bazel delete mode 100644 pkg/workload/queue/BUILD.bazel delete mode 100644 pkg/workload/rand/BUILD.bazel delete mode 100644 pkg/workload/schemachange/BUILD.bazel delete mode 100644 pkg/workload/sqlsmith/BUILD.bazel delete mode 100644 pkg/workload/tpcc/BUILD.bazel delete mode 100644 pkg/workload/tpccchecks/BUILD.bazel delete mode 100644 pkg/workload/tpcds/BUILD.bazel delete mode 100644 pkg/workload/tpch/BUILD.bazel delete mode 100644 pkg/workload/ttllogger/BUILD.bazel delete mode 100644 pkg/workload/workloadimpl/BUILD.bazel delete mode 100644 pkg/workload/workloadsql/BUILD.bazel delete mode 100644 pkg/workload/ycsb/BUILD.bazel diff --git a/.bazelignore b/.bazelignore deleted file mode 100644 index 2d8c63520c9..00000000000 --- a/.bazelignore +++ /dev/null @@ -1,6 +0,0 @@ -artifacts -bin -build/builder_home -lib -pkg/ui/node_modules -vendor diff --git a/.bazelrc b/.bazelrc deleted file mode 100644 index ca36804504d..00000000000 --- a/.bazelrc +++ /dev/null @@ -1,82 +0,0 @@ -# Define a set up flag aliases, so people can use `--cross` instead of the -# longer `//build/toolchains:cross_flag`. -build --flag_alias=crdb_test=//build/toolchains:crdb_test_flag -build --flag_alias=crdb_test_off=//build/toolchains:crdb_test_off_flag -build --flag_alias=cross=//build/toolchains:cross_flag -build --flag_alias=dev=//build/toolchains:dev_flag -build --flag_alias=lintonbuild=//build/toolchains:nogo_flag -build --flag_alias=nolintonbuild=//build/toolchains:nonogo_explicit_flag -build --flag_alias=with_ui=//pkg/ui:with_ui_flag - -build:crdb_test_off --crdb_test_off -build:cross --cross -build:dev --dev -build:lintonbuild --lintonbuild -build:nolintonbuild --nolintonbuild -# Note: nonogo is classically the name of the nolintonbuild configuration. -build:nonogo --nolintonbuild -build:test --crdb_test -build:with_ui --with_ui - -# Basic settings. -build --define gotags=bazel,gss -build --experimental_proto_descriptor_sets_include_source_info -build --incompatible_strict_action_env --incompatible_enable_cc_toolchain_resolution -build --symlink_prefix=_bazel/ -test --config=test --experimental_ui_max_stdouterr_bytes=10485760 -build --ui_event_filters=-DEBUG -query --ui_event_filters=-DEBUG -clean --ui_event_filters=-WARNING -info --ui_event_filters=-WARNING - -build:race --@io_bazel_rules_go//go/config:race --test_env=GORACE=halt_on_error=1 --test_sharding_strategy=disabled -test:test --test_env=TZ= -test:race --test_timeout=1200,6000,18000,72000 - -# CI should always run with `--config=ci`. -build:ci --experimental_convenience_symlinks=ignore -build:ci --lintonbuild -# Set `-test.v` in Go tests. -# Ref: https://github.com/bazelbuild/rules_go/pull/2456 -test:ci --test_env=GO_TEST_WRAP_TESTV=1 -# Dump all output for failed tests to the build log. -test:ci --test_output=errors -# Put all tmp artifacts in /artifacts/tmp. -test:ci --test_tmpdir=/artifacts/tmp - -build:cross --stamp - -# Cross-compilation configurations. Add e.g. --config=crosslinux to turn these on. -# Generally these should be used for development builds. Each cross config has -# a corresponding `base` config that is the same thing but without the -# `--workspace_status_command`; if using these `base` configs, you need to -# specify an appropriate `--workspace_status_command`. These `base` configs are -# used by the release process which needs to have more control over stamping. -build:crosslinux '--workspace_status_command=./build/bazelutil/stamp.sh x86_64-pc-linux-gnu' -build:crosslinux --config=crosslinuxbase -build:crosslinuxbase --platforms=//build/toolchains:cross_linux -build:crosslinuxbase --config=cross -build:crosswindows '--workspace_status_command=./build/bazelutil/stamp.sh x86_64-w64-mingw32' -build:crosswindows --config=crosswindowsbase -build:crosswindowsbase --platforms=//build/toolchains:cross_windows -build:crosswindowsbase --config=cross -build:crossmacos '--workspace_status_command=./build/bazelutil/stamp.sh x86_64-apple-darwin19' -build:crossmacos --config=crossmacosbase -build:crossmacosbase --platforms=//build/toolchains:cross_macos -build:crossmacosbase --config=cross -build:crosslinuxarm '--workspace_status_command=./build/bazelutil/stamp.sh aarch64-unknown-linux-gnu' -build:crosslinuxarm --config=crosslinuxarmbase -build:crosslinuxarmbase --platforms=//build/toolchains:cross_linux_arm -build:crosslinuxarmbase --config=cross - -# Developer configurations. Add e.g. --config=devdarwinx86_64 to turn these on. -# NB: This is consumed in `BUILD` files (see build/toolchains/BUILD.bazel). -build:devdarwinx86_64 --platforms=//build/toolchains:darwin_x86_64 -build:devdarwinx86_64 --config=dev -build:dev --stamp --workspace_status_command=./build/bazelutil/stamp.sh -build:dev --action_env=PATH -build:dev --host_action_env=PATH - -try-import %workspace%/.bazelrc.user - -# vi: ft=sh diff --git a/.bazelversion b/.bazelversion deleted file mode 100644 index 7a22e8990c5..00000000000 --- a/.bazelversion +++ /dev/null @@ -1 +0,0 @@ -cockroachdb/5.0.0 diff --git a/.github/BUILD.bazel b/.github/BUILD.bazel deleted file mode 100644 index f732ef6ada3..00000000000 --- a/.github/BUILD.bazel +++ /dev/null @@ -1,3 +0,0 @@ -exports_files([ - "CODEOWNERS", -]) diff --git a/.node-version b/.node-version deleted file mode 100644 index 0fefb1351bb..00000000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -12.13.1 diff --git a/BUILD.bazel b/BUILD.bazel deleted file mode 100644 index f49f50164c9..00000000000 --- a/BUILD.bazel +++ /dev/null @@ -1,204 +0,0 @@ -load("@bazel_gazelle//:def.bzl", "gazelle") -load("@io_bazel_rules_go//go:def.bzl", "go_path", "nogo") -load("//build/bazelutil/staticcheckanalyzers:def.bzl", "STATICCHECK_CHECKS") - -# Consider using `dev` to easily perform Bazel builds. Run `dev doctor` to see -# if your machine is up to snuff, and `dev -h` for a list of everything `dev` -# can do. - -exports_files([ - "DEPS.bzl", - "TEAMS.yaml", - "WORKSPACE", - "go.mod", - "go.sum", -]) - -# The following directives inform gazelle how to auto-generate BUILD.bazel -# files throughout the repo. By including them here, we can run gazelle using -# `bazel run //:gazelle` instead of invoking gazelle directly. -# -# NB: Be sure to re-generate BUILD.bazel files if any of the directives below -# are changed. - -# Define the gazelle prefix and what the autogenerated BUILD files should be -# named as. -# -# gazelle:prefix github.com/cockroachdb/cockroach -# gazelle:build_file_name BUILD.bazel -# gazelle:build_tags bazel,compose,deadlock,fast_int_set_small,fast_int_set_large,gss,slow - -# Enable protobuf generation. -# -# gazelle:proto default -# gazelle:proto_group go_package -# gazelle:go_proto_compilers //pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler -# gazelle:go_grpc_compilers //pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler - -# Gazelle needs the following resolve hints. -# -# gazelle:resolve go github.com/grpc-ecosystem/grpc-gateway/runtime @com_github_grpc_ecosystem_grpc_gateway//runtime:go_default_library -# gazelle:resolve go github.com/grpc-ecosystem/grpc-gateway/utilities @com_github_grpc_ecosystem_grpc_gateway//utilities:go_default_library -# gazelle:resolve go github.com/grpc-ecosystem/grpc-gateway/internal @com_github_grpc_ecosystem_grpc_gateway//internal -# gazelle:resolve proto proto errorspb/errors.proto @com_github_cockroachdb_errors//errorspb:errorspb_proto -# gazelle:resolve proto go errorspb/errors.proto @com_github_cockroachdb_errors//errorspb -# gazelle:resolve proto proto etcd/raft/v3/raftpb/raft.proto @io_etcd_go_etcd_raft_v3//raftpb:raftpb_proto -# gazelle:resolve proto go etcd/raft/v3/raftpb/raft.proto @io_etcd_go_etcd_raft_v3//raftpb -# gazelle:resolve proto proto gogoproto/gogo.proto @com_github_gogo_protobuf//gogoproto:gogo_proto -# gazelle:resolve proto go gogoproto/gogo.proto @com_github_gogo_protobuf//gogoproto -# gazelle:resolve proto go google/api/annotations.proto @org_golang_google_genproto//googleapis/api/annotations:go_default_library -# gazelle:resolve proto io/prometheus/client/metrics.proto @com_github_prometheus_client_model//io/prometheus/client:io_prometheus_client_proto -# gazelle:resolve proto go io/prometheus/client/metrics.proto @com_github_prometheus_client_model//go -# gazelle:resolve go github.com/prometheus/client_model/go @com_github_prometheus_client_model//go -# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/ccl/gssapiccl @cockroach//pkg/ccl/gssapiccl -# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/cli_test @cockroach//pkg/cli:cli_test -# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/sql/colflow_test @cockroach//pkg/sql/colflow:colflow_test -# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/util/caller_test @cockroach//pkg/util/caller:caller_test -# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/util/json_test @cockroach//pkg/util/json:json_test -# gazelle:resolve go google.golang.org/genproto/googleapis/pubsub/v1 @org_golang_google_genproto//googleapis/pubsub/v1:pubsub -# gazelle:resolve go google.golang.org/genproto/googleapis/cloud/kms/v1 @org_golang_google_genproto//googleapis/cloud/kms/v1:kms - -# See pkg/roachpb/gen/BUILD.bazel for more details. -# -# gazelle:resolve proto go roachpb/api.proto //pkg/roachpb -# gazelle:resolve proto go roachpb/app_stats.proto //pkg/roachpb -# gazelle:resolve proto go roachpb/data.proto //pkg/roachpb -# gazelle:resolve proto go roachpb/errors.proto //pkg/roachpb -# gazelle:resolve proto go roachpb/index_usage_stats.proto //pkg/roachpb -# gazelle:resolve proto go roachpb/internal.proto //pkg/roachpb -# gazelle:resolve proto go roachpb/internal_raft.proto //pkg/roachpb -# gazelle:resolve proto go roachpb/io-formats.proto //pkg/roachpb -# gazelle:resolve proto go roachpb/metadata.proto //pkg/roachpb -# gazelle:resolve proto go roachpb/span_config.proto //pkg/roachpb -# gazelle:exclude pkg/roachpb/batch_generated-gen.go - -# See pkg/sql/opt/optgen/cmd/langgen/BUILD.bazel for more details. -# -# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/sql/opt/optgen/lang //pkg/sql/opt/optgen/lang - -# We exclude a few things from gazelle consideration: -# - The protobuf C dependency, it's are already bazel-ified, lest we overwrite -# those build files. -# - The artifacts directory. -# - Most checked-in autogenerated files (they'll get autogenerated on the fly -# through bazel). These include stringer files, eg.go files, etc. -# - testdata packages that looks like go packages, but aren't -# (testdata/src/example.com). -# - A few auto-generated sql parser files. -# - The vendor directory. We're using external targets for go dependencies, -# generated without actually looking at vendor. See #58229. -# -# gazelle:exclude _bazel -# gazelle:exclude c-deps/krb5 -# gazelle:exclude artifacts -# gazelle:exclude bin -# gazelle:exclude build/builder_home -# gazelle:exclude lib -# gazelle:exclude pkg/ccl/gssapiccl -# gazelle:exclude pkg/ui/node_modules -# gazelle:exclude pkg/ui/workspaces/cluster-ui/node_modules -# gazelle:exclude pkg/ui/workspaces/db-console/node_modules -# gazelle:exclude vendor -# gazelle:exclude .vendor.tmp.* -# gazelle:exclude **/zcgo_flags.go -# gazelle:exclude **/zcgo_flags_*.go -# gazelle:exclude **/*.og.go -# gazelle:exclude **/*.eg.go -# gazelle:exclude **/*.pb.go -# gazelle:exclude **/*.pb.gw.go -# gazelle:exclude **/*_interval_btree.go -# gazelle:exclude **/*_interval_btree_test.go -# gazelle:exclude **/*_generated.go -# gazelle:exclude **/*_generated_test.go -# gazelle:exclude pkg/sql/parser/sql.go -# gazelle:exclude pkg/sql/parser/helpmap_test.go -# gazelle:exclude pkg/sql/parser/help_messages.go -# gazelle:exclude pkg/sql/lexbase/keywords.go -# gazelle:exclude pkg/sql/lexbase/tokens.go -# gazelle:exclude pkg/sql/lexbase/reserved_keywords.go -# gazelle:exclude pkg/sql/schemachanger/scexec/mocks_generated_test.go -# gazelle:exclude pkg/cmd/prereqs/testdata -# gazelle:exclude pkg/testutils/**/testdata/** -# gazelle:exclude pkg/security/securitytest/embedded.go -# gazelle:exclude pkg/roachprod/vm/aws/embedded.go -# gazelle:exclude pkg/**/*_string.go -# gazelle:exclude pkg/ui/distccl/distccl_no_bazel.go -# gazelle:exclude pkg/ui/distoss/distoss_no_bazel.go -# gazelle:exclude pkg/util/buildutil/crdb_test_off.go -# gazelle:exclude pkg/util/buildutil/crdb_test_on.go -# gazelle:exclude pkg/acceptance/compose/gss/psql/* -# gazelle:exclude pkg/acceptance/test_main.go -# -# Generally useful references: -# -# https://docs.bazel.build/versions/master/user-manual.html -# https://docs.bazel.build/versions/master/guide.html - -gazelle( - name = "gazelle", - prefix = "github.com/cockroachdb/cockroach", -) - -nogo( - name = "crdb_nogo", - config = "//build/bazelutil:nogo_config.json", - visibility = ["//visibility:public"], - deps = select({ - "//build/toolchains:nogo": [ - "@org_golang_x_tools//go/analysis/passes/asmdecl:go_default_library", - "@org_golang_x_tools//go/analysis/passes/assign:go_default_library", - "@org_golang_x_tools//go/analysis/passes/atomic:go_default_library", - "@org_golang_x_tools//go/analysis/passes/atomicalign:go_default_library", - "@org_golang_x_tools//go/analysis/passes/bools:go_default_library", - "@org_golang_x_tools//go/analysis/passes/buildssa:go_default_library", - "@org_golang_x_tools//go/analysis/passes/buildtag:go_default_library", - # TODO(rules_go#2396): pass raw cgo sources to cgocall and re-enable. - # "@org_golang_x_tools//go/analysis/passes/cgocall:go_default_library", - "@org_golang_x_tools//go/analysis/passes/composite:go_default_library", - "@org_golang_x_tools//go/analysis/passes/copylock:go_default_library", - "@org_golang_x_tools//go/analysis/passes/ctrlflow:go_default_library", - "@org_golang_x_tools//go/analysis/passes/deepequalerrors:go_default_library", - "@org_golang_x_tools//go/analysis/passes/errorsas:go_default_library", - "@org_golang_x_tools//go/analysis/passes/findcall:go_default_library", - "@org_golang_x_tools//go/analysis/passes/httpresponse:go_default_library", - "@org_golang_x_tools//go/analysis/passes/ifaceassert:go_default_library", - "@org_golang_x_tools//go/analysis/passes/inspect:go_default_library", - "@org_golang_x_tools//go/analysis/passes/loopclosure:go_default_library", - "@org_golang_x_tools//go/analysis/passes/lostcancel:go_default_library", - "@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", - # TODO(ricky): we do want to run the shadow check, we just want to exclude - # shadows of the variable "err". Presumably we can hack around this. #73069 - # "@org_golang_x_tools//go/analysis/passes/shadow: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", - "@org_golang_x_tools//go/analysis/passes/stringintconv:go_default_library", - "@org_golang_x_tools//go/analysis/passes/structtag:go_default_library", - "@org_golang_x_tools//go/analysis/passes/testinggoroutine:go_default_library", - "@org_golang_x_tools//go/analysis/passes/tests:go_default_library", - "@org_golang_x_tools//go/analysis/passes/unmarshal:go_default_library", - "@org_golang_x_tools//go/analysis/passes/unreachable:go_default_library", - "@org_golang_x_tools//go/analysis/passes/unsafeptr:go_default_library", - "@org_golang_x_tools//go/analysis/passes/unusedresult:go_default_library", - "//pkg/testutils/lint/passes/descriptormarshal", - "//pkg/testutils/lint/passes/errcheck", - "//pkg/testutils/lint/passes/errcmp", - "//pkg/testutils/lint/passes/errwrap", - "//pkg/testutils/lint/passes/fmtsafe", - "//pkg/testutils/lint/passes/grpcclientconnclose", - "//pkg/testutils/lint/passes/grpcstatuswithdetails", - "//pkg/testutils/lint/passes/hash", - "//pkg/testutils/lint/passes/leaktestcall", - "//pkg/testutils/lint/passes/nilness", - "//pkg/testutils/lint/passes/nocopy", - "//pkg/testutils/lint/passes/returncheck", - "//pkg/testutils/lint/passes/returnerrcheck", - "//pkg/testutils/lint/passes/timer", - "//pkg/testutils/lint/passes/unconvert", - ] + STATICCHECK_CHECKS, - "//conditions:default": [], - }), -) diff --git a/DEPS.bzl b/DEPS.bzl deleted file mode 100644 index cff5b51f39a..00000000000 --- a/DEPS.bzl +++ /dev/null @@ -1,9388 +0,0 @@ -load("@bazel_gazelle//:deps.bzl", "go_repository") - -# PRO-TIP: You can inject temorary changes to any of these dependencies by -# by pointing to an alternate remote to clone from. Delete the `sha256`, -# `strip_prefix`, and ` + `urls` parameters, and add `vcs = "git"` as well as a -# custom `remote` and `commit`. For example: -# go_repository( -# name = "com_github_cockroachdb_sentry_go", -# build_file_proto_mode = "disable_global", -# importpath = "github.com/cockroachdb/sentry-go", -# vcs = "git", -# remote = "https://github.com/rickystewart/sentry-go", # Custom fork. -# commit = "6c8e10aca9672de108063d4953399bd331b54037", # Custom commit. -# ) -# The `remote` can be EITHER a URL, or an absolute local path to a clone, such -# as `/Users/ricky/go/src/github.com/cockroachdb/sentry-go`. Bazel will clone -# from the remote and check out the commit you specify. - -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 = "co_honnef_go_tools", - build_file_proto_mode = "disable_global", - importpath = "honnef.co/go/tools", - sha256 = "b327a6e9565db3b835f2b224b9023f5dd9fb236e94285f002f0ac740ad2ac43b", - strip_prefix = "honnef.co/go/tools@v0.2.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/honnef.co/go/tools/co_honnef_go_tools-v0.2.1.zip", - ], - ) - go_repository( - name = "com_github_abbot_go_http_auth", - build_file_proto_mode = "disable_global", - importpath = "github.com/abbot/go-http-auth", - sha256 = "c0e46a64d55a47d790205df3b6d52f3ef5e354da5ce5088f376c977000610198", - strip_prefix = "github.com/abbot/go-http-auth@v0.4.1-0.20181019201920-860ed7f246ff", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/abbot/go-http-auth/com_github_abbot_go_http_auth-v0.4.1-0.20181019201920-860ed7f246ff.zip", - ], - ) - go_repository( - name = "com_github_abourget_teamcity", - build_file_proto_mode = "disable_global", - importpath = "github.com/abourget/teamcity", - sha256 = "9df6b028c9fb5bff7bdad844bda504356945fd6d3cd583c50f68d8b8e85060f6", - strip_prefix = "github.com/cockroachdb/teamcity@v0.0.0-20180905144921-8ca25c33eb11", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/teamcity/com_github_cockroachdb_teamcity-v0.0.0-20180905144921-8ca25c33eb11.zip", - ], - ) - go_repository( - name = "com_github_afex_hystrix_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/afex/hystrix-go", - sha256 = "c0e0ea63b57e95784eeeb18ab8988ac2c3d3a17dc729d557c963f391f372301c", - strip_prefix = "github.com/afex/hystrix-go@v0.0.0-20180502004556-fa1af6a1f4f5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/afex/hystrix-go/com_github_afex_hystrix_go-v0.0.0-20180502004556-fa1af6a1f4f5.zip", - ], - ) - go_repository( - name = "com_github_agnivade_levenshtein", - build_file_proto_mode = "disable_global", - importpath = "github.com/agnivade/levenshtein", - sha256 = "cb0e7f070ba2b6a10e1c600d71f06508404801ff45046853001b83be6ebedac3", - strip_prefix = "github.com/agnivade/levenshtein@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/agnivade/levenshtein/com_github_agnivade_levenshtein-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_ajg_form", - build_file_proto_mode = "disable_global", - importpath = "github.com/ajg/form", - sha256 = "b063b07639670ce9b6a0065b4dc35ef9e4cebc0c601be27f5494a3e6a87eb78b", - strip_prefix = "github.com/ajg/form@v1.5.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/ajg/form/com_github_ajg_form-v1.5.1.zip", - ], - ) - go_repository( - name = "com_github_ajstarks_svgo", - build_file_proto_mode = "disable_global", - importpath = "github.com/ajstarks/svgo", - sha256 = "cdf6900823539ab02e7f6e0edcdb4c12b3dcec97068a350e564ff622132ae7fc", - strip_prefix = "github.com/ajstarks/svgo@v0.0.0-20180226025133-644b8db467af", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/ajstarks/svgo/com_github_ajstarks_svgo-v0.0.0-20180226025133-644b8db467af.zip", - ], - ) - go_repository( - name = "com_github_akavel_rsrc", - build_file_proto_mode = "disable_global", - importpath = "github.com/akavel/rsrc", - sha256 = "13954a09edc3a680d633c5ea7b4be902df3a70ca1720b349faadca44dc0c7ecc", - strip_prefix = "github.com/akavel/rsrc@v0.8.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/akavel/rsrc/com_github_akavel_rsrc-v0.8.0.zip", - ], - ) - go_repository( - name = "com_github_alecthomas_template", - build_file_proto_mode = "disable_global", - importpath = "github.com/alecthomas/template", - sha256 = "25e3be7192932d130d0af31ce5bcddae887647ba4afcfb32009c3b9b79dbbdb3", - strip_prefix = "github.com/alecthomas/template@v0.0.0-20190718012654-fb15b899a751", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/alecthomas/template/com_github_alecthomas_template-v0.0.0-20190718012654-fb15b899a751.zip", - ], - ) - go_repository( - name = "com_github_alecthomas_units", - build_file_proto_mode = "disable_global", - importpath = "github.com/alecthomas/units", - sha256 = "461b05eb19b6023664d6502cb4fbf093a99a9ee2a36c43b4da5ca1287c495ff7", - strip_prefix = "github.com/alecthomas/units@v0.0.0-20210208195552-ff826a37aa15", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/alecthomas/units/com_github_alecthomas_units-v0.0.0-20210208195552-ff826a37aa15.zip", - ], - ) - go_repository( - name = "com_github_alessio_shellescape", - build_file_proto_mode = "disable_global", - importpath = "github.com/alessio/shellescape", - sha256 = "e28d444e73b803a15cf83e6179149d34c6c132baa60cb8137e5f0aea50a543bf", - strip_prefix = "github.com/alessio/shellescape@v1.4.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/alessio/shellescape/com_github_alessio_shellescape-v1.4.1.zip", - ], - ) - go_repository( - name = "com_github_alexbrainman_sspi", - build_file_proto_mode = "disable_global", - importpath = "github.com/alexbrainman/sspi", - sha256 = "596bc141f8557e6eaad5950b835dfa61f8894bf6fdad00555725526fffb9eada", - strip_prefix = "github.com/alexbrainman/sspi@v0.0.0-20180613141037-e580b900e9f5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/alexbrainman/sspi/com_github_alexbrainman_sspi-v0.0.0-20180613141037-e580b900e9f5.zip", - ], - ) - go_repository( - name = "com_github_alexflint_go_filemutex", - build_file_proto_mode = "disable_global", - importpath = "github.com/alexflint/go-filemutex", - sha256 = "f3517f75266ac4651b0b421dd970a68d5645c929062f2d67b9e1e4685562b690", - strip_prefix = "github.com/alexflint/go-filemutex@v0.0.0-20171022225611-72bdc8eae2ae", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/alexflint/go-filemutex/com_github_alexflint_go_filemutex-v0.0.0-20171022225611-72bdc8eae2ae.zip", - ], - ) - go_repository( - name = "com_github_andreasbriese_bbloom", - build_file_proto_mode = "disable_global", - importpath = "github.com/AndreasBriese/bbloom", - sha256 = "8b8c016e041592d4ca8cbd2a8c68e0dd0ba1b7a8f96fab7422c8e373b1835a2d", - strip_prefix = "github.com/AndreasBriese/bbloom@v0.0.0-20190825152654-46b345b51c96", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/AndreasBriese/bbloom/com_github_andreasbriese_bbloom-v0.0.0-20190825152654-46b345b51c96.zip", - ], - ) - go_repository( - name = "com_github_andreyvit_diff", - build_file_proto_mode = "disable_global", - importpath = "github.com/andreyvit/diff", - sha256 = "d39614ff930006640ec15865bca0bb6bf8e1ed145bccf30bab08b88c1d90f670", - strip_prefix = "github.com/andreyvit/diff@v0.0.0-20170406064948-c7f18ee00883", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/andreyvit/diff/com_github_andreyvit_diff-v0.0.0-20170406064948-c7f18ee00883.zip", - ], - ) - go_repository( - name = "com_github_andy_kimball_arenaskl", - build_file_proto_mode = "disable_global", - importpath = "github.com/andy-kimball/arenaskl", - sha256 = "a3d6ee002f3d47e1a0188c7ee908e2ee424b1124753fba88080000faac8480b0", - strip_prefix = "github.com/andy-kimball/arenaskl@v0.0.0-20200617143215-f701008588b9", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/andy-kimball/arenaskl/com_github_andy_kimball_arenaskl-v0.0.0-20200617143215-f701008588b9.zip", - ], - ) - go_repository( - name = "com_github_andybalholm_brotli", - build_file_proto_mode = "disable_global", - importpath = "github.com/andybalholm/brotli", - sha256 = "60d5aa0132b481cde660dbf77de8d139f2baf2ce1a6e25c980f31020efcf42b2", - strip_prefix = "github.com/andybalholm/brotli@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/andybalholm/brotli/com_github_andybalholm_brotli-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_andybalholm_cascadia", - build_file_proto_mode = "disable_global", - importpath = "github.com/andybalholm/cascadia", - sha256 = "8cc5679e5070e2076369e2f7a24341cf0ccb139f49cccf153f72902f24876d81", - strip_prefix = "github.com/andybalholm/cascadia@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/andybalholm/cascadia/com_github_andybalholm_cascadia-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_andygrunwald_go_jira", - build_file_proto_mode = "disable_global", - importpath = "github.com/andygrunwald/go-jira", - sha256 = "89fc3ece1f9d367e211845ef4f33bed49273af58fdf65c561eb67903d3b72979", - strip_prefix = "github.com/andygrunwald/go-jira@v1.14.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/andygrunwald/go-jira/com_github_andygrunwald_go_jira-v1.14.0.zip", - ], - ) - go_repository( - name = "com_github_antihax_optional", - build_file_proto_mode = "disable_global", - importpath = "github.com/antihax/optional", - sha256 = "15ab4d41bdbb72ee0ac63db616cdefc7671c79e13d0f73b58355a6a88219c97f", - strip_prefix = "github.com/antihax/optional@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/antihax/optional/com_github_antihax_optional-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_aokoli_goutils", - build_file_proto_mode = "disable_global", - importpath = "github.com/aokoli/goutils", - sha256 = "96ee68caaf3f4e673e27c97659b4ea10a4fd81dbf24fabd2dc01e187a772355c", - strip_prefix = "github.com/aokoli/goutils@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aokoli/goutils/com_github_aokoli_goutils-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_apache_arrow_go_arrow", - build_file_proto_mode = "disable_global", - importpath = "github.com/apache/arrow/go/arrow", - sha256 = "5018a8784061fd3a5e52069fb321ebe2d96181d4a6f2d594cb60ff3787998580", - strip_prefix = "github.com/apache/arrow/go/arrow@v0.0.0-20200923215132-ac86123a3f01", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/apache/arrow/go/arrow/com_github_apache_arrow_go_arrow-v0.0.0-20200923215132-ac86123a3f01.zip", - ], - ) - go_repository( - name = "com_github_apache_thrift", - build_file_proto_mode = "disable_global", - importpath = "github.com/apache/thrift", - sha256 = "50d5c610df30fa2a6039394d5142382b7d9938870dfb12ef46bddfa3da250893", - strip_prefix = "github.com/apache/thrift@v0.16.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/apache/thrift/com_github_apache_thrift-v0.16.0.zip", - ], - ) - go_repository( - name = "com_github_araddon_dateparse", - build_file_proto_mode = "disable_global", - importpath = "github.com/araddon/dateparse", - sha256 = "8fe74d5b36a9aa66c1350657009296469f8aa5b6925acd178044cd248023fc5a", - strip_prefix = "github.com/araddon/dateparse@v0.0.0-20210429162001-6b43995a97de", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/araddon/dateparse/com_github_araddon_dateparse-v0.0.0-20210429162001-6b43995a97de.zip", - ], - ) - go_repository( - name = "com_github_armon_circbuf", - build_file_proto_mode = "disable_global", - importpath = "github.com/armon/circbuf", - sha256 = "3819cde26cd4b25c4043dc9384da7b0c1c29fd06e6e3a38604f4a6933fc017ed", - strip_prefix = "github.com/armon/circbuf@v0.0.0-20150827004946-bbbad097214e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/armon/circbuf/com_github_armon_circbuf-v0.0.0-20150827004946-bbbad097214e.zip", - ], - ) - go_repository( - name = "com_github_armon_consul_api", - build_file_proto_mode = "disable_global", - importpath = "github.com/armon/consul-api", - sha256 = "091b79667f16ae245785956c490fe05ee26970a89f8ecdbe858ae3510d725088", - strip_prefix = "github.com/armon/consul-api@v0.0.0-20180202201655-eb2c6b5be1b6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/armon/consul-api/com_github_armon_consul_api-v0.0.0-20180202201655-eb2c6b5be1b6.zip", - ], - ) - go_repository( - name = "com_github_armon_go_metrics", - build_file_proto_mode = "disable_global", - importpath = "github.com/armon/go-metrics", - sha256 = "dba0cd2b5d068409eb4acbb1cf14544252068339fcf49e7dc7f3a778bb843d53", - strip_prefix = "github.com/armon/go-metrics@v0.3.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/armon/go-metrics/com_github_armon_go_metrics-v0.3.3.zip", - ], - ) - go_repository( - name = "com_github_armon_go_radix", - build_file_proto_mode = "disable_global", - importpath = "github.com/armon/go-radix", - sha256 = "df93c816505baf12c3efe61328dc6f8fa42438f68f80b0b3725cae957d021c90", - strip_prefix = "github.com/armon/go-radix@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/armon/go-radix/com_github_armon_go_radix-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_armon_go_socks5", - build_file_proto_mode = "disable_global", - importpath = "github.com/armon/go-socks5", - sha256 = "f473e6dce826a0552639833cf72cfaa8bc7141daa7b537622d7f78eacfd9dfb3", - strip_prefix = "github.com/armon/go-socks5@v0.0.0-20160902184237-e75332964ef5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/armon/go-socks5/com_github_armon_go_socks5-v0.0.0-20160902184237-e75332964ef5.zip", - ], - ) - go_repository( - name = "com_github_aryann_difflib", - build_file_proto_mode = "disable_global", - importpath = "github.com/aryann/difflib", - sha256 = "973aae50e3d85569e1f0f6cbca78bf9b5896ce53d0534422a7db46f947b50764", - strip_prefix = "github.com/aryann/difflib@v0.0.0-20170710044230-e206f873d14a", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aryann/difflib/com_github_aryann_difflib-v0.0.0-20170710044230-e206f873d14a.zip", - ], - ) - go_repository( - name = "com_github_asaskevich_govalidator", - build_file_proto_mode = "disable_global", - importpath = "github.com/asaskevich/govalidator", - sha256 = "9b846e311015bbb7854cf001d5717d6fd91a580ac6315977ae7395256e18d729", - strip_prefix = "github.com/asaskevich/govalidator@v0.0.0-20200907205600-7a23bdc65eef", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/asaskevich/govalidator/com_github_asaskevich_govalidator-v0.0.0-20200907205600-7a23bdc65eef.zip", - ], - ) - go_repository( - name = "com_github_aws_aws_lambda_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/aws/aws-lambda-go", - sha256 = "8cfc5400798abd2840f456c75265f8fba4ae488e32ca2af9a5c8073fb219ea82", - strip_prefix = "github.com/aws/aws-lambda-go@v1.13.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aws/aws-lambda-go/com_github_aws_aws_lambda_go-v1.13.3.zip", - ], - ) - go_repository( - name = "com_github_aws_aws_sdk_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/aws/aws-sdk-go", - sha256 = "c0c481d28af88f621fb3fdeacc1e5d32f69a1bb83d0ee959f95ce89e4e2d0494", - strip_prefix = "github.com/aws/aws-sdk-go@v1.40.37", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aws/aws-sdk-go/com_github_aws_aws_sdk_go-v1.40.37.zip", - ], - ) - go_repository( - name = "com_github_aws_aws_sdk_go_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/aws/aws-sdk-go-v2", - sha256 = "546b4f58c58aedf988945dc4709cf3af67a639ed94e0cf4df58389e9f9b345d8", - strip_prefix = "github.com/aws/aws-sdk-go-v2@v1.9.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aws/aws-sdk-go-v2/com_github_aws_aws_sdk_go_v2-v1.9.1.zip", - ], - ) - go_repository( - name = "com_github_aws_aws_sdk_go_v2_config", - build_file_proto_mode = "disable_global", - importpath = "github.com/aws/aws-sdk-go-v2/config", - sha256 = "7a9129c2cf9cdd5f2e74cae969c23a4212f040f08a73b03880c2d34faad0f887", - strip_prefix = "github.com/aws/aws-sdk-go-v2/config@v1.8.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aws/aws-sdk-go-v2/config/com_github_aws_aws_sdk_go_v2_config-v1.8.2.zip", - ], - ) - go_repository( - name = "com_github_aws_aws_sdk_go_v2_credentials", - build_file_proto_mode = "disable_global", - importpath = "github.com/aws/aws-sdk-go-v2/credentials", - sha256 = "b8d47052b7527e524589fcaf2e25e7cd8bbb4ebc176262704555d8fa9270a695", - strip_prefix = "github.com/aws/aws-sdk-go-v2/credentials@v1.4.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aws/aws-sdk-go-v2/credentials/com_github_aws_aws_sdk_go_v2_credentials-v1.4.2.zip", - ], - ) - go_repository( - name = "com_github_aws_aws_sdk_go_v2_feature_ec2_imds", - build_file_proto_mode = "disable_global", - importpath = "github.com/aws/aws-sdk-go-v2/feature/ec2/imds", - sha256 = "74cd015671e1446d67633aca7eab28f28a77d0cb103d96f167eef40beeeda3e1", - strip_prefix = "github.com/aws/aws-sdk-go-v2/feature/ec2/imds@v1.5.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/com_github_aws_aws_sdk_go_v2_feature_ec2_imds-v1.5.1.zip", - ], - ) - go_repository( - name = "com_github_aws_aws_sdk_go_v2_internal_ini", - build_file_proto_mode = "disable_global", - importpath = "github.com/aws/aws-sdk-go-v2/internal/ini", - sha256 = "e5ae7a3f32399258561cab83199c1ec9d30d32e771ce7a877c64c208a6cea27f", - strip_prefix = "github.com/aws/aws-sdk-go-v2/internal/ini@v1.2.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aws/aws-sdk-go-v2/internal/ini/com_github_aws_aws_sdk_go_v2_internal_ini-v1.2.3.zip", - ], - ) - go_repository( - name = "com_github_aws_aws_sdk_go_v2_service_ec2", - build_file_proto_mode = "disable_global", - importpath = "github.com/aws/aws-sdk-go-v2/service/ec2", - sha256 = "384c3420c234109162eb46a07ea406323a0d4368828d1263012aa843816bd198", - strip_prefix = "github.com/aws/aws-sdk-go-v2/service/ec2@v1.18.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aws/aws-sdk-go-v2/service/ec2/com_github_aws_aws_sdk_go_v2_service_ec2-v1.18.0.zip", - ], - ) - go_repository( - name = "com_github_aws_aws_sdk_go_v2_service_iam", - build_file_proto_mode = "disable_global", - importpath = "github.com/aws/aws-sdk-go-v2/service/iam", - sha256 = "4181fee25ea8b9b9375fea74bc2e6abc2e7116e2db528c12986c14d2ecc675b0", - strip_prefix = "github.com/aws/aws-sdk-go-v2/service/iam@v1.10.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aws/aws-sdk-go-v2/service/iam/com_github_aws_aws_sdk_go_v2_service_iam-v1.10.0.zip", - ], - ) - go_repository( - name = "com_github_aws_aws_sdk_go_v2_service_internal_presigned_url", - build_file_proto_mode = "disable_global", - importpath = "github.com/aws/aws-sdk-go-v2/service/internal/presigned-url", - sha256 = "1705ae1c40d49cbed56d416850c84eeca9338dfbb014bc7b8021658153e1f6f6", - strip_prefix = "github.com/aws/aws-sdk-go-v2/service/internal/presigned-url@v1.3.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/com_github_aws_aws_sdk_go_v2_service_internal_presigned_url-v1.3.1.zip", - ], - ) - go_repository( - name = "com_github_aws_aws_sdk_go_v2_service_sso", - build_file_proto_mode = "disable_global", - importpath = "github.com/aws/aws-sdk-go-v2/service/sso", - sha256 = "0f9fbe0b009919a72907e198a72ad72fd406ad9272395b4f2bf50ae9d6478b2d", - strip_prefix = "github.com/aws/aws-sdk-go-v2/service/sso@v1.4.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aws/aws-sdk-go-v2/service/sso/com_github_aws_aws_sdk_go_v2_service_sso-v1.4.1.zip", - ], - ) - go_repository( - name = "com_github_aws_aws_sdk_go_v2_service_sts", - build_file_proto_mode = "disable_global", - importpath = "github.com/aws/aws-sdk-go-v2/service/sts", - sha256 = "046ae61b43524dd22bf8ce8d2bbf51e337cf91889db47b83121b88658c58a0fd", - strip_prefix = "github.com/aws/aws-sdk-go-v2/service/sts@v1.7.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aws/aws-sdk-go-v2/service/sts/com_github_aws_aws_sdk_go_v2_service_sts-v1.7.1.zip", - ], - ) - go_repository( - name = "com_github_aws_smithy_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/aws/smithy-go", - sha256 = "32b0e7b2c239ee27904c46ac4910725ad45737c118601c161ab7d2a9948197b5", - strip_prefix = "github.com/aws/smithy-go@v1.8.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aws/smithy-go/com_github_aws_smithy_go-v1.8.0.zip", - ], - ) - go_repository( - name = "com_github_axiomhq_hyperloglog", - build_file_proto_mode = "disable_global", - importpath = "github.com/axiomhq/hyperloglog", - sha256 = "812834322ee2ca50dc36f91f9ac3f2cde4631af2f9c330b1271c78b46024a540", - strip_prefix = "github.com/axiomhq/hyperloglog@v0.0.0-20181223111420-4b99d0c2c99e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/axiomhq/hyperloglog/com_github_axiomhq_hyperloglog-v0.0.0-20181223111420-4b99d0c2c99e.zip", - ], - ) - go_repository( - name = "com_github_aymerick_raymond", - build_file_proto_mode = "disable_global", - importpath = "github.com/aymerick/raymond", - sha256 = "0a759716a73b587a436b3b4a95416a58bb1ffa1decf2cd7a92f1eeb2f9c654c1", - strip_prefix = "github.com/aymerick/raymond@v2.0.3-0.20180322193309-b565731e1464+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/aymerick/raymond/com_github_aymerick_raymond-v2.0.3-0.20180322193309-b565731e1464+incompatible.zip", - ], - ) - go_repository( - name = "com_github_azure_azure_pipeline_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/azure-pipeline-go", - sha256 = "5881763a04c7705d2f348bfe18ec56266499265487d99fe448ded9874f4f3672", - strip_prefix = "github.com/Azure/azure-pipeline-go@v0.2.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/azure-pipeline-go/com_github_azure_azure_pipeline_go-v0.2.3.zip", - ], - ) - go_repository( - name = "com_github_azure_azure_sdk_for_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/azure-sdk-for-go", - sha256 = "7232ccaf96ab411dce27e8c61f4ec0e20835f60e192ffc7b56b7c3a308e29978", - strip_prefix = "github.com/Azure/azure-sdk-for-go@v57.1.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/azure-sdk-for-go/com_github_azure_azure_sdk_for_go-v57.1.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_azure_azure_storage_blob_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/azure-storage-blob-go", - sha256 = "b327f049492efbfbf81173148cd96b9009dcbc1a5bfce48c2d186c77bd296397", - strip_prefix = "github.com/Azure/azure-storage-blob-go@v0.14.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/azure-storage-blob-go/com_github_azure_azure_storage_blob_go-v0.14.0.zip", - ], - ) - go_repository( - name = "com_github_azure_go_ansiterm", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/go-ansiterm", - sha256 = "b7a14d18891abef8b8a2e622f62a3cebeac32f9f1223dc9d62a6f8769861aaf2", - strip_prefix = "github.com/Azure/go-ansiterm@v0.0.0-20170929234023-d6e3b3328b78", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/go-ansiterm/com_github_azure_go_ansiterm-v0.0.0-20170929234023-d6e3b3328b78.zip", - ], - ) - go_repository( - name = "com_github_azure_go_autorest", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/go-autorest", - sha256 = "89ac786da5b108e594bb1fbbf8f39a822fc1d994be1ff7cc6e860e8b45f3d80c", - strip_prefix = "github.com/Azure/go-autorest@v14.2.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/go-autorest/com_github_azure_go_autorest-v14.2.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_azure_go_autorest_autorest", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/go-autorest/autorest", - sha256 = "b5a184bbbec884260a5f4edf39bfd8fe5dc11c70199bcb4a69cb8f3e86b65d87", - strip_prefix = "github.com/Azure/go-autorest/autorest@v0.11.20", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/go-autorest/autorest/com_github_azure_go_autorest_autorest-v0.11.20.zip", - ], - ) - go_repository( - name = "com_github_azure_go_autorest_autorest_adal", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/go-autorest/autorest/adal", - sha256 = "791f1d559e2c4d99f4d29465fd71f5589e368e2087701b78970ad8dcc7be6299", - strip_prefix = "github.com/Azure/go-autorest/autorest/adal@v0.9.15", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/go-autorest/autorest/adal/com_github_azure_go_autorest_autorest_adal-v0.9.15.zip", - ], - ) - go_repository( - name = "com_github_azure_go_autorest_autorest_azure_auth", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/go-autorest/autorest/azure/auth", - sha256 = "7b50ba475d5a8dfcdd37fb5b53ece9e6d6150257d55c279347653ee143518c6f", - strip_prefix = "github.com/Azure/go-autorest/autorest/azure/auth@v0.5.8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/go-autorest/autorest/azure/auth/com_github_azure_go_autorest_autorest_azure_auth-v0.5.8.zip", - ], - ) - go_repository( - name = "com_github_azure_go_autorest_autorest_azure_cli", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/go-autorest/autorest/azure/cli", - sha256 = "53e5162b6d72f1ab39119713cf3862a287e9fc61439d06d30378daf3e7bf1b7d", - strip_prefix = "github.com/Azure/go-autorest/autorest/azure/cli@v0.4.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/go-autorest/autorest/azure/cli/com_github_azure_go_autorest_autorest_azure_cli-v0.4.3.zip", - ], - ) - go_repository( - name = "com_github_azure_go_autorest_autorest_date", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/go-autorest/autorest/date", - sha256 = "7b59c0421eaf8549f20d17aab7e3e4621e1798de1119dac65a04c110d110d64d", - strip_prefix = "github.com/Azure/go-autorest/autorest/date@v0.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/go-autorest/autorest/date/com_github_azure_go_autorest_autorest_date-v0.3.0.zip", - ], - ) - go_repository( - name = "com_github_azure_go_autorest_autorest_mocks", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/go-autorest/autorest/mocks", - sha256 = "ccf8e9538ec800b2b9f4f2abed30e1bafe1e26487a9d0239af286de60c9ec0b0", - strip_prefix = "github.com/Azure/go-autorest/autorest/mocks@v0.4.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/go-autorest/autorest/mocks/com_github_azure_go_autorest_autorest_mocks-v0.4.1.zip", - ], - ) - go_repository( - name = "com_github_azure_go_autorest_autorest_to", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/go-autorest/autorest/to", - sha256 = "d5b92f83195b4cdc690d1f015a52678ba1300485049ef27489b112a1dc056e93", - strip_prefix = "github.com/Azure/go-autorest/autorest/to@v0.4.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/go-autorest/autorest/to/com_github_azure_go_autorest_autorest_to-v0.4.0.zip", - ], - ) - go_repository( - name = "com_github_azure_go_autorest_autorest_validation", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/go-autorest/autorest/validation", - sha256 = "70c6a2f246af440cb891028ffe32546fe31de53ffab5f2f93f6c1652efd549c3", - strip_prefix = "github.com/Azure/go-autorest/autorest/validation@v0.3.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/go-autorest/autorest/validation/com_github_azure_go_autorest_autorest_validation-v0.3.1.zip", - ], - ) - go_repository( - name = "com_github_azure_go_autorest_logger", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/go-autorest/logger", - sha256 = "90c84e126b503027f69d232f4ce5758ae01d08ea729c71539ebff851f2477b49", - strip_prefix = "github.com/Azure/go-autorest/logger@v0.2.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/go-autorest/logger/com_github_azure_go_autorest_logger-v0.2.1.zip", - ], - ) - go_repository( - name = "com_github_azure_go_autorest_tracing", - build_file_proto_mode = "disable_global", - importpath = "github.com/Azure/go-autorest/tracing", - sha256 = "b7296ba64ecae67c83ae1c89da47c6f65c2ff0807027e301daccab32673914b3", - strip_prefix = "github.com/Azure/go-autorest/tracing@v0.6.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Azure/go-autorest/tracing/com_github_azure_go_autorest_tracing-v0.6.0.zip", - ], - ) - go_repository( - name = "com_github_bazelbuild_remote_apis", - build_file_proto_mode = "disable_global", - importpath = "github.com/bazelbuild/remote-apis", - sha256 = "b0e976769bbe7c63773b50b407c952c0d1525b6d26b3585e16e09cb1cd195e75", - strip_prefix = "github.com/bazelbuild/remote-apis@v0.0.0-20200708200203-1252343900d9", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bazelbuild/remote-apis/com_github_bazelbuild_remote_apis-v0.0.0-20200708200203-1252343900d9.zip", - ], - ) - go_repository( - name = "com_github_bazelbuild_rules_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/bazelbuild/rules_go", - sha256 = "0f69d51e54c1012f62434b68e6d49e2e1c1371a493926da58063e8461aa2b9ff", - strip_prefix = "github.com/bazelbuild/rules_go@v0.26.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bazelbuild/rules_go/com_github_bazelbuild_rules_go-v0.26.0.zip", - ], - ) - go_repository( - name = "com_github_benbjohnson_clock", - build_file_proto_mode = "disable_global", - importpath = "github.com/benbjohnson/clock", - sha256 = "d04e441d7f577f7861db72305478105dc75fd7030307a0fa325e328500283445", - strip_prefix = "github.com/benbjohnson/clock@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/benbjohnson/clock/com_github_benbjohnson_clock-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_benbjohnson_immutable", - build_file_proto_mode = "disable_global", - importpath = "github.com/benbjohnson/immutable", - sha256 = "0647fb6491c6606945e04f2c83b4163b9cf3584550f387695c32f262efa198b7", - strip_prefix = "github.com/benbjohnson/immutable@v0.2.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/benbjohnson/immutable/com_github_benbjohnson_immutable-v0.2.1.zip", - ], - ) - go_repository( - name = "com_github_benbjohnson_tmpl", - build_file_proto_mode = "disable_global", - importpath = "github.com/benbjohnson/tmpl", - sha256 = "7341fd268e36500455f8f0efab16db29525f2483c0fc8dca1e81f9c42a10b633", - strip_prefix = "github.com/benbjohnson/tmpl@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/benbjohnson/tmpl/com_github_benbjohnson_tmpl-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_beorn7_perks", - build_file_proto_mode = "disable_global", - importpath = "github.com/beorn7/perks", - sha256 = "25bd9e2d94aca770e6dbc1f53725f84f6af4432f631d35dd2c46f96ef0512f1a", - strip_prefix = "github.com/beorn7/perks@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/beorn7/perks/com_github_beorn7_perks-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_bgentry_go_netrc", - build_file_proto_mode = "disable_global", - importpath = "github.com/bgentry/go-netrc", - sha256 = "59fbb1e8e307ccd7052f77186990d744284b186e8b1c5ebdfb12405ae8d7f935", - strip_prefix = "github.com/bgentry/go-netrc@v0.0.0-20140422174119-9fd32a8b3d3d", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bgentry/go-netrc/com_github_bgentry_go_netrc-v0.0.0-20140422174119-9fd32a8b3d3d.zip", - ], - ) - go_repository( - name = "com_github_bgentry_speakeasy", - build_file_proto_mode = "disable_global", - importpath = "github.com/bgentry/speakeasy", - sha256 = "d4bfd48b9bf68c87f92c94478ac910bcdab272e15eb909d58f1fb939233f75f0", - strip_prefix = "github.com/bgentry/speakeasy@v0.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bgentry/speakeasy/com_github_bgentry_speakeasy-v0.1.0.zip", - ], - ) - go_repository( - name = "com_github_biogo_store", - build_file_proto_mode = "disable_global", - importpath = "github.com/biogo/store", - sha256 = "26551f8829c5ada84a68ef240732375be6747252aba423cf5c88bc03002c3600", - strip_prefix = "github.com/biogo/store@v0.0.0-20160505134755-913427a1d5e8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/biogo/store/com_github_biogo_store-v0.0.0-20160505134755-913427a1d5e8.zip", - ], - ) - go_repository( - name = "com_github_bitly_go_hostpool", - build_file_proto_mode = "disable_global", - importpath = "github.com/bitly/go-hostpool", - sha256 = "9a55584d7fa2c1639d0ea11cd5b437786c2eadc2401d825e699ad6445fc8e476", - strip_prefix = "github.com/bitly/go-hostpool@v0.0.0-20171023180738-a3a6125de932", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bitly/go-hostpool/com_github_bitly_go_hostpool-v0.0.0-20171023180738-a3a6125de932.zip", - ], - ) - go_repository( - name = "com_github_bitly_go_simplejson", - build_file_proto_mode = "disable_global", - importpath = "github.com/bitly/go-simplejson", - sha256 = "53930281dc7fba8947c1b1f07c82952a38dcaefae23bd3c8e71d70a6daa6cb40", - strip_prefix = "github.com/bitly/go-simplejson@v0.5.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bitly/go-simplejson/com_github_bitly_go_simplejson-v0.5.0.zip", - ], - ) - go_repository( - name = "com_github_bketelsen_crypt", - build_file_proto_mode = "disable_global", - importpath = "github.com/bketelsen/crypt", - sha256 = "ab24f8c0386cc7fce86f4e6680c32214e1e597980bd80127ac84e71ace6763da", - strip_prefix = "github.com/bketelsen/crypt@v0.0.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bketelsen/crypt/com_github_bketelsen_crypt-v0.0.4.zip", - ], - ) - go_repository( - name = "com_github_blang_semver", - build_file_proto_mode = "disable_global", - importpath = "github.com/blang/semver", - sha256 = "8d032399cf835b93f7cf641b5477a31a002059eed7888a775f97bd3e9677ad3c", - strip_prefix = "github.com/blang/semver@v3.5.1+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/blang/semver/com_github_blang_semver-v3.5.1+incompatible.zip", - ], - ) - go_repository( - name = "com_github_bmizerany_assert", - build_file_proto_mode = "disable_global", - importpath = "github.com/bmizerany/assert", - sha256 = "2532a167df77ade7e8012f07c0e3db4d4c15abdb7ffa7b05e1d961408da9a539", - strip_prefix = "github.com/bmizerany/assert@v0.0.0-20160611221934-b7ed37b82869", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bmizerany/assert/com_github_bmizerany_assert-v0.0.0-20160611221934-b7ed37b82869.zip", - ], - ) - go_repository( - name = "com_github_bmizerany_pat", - build_file_proto_mode = "disable_global", - importpath = "github.com/bmizerany/pat", - sha256 = "ed04bed4d193e25371ebc6524984da4af9ece5c107fcc82d5aa4914b726706d2", - strip_prefix = "github.com/bmizerany/pat@v0.0.0-20170815010413-6226ea591a40", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bmizerany/pat/com_github_bmizerany_pat-v0.0.0-20170815010413-6226ea591a40.zip", - ], - ) - go_repository( - name = "com_github_bmizerany_perks", - build_file_proto_mode = "disable_global", - importpath = "github.com/bmizerany/perks", - sha256 = "b78e7083e73b6c2d63a30d073515b2a03dbe3115171601009211208ee0c6046e", - strip_prefix = "github.com/bmizerany/perks@v0.0.0-20141205001514-d9a9656a3a4b", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bmizerany/perks/com_github_bmizerany_perks-v0.0.0-20141205001514-d9a9656a3a4b.zip", - ], - ) - go_repository( - name = "com_github_boltdb_bolt", - build_file_proto_mode = "disable_global", - importpath = "github.com/boltdb/bolt", - sha256 = "ecaf17b0dbe7c85a017704c72667b2526b492b1a753ce7302a27dd2fb2e6ee79", - strip_prefix = "github.com/boltdb/bolt@v1.3.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/boltdb/bolt/com_github_boltdb_bolt-v1.3.1.zip", - ], - ) - go_repository( - name = "com_github_bonitoo_io_go_sql_bigquery", - build_file_proto_mode = "disable_global", - importpath = "github.com/bonitoo-io/go-sql-bigquery", - sha256 = "44b0e33b6573e46aa1c15837a8d9433a1e07ca232be3ea89879cad11bdfea617", - strip_prefix = "github.com/bonitoo-io/go-sql-bigquery@v0.3.4-1.4.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bonitoo-io/go-sql-bigquery/com_github_bonitoo_io_go_sql_bigquery-v0.3.4-1.4.0.zip", - ], - ) - go_repository( - name = "com_github_bradleyfalzon_ghinstallation_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/bradleyfalzon/ghinstallation/v2", - sha256 = "cb473a9105ac77549a8e04a989cc95e72dc615b3993b9ee16d75da8c6ef23bd4", - strip_prefix = "github.com/bradleyfalzon/ghinstallation/v2@v2.0.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bradleyfalzon/ghinstallation/v2/com_github_bradleyfalzon_ghinstallation_v2-v2.0.3.zip", - ], - ) - go_repository( - name = "com_github_broady_gogeohash", - build_file_proto_mode = "disable_global", - importpath = "github.com/broady/gogeohash", - sha256 = "e68cf873bace15902feaee2b42a139428e816e120a213901b4792f9006e38984", - strip_prefix = "github.com/broady/gogeohash@v0.0.0-20120525094510-7b2c40d64042", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/broady/gogeohash/com_github_broady_gogeohash-v0.0.0-20120525094510-7b2c40d64042.zip", - ], - ) - go_repository( - name = "com_github_bshuster_repo_logrus_logstash_hook", - build_file_proto_mode = "disable_global", - importpath = "github.com/bshuster-repo/logrus-logstash-hook", - sha256 = "743aace72067cc91c91cc4137566372220db5e5c487e2fd8fb04b6e23fe29d07", - strip_prefix = "github.com/bshuster-repo/logrus-logstash-hook@v0.4.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bshuster-repo/logrus-logstash-hook/com_github_bshuster_repo_logrus_logstash_hook-v0.4.1.zip", - ], - ) - go_repository( - name = "com_github_bsm_sarama_cluster", - build_file_proto_mode = "disable_global", - importpath = "github.com/bsm/sarama-cluster", - sha256 = "5926505c631af623184a1c95453f33f340724c207d5bdffcd5619f2121853a57", - strip_prefix = "github.com/bsm/sarama-cluster@v2.1.13+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bsm/sarama-cluster/com_github_bsm_sarama_cluster-v2.1.13+incompatible.zip", - ], - ) - go_repository( - name = "com_github_buchgr_bazel_remote", - build_file_proto_mode = "disable_global", - importpath = "github.com/buchgr/bazel-remote", - patch_args = ["-p1"], - patches = [ - "@cockroach//build/patches:com_github_buchgr_bazel_remote.patch", - ], - sha256 = "7ab70784fddbc59e956501b2bc15a30c36baedb34df0d26009607d80c9e129e2", - strip_prefix = "github.com/buchgr/bazel-remote@v1.3.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/buchgr/bazel-remote/com_github_buchgr_bazel_remote-v1.3.3.zip", - ], - ) - go_repository( - name = "com_github_bufbuild_buf", - build_file_proto_mode = "disable_global", - importpath = "github.com/bufbuild/buf", - sha256 = "a0bf6cfe3b90c931022d2700b62f1b272d7e2ab62096c3df24551e3f5a575a52", - strip_prefix = "github.com/bufbuild/buf@v0.56.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bufbuild/buf/com_github_bufbuild_buf-v0.56.0.zip", - ], - ) - go_repository( - name = "com_github_buger_jsonparser", - build_file_proto_mode = "disable_global", - importpath = "github.com/buger/jsonparser", - sha256 = "336c5facdeef6466131bf24c06f3ae1a40d038a7e6fdc3fcf3ab308ff50300c1", - strip_prefix = "github.com/buger/jsonparser@v0.0.0-20200322175846-f7e751efca13", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/buger/jsonparser/com_github_buger_jsonparser-v0.0.0-20200322175846-f7e751efca13.zip", - ], - ) - go_repository( - name = "com_github_bugsnag_bugsnag_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/bugsnag/bugsnag-go", - sha256 = "e3b275ae2552bd1fa60f9cf728232ee4bde66afa0da772c20cb0a105818cf1bf", - strip_prefix = "github.com/bugsnag/bugsnag-go@v0.0.0-20141110184014-b1d153021fcd", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bugsnag/bugsnag-go/com_github_bugsnag_bugsnag_go-v0.0.0-20141110184014-b1d153021fcd.zip", - ], - ) - go_repository( - name = "com_github_bugsnag_osext", - build_file_proto_mode = "disable_global", - importpath = "github.com/bugsnag/osext", - sha256 = "b29adb2508906ea508ba91f404ba33e709d43e037cec96d550335b8e756108bf", - strip_prefix = "github.com/bugsnag/osext@v0.0.0-20130617224835-0dd3f918b21b", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bugsnag/osext/com_github_bugsnag_osext-v0.0.0-20130617224835-0dd3f918b21b.zip", - ], - ) - go_repository( - name = "com_github_bugsnag_panicwrap", - build_file_proto_mode = "disable_global", - importpath = "github.com/bugsnag/panicwrap", - sha256 = "c88454a2204604baecd45fa06bab717034e501b406c15470dba4bc8902356401", - strip_prefix = "github.com/bugsnag/panicwrap@v0.0.0-20151223152923-e2c28503fcd0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bugsnag/panicwrap/com_github_bugsnag_panicwrap-v0.0.0-20151223152923-e2c28503fcd0.zip", - ], - ) - go_repository( - name = "com_github_burntsushi_toml", - build_file_proto_mode = "disable_global", - importpath = "github.com/BurntSushi/toml", - sha256 = "3f2cf2328cdfac39db5ae69c84201f961b50d15792f77de0abe87089836a932c", - strip_prefix = "github.com/BurntSushi/toml@v0.4.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/BurntSushi/toml/com_github_burntsushi_toml-v0.4.1.zip", - ], - ) - go_repository( - name = "com_github_burntsushi_xgb", - build_file_proto_mode = "disable_global", - importpath = "github.com/BurntSushi/xgb", - sha256 = "f52962c7fbeca81ea8a777d1f8b1f1d25803dc437fbb490f253344232884328e", - strip_prefix = "github.com/BurntSushi/xgb@v0.0.0-20160522181843-27f122750802", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/BurntSushi/xgb/com_github_burntsushi_xgb-v0.0.0-20160522181843-27f122750802.zip", - ], - ) - go_repository( - name = "com_github_burntsushi_xgbutil", - build_file_proto_mode = "disable_global", - importpath = "github.com/BurntSushi/xgbutil", - sha256 = "680bb03650f0f43760cab53ec7b3b159ea489f04f379bbba25b5a8d77a2de2e0", - strip_prefix = "github.com/BurntSushi/xgbutil@v0.0.0-20160919175755-f7c97cef3b4e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/BurntSushi/xgbutil/com_github_burntsushi_xgbutil-v0.0.0-20160919175755-f7c97cef3b4e.zip", - ], - ) - go_repository( - name = "com_github_c_bata_go_prompt", - build_file_proto_mode = "disable_global", - importpath = "github.com/c-bata/go-prompt", - sha256 = "ffe765d86d90afdf8519def13cb027c94a1fbafea7a18e9625210786663436c4", - strip_prefix = "github.com/c-bata/go-prompt@v0.2.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/c-bata/go-prompt/com_github_c_bata_go_prompt-v0.2.2.zip", - ], - ) - go_repository( - name = "com_github_cactus_go_statsd_client_statsd", - build_file_proto_mode = "disable_global", - importpath = "github.com/cactus/go-statsd-client/statsd", - sha256 = "7823c66e8c56c950643954712edbc9974669a10fe0041b67c9bd81dabd0538c0", - strip_prefix = "github.com/cactus/go-statsd-client/statsd@v0.0.0-20191106001114-12b4e2b38748", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cactus/go-statsd-client/statsd/com_github_cactus_go_statsd_client_statsd-v0.0.0-20191106001114-12b4e2b38748.zip", - ], - ) - go_repository( - name = "com_github_casbin_casbin_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/casbin/casbin/v2", - sha256 = "753df5c3fa5de68592e95fd55427f264dc7590a0bf781a77eb56ae721d6d3351", - strip_prefix = "github.com/casbin/casbin/v2@v2.1.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/casbin/casbin/v2/com_github_casbin_casbin_v2-v2.1.2.zip", - ], - ) - go_repository( - name = "com_github_cenkalti_backoff", - build_file_proto_mode = "disable_global", - importpath = "github.com/cenkalti/backoff", - sha256 = "f8196815a1b4d25e5b8158029d5264801fc8aa5ff128ccf30752fd169693d43b", - strip_prefix = "github.com/cenkalti/backoff@v2.2.1+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cenkalti/backoff/com_github_cenkalti_backoff-v2.2.1+incompatible.zip", - ], - ) - go_repository( - name = "com_github_cenkalti_backoff_v3", - build_file_proto_mode = "disable_global", - importpath = "github.com/cenkalti/backoff/v3", - sha256 = "c69bf77e7b43cb3935d763c24af3810d9869a664bbcd26ffad9d3dc1bf602006", - strip_prefix = "github.com/cenkalti/backoff/v3@v3.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cenkalti/backoff/v3/com_github_cenkalti_backoff_v3-v3.0.0.zip", - ], - ) - go_repository( - name = "com_github_cenkalti_backoff_v4", - build_file_proto_mode = "disable_global", - importpath = "github.com/cenkalti/backoff/v4", - sha256 = "de69f5db190ee0f2c441e50e4bf607853ab99512a183a5713803888ced502dde", - strip_prefix = "github.com/cenkalti/backoff/v4@v4.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cenkalti/backoff/v4/com_github_cenkalti_backoff_v4-v4.1.1.zip", - ], - ) - go_repository( - name = "com_github_census_instrumentation_opencensus_proto", - build_file_proto_mode = "disable_global", - importpath = "github.com/census-instrumentation/opencensus-proto", - sha256 = "b3c09f3e635d47b4138695a547d1f2c7138f382cbe5a8b5865b66a8e08233461", - strip_prefix = "github.com/census-instrumentation/opencensus-proto@v0.2.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/census-instrumentation/opencensus-proto/com_github_census_instrumentation_opencensus_proto-v0.2.1.zip", - ], - ) - go_repository( - name = "com_github_certifi_gocertifi", - build_file_proto_mode = "disable_global", - importpath = "github.com/certifi/gocertifi", - sha256 = "11d525844c3dd711fb0ae31acc9ebd8a4d602215f14ff24ad1764ecb48464849", - strip_prefix = "github.com/certifi/gocertifi@v0.0.0-20200922220541-2c3bb06c6054", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/certifi/gocertifi/com_github_certifi_gocertifi-v0.0.0-20200922220541-2c3bb06c6054.zip", - ], - ) - go_repository( - name = "com_github_cespare_xxhash", - build_file_proto_mode = "disable_global", - importpath = "github.com/cespare/xxhash", - sha256 = "fe98c56670b21631f7fd3305a29a3b17e86a6cce3876a2119460717a18538e2e", - strip_prefix = "github.com/cespare/xxhash@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cespare/xxhash/com_github_cespare_xxhash-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_cespare_xxhash_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/cespare/xxhash/v2", - sha256 = "ac641ac8330df61f677c87448fc679c47886087d2933a1e431556f423782ea38", - strip_prefix = "github.com/cespare/xxhash/v2@v2.1.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cespare/xxhash/v2/com_github_cespare_xxhash_v2-v2.1.2.zip", - ], - ) - go_repository( - name = "com_github_checkpoint_restore_go_criu_v4", - build_file_proto_mode = "disable_global", - importpath = "github.com/checkpoint-restore/go-criu/v4", - sha256 = "e0413b7c67d41b9e77207db083387d2eb300356541f9048c7ff0670ba7ace524", - strip_prefix = "github.com/checkpoint-restore/go-criu/v4@v4.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/checkpoint-restore/go-criu/v4/com_github_checkpoint_restore_go_criu_v4-v4.1.0.zip", - ], - ) - go_repository( - name = "com_github_chzyer_logex", - build_file_proto_mode = "disable_global", - importpath = "github.com/chzyer/logex", - sha256 = "2c94771c1e335a2c58a96444b3768b8e00297747d6ce7e7c14bab2e8b39d91bd", - strip_prefix = "github.com/chzyer/logex@v1.1.10", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/chzyer/logex/com_github_chzyer_logex-v1.1.10.zip", - ], - ) - go_repository( - name = "com_github_chzyer_readline", - build_file_proto_mode = "disable_global", - importpath = "github.com/chzyer/readline", - sha256 = "3dc842677887278fb33d25078d375ae6a7a94bb77a8d205ee2230b581b6947a6", - strip_prefix = "github.com/chzyer/readline@v0.0.0-20180603132655-2972be24d48e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/chzyer/readline/com_github_chzyer_readline-v0.0.0-20180603132655-2972be24d48e.zip", - ], - ) - go_repository( - name = "com_github_chzyer_test", - build_file_proto_mode = "disable_global", - importpath = "github.com/chzyer/test", - sha256 = "ad8550bed3c4a94bbef57b9fc5bb15806eaceda00925716404320580d60e2f7d", - strip_prefix = "github.com/chzyer/test@v0.0.0-20180213035817-a1ea475d72b1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/chzyer/test/com_github_chzyer_test-v0.0.0-20180213035817-a1ea475d72b1.zip", - ], - ) - go_repository( - name = "com_github_cilium_ebpf", - build_file_proto_mode = "disable_global", - importpath = "github.com/cilium/ebpf", - sha256 = "36e38f5c91cda71526cb171e48a4f2a05e7c60a1fc7269f0cae6471ed64709a5", - strip_prefix = "github.com/cilium/ebpf@v0.4.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cilium/ebpf/com_github_cilium_ebpf-v0.4.0.zip", - ], - ) - go_repository( - name = "com_github_circonus_labs_circonus_gometrics", - build_file_proto_mode = "disable_global", - importpath = "github.com/circonus-labs/circonus-gometrics", - sha256 = "d8081141497e3cd34844df66af016c7900d58b324fb689e17e57bc053d91c9ba", - strip_prefix = "github.com/circonus-labs/circonus-gometrics@v2.3.1+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/circonus-labs/circonus-gometrics/com_github_circonus_labs_circonus_gometrics-v2.3.1+incompatible.zip", - ], - ) - go_repository( - name = "com_github_circonus_labs_circonusllhist", - build_file_proto_mode = "disable_global", - importpath = "github.com/circonus-labs/circonusllhist", - sha256 = "4dc805d9735dd9ca9b8875c0ad23126abb5bc969c5a40c61b5bc891808dbdcb6", - strip_prefix = "github.com/circonus-labs/circonusllhist@v0.1.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/circonus-labs/circonusllhist/com_github_circonus_labs_circonusllhist-v0.1.3.zip", - ], - ) - go_repository( - name = "com_github_clbanning_x2j", - build_file_proto_mode = "disable_global", - importpath = "github.com/clbanning/x2j", - sha256 = "747daafe80e4ac504626c01a1d28b1a64b785586975a47b50d62853a444b72a0", - strip_prefix = "github.com/clbanning/x2j@v0.0.0-20191024224557-825249438eec", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/clbanning/x2j/com_github_clbanning_x2j-v0.0.0-20191024224557-825249438eec.zip", - ], - ) - go_repository( - name = "com_github_client9_misspell", - build_file_proto_mode = "disable_global", - importpath = "github.com/client9/misspell", - sha256 = "a3af206372e131dd10a68ac470c66a1b18eaf51c6afacb55b2e2a06e39b90728", - strip_prefix = "github.com/client9/misspell@v0.3.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/client9/misspell/com_github_client9_misspell-v0.3.4.zip", - ], - ) - go_repository( - name = "com_github_cloudykit_fastprinter", - build_file_proto_mode = "disable_global", - importpath = "github.com/CloudyKit/fastprinter", - sha256 = "7e6015de3e986e5de8bf7310887bb0d8c1c33d66c5aacbd706aeec524dfda765", - strip_prefix = "github.com/CloudyKit/fastprinter@v0.0.0-20200109182630-33d98a066a53", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/CloudyKit/fastprinter/com_github_cloudykit_fastprinter-v0.0.0-20200109182630-33d98a066a53.zip", - ], - ) - go_repository( - name = "com_github_cloudykit_jet", - build_file_proto_mode = "disable_global", - importpath = "github.com/CloudyKit/jet", - sha256 = "9191d5a10096ea10bbb4ea576131ba943a6ec600fd7358237e21f995240ec72f", - strip_prefix = "github.com/CloudyKit/jet@v2.1.3-0.20180809161101-62edd43e4f88+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/CloudyKit/jet/com_github_cloudykit_jet-v2.1.3-0.20180809161101-62edd43e4f88+incompatible.zip", - ], - ) - go_repository( - name = "com_github_cloudykit_jet_v3", - build_file_proto_mode = "disable_global", - importpath = "github.com/CloudyKit/jet/v3", - sha256 = "eba40af7c0be5a2c4b0cdff2475ae6e16cb7f1acb7531a02b77de06b9b4a527a", - strip_prefix = "github.com/CloudyKit/jet/v3@v3.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/CloudyKit/jet/v3/com_github_cloudykit_jet_v3-v3.0.0.zip", - ], - ) - go_repository( - name = "com_github_cncf_udpa_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/cncf/udpa/go", - sha256 = "a449fa94e58117a79c17577e39f72f695c4876f74cbd9142d512278192ca90aa", - strip_prefix = "github.com/cncf/udpa/go@v0.0.0-20210930031921-04548b0d99d4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cncf/udpa/go/com_github_cncf_udpa_go-v0.0.0-20210930031921-04548b0d99d4.zip", - ], - ) - go_repository( - name = "com_github_cncf_xds_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/cncf/xds/go", - sha256 = "eb86281e1e9cf6f83d25edbec0e3fd690570efa3414866d14c6a32b44931375d", - strip_prefix = "github.com/cncf/xds/go@v0.0.0-20211011173535-cb28da3451f1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cncf/xds/go/com_github_cncf_xds_go-v0.0.0-20211011173535-cb28da3451f1.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_apd", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/apd", - sha256 = "fef7ec2fae220f84bfacb17fbfc1b04a666ab7f6fc04f3ff6d2b1e05c380777d", - strip_prefix = "github.com/cockroachdb/apd@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/apd/com_github_cockroachdb_apd-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_apd_v3", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/apd/v3", - sha256 = "0571a4bf35a79df25f1e4a0b807ce3e30f7edbf69412d0272affaa925e25f625", - strip_prefix = "github.com/cockroachdb/apd/v3@v3.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/apd/v3/com_github_cockroachdb_apd_v3-v3.1.0.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_circuitbreaker", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/circuitbreaker", - sha256 = "52fdb5ba6a60e9a2f1db42d5b3c4c13cc5bb3947d5ce7f1bba9b0a14de71813a", - strip_prefix = "github.com/cockroachdb/circuitbreaker@v2.2.2-0.20190114160014-a614b14ccf63+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/circuitbreaker/com_github_cockroachdb_circuitbreaker-v2.2.2-0.20190114160014-a614b14ccf63+incompatible.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_cmux", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/cmux", - sha256 = "88f6f9cf33eb535658540b46f6222f029398e590a3ff9cc873d7d561ac6debf0", - strip_prefix = "github.com/cockroachdb/cmux@v0.0.0-20170110192607-30d10be49292", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/cmux/com_github_cockroachdb_cmux-v0.0.0-20170110192607-30d10be49292.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_cockroach_go_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/cockroach-go/v2", - sha256 = "c69c60f98ba1e3449bb60985b44fcfb0e8ae0fd4e3974abb1c997a0b9d5faca0", - strip_prefix = "github.com/cockroachdb/cockroach-go/v2@v2.2.6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/cockroach-go/v2/com_github_cockroachdb_cockroach_go_v2-v2.2.6.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_crlfmt", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/crlfmt", - sha256 = "452219ca74191eedc6f44a5088b5d64e6f75168b438ac9eafe2256b0db8dbcad", - strip_prefix = "github.com/cockroachdb/crlfmt@v0.0.0-20210128092314-b3eff0b87c79", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/crlfmt/com_github_cockroachdb_crlfmt-v0.0.0-20210128092314-b3eff0b87c79.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_datadriven", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/datadriven", - sha256 = "0f8fe6199b1c7c44cbd4ce9ac0f3f9e1d2f02263f409361e49445fad4a410ab8", - strip_prefix = "github.com/cockroachdb/datadriven@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/datadriven/com_github_cockroachdb_datadriven-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_errors", - build_directives = [ - "gazelle:resolve proto proto gogoproto/gogo.proto @com_github_gogo_protobuf//gogoproto:gogo_proto", - "gazelle:resolve proto go gogoproto/gogo.proto @com_github_gogo_protobuf//gogoproto", - "gazelle:go_proto_compilers @cockroach//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler", - "gazelle:go_grpc_compilers @cockroach//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler", - ], - build_file_proto_mode = "default", - importpath = "github.com/cockroachdb/errors", - sha256 = "ff3814544271799c80da14dadfe408efc4f66e02cbdf17b73e81614ed9f7ae43", - strip_prefix = "github.com/cockroachdb/errors@v1.9.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/errors/com_github_cockroachdb_errors-v1.9.0.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_go_test_teamcity", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/go-test-teamcity", - sha256 = "bac30148e525b79d004da84d16453ddd2d5cd20528e9187f1d7dac708335674b", - strip_prefix = "github.com/cockroachdb/go-test-teamcity@v0.0.0-20191211140407-cff980ad0a55", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/go-test-teamcity/com_github_cockroachdb_go_test_teamcity-v0.0.0-20191211140407-cff980ad0a55.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_gostdlib", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/gostdlib", - sha256 = "b3d43d8f95edf65f73a5348f29e1159823cac64b148f8d3bb48340bf55d70872", - strip_prefix = "github.com/cockroachdb/gostdlib@v1.13.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/gostdlib/com_github_cockroachdb_gostdlib-v1.13.0.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_logtags", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/logtags", - sha256 = "1972c3f171f118add3fd9e64bcea6cbb9959a3b7fa0ada308e8a7310813fea74", - strip_prefix = "github.com/cockroachdb/logtags@v0.0.0-20211118104740-dabe8e521a4f", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/logtags/com_github_cockroachdb_logtags-v0.0.0-20211118104740-dabe8e521a4f.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_pebble", - build_directives = [ - "gazelle:build_tags invariants", - ], - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/pebble", - patch_args = ["-p1"], - patches = [ - "@cockroach//build/patches:com_github_cockroachdb_pebble.patch", - ], - sha256 = "ceb4c2dd967f16765eefeb761c68c71e645633d8b7f65e0420b955607dcc005d", - strip_prefix = "github.com/cockroachdb/pebble@v0.0.0-20230526164143-d1171c6f3017", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20230526164143-d1171c6f3017.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_redact", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/redact", - sha256 = "7778b1e4485e4f17f35e5e592d87eb99c29e173ac9507801d000ad76dd0c261e", - strip_prefix = "github.com/cockroachdb/redact@v1.1.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/redact/com_github_cockroachdb_redact-v1.1.3.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_returncheck", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/returncheck", - sha256 = "ce92ba4352deec995b1f2eecf16eba7f5d51f5aa245a1c362dfe24c83d31f82b", - strip_prefix = "github.com/cockroachdb/returncheck@v0.0.0-20200612231554-92cdbca611dd", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/returncheck/com_github_cockroachdb_returncheck-v0.0.0-20200612231554-92cdbca611dd.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_sentry_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/sentry-go", - sha256 = "fbb2207d02aecfdd411b1357efe1192dbb827959e36b7cab7491731ac55935c9", - strip_prefix = "github.com/cockroachdb/sentry-go@v0.6.1-cockroachdb.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/sentry-go/com_github_cockroachdb_sentry_go-v0.6.1-cockroachdb.2.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_stress", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/stress", - sha256 = "ccc4cb7543b7eba12ff82602c85a627a8dba8ecbda67a9a1bf05fb4c56895ba6", - strip_prefix = "github.com/cockroachdb/stress@v0.0.0-20220310203902-58fb4627376e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/stress/com_github_cockroachdb_stress-v0.0.0-20220310203902-58fb4627376e.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_tools", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/tools", - sha256 = "37a3737dd23768b4997b2f0341d625658f5862cdbf808f7fbf3a7f9fd25913a7", - strip_prefix = "github.com/cockroachdb/tools@v0.0.0-20211112185054-642e51449b40", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/tools/com_github_cockroachdb_tools-v0.0.0-20211112185054-642e51449b40.zip", - ], - ) - go_repository( - name = "com_github_cockroachdb_ttycolor", - build_file_proto_mode = "disable_global", - importpath = "github.com/cockroachdb/ttycolor", - sha256 = "1260533510c89abd6d8af573a40f0246f6865d5091144dea509b2c48e7c61614", - strip_prefix = "github.com/cockroachdb/ttycolor@v0.0.0-20210902133924-c7d7dcdde4e8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/ttycolor/com_github_cockroachdb_ttycolor-v0.0.0-20210902133924-c7d7dcdde4e8.zip", - ], - ) - go_repository( - name = "com_github_codahale_hdrhistogram", - build_file_proto_mode = "disable_global", - importpath = "github.com/codahale/hdrhistogram", - sha256 = "e7e117da64da2f921b1f9dc57c524430a7f74a78c4b0bad718d85b08e8374e78", - strip_prefix = "github.com/codahale/hdrhistogram@v0.0.0-20161010025455-3a0bb77429bd", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/codahale/hdrhistogram/com_github_codahale_hdrhistogram-v0.0.0-20161010025455-3a0bb77429bd.zip", - ], - ) - go_repository( - name = "com_github_codefor_geohash", - build_file_proto_mode = "disable_global", - importpath = "github.com/Codefor/geohash", - sha256 = "1f9d85fc86919143b53f8c3078fd4d2ed0271faf2eabba4460d7709f4f94c1e7", - strip_prefix = "github.com/Codefor/geohash@v0.0.0-20140723084247-1b41c28e3a9d", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Codefor/geohash/com_github_codefor_geohash-v0.0.0-20140723084247-1b41c28e3a9d.zip", - ], - ) - go_repository( - name = "com_github_codegangsta_cli", - build_file_proto_mode = "disable_global", - importpath = "github.com/codegangsta/cli", - sha256 = "a5a237b9582cf92f0263865760457443bc061da1b1cda4dbf122e9ae53c8303b", - strip_prefix = "github.com/codegangsta/cli@v1.20.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/codegangsta/cli/com_github_codegangsta_cli-v1.20.0.zip", - ], - ) - go_repository( - name = "com_github_codegangsta_inject", - build_file_proto_mode = "disable_global", - importpath = "github.com/codegangsta/inject", - sha256 = "0a324d56992bffd288fa70a6d10eb9b8a9467665b0b1eb749ac6ae80e8977ee2", - strip_prefix = "github.com/codegangsta/inject@v0.0.0-20150114235600-33e0aa1cb7c0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/codegangsta/inject/com_github_codegangsta_inject-v0.0.0-20150114235600-33e0aa1cb7c0.zip", - ], - ) - go_repository( - name = "com_github_containerd_aufs", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/aufs", - sha256 = "66f63be768b16cdee12c6d040d4aa7c0e8af306c7620b0c18c1f636c8499ae52", - strip_prefix = "github.com/containerd/aufs@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/aufs/com_github_containerd_aufs-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_containerd_btrfs", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/btrfs", - sha256 = "b6098229f65fe790a52e4db949ae020d9ff00fcd82b90ecb1337291a5aa8f9da", - strip_prefix = "github.com/containerd/btrfs@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/btrfs/com_github_containerd_btrfs-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_containerd_cgroups", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/cgroups", - sha256 = "68ef11daf1ad2ade3fa34665536c2cd51cd3e38fd0af4993fca6e1455a6d560f", - strip_prefix = "github.com/containerd/cgroups@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/cgroups/com_github_containerd_cgroups-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_containerd_console", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/console", - sha256 = "53af3db950dc4c31bbf3aade4b15750996c31efb34157c643232c8fcc0d1939c", - strip_prefix = "github.com/containerd/console@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/console/com_github_containerd_console-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_containerd_containerd", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/containerd", - sha256 = "a88697b3fab925d50c5d0f10d6820ea42ca96b38dc52231ae7d4158c921e5190", - strip_prefix = "github.com/containerd/containerd@v1.5.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/containerd/com_github_containerd_containerd-v1.5.4.zip", - ], - ) - go_repository( - name = "com_github_containerd_continuity", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/continuity", - sha256 = "c0fd35ecdee36368382bb9a95ea66a50a0b1f64a3bc7de57f57d4b0b8d58237b", - strip_prefix = "github.com/containerd/continuity@v0.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/continuity/com_github_containerd_continuity-v0.1.0.zip", - ], - ) - go_repository( - name = "com_github_containerd_fifo", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/fifo", - sha256 = "6c0505fda39dbb0216326f55d9cdf7dd8a39367c0cf91d3e344fb177bfd7d639", - strip_prefix = "github.com/containerd/fifo@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/fifo/com_github_containerd_fifo-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_containerd_go_cni", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/go-cni", - sha256 = "a4d7aa24c80d4dc1c6ec75534db6c3dbca5be628469f266f36f675e071ebb3dc", - strip_prefix = "github.com/containerd/go-cni@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/go-cni/com_github_containerd_go_cni-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_containerd_go_runc", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/go-runc", - sha256 = "61097092c5da43412b54044ede11e84920c52f774c880537df3e1c302ce08951", - strip_prefix = "github.com/containerd/go-runc@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/go-runc/com_github_containerd_go_runc-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_containerd_imgcrypt", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/imgcrypt", - sha256 = "20cf0651cc892db6c9905451ca9efd85621cffde866c2cbf385765dfcb9509f6", - strip_prefix = "github.com/containerd/imgcrypt@v1.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/imgcrypt/com_github_containerd_imgcrypt-v1.1.1.zip", - ], - ) - go_repository( - name = "com_github_containerd_nri", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/nri", - sha256 = "db29e38861b46a6a1ae4b65072e8d1272e20d80c2e80d0615d93eaa5271126b7", - strip_prefix = "github.com/containerd/nri@v0.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/nri/com_github_containerd_nri-v0.1.0.zip", - ], - ) - go_repository( - name = "com_github_containerd_ttrpc", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/ttrpc", - sha256 = "34df7d5959857d33b749ce3e49527f1980a704e080f63cbbf93a4ced1fcc6e1a", - strip_prefix = "github.com/containerd/ttrpc@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/ttrpc/com_github_containerd_ttrpc-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_containerd_typeurl", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/typeurl", - sha256 = "af05054fc77d5d141066fda5ba24db4c1b7e418b934ab349d6ccd163e548f13b", - strip_prefix = "github.com/containerd/typeurl@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/typeurl/com_github_containerd_typeurl-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_containerd_zfs", - build_file_proto_mode = "disable_global", - importpath = "github.com/containerd/zfs", - sha256 = "e69004239428b28be0d99ac2f43e53b3b5838d89cf045223c3801b70cc1bacae", - strip_prefix = "github.com/containerd/zfs@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containerd/zfs/com_github_containerd_zfs-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_containernetworking_cni", - build_file_proto_mode = "disable_global", - importpath = "github.com/containernetworking/cni", - sha256 = "9cc37c3a71e267e0c78539203ed22ad2c03a711c70be3bd4727890d4e66b10b9", - strip_prefix = "github.com/containernetworking/cni@v0.8.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containernetworking/cni/com_github_containernetworking_cni-v0.8.1.zip", - ], - ) - go_repository( - name = "com_github_containernetworking_plugins", - build_file_proto_mode = "disable_global", - importpath = "github.com/containernetworking/plugins", - sha256 = "4315bad50ebab3475340d074f1bd5e6070977a7502bfdd727f75742d6f225900", - strip_prefix = "github.com/containernetworking/plugins@v0.9.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containernetworking/plugins/com_github_containernetworking_plugins-v0.9.1.zip", - ], - ) - go_repository( - name = "com_github_containers_ocicrypt", - build_file_proto_mode = "disable_global", - importpath = "github.com/containers/ocicrypt", - sha256 = "b31f83f8dbbdee1e855287a3624e239ba53257d6c35cf14aee4a75d79f1dfe27", - strip_prefix = "github.com/containers/ocicrypt@v1.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/containers/ocicrypt/com_github_containers_ocicrypt-v1.1.1.zip", - ], - ) - go_repository( - name = "com_github_coreos_bbolt", - build_file_proto_mode = "disable_global", - importpath = "github.com/coreos/bbolt", - sha256 = "097e7c6cf2dc9c50a0c8827f451bd3cba44c2cbf086d4fb684f2dfada9bfa841", - strip_prefix = "github.com/coreos/bbolt@v1.3.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/coreos/bbolt/com_github_coreos_bbolt-v1.3.2.zip", - ], - ) - go_repository( - name = "com_github_coreos_etcd", - build_file_proto_mode = "disable_global", - importpath = "github.com/coreos/etcd", - sha256 = "c32b3fc5dba0eeb8533d628489cf862c4eb360644d79c597bcc6290f3d74b046", - strip_prefix = "github.com/coreos/etcd@v3.3.13+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/coreos/etcd/com_github_coreos_etcd-v3.3.13+incompatible.zip", - ], - ) - go_repository( - name = "com_github_coreos_go_etcd", - build_file_proto_mode = "disable_global", - importpath = "github.com/coreos/go-etcd", - sha256 = "4b226732835b9298af65db5d075024a5971aa11ef4b456899a3830bccd435b07", - strip_prefix = "github.com/coreos/go-etcd@v2.0.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/coreos/go-etcd/com_github_coreos_go_etcd-v2.0.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_coreos_go_iptables", - build_file_proto_mode = "disable_global", - importpath = "github.com/coreos/go-iptables", - sha256 = "07e31b1e6c7dec3e1c22b90b02bb1fe610884ad20ca46d623d949c71b3dcb55f", - strip_prefix = "github.com/coreos/go-iptables@v0.5.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/coreos/go-iptables/com_github_coreos_go_iptables-v0.5.0.zip", - ], - ) - go_repository( - name = "com_github_coreos_go_oidc", - build_file_proto_mode = "disable_global", - importpath = "github.com/coreos/go-oidc", - sha256 = "b997f93fbff8a4aed3bb2d78a3bf115ba4f06b1d1e4b9ef4cc9d1f63d3ce4036", - strip_prefix = "github.com/coreos/go-oidc@v2.2.1+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/coreos/go-oidc/com_github_coreos_go_oidc-v2.2.1+incompatible.zip", - ], - ) - go_repository( - name = "com_github_coreos_go_semver", - build_file_proto_mode = "disable_global", - importpath = "github.com/coreos/go-semver", - sha256 = "b2fc075395ffc34cff4b964681d0ae3cd22096cfcadd2970eeaa877596ceb210", - strip_prefix = "github.com/coreos/go-semver@v0.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/coreos/go-semver/com_github_coreos_go_semver-v0.3.0.zip", - ], - ) - go_repository( - name = "com_github_coreos_go_systemd", - build_file_proto_mode = "disable_global", - importpath = "github.com/coreos/go-systemd", - sha256 = "22237f0aed3ab6018a1025c65f4f45b4c05f9aa0c0bb9ec880294273b9a15bf2", - strip_prefix = "github.com/coreos/go-systemd@v0.0.0-20190719114852-fd7a80b32e1f", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/coreos/go-systemd/com_github_coreos_go_systemd-v0.0.0-20190719114852-fd7a80b32e1f.zip", - ], - ) - go_repository( - name = "com_github_coreos_go_systemd_v22", - build_file_proto_mode = "disable_global", - importpath = "github.com/coreos/go-systemd/v22", - sha256 = "01134ae89bf4a91c17eeb1f8425e1064f9bde64cf3ce0c9cf546a9fa1ee25e64", - strip_prefix = "github.com/coreos/go-systemd/v22@v22.3.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/coreos/go-systemd/v22/com_github_coreos_go_systemd_v22-v22.3.2.zip", - ], - ) - go_repository( - name = "com_github_coreos_pkg", - build_file_proto_mode = "disable_global", - importpath = "github.com/coreos/pkg", - sha256 = "7fe161d49439a9b4136c932233cb4b803b9e3ac7ee46f39ce247defc4f4ea8d7", - strip_prefix = "github.com/coreos/pkg@v0.0.0-20180928190104-399ea9e2e55f", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/coreos/pkg/com_github_coreos_pkg-v0.0.0-20180928190104-399ea9e2e55f.zip", - ], - ) - go_repository( - name = "com_github_corpix_uarand", - build_file_proto_mode = "disable_global", - importpath = "github.com/corpix/uarand", - sha256 = "e2220522fbb3b8f21b44e7b6aecf52177738d82809ca4ab6918043ed5b19857c", - strip_prefix = "github.com/corpix/uarand@v0.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/corpix/uarand/com_github_corpix_uarand-v0.1.1.zip", - ], - ) - go_repository( - name = "com_github_cpuguy83_go_md2man", - build_file_proto_mode = "disable_global", - importpath = "github.com/cpuguy83/go-md2man", - sha256 = "b9b153bb97e2a702ec5c41f6815985d4295524cdf4f2a9e5633f98e9739f4d6e", - strip_prefix = "github.com/cpuguy83/go-md2man@v1.0.10", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cpuguy83/go-md2man/com_github_cpuguy83_go_md2man-v1.0.10.zip", - ], - ) - go_repository( - name = "com_github_cpuguy83_go_md2man_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/cpuguy83/go-md2man/v2", - sha256 = "f5ded1130031e98dc4bdf17e45ac89ad2eeae3083d6150b6d5f3fc75b9e9cd6b", - strip_prefix = "github.com/cpuguy83/go-md2man/v2@v2.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cpuguy83/go-md2man/v2/com_github_cpuguy83_go_md2man_v2-v2.0.1.zip", - ], - ) - go_repository( - name = "com_github_creack_pty", - build_file_proto_mode = "disable_global", - importpath = "github.com/creack/pty", - sha256 = "d6594fd4844c242a5c7d6e9b25516182460cffa820e47e8ffb8eea625991986c", - strip_prefix = "github.com/creack/pty@v1.1.11", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/creack/pty/com_github_creack_pty-v1.1.11.zip", - ], - ) - go_repository( - name = "com_github_crossdock_crossdock_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/crossdock/crossdock-go", - sha256 = "f8a2ed6cd39e4f3e8108b8987f72bf6746276ada6fd3fcc62015bdbdd097f1a3", - strip_prefix = "github.com/crossdock/crossdock-go@v0.0.0-20160816171116-049aabb0122b", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/crossdock/crossdock-go/com_github_crossdock_crossdock_go-v0.0.0-20160816171116-049aabb0122b.zip", - ], - ) - go_repository( - name = "com_github_cyberdelia_go_metrics_graphite", - build_file_proto_mode = "disable_global", - importpath = "github.com/cyberdelia/go-metrics-graphite", - sha256 = "38a34b96a597d50553e367de6e4eb3488e83dc37cae3930b38d9b48695b08b0c", - strip_prefix = "github.com/cyberdelia/go-metrics-graphite@v0.0.0-20161219230853-39f87cc3b432", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cyberdelia/go-metrics-graphite/com_github_cyberdelia_go_metrics_graphite-v0.0.0-20161219230853-39f87cc3b432.zip", - ], - ) - go_repository( - name = "com_github_cyberdelia_templates", - build_file_proto_mode = "disable_global", - importpath = "github.com/cyberdelia/templates", - sha256 = "a0ed6b8037d36222f63128f6064ed5b0e461fa9798c3592440a08875154d6c72", - strip_prefix = "github.com/cyberdelia/templates@v0.0.0-20141128023046-ca7fffd4298c", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cyberdelia/templates/com_github_cyberdelia_templates-v0.0.0-20141128023046-ca7fffd4298c.zip", - ], - ) - go_repository( - name = "com_github_cyphar_filepath_securejoin", - build_file_proto_mode = "disable_global", - importpath = "github.com/cyphar/filepath-securejoin", - sha256 = "d022873dbb9e8d3b7a43c9dedbea54dfc9a6c15f9632ba522a1257e8b948c100", - strip_prefix = "github.com/cyphar/filepath-securejoin@v0.2.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cyphar/filepath-securejoin/com_github_cyphar_filepath_securejoin-v0.2.2.zip", - ], - ) - go_repository( - name = "com_github_d2g_dhcp4", - build_file_proto_mode = "disable_global", - importpath = "github.com/d2g/dhcp4", - sha256 = "15df9468cf548a626e1319e92d550432512c4319cf555bf278ea9215de3504e3", - strip_prefix = "github.com/d2g/dhcp4@v0.0.0-20170904100407-a1d1b6c41b1c", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/d2g/dhcp4/com_github_d2g_dhcp4-v0.0.0-20170904100407-a1d1b6c41b1c.zip", - ], - ) - go_repository( - name = "com_github_d2g_dhcp4client", - build_file_proto_mode = "disable_global", - importpath = "github.com/d2g/dhcp4client", - sha256 = "cad5e5d2e85d2f4b68835ea63472f24a6627d6f87058358df4b47902374a6a8b", - strip_prefix = "github.com/d2g/dhcp4client@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/d2g/dhcp4client/com_github_d2g_dhcp4client-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_d2g_dhcp4server", - build_file_proto_mode = "disable_global", - importpath = "github.com/d2g/dhcp4server", - sha256 = "b2370ecaf825f0dc748a234fb676fbd9d24ac6d28eaa9d7c3a8f807a2badf11d", - strip_prefix = "github.com/d2g/dhcp4server@v0.0.0-20181031114812-7d4a0a7f59a5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/d2g/dhcp4server/com_github_d2g_dhcp4server-v0.0.0-20181031114812-7d4a0a7f59a5.zip", - ], - ) - go_repository( - name = "com_github_d2g_hardwareaddr", - build_file_proto_mode = "disable_global", - importpath = "github.com/d2g/hardwareaddr", - sha256 = "bdc3b033b884101d5aa56c79a82c05e1e30af5bec7c7beda317230c3fa400c5e", - strip_prefix = "github.com/d2g/hardwareaddr@v0.0.0-20190221164911-e7d9fbe030e4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/d2g/hardwareaddr/com_github_d2g_hardwareaddr-v0.0.0-20190221164911-e7d9fbe030e4.zip", - ], - ) - go_repository( - name = "com_github_daaku_go_zipexe", - build_file_proto_mode = "disable_global", - importpath = "github.com/daaku/go.zipexe", - sha256 = "74d7a0242c03c3c03220e56a59da5f97d3478743250740df538e05e6b609f553", - strip_prefix = "github.com/daaku/go.zipexe@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/daaku/go.zipexe/com_github_daaku_go_zipexe-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_data_dog_go_sqlmock", - build_file_proto_mode = "disable_global", - importpath = "github.com/DATA-DOG/go-sqlmock", - sha256 = "fe11397cc3551d3d4b015f2759862ce980d9930b3d807f8375a89b5180ae9f8e", - strip_prefix = "github.com/DATA-DOG/go-sqlmock@v1.4.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/DATA-DOG/go-sqlmock/com_github_data_dog_go_sqlmock-v1.4.1.zip", - ], - ) - go_repository( - name = "com_github_datadog_datadog_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/DataDog/datadog-go", - sha256 = "ede4a024d3c106b2f57ca04d7bfc7610e0c83f4d8a3bace2cf87b42fd5cf66cd", - strip_prefix = "github.com/DataDog/datadog-go@v3.2.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/DataDog/datadog-go/com_github_datadog_datadog_go-v3.2.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_datadog_zstd", - build_file_proto_mode = "disable_global", - importpath = "github.com/DataDog/zstd", - sha256 = "00989c1f3f3426aa6ed41f641193ff6a0d81031ba0b7fd81250e7e923d2f18a4", - strip_prefix = "github.com/DataDog/zstd@v1.5.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/DataDog/zstd/com_github_datadog_zstd-v1.5.0.zip", - ], - ) - go_repository( - name = "com_github_dave_dst", - build_file_proto_mode = "disable_global", - importpath = "github.com/dave/dst", - sha256 = "73f53e4faffd0d5f77cc88d9fcc0fb9ee53232f301e01da6766962f9fe92c7b6", - strip_prefix = "github.com/dave/dst@v0.24.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dave/dst/com_github_dave_dst-v0.24.0.zip", - ], - ) - go_repository( - name = "com_github_dave_gopackages", - build_file_proto_mode = "disable_global", - importpath = "github.com/dave/gopackages", - sha256 = "b953698eb72bd0cf6579f6b8cdc8238572063784da9d443ec70705d210b0c182", - strip_prefix = "github.com/dave/gopackages@v0.0.0-20170318123100-46e7023ec56e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dave/gopackages/com_github_dave_gopackages-v0.0.0-20170318123100-46e7023ec56e.zip", - ], - ) - go_repository( - name = "com_github_dave_jennifer", - build_file_proto_mode = "disable_global", - importpath = "github.com/dave/jennifer", - sha256 = "85b37a1b99b7d67664389b8c11b7174f521a396bb59d4e0e766df16336a7f112", - strip_prefix = "github.com/dave/jennifer@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dave/jennifer/com_github_dave_jennifer-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_dave_kerr", - build_file_proto_mode = "disable_global", - importpath = "github.com/dave/kerr", - sha256 = "58bfff20a2f687e0f607887e88ff1044fe22186765e93b794511b1a0a625eaa1", - strip_prefix = "github.com/dave/kerr@v0.0.0-20170318121727-bc25dd6abe8e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dave/kerr/com_github_dave_kerr-v0.0.0-20170318121727-bc25dd6abe8e.zip", - ], - ) - go_repository( - name = "com_github_dave_rebecca", - build_file_proto_mode = "disable_global", - importpath = "github.com/dave/rebecca", - sha256 = "74c7f193fcc4a165903e3761dbff05e73e6fcd92f8cf0861029487e65da40439", - strip_prefix = "github.com/dave/rebecca@v0.9.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dave/rebecca/com_github_dave_rebecca-v0.9.1.zip", - ], - ) - go_repository( - name = "com_github_davecgh_go_spew", - build_file_proto_mode = "disable_global", - importpath = "github.com/davecgh/go-spew", - sha256 = "6b44a843951f371b7010c754ecc3cabefe815d5ced1c5b9409fb2d697e8a890d", - strip_prefix = "github.com/davecgh/go-spew@v1.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/davecgh/go-spew/com_github_davecgh_go_spew-v1.1.1.zip", - ], - ) - go_repository( - name = "com_github_deepmap_oapi_codegen", - build_file_proto_mode = "disable_global", - importpath = "github.com/deepmap/oapi-codegen", - sha256 = "a89ac7cc533495fb5aa9caf2f763394af143928bf38a351495d93e220744dc4e", - strip_prefix = "github.com/deepmap/oapi-codegen@v1.6.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/deepmap/oapi-codegen/com_github_deepmap_oapi_codegen-v1.6.0.zip", - ], - ) - go_repository( - name = "com_github_denisenkom_go_mssqldb", - build_file_proto_mode = "disable_global", - importpath = "github.com/denisenkom/go-mssqldb", - sha256 = "47f3f67715836b61575d2c09bc1b5ab0fea2f270ca0fd37e9da66537e4c0aab0", - strip_prefix = "github.com/denisenkom/go-mssqldb@v0.10.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/denisenkom/go-mssqldb/com_github_denisenkom_go_mssqldb-v0.10.0.zip", - ], - ) - go_repository( - 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 = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dennwc/varint/com_github_dennwc_varint-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_denverdino_aliyungo", - build_file_proto_mode = "disable_global", - importpath = "github.com/denverdino/aliyungo", - sha256 = "a95aea20a342798881b676d44c0d42c486f646cf066b96093fa15ca1f3a1123f", - strip_prefix = "github.com/denverdino/aliyungo@v0.0.0-20190125010748-a747050bb1ba", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/denverdino/aliyungo/com_github_denverdino_aliyungo-v0.0.0-20190125010748-a747050bb1ba.zip", - ], - ) - go_repository( - name = "com_github_dgraph_io_badger", - build_file_proto_mode = "disable_global", - importpath = "github.com/dgraph-io/badger", - sha256 = "8329ae390aebec6ae360356e77a2743357ad4e0d0bd4c3ae03b7d17e01ad70aa", - strip_prefix = "github.com/dgraph-io/badger@v1.6.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dgraph-io/badger/com_github_dgraph_io_badger-v1.6.0.zip", - ], - ) - go_repository( - name = "com_github_dgrijalva_jwt_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/dgrijalva/jwt-go", - sha256 = "26b028eb2d9ee3aef26a96d6790e101f4088ef901008ebab17096966bf6522ad", - strip_prefix = "github.com/dgrijalva/jwt-go@v3.2.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dgrijalva/jwt-go/com_github_dgrijalva_jwt_go-v3.2.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_dgrijalva_jwt_go_v4", - build_file_proto_mode = "disable_global", - importpath = "github.com/dgrijalva/jwt-go/v4", - sha256 = "9453f2b0484885c192b0c777195f911b599d1a424def0eb9387ef619d5bd7f4a", - strip_prefix = "github.com/dgrijalva/jwt-go/v4@v4.0.0-preview1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dgrijalva/jwt-go/v4/com_github_dgrijalva_jwt_go_v4-v4.0.0-preview1.zip", - ], - ) - go_repository( - name = "com_github_dgryski_go_bitstream", - build_file_proto_mode = "disable_global", - importpath = "github.com/dgryski/go-bitstream", - sha256 = "52765898078b5dca28ebced04b05cff943a3b3538a371c16568c97f05d669f23", - strip_prefix = "github.com/dgryski/go-bitstream@v0.0.0-20180413035011-3522498ce2c8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dgryski/go-bitstream/com_github_dgryski_go_bitstream-v0.0.0-20180413035011-3522498ce2c8.zip", - ], - ) - go_repository( - name = "com_github_dgryski_go_farm", - build_file_proto_mode = "disable_global", - importpath = "github.com/dgryski/go-farm", - sha256 = "bdf602cab00a24c2898aabad0b40c7b1d76a29cf8dd3319ef87046a5f4b1726f", - strip_prefix = "github.com/dgryski/go-farm@v0.0.0-20200201041132-a6ae2369ad13", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dgryski/go-farm/com_github_dgryski_go_farm-v0.0.0-20200201041132-a6ae2369ad13.zip", - ], - ) - go_repository( - name = "com_github_dgryski_go_metro", - build_file_proto_mode = "disable_global", - importpath = "github.com/dgryski/go-metro", - sha256 = "3f97b3cdeaee7b4fbf4fa06b7c52e3ee6bca461a100077892e861c6c8fc03722", - strip_prefix = "github.com/dgryski/go-metro@v0.0.0-20180109044635-280f6062b5bc", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dgryski/go-metro/com_github_dgryski_go_metro-v0.0.0-20180109044635-280f6062b5bc.zip", - ], - ) - go_repository( - name = "com_github_dgryski_go_sip13", - build_file_proto_mode = "disable_global", - importpath = "github.com/dgryski/go-sip13", - sha256 = "55a0be7d50eab4c3daba9204a88554209c2065019d01ac78725155dd705e3fa9", - strip_prefix = "github.com/dgryski/go-sip13@v0.0.0-20200911182023-62edffca9245", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dgryski/go-sip13/com_github_dgryski_go_sip13-v0.0.0-20200911182023-62edffca9245.zip", - ], - ) - go_repository( - name = "com_github_digitalocean_godo", - build_file_proto_mode = "disable_global", - importpath = "github.com/digitalocean/godo", - sha256 = "9a41cecefd19a707f3f6810beba85f7da129059f2fb5f45aa8c9630f8a435332", - strip_prefix = "github.com/digitalocean/godo@v1.65.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/digitalocean/godo/com_github_digitalocean_godo-v1.65.0.zip", - ], - ) - go_repository( - name = "com_github_dimchansky_utfbom", - build_file_proto_mode = "disable_global", - importpath = "github.com/dimchansky/utfbom", - sha256 = "0c1a11101602d5f57ac3e790c0b72e09ff87d8d535535f43fbee9e6a42327350", - strip_prefix = "github.com/dimchansky/utfbom@v1.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dimchansky/utfbom/com_github_dimchansky_utfbom-v1.1.1.zip", - ], - ) - go_repository( - name = "com_github_djherbis_atime", - build_file_proto_mode = "disable_global", - importpath = "github.com/djherbis/atime", - sha256 = "195cebcceb6d76328f5e5d373154b5c46a6a9bf6b27a88f9c0158276a07c7c41", - strip_prefix = "github.com/djherbis/atime@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/djherbis/atime/com_github_djherbis_atime-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_dnaeon_go_vcr", - build_file_proto_mode = "disable_global", - importpath = "github.com/dnaeon/go-vcr", - sha256 = "8f586f95ce5567ef2ae702cf98e56a09ea0cc6171f5cd959e6fcf7502e00dabc", - strip_prefix = "github.com/dnaeon/go-vcr@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dnaeon/go-vcr/com_github_dnaeon_go_vcr-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_docker_distribution", - build_file_proto_mode = "disable_global", - importpath = "github.com/docker/distribution", - sha256 = "be78bc43d74873b67afe05a6b244490088680dab75bdfaf26d0fd4d054595bc7", - strip_prefix = "github.com/docker/distribution@v2.7.1+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/docker/distribution/com_github_docker_distribution-v2.7.1+incompatible.zip", - ], - ) - go_repository( - name = "com_github_docker_docker", - build_file_proto_mode = "disable_global", - importpath = "github.com/docker/docker", - sha256 = "b96610497d8d7b41eff039cd4b4ba595eedb3944b653b813f087364805e3db76", - strip_prefix = "github.com/moby/moby@v20.10.6+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/moby/moby/com_github_moby_moby-v20.10.6+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 = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/docker/go-connections/com_github_docker_go_connections-v0.4.0.zip", - ], - ) - go_repository( - name = "com_github_docker_go_events", - build_file_proto_mode = "disable_global", - importpath = "github.com/docker/go-events", - sha256 = "0f654eb0e7e07c237a229935ea3488728ddb5b082af2918b64452a1129dccae3", - strip_prefix = "github.com/docker/go-events@v0.0.0-20190806004212-e31b211e4f1c", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/docker/go-events/com_github_docker_go_events-v0.0.0-20190806004212-e31b211e4f1c.zip", - ], - ) - go_repository( - name = "com_github_docker_go_metrics", - build_file_proto_mode = "disable_global", - importpath = "github.com/docker/go-metrics", - sha256 = "4efab3706215f5b2d29ba823d3991fd6e2f81c02ce45ef0c73c019ebc90e020b", - strip_prefix = "github.com/docker/go-metrics@v0.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/docker/go-metrics/com_github_docker_go_metrics-v0.0.1.zip", - ], - ) - go_repository( - name = "com_github_docker_go_units", - build_file_proto_mode = "disable_global", - importpath = "github.com/docker/go-units", - sha256 = "0f2be7dce7b1a0ba6a4a786eb144a3398e9a61afc0eec5799a1520d9906fc58c", - strip_prefix = "github.com/docker/go-units@v0.4.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/docker/go-units/com_github_docker_go_units-v0.4.0.zip", - ], - ) - go_repository( - name = "com_github_docker_libtrust", - build_file_proto_mode = "disable_global", - importpath = "github.com/docker/libtrust", - sha256 = "7f7a72aae4276536e665d8dfdab7219231fbb402dec16ba79ccdb633a4692482", - strip_prefix = "github.com/docker/libtrust@v0.0.0-20150114040149-fa567046d9b1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/docker/libtrust/com_github_docker_libtrust-v0.0.0-20150114040149-fa567046d9b1.zip", - ], - ) - go_repository( - name = "com_github_docker_spdystream", - build_file_proto_mode = "disable_global", - importpath = "github.com/docker/spdystream", - sha256 = "70964f9eef29843634539b8d6e09c8b51ed6aa96b5deda28b7a44613327a22f2", - strip_prefix = "github.com/docker/spdystream@v0.0.0-20160310174837-449fdfce4d96", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/docker/spdystream/com_github_docker_spdystream-v0.0.0-20160310174837-449fdfce4d96.zip", - ], - ) - go_repository( - name = "com_github_docopt_docopt_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/docopt/docopt-go", - sha256 = "00aad861d150c62598ca4fb01cfbe15c2eefb5186df7e5d4a59286dcf09556c8", - strip_prefix = "github.com/docopt/docopt-go@v0.0.0-20180111231733-ee0de3bc6815", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/docopt/docopt-go/com_github_docopt_docopt_go-v0.0.0-20180111231733-ee0de3bc6815.zip", - ], - ) - go_repository( - name = "com_github_dustin_go_humanize", - build_file_proto_mode = "disable_global", - importpath = "github.com/dustin/go-humanize", - sha256 = "e01916e082a6646ea12d7800d77af43045c27284ff2a0a77e3484509989cc107", - strip_prefix = "github.com/dustin/go-humanize@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dustin/go-humanize/com_github_dustin_go_humanize-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_dvyukov_go_fuzz", - build_file_proto_mode = "disable_global", - importpath = "github.com/dvyukov/go-fuzz", - sha256 = "0a4c4bc0a550c729115d74f6a636e5802894b33bc50aa8af99c4a70196d5990b", - strip_prefix = "github.com/dvyukov/go-fuzz@v0.0.0-20210103155950-6a8e9d1f2415", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/dvyukov/go-fuzz/com_github_dvyukov_go_fuzz-v0.0.0-20210103155950-6a8e9d1f2415.zip", - ], - ) - go_repository( - name = "com_github_eapache_go_resiliency", - build_file_proto_mode = "disable_global", - importpath = "github.com/eapache/go-resiliency", - sha256 = "39333303f947a85e0c35e9969d56e05776034b1ae91e75cbf9211ead5870d982", - strip_prefix = "github.com/eapache/go-resiliency@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/eapache/go-resiliency/com_github_eapache_go_resiliency-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_eapache_go_xerial_snappy", - build_file_proto_mode = "disable_global", - importpath = "github.com/eapache/go-xerial-snappy", - sha256 = "785264afffdcfe50573a1cb0df85ff4186e9e7e4e3a04513752f52d3da1054af", - strip_prefix = "github.com/eapache/go-xerial-snappy@v0.0.0-20180814174437-776d5712da21", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/eapache/go-xerial-snappy/com_github_eapache_go_xerial_snappy-v0.0.0-20180814174437-776d5712da21.zip", - ], - ) - go_repository( - name = "com_github_eapache_queue", - build_file_proto_mode = "disable_global", - importpath = "github.com/eapache/queue", - sha256 = "1dc1b4972e8505c4763c65424b19604c65c944911d16c18c5cbd35aae45626fb", - strip_prefix = "github.com/eapache/queue@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/eapache/queue/com_github_eapache_queue-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_eclipse_paho_mqtt_golang", - build_file_proto_mode = "disable_global", - importpath = "github.com/eclipse/paho.mqtt.golang", - sha256 = "d36337c4b5a2752b91bcd437bd74e0907bf6c9e6c611dab88407bcca8462e918", - strip_prefix = "github.com/eclipse/paho.mqtt.golang@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/eclipse/paho.mqtt.golang/com_github_eclipse_paho_mqtt_golang-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_edsrzf_mmap_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/edsrzf/mmap-go", - sha256 = "851a1d4d6e30f97ab23b7e4a6a7da9d1842f126d738f7386010c6ee7bf82518e", - strip_prefix = "github.com/edsrzf/mmap-go@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/edsrzf/mmap-go/com_github_edsrzf_mmap_go-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_eknkc_amber", - build_file_proto_mode = "disable_global", - importpath = "github.com/eknkc/amber", - sha256 = "b1dde9f3713742ad0961825a2d962bd99d9390daf8596e7680dfb5f395e54e22", - strip_prefix = "github.com/eknkc/amber@v0.0.0-20171010120322-cdade1c07385", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/eknkc/amber/com_github_eknkc_amber-v0.0.0-20171010120322-cdade1c07385.zip", - ], - ) - go_repository( - name = "com_github_elastic_gosigar", - build_file_proto_mode = "disable_global", - importpath = "github.com/elastic/gosigar", - sha256 = "f3462c11be4f93f4ddb6c629c90a1db2b5dcedcd2a6af02a2f0b7aca1d65e7ba", - strip_prefix = "github.com/elastic/gosigar@v0.14.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/elastic/gosigar/com_github_elastic_gosigar-v0.14.1.zip", - ], - ) - go_repository( - name = "com_github_elazarl_go_bindata_assetfs", - build_file_proto_mode = "disable_global", - importpath = "github.com/elazarl/go-bindata-assetfs", - sha256 = "ee91e4dedf0efd24ddf201e8f8b62f0b79a64efd0d205b30bcd9fa95f905cd15", - strip_prefix = "github.com/elazarl/go-bindata-assetfs@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/elazarl/go-bindata-assetfs/com_github_elazarl_go_bindata_assetfs-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_elazarl_goproxy", - build_file_proto_mode = "disable_global", - importpath = "github.com/elazarl/goproxy", - sha256 = "21b7d89eab7acb25fb1b3affa494281fae8c31becf1ee2c6009da7249320d328", - strip_prefix = "github.com/elazarl/goproxy@v0.0.0-20180725130230-947c36da3153", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/elazarl/goproxy/com_github_elazarl_goproxy-v0.0.0-20180725130230-947c36da3153.zip", - ], - ) - go_repository( - name = "com_github_emicklei_dot", - build_file_proto_mode = "disable_global", - importpath = "github.com/emicklei/dot", - sha256 = "b298e957fd7e38cd76b3953e47afcfd673a4f051884818a294ec4703476b6a39", - strip_prefix = "github.com/emicklei/dot@v0.15.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/emicklei/dot/com_github_emicklei_dot-v0.15.0.zip", - ], - ) - go_repository( - name = "com_github_emicklei_go_restful", - build_file_proto_mode = "disable_global", - importpath = "github.com/emicklei/go-restful", - sha256 = "cf4eb1c8f654dfae915d2d77e7ec679e11f15f737454a232293bb14bd7401162", - strip_prefix = "github.com/emicklei/go-restful@v2.12.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/emicklei/go-restful/com_github_emicklei_go_restful-v2.12.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_emicklei_go_restful_v3", - build_file_proto_mode = "disable_global", - importpath = "github.com/emicklei/go-restful/v3", - sha256 = "3fc4643688db4a2eab6a44505a9f29ab7171ed174e0bbfb9ecae245deb722a10", - strip_prefix = "github.com/emicklei/go-restful/v3@v3.7.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/emicklei/go-restful/v3/com_github_emicklei_go_restful_v3-v3.7.1.zip", - ], - ) - go_repository( - name = "com_github_envoyproxy_go_control_plane", - build_file_proto_mode = "disable_global", - importpath = "github.com/envoyproxy/go-control-plane", - sha256 = "8e8bf22bacf1b4b5a54aa6c56af3f281131d6dcd1ccbf2226b9c1e62c9b5cca7", - strip_prefix = "github.com/envoyproxy/go-control-plane@v0.10.2-0.20220325020618-49ff273808a1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/envoyproxy/go-control-plane/com_github_envoyproxy_go_control_plane-v0.10.2-0.20220325020618-49ff273808a1.zip", - ], - ) - go_repository( - name = "com_github_envoyproxy_protoc_gen_validate", - build_file_proto_mode = "disable_global", - build_naming_convention = "go_default_library", - importpath = "github.com/envoyproxy/protoc-gen-validate", - sha256 = "6e705cabc09d7d130e0d24acf474c0654a62d1e292f1ea2fb558b5565f43f7f3", - strip_prefix = "github.com/envoyproxy/protoc-gen-validate@v0.6.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/envoyproxy/protoc-gen-validate/com_github_envoyproxy_protoc_gen_validate-v0.6.2.zip", - ], - ) - go_repository( - name = "com_github_etcd_io_bbolt", - build_file_proto_mode = "disable_global", - importpath = "github.com/etcd-io/bbolt", - sha256 = "6630d7aad4b10f76aea88ee6d9086a1edffe371651cc2432edfd0de6beb99120", - strip_prefix = "github.com/etcd-io/bbolt@v1.3.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/etcd-io/bbolt/com_github_etcd_io_bbolt-v1.3.3.zip", - ], - ) - go_repository( - name = "com_github_evanphx_json_patch", - build_file_proto_mode = "disable_global", - importpath = "github.com/evanphx/json-patch", - sha256 = "4a3bf63543b0745ffa4940aa13f7dde43087582aabfbf8eb752180f031f23d18", - strip_prefix = "github.com/evanphx/json-patch@v4.11.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/evanphx/json-patch/com_github_evanphx_json_patch-v4.11.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_facebookgo_clock", - build_file_proto_mode = "disable_global", - importpath = "github.com/facebookgo/clock", - sha256 = "5d6b671bd5afef8459fb7561d19bcf7c7f378da9943722d36676735b3c6272fa", - strip_prefix = "github.com/facebookgo/clock@v0.0.0-20150410010913-600d898af40a", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/facebookgo/clock/com_github_facebookgo_clock-v0.0.0-20150410010913-600d898af40a.zip", - ], - ) - go_repository( - name = "com_github_fanixk_geohash", - build_file_proto_mode = "disable_global", - importpath = "github.com/fanixk/geohash", - sha256 = "74ff24640609365d393ddddb47b32cdd21d7de9274ae23cce1b2ac8b1cf74339", - strip_prefix = "github.com/fanixk/geohash@v0.0.0-20150324002647-c1f9b5fa157a", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/fanixk/geohash/com_github_fanixk_geohash-v0.0.0-20150324002647-c1f9b5fa157a.zip", - ], - ) - go_repository( - name = "com_github_fasthttp_contrib_websocket", - build_file_proto_mode = "disable_global", - importpath = "github.com/fasthttp-contrib/websocket", - sha256 = "9d11b15b5b6c4d0508bd6afad73ec4d33a90218068ff8a8283d7ea27c22ba9af", - strip_prefix = "github.com/fasthttp-contrib/websocket@v0.0.0-20160511215533-1f3b11f56072", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/fasthttp-contrib/websocket/com_github_fasthttp_contrib_websocket-v0.0.0-20160511215533-1f3b11f56072.zip", - ], - ) - go_repository( - name = "com_github_fasthttp_router", - build_file_proto_mode = "disable_global", - importpath = "github.com/fasthttp/router", - sha256 = "5876bc20a22eac5552dd94ff0b06a876269bf9359968d5642a98622a8b2bf033", - strip_prefix = "github.com/fasthttp/router@v1.4.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/fasthttp/router/com_github_fasthttp_router-v1.4.4.zip", - ], - ) - go_repository( - name = "com_github_fatih_color", - build_file_proto_mode = "disable_global", - importpath = "github.com/fatih/color", - sha256 = "33d21fd662beb497f642ffbb42305261004d849fe7028ce037e2b15475b4ecd1", - strip_prefix = "github.com/fatih/color@v1.9.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/fatih/color/com_github_fatih_color-v1.9.0.zip", - ], - ) - go_repository( - name = "com_github_fatih_structs", - build_file_proto_mode = "disable_global", - importpath = "github.com/fatih/structs", - sha256 = "a361ecc95ad12000c66ee143d26b2aa0a4e5de3b045fd5d18a52564622a59148", - strip_prefix = "github.com/fatih/structs@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/fatih/structs/com_github_fatih_structs-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_felixge_httpsnoop", - build_file_proto_mode = "disable_global", - importpath = "github.com/felixge/httpsnoop", - sha256 = "dc0c57cc57f116de113c320cffcbc61fa437d19a729deec373cce786dd89a029", - strip_prefix = "github.com/felixge/httpsnoop@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/felixge/httpsnoop/com_github_felixge_httpsnoop-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_flosch_pongo2", - build_file_proto_mode = "disable_global", - importpath = "github.com/flosch/pongo2", - sha256 = "814b52f668d2e2528fe9af917506cda4894d22c927283cfb8aaf6857503dfc5a", - strip_prefix = "github.com/flosch/pongo2@v0.0.0-20190707114632-bbf5a6c351f4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/flosch/pongo2/com_github_flosch_pongo2-v0.0.0-20190707114632-bbf5a6c351f4.zip", - ], - ) - go_repository( - name = "com_github_fogleman_gg", - build_file_proto_mode = "disable_global", - importpath = "github.com/fogleman/gg", - sha256 = "75b657490d88ac3bad9af07ec4acfe57a995944c50eeb1f167467cf82ff814c5", - strip_prefix = "github.com/fogleman/gg@v1.2.1-0.20190220221249-0403632d5b90", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/fogleman/gg/com_github_fogleman_gg-v1.2.1-0.20190220221249-0403632d5b90.zip", - ], - ) - go_repository( - name = "com_github_form3tech_oss_jwt_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/form3tech-oss/jwt-go", - sha256 = "6780fef32d854a318af431efd0c680a1cb4ddc50d36d6b4c239baf381004efae", - strip_prefix = "github.com/form3tech-oss/jwt-go@v3.2.3+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/form3tech-oss/jwt-go/com_github_form3tech_oss_jwt_go-v3.2.3+incompatible.zip", - ], - ) - go_repository( - name = "com_github_fortytw2_leaktest", - build_file_proto_mode = "disable_global", - importpath = "github.com/fortytw2/leaktest", - sha256 = "867e6d131510751ba6055c51e7746b0056a6b3dcb1a1b2dfdc694251cd7eb8b3", - strip_prefix = "github.com/fortytw2/leaktest@v1.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/fortytw2/leaktest/com_github_fortytw2_leaktest-v1.3.0.zip", - ], - ) - go_repository( - name = "com_github_foxcpp_go_mockdns", - build_file_proto_mode = "disable_global", - importpath = "github.com/foxcpp/go-mockdns", - sha256 = "981c5e71776a97a6de21552728fd2ff04ab9f2057836f133a33cc06c13cbb724", - strip_prefix = "github.com/foxcpp/go-mockdns@v0.0.0-20201212160233-ede2f9158d15", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/foxcpp/go-mockdns/com_github_foxcpp_go_mockdns-v0.0.0-20201212160233-ede2f9158d15.zip", - ], - ) - go_repository( - name = "com_github_franela_goblin", - build_file_proto_mode = "disable_global", - importpath = "github.com/franela/goblin", - sha256 = "e4ef81939ecb582e5716af6ae8b20ecf899f1351b7c53cb6799edf2a29a43714", - strip_prefix = "github.com/franela/goblin@v0.0.0-20200105215937-c9ffbefa60db", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/franela/goblin/com_github_franela_goblin-v0.0.0-20200105215937-c9ffbefa60db.zip", - ], - ) - go_repository( - name = "com_github_franela_goreq", - build_file_proto_mode = "disable_global", - importpath = "github.com/franela/goreq", - sha256 = "4f0deb16b3d3acf93ac2e699fe189cf2632fe833bdd5d64f5a54787fed62d19a", - strip_prefix = "github.com/franela/goreq@v0.0.0-20171204163338-bcd34c9993f8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/franela/goreq/com_github_franela_goreq-v0.0.0-20171204163338-bcd34c9993f8.zip", - ], - ) - go_repository( - name = "com_github_frankban_quicktest", - build_file_proto_mode = "disable_global", - importpath = "github.com/frankban/quicktest", - sha256 = "28d4b3dc3a66f7c838f7667370df1cd88cc330eac227c55c3c2cd2ecd666c4c5", - strip_prefix = "github.com/frankban/quicktest@v1.11.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/frankban/quicktest/com_github_frankban_quicktest-v1.11.3.zip", - ], - ) - go_repository( - name = "com_github_fraugster_parquet_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/fraugster/parquet-go", - sha256 = "a9d995d60a99dac8709c614f3d2795ef4d8d79c82991b40fa703006078babf75", - strip_prefix = "github.com/fraugster/parquet-go@v0.10.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/fraugster/parquet-go/com_github_fraugster_parquet_go-v0.10.0.zip", - ], - ) - go_repository( - name = "com_github_fsnotify_fsnotify", - build_file_proto_mode = "disable_global", - importpath = "github.com/fsnotify/fsnotify", - sha256 = "f38d7e395bc45f08a34e9591c9c4900031f81c1ddc7d761a785cbbb9aaee0db0", - strip_prefix = "github.com/fsnotify/fsnotify@v1.5.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/fsnotify/fsnotify/com_github_fsnotify_fsnotify-v1.5.1.zip", - ], - ) - go_repository( - name = "com_github_fullsailor_pkcs7", - build_file_proto_mode = "disable_global", - importpath = "github.com/fullsailor/pkcs7", - sha256 = "ba36a8fc855d6eecef329d26f8e82132e38d45d06f79f88d3b0bde6d718c8fb2", - strip_prefix = "github.com/fullsailor/pkcs7@v0.0.0-20190404230743-d7302db945fa", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/fullsailor/pkcs7/com_github_fullsailor_pkcs7-v0.0.0-20190404230743-d7302db945fa.zip", - ], - ) - go_repository( - name = "com_github_garyburd_redigo", - build_file_proto_mode = "disable_global", - importpath = "github.com/garyburd/redigo", - sha256 = "7ed5f8194388955d2f086c170960cb096ee28d421b32bd12328d5f2a2b0ad488", - strip_prefix = "github.com/garyburd/redigo@v0.0.0-20150301180006-535138d7bcd7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/garyburd/redigo/com_github_garyburd_redigo-v0.0.0-20150301180006-535138d7bcd7.zip", - ], - ) - go_repository( - name = "com_github_gavv_httpexpect", - build_file_proto_mode = "disable_global", - importpath = "github.com/gavv/httpexpect", - sha256 = "3db05c59a5c70d11b9452727c529be6934ddf8b42f4bfdc3138441055f1529b1", - strip_prefix = "github.com/gavv/httpexpect@v2.0.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gavv/httpexpect/com_github_gavv_httpexpect-v2.0.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_geertjohan_go_incremental", - build_file_proto_mode = "disable_global", - importpath = "github.com/GeertJohan/go.incremental", - sha256 = "ce46b3b717f8d2927046bcfb99c6f490b1b547a681e6b23240ac2c2292a891e8", - strip_prefix = "github.com/GeertJohan/go.incremental@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/GeertJohan/go.incremental/com_github_geertjohan_go_incremental-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_geertjohan_go_rice", - build_file_proto_mode = "disable_global", - importpath = "github.com/GeertJohan/go.rice", - sha256 = "2fc48b9422bf356c18ed3fe32ec52f6a8b87ac168f83d2eed249afaebcc3eeb8", - strip_prefix = "github.com/GeertJohan/go.rice@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/GeertJohan/go.rice/com_github_geertjohan_go_rice-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_getkin_kin_openapi", - build_file_proto_mode = "disable_global", - importpath = "github.com/getkin/kin-openapi", - sha256 = "e3a00cb5828f8922087a0a74aad06c6177fa2eab44763a19aeec38f7fab7834b", - strip_prefix = "github.com/getkin/kin-openapi@v0.53.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/getkin/kin-openapi/com_github_getkin_kin_openapi-v0.53.0.zip", - ], - ) - go_repository( - name = "com_github_getsentry_raven_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/getsentry/raven-go", - sha256 = "eaffe69939612cd05f95e1846b8ddb4043655571be34cdb6412a66b41b6826eb", - strip_prefix = "github.com/getsentry/raven-go@v0.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/getsentry/raven-go/com_github_getsentry_raven_go-v0.2.0.zip", - ], - ) - go_repository( - name = "com_github_getsentry_sentry_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/getsentry/sentry-go", - sha256 = "1d127ea620f897c64de60982882cea34a4bb9c1481a9c9a379226af7cfa454ba", - strip_prefix = "github.com/getsentry/sentry-go@v0.12.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/getsentry/sentry-go/com_github_getsentry_sentry_go-v0.12.0.zip", - ], - ) - go_repository( - name = "com_github_ghemawat_stream", - build_file_proto_mode = "disable_global", - importpath = "github.com/ghemawat/stream", - sha256 = "9c0a42cacc8e22024b58db15127886a6f8ddbcfbf89d4d062bfdc43dc40d80d5", - strip_prefix = "github.com/ghemawat/stream@v0.0.0-20171120220530-696b145b53b9", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/ghemawat/stream/com_github_ghemawat_stream-v0.0.0-20171120220530-696b145b53b9.zip", - ], - ) - go_repository( - name = "com_github_ghodss_yaml", - build_file_proto_mode = "disable_global", - importpath = "github.com/ghodss/yaml", - sha256 = "c3f295d23c02c0b35e4d3b29053586e737cf9642df9615da99c0bda9bbacc624", - strip_prefix = "github.com/ghodss/yaml@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/ghodss/yaml/com_github_ghodss_yaml-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_gin_contrib_sse", - build_file_proto_mode = "disable_global", - importpath = "github.com/gin-contrib/sse", - sha256 = "512c8672f26405172077e764c4817ed8f66edc632d1bed205b5e1b8d282816ab", - strip_prefix = "github.com/gin-contrib/sse@v0.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gin-contrib/sse/com_github_gin_contrib_sse-v0.1.0.zip", - ], - ) - go_repository( - name = "com_github_gin_gonic_gin", - build_file_proto_mode = "disable_global", - importpath = "github.com/gin-gonic/gin", - sha256 = "1a69e288dc03d6f5e072767ec38fd24cf44d569168e9cdca65633629248b1571", - strip_prefix = "github.com/gin-gonic/gin@v1.7.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gin-gonic/gin/com_github_gin_gonic_gin-v1.7.4.zip", - ], - ) - go_repository( - name = "com_github_globalsign_mgo", - build_file_proto_mode = "disable_global", - importpath = "github.com/globalsign/mgo", - sha256 = "c07f09e0c93e6410076edfd621d2decbd361361c536c3e33ba097fa51708f360", - strip_prefix = "github.com/globalsign/mgo@v0.0.0-20181015135952-eeefdecb41b8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/globalsign/mgo/com_github_globalsign_mgo-v0.0.0-20181015135952-eeefdecb41b8.zip", - ], - ) - go_repository( - name = "com_github_glycerine_go_unsnap_stream", - build_file_proto_mode = "disable_global", - importpath = "github.com/glycerine/go-unsnap-stream", - sha256 = "9a66d6f9bb1a268f4b824d6fe7adcd55dc17ed504683bdf2dbf67b32028d9b88", - strip_prefix = "github.com/glycerine/go-unsnap-stream@v0.0.0-20180323001048-9f0cb55181dd", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/glycerine/go-unsnap-stream/com_github_glycerine_go_unsnap_stream-v0.0.0-20180323001048-9f0cb55181dd.zip", - ], - ) - go_repository( - name = "com_github_glycerine_goconvey", - build_file_proto_mode = "disable_global", - importpath = "github.com/glycerine/goconvey", - sha256 = "a4f9edbfc4bc20d04916a73c0b9acf0fc0cdcf16e3c667a1982aac42e56889f9", - strip_prefix = "github.com/glycerine/goconvey@v0.0.0-20190410193231-58a59202ab31", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/glycerine/goconvey/com_github_glycerine_goconvey-v0.0.0-20190410193231-58a59202ab31.zip", - ], - ) - go_repository( - name = "com_github_go_check_check", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-check/check", - sha256 = "55ed8316526c1ba82e3e607d17aa98f3b8b0a139ca9c224ee2a3e9e1b582608e", - strip_prefix = "github.com/go-check/check@v0.0.0-20180628173108-788fd7840127", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-check/check/com_github_go_check_check-v0.0.0-20180628173108-788fd7840127.zip", - ], - ) - go_repository( - name = "com_github_go_chi_chi", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-chi/chi", - sha256 = "b18ec574b5d476df20b181724fdb46180d277a4040dbbbd45e277cc4ce7d04ec", - strip_prefix = "github.com/go-chi/chi@v4.1.2+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-chi/chi/com_github_go_chi_chi-v4.1.2+incompatible.zip", - ], - ) - go_repository( - name = "com_github_go_chi_chi_v5", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-chi/chi/v5", - sha256 = "742c2be182586a7c77aa0e062b8a427db8ed539222afcdceb1f12ac093a303cd", - strip_prefix = "github.com/go-chi/chi/v5@v5.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-chi/chi/v5/com_github_go_chi_chi_v5-v5.0.0.zip", - ], - ) - go_repository( - name = "com_github_go_errors_errors", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-errors/errors", - sha256 = "bdbee3143e1798eadff4df919479c28ec2d3299a97d445917bc64d6eb6a3b95a", - strip_prefix = "github.com/go-errors/errors@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-errors/errors/com_github_go_errors_errors-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_go_gl_glfw", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-gl/glfw", - sha256 = "96c694c42e7b866ea8e26dc48b612c4daa8582ce61fdeefbe92c1a4c46163169", - strip_prefix = "github.com/go-gl/glfw@v0.0.0-20190409004039-e6da0acd62b1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-gl/glfw/com_github_go_gl_glfw-v0.0.0-20190409004039-e6da0acd62b1.zip", - ], - ) - go_repository( - name = "com_github_go_gl_glfw_v3_3_glfw", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-gl/glfw/v3.3/glfw", - sha256 = "2f6a1963397cb7c3df66257a45d75fae860aa9b9eec17825d8101c1e1313da5b", - strip_prefix = "github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20200222043503-6f7a984d4dc4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-gl/glfw/v3.3/glfw/com_github_go_gl_glfw_v3_3_glfw-v0.0.0-20200222043503-6f7a984d4dc4.zip", - ], - ) - go_repository( - name = "com_github_go_ini_ini", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-ini/ini", - sha256 = "2ec52de9f1c96133e9f81b8250fdc99ca0729c0d429e318d7c8836b7a6ba5f60", - strip_prefix = "github.com/go-ini/ini@v1.25.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-ini/ini/com_github_go_ini_ini-v1.25.4.zip", - ], - ) - go_repository( - name = "com_github_go_kit_kit", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-kit/kit", - sha256 = "dbdc933092b036483ca332f8c7c13e8b7d029192e79354d4f5a581ef3c364816", - strip_prefix = "github.com/go-kit/kit@v0.10.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-kit/kit/com_github_go_kit_kit-v0.10.0.zip", - ], - ) - go_repository( - name = "com_github_go_kit_log", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-kit/log", - sha256 = "e0676df7357654a000008dfad3b6b211cba3595f32d3e220edd63a4c9d0d9254", - strip_prefix = "github.com/go-kit/log@v0.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-kit/log/com_github_go_kit_log-v0.1.0.zip", - ], - ) - go_repository( - name = "com_github_go_logfmt_logfmt", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-logfmt/logfmt", - sha256 = "9e030cd09b584e59a2f5baaa24cf600520757d732af0f8993cc412dd3086703a", - strip_prefix = "github.com/go-logfmt/logfmt@v0.5.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-logfmt/logfmt/com_github_go_logfmt_logfmt-v0.5.1.zip", - ], - ) - go_repository( - name = "com_github_go_logr_logr", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-logr/logr", - sha256 = "be0f7eff89f0e40ff70715d864e0adbfc2be25b37d161c1ba71acd051c5716ea", - strip_prefix = "github.com/go-logr/logr@v0.4.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-logr/logr/com_github_go_logr_logr-v0.4.0.zip", - ], - ) - go_repository( - name = "com_github_go_martini_martini", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-martini/martini", - sha256 = "0561a4dadd68dbc1b38c09ed95bbfc5073b0a7708b9a787d38533ebd48040ec2", - strip_prefix = "github.com/go-martini/martini@v0.0.0-20170121215854-22fa46961aab", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-martini/martini/com_github_go_martini_martini-v0.0.0-20170121215854-22fa46961aab.zip", - ], - ) - go_repository( - name = "com_github_go_ole_go_ole", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-ole/go-ole", - sha256 = "95b192df81ca16f0fb7d2d98ff6596d70256d73e49e899c55fabd511fd6768ef", - strip_prefix = "github.com/go-ole/go-ole@v1.2.6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-ole/go-ole/com_github_go_ole_go_ole-v1.2.6.zip", - ], - ) - go_repository( - name = "com_github_go_openapi_analysis", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-openapi/analysis", - sha256 = "b44ec427451be7514c03db1064b0955cbf93aa4c1db32b90319ad5f7989384a8", - strip_prefix = "github.com/go-openapi/analysis@v0.20.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-openapi/analysis/com_github_go_openapi_analysis-v0.20.0.zip", - ], - ) - go_repository( - name = "com_github_go_openapi_errors", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-openapi/errors", - sha256 = "2bd57d937226751b2896ab022d26f6e7b7f866cb79f118f301f1939d94346152", - strip_prefix = "github.com/go-openapi/errors@v0.20.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-openapi/errors/com_github_go_openapi_errors-v0.20.0.zip", - ], - ) - go_repository( - name = "com_github_go_openapi_inflect", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-openapi/inflect", - sha256 = "fbcca36e347a2f560f50ac1c9c63f7d6cd97c8dff9800f08f370b5ce09b77c57", - strip_prefix = "github.com/go-openapi/inflect@v0.19.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-openapi/inflect/com_github_go_openapi_inflect-v0.19.0.zip", - ], - ) - go_repository( - name = "com_github_go_openapi_jsonpointer", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-openapi/jsonpointer", - sha256 = "e72055b331770686985b6a99a7e1ba6c71701175ab0ffb2bfa355665be6c5c85", - strip_prefix = "github.com/go-openapi/jsonpointer@v0.19.5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-openapi/jsonpointer/com_github_go_openapi_jsonpointer-v0.19.5.zip", - ], - ) - go_repository( - name = "com_github_go_openapi_jsonreference", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-openapi/jsonreference", - sha256 = "807e01410541971cb5620ecc98a91162f8e00e5a5c7087cf6ff43a2e1cfa2c8b", - strip_prefix = "github.com/go-openapi/jsonreference@v0.19.5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-openapi/jsonreference/com_github_go_openapi_jsonreference-v0.19.5.zip", - ], - ) - go_repository( - name = "com_github_go_openapi_loads", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-openapi/loads", - sha256 = "8c7ba6dc8b7c3346cafa3551ac3b459021e6003d62480c7d1a202a2b435c673d", - strip_prefix = "github.com/go-openapi/loads@v0.20.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-openapi/loads/com_github_go_openapi_loads-v0.20.2.zip", - ], - ) - go_repository( - name = "com_github_go_openapi_runtime", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-openapi/runtime", - sha256 = "25996438d5f0bac5619e23cad1279d799a521366f3ee68039ca1e16fb9385489", - strip_prefix = "github.com/go-openapi/runtime@v0.19.29", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-openapi/runtime/com_github_go_openapi_runtime-v0.19.29.zip", - ], - ) - go_repository( - name = "com_github_go_openapi_spec", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-openapi/spec", - sha256 = "eb5bb0a603d782c0ef1040dadfcfae7a5e04c08f33580c8718d70d0514d9e0b3", - strip_prefix = "github.com/go-openapi/spec@v0.20.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-openapi/spec/com_github_go_openapi_spec-v0.20.3.zip", - ], - ) - go_repository( - name = "com_github_go_openapi_strfmt", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-openapi/strfmt", - sha256 = "1145dde362d67d82caeb344b334d31f9b07957a455bf31d61237b6ada7273db2", - strip_prefix = "github.com/go-openapi/strfmt@v0.20.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-openapi/strfmt/com_github_go_openapi_strfmt-v0.20.2.zip", - ], - ) - go_repository( - name = "com_github_go_openapi_swag", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-openapi/swag", - sha256 = "58785e99946002b10858ccfc9fd318691c15e74b87a107a1ba2509886475b4a0", - strip_prefix = "github.com/go-openapi/swag@v0.19.15", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-openapi/swag/com_github_go_openapi_swag-v0.19.15.zip", - ], - ) - go_repository( - name = "com_github_go_openapi_validate", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-openapi/validate", - sha256 = "03c6a6579b340f4b579e8ca798bb41663c567118b933eaeb6602c1fa10ad3732", - strip_prefix = "github.com/go-openapi/validate@v0.20.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-openapi/validate/com_github_go_openapi_validate-v0.20.2.zip", - ], - ) - go_repository( - name = "com_github_go_playground_assert_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-playground/assert/v2", - sha256 = "46db6b505ff9818c50f924c6aec007dbbc4d86267fdf2d470ef4be12a40fd4cb", - strip_prefix = "github.com/go-playground/assert/v2@v2.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-playground/assert/v2/com_github_go_playground_assert_v2-v2.0.1.zip", - ], - ) - go_repository( - name = "com_github_go_playground_locales", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-playground/locales", - sha256 = "9c4b65273e135b1bdb9bafc7c0b5180a6c5936f54edecbc8807c57a9d107c6b9", - strip_prefix = "github.com/go-playground/locales@v0.13.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-playground/locales/com_github_go_playground_locales-v0.13.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 = "cfd4a4f76c27794e7b925fb672ee7576d89aa5e22efdc7fec4fc80b467abe06f", - strip_prefix = "github.com/go-playground/universal-translator@v0.17.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-playground/universal-translator/com_github_go_playground_universal_translator-v0.17.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 = "79cba8341d27fc1e1e2528c01b4e01b7d43ccfef2c06ad1cac73b2647b5302aa", - strip_prefix = "github.com/go-playground/validator/v10@v10.4.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-playground/validator/v10/com_github_go_playground_validator_v10-v10.4.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 = "43ac9ff350b1fb126a0f9f9341eaf4c281d661341e22efd7198f3ccd7a009f2a", - strip_prefix = "github.com/go-resty/resty/v2@v2.1.1-0.20191201195748-d7b97669fe48", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-resty/resty/v2/com_github_go_resty_resty_v2-v2.1.1-0.20191201195748-d7b97669fe48.zip", - ], - ) - go_repository( - name = "com_github_go_sql_driver_mysql", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-sql-driver/mysql", - sha256 = "07f052b8f3fb4c1bb8caaf2fdb95c0f13e4261c72494a16900728af9f2eee706", - strip_prefix = "github.com/go-sql-driver/mysql@v1.6.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-sql-driver/mysql/com_github_go_sql_driver_mysql-v1.6.0.zip", - ], - ) - go_repository( - name = "com_github_go_stack_stack", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-stack/stack", - sha256 = "78c2667c710f811307038634ffa43af442619acfeaf1efb593aa4e0ded9df48f", - strip_prefix = "github.com/go-stack/stack@v1.8.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-stack/stack/com_github_go_stack_stack-v1.8.0.zip", - ], - ) - go_repository( - name = "com_github_go_swagger_go_swagger", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-swagger/go-swagger", - sha256 = "465a017241a1a533766d214479ec330db4191ad796341fbb9f97a498a63ada4d", - strip_prefix = "github.com/go-swagger/go-swagger@v0.26.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-swagger/go-swagger/com_github_go_swagger_go_swagger-v0.26.1.zip", - ], - ) - go_repository( - name = "com_github_go_swagger_scan_repo_boundary", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-swagger/scan-repo-boundary", - sha256 = "51aed4b67bce9d988d64ca6be9de2169f709a29d5ea83e78ffb1c2432b346ec6", - strip_prefix = "github.com/go-swagger/scan-repo-boundary@v0.0.0-20180623220736-973b3573c013", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-swagger/scan-repo-boundary/com_github_go_swagger_scan_repo_boundary-v0.0.0-20180623220736-973b3573c013.zip", - ], - ) - go_repository( - name = "com_github_go_test_deep", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-test/deep", - sha256 = "9d1f4cfdb8e02af475903ea172741e4298661ca327a0dcf6c5b3e4d9d93b8bf0", - strip_prefix = "github.com/go-test/deep@v1.0.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-test/deep/com_github_go_test_deep-v1.0.4.zip", - ], - ) - go_repository( - name = "com_github_go_zookeeper_zk", - build_file_proto_mode = "disable_global", - importpath = "github.com/go-zookeeper/zk", - sha256 = "6f91aecf62ffb4d7468eb14372d1e43b8620eb341964b5001e85151b46caed4f", - strip_prefix = "github.com/go-zookeeper/zk@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-zookeeper/zk/com_github_go_zookeeper_zk-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_gobuffalo_attrs", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobuffalo/attrs", - sha256 = "8fa6e4f71f4f4ce772f2e7b5dd3975f0c079ab1b81f1fabdc80356d3a56b834c", - strip_prefix = "github.com/gobuffalo/attrs@v0.0.0-20190224210810-a9411de4debd", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobuffalo/attrs/com_github_gobuffalo_attrs-v0.0.0-20190224210810-a9411de4debd.zip", - ], - ) - go_repository( - name = "com_github_gobuffalo_depgen", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobuffalo/depgen", - sha256 = "b86c4272426beb18fc37acdaae2cda504fbfe41304d214c5f09070ec0d98390b", - strip_prefix = "github.com/gobuffalo/depgen@v0.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobuffalo/depgen/com_github_gobuffalo_depgen-v0.1.0.zip", - ], - ) - go_repository( - name = "com_github_gobuffalo_envy", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobuffalo/envy", - sha256 = "46f9f290cd8415de5779b76cc18e5622ab655c2ac2eab85f3b671e7d8cea929c", - strip_prefix = "github.com/gobuffalo/envy@v1.7.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobuffalo/envy/com_github_gobuffalo_envy-v1.7.0.zip", - ], - ) - go_repository( - name = "com_github_gobuffalo_flect", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobuffalo/flect", - sha256 = "48ef00b7e5018cee90fa148321b2427f2e0e274682c2f8d1b77587e24d6ee69a", - strip_prefix = "github.com/gobuffalo/flect@v0.1.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobuffalo/flect/com_github_gobuffalo_flect-v0.1.3.zip", - ], - ) - go_repository( - name = "com_github_gobuffalo_genny", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobuffalo/genny", - sha256 = "71c6f6aad1c31e965cbdb506d6ed224a428ecd26a1dee579df30fe7ed7165432", - strip_prefix = "github.com/gobuffalo/genny@v0.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobuffalo/genny/com_github_gobuffalo_genny-v0.1.1.zip", - ], - ) - go_repository( - name = "com_github_gobuffalo_gitgen", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobuffalo/gitgen", - sha256 = "c79975f91dd2fd691d70e29678034eb2dc94b5da2f01b0790a919de9d2a632ac", - strip_prefix = "github.com/gobuffalo/gitgen@v0.0.0-20190315122116-cc086187d211", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobuffalo/gitgen/com_github_gobuffalo_gitgen-v0.0.0-20190315122116-cc086187d211.zip", - ], - ) - go_repository( - name = "com_github_gobuffalo_gogen", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobuffalo/gogen", - sha256 = "753056c63f43accfe43c446e9bc11e156c079fdbda0589103c13f0e831072bc2", - strip_prefix = "github.com/gobuffalo/gogen@v0.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobuffalo/gogen/com_github_gobuffalo_gogen-v0.1.1.zip", - ], - ) - go_repository( - name = "com_github_gobuffalo_logger", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobuffalo/logger", - sha256 = "0ef4ed0706260582fa0c90278400fcdcff9be3b475f8a19d103c9be9de0e4c73", - strip_prefix = "github.com/gobuffalo/logger@v0.0.0-20190315122211-86e12af44bc2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobuffalo/logger/com_github_gobuffalo_logger-v0.0.0-20190315122211-86e12af44bc2.zip", - ], - ) - go_repository( - name = "com_github_gobuffalo_mapi", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobuffalo/mapi", - sha256 = "44a37e32207496271cb4ede9649534859de91f0d2ea7638ccd382bf61120e438", - strip_prefix = "github.com/gobuffalo/mapi@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobuffalo/mapi/com_github_gobuffalo_mapi-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_gobuffalo_packd", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobuffalo/packd", - sha256 = "9a7e7f84ecd9cc9f4aa1835eaae9d99cdf3c35d2ca4af799b61290cdc301de1e", - strip_prefix = "github.com/gobuffalo/packd@v0.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobuffalo/packd/com_github_gobuffalo_packd-v0.1.0.zip", - ], - ) - go_repository( - name = "com_github_gobuffalo_packr_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobuffalo/packr/v2", - sha256 = "0170bbcef28f04575fc8cefa2715e833ccb4e158ef5e0d99c07184ce100c146a", - strip_prefix = "github.com/gobuffalo/packr/v2@v2.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobuffalo/packr/v2/com_github_gobuffalo_packr_v2-v2.2.0.zip", - ], - ) - go_repository( - name = "com_github_gobuffalo_syncx", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobuffalo/syncx", - sha256 = "ad9a571b43d72ecce24b8bed85636091710f22d8b06051e1e19ef2051f3e00da", - strip_prefix = "github.com/gobuffalo/syncx@v0.0.0-20190224160051-33c29581e754", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobuffalo/syncx/com_github_gobuffalo_syncx-v0.0.0-20190224160051-33c29581e754.zip", - ], - ) - go_repository( - name = "com_github_gobwas_httphead", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobwas/httphead", - sha256 = "5a43ed4a7cd2b063b634f0df5311c0dfa6576683bfc1339f2c5b1b1127fc392b", - strip_prefix = "github.com/gobwas/httphead@v0.0.0-20180130184737-2c6c146eadee", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobwas/httphead/com_github_gobwas_httphead-v0.0.0-20180130184737-2c6c146eadee.zip", - ], - ) - go_repository( - name = "com_github_gobwas_pool", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobwas/pool", - sha256 = "52604b1456b92bb310461167a3e6515562f0f4214f01ed6440e3105f78be188f", - strip_prefix = "github.com/gobwas/pool@v0.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobwas/pool/com_github_gobwas_pool-v0.2.0.zip", - ], - ) - go_repository( - name = "com_github_gobwas_ws", - build_file_proto_mode = "disable_global", - importpath = "github.com/gobwas/ws", - sha256 = "f9e5c26e83278f19958c68be7b76ad6711c806b6dae766fad7692d2af867bedd", - strip_prefix = "github.com/gobwas/ws@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gobwas/ws/com_github_gobwas_ws-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_gocql_gocql", - build_file_proto_mode = "disable_global", - importpath = "github.com/gocql/gocql", - sha256 = "40095e622040db188068b66258742938a5b083f6696b46b4a40c0391f0dafcec", - strip_prefix = "github.com/gocql/gocql@v0.0.0-20200228163523-cd4b606dd2fb", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gocql/gocql/com_github_gocql_gocql-v0.0.0-20200228163523-cd4b606dd2fb.zip", - ], - ) - go_repository( - name = "com_github_godbus_dbus", - build_file_proto_mode = "disable_global", - importpath = "github.com/godbus/dbus", - sha256 = "4949c4ae117d0c306a28bb05a7da82be3c4a76676939e6ec60540335c8eff90d", - strip_prefix = "github.com/godbus/dbus@v0.0.0-20190422162347-ade71ed3457e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/godbus/dbus/com_github_godbus_dbus-v0.0.0-20190422162347-ade71ed3457e.zip", - ], - ) - go_repository( - name = "com_github_godbus_dbus_v5", - build_file_proto_mode = "disable_global", - importpath = "github.com/godbus/dbus/v5", - sha256 = "23a23f08bea48e6e49a46a4015b64adbb1692dc6ddf0d83c2f0c2027cb8e31c8", - strip_prefix = "github.com/godbus/dbus/v5@v5.0.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/godbus/dbus/v5/com_github_godbus_dbus_v5-v5.0.4.zip", - ], - ) - go_repository( - name = "com_github_gofrs_flock", - build_file_proto_mode = "disable_global", - importpath = "github.com/gofrs/flock", - sha256 = "9ace5b0a05672937904fba1fcb86cb45e7f701e508faeb5f612e243340351dfa", - strip_prefix = "github.com/gofrs/flock@v0.8.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gofrs/flock/com_github_gofrs_flock-v0.8.1.zip", - ], - ) - go_repository( - name = "com_github_gofrs_uuid", - build_file_proto_mode = "disable_global", - importpath = "github.com/gofrs/uuid", - sha256 = "8cadafda9aea197d34898d6945692173ac1d8abf3b559c4e5a59a577fc60f55e", - strip_prefix = "github.com/gofrs/uuid@v4.0.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gofrs/uuid/com_github_gofrs_uuid-v4.0.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_gogo_googleapis", - build_file_proto_mode = "disable_global", - importpath = "github.com/gogo/googleapis", - sha256 = "34110f4fe52daa66bf190e6c5be70e2e384ceca3cb1bce3e20f32994ede5a141", - strip_prefix = "github.com/gogo/googleapis@v1.4.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gogo/googleapis/com_github_gogo_googleapis-v1.4.1.zip", - ], - ) - go_repository( - name = "com_github_gogo_protobuf", - build_file_proto_mode = "disable_global", - importpath = "github.com/gogo/protobuf", - patch_args = ["-p1"], - patches = [ - "@cockroach//build/patches:com_github_gogo_protobuf.patch", - ], - sha256 = "dd2b73f163c8183941626360196c8f844addd95423d341a0412e1b22d0104ff7", - strip_prefix = "github.com/gogo/protobuf@v1.3.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gogo/protobuf/com_github_gogo_protobuf-v1.3.2.zip", - ], - ) - go_repository( - name = "com_github_gogo_status", - build_file_proto_mode = "disable_global", - importpath = "github.com/gogo/status", - sha256 = "c042d3555c9f490a75d44ad4c3dff367f9512e6d189252f8765f4837b11b12b1", - strip_prefix = "github.com/gogo/status@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gogo/status/com_github_gogo_status-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_golang_commonmark_html", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang-commonmark/html", - sha256 = "7f6687aa6ce780217750ee31711506bc919e140d205fd1693bfb5c81b5ab5a5d", - strip_prefix = "github.com/golang-commonmark/html@v0.0.0-20180910111043-7d7c804e1d46", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang-commonmark/html/com_github_golang_commonmark_html-v0.0.0-20180910111043-7d7c804e1d46.zip", - ], - ) - go_repository( - name = "com_github_golang_commonmark_linkify", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang-commonmark/linkify", - sha256 = "03d5797db955119a0d607167509727a60884ba2ebf7590732a262cd153ca14a9", - strip_prefix = "github.com/golang-commonmark/linkify@v0.0.0-20180910111149-f05efb453a0e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang-commonmark/linkify/com_github_golang_commonmark_linkify-v0.0.0-20180910111149-f05efb453a0e.zip", - ], - ) - go_repository( - name = "com_github_golang_commonmark_markdown", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang-commonmark/markdown", - sha256 = "86887f9a455d8c2a48dd7b2d69352cde7730c35bab2c9edfd347886a106f5e89", - strip_prefix = "github.com/golang-commonmark/markdown@v0.0.0-20180910011815-a8f139058164", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang-commonmark/markdown/com_github_golang_commonmark_markdown-v0.0.0-20180910011815-a8f139058164.zip", - ], - ) - go_repository( - name = "com_github_golang_commonmark_mdurl", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang-commonmark/mdurl", - sha256 = "b7386081771d71200f34972369cf4bcea3eb1dc6dcb1cf3906b692c586c22557", - strip_prefix = "github.com/golang-commonmark/mdurl@v0.0.0-20180910110917-8d018c6567d6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang-commonmark/mdurl/com_github_golang_commonmark_mdurl-v0.0.0-20180910110917-8d018c6567d6.zip", - ], - ) - go_repository( - name = "com_github_golang_commonmark_puny", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang-commonmark/puny", - sha256 = "1296aef61f597df70d851197dacc258fc8f3e80d0a7180e7470bd1a2f2dcbd08", - strip_prefix = "github.com/golang-commonmark/puny@v0.0.0-20180910110745-050be392d8b8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang-commonmark/puny/com_github_golang_commonmark_puny-v0.0.0-20180910110745-050be392d8b8.zip", - ], - ) - go_repository( - name = "com_github_golang_freetype", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang/freetype", - sha256 = "cdcb9e6a14933dcbf167b44dcd5083fc6a2e52c4fae8fb79747c691efeb7d84e", - strip_prefix = "github.com/golang/freetype@v0.0.0-20170609003504-e2365dfdc4a0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang/freetype/com_github_golang_freetype-v0.0.0-20170609003504-e2365dfdc4a0.zip", - ], - ) - go_repository( - name = "com_github_golang_geo", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang/geo", - sha256 = "f19bf757263775cf21790a1821cc8ac1b853fe41dd2499d9e6a434f01bd12332", - strip_prefix = "github.com/golang/geo@v0.0.0-20200319012246-673a6f80352d", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang/geo/com_github_golang_geo-v0.0.0-20200319012246-673a6f80352d.zip", - ], - ) - go_repository( - name = "com_github_golang_glog", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang/glog", - sha256 = "677f7912d32cb417cfb59cbab9b9e924224a53679aa384b0526df2eda96d8775", - strip_prefix = "github.com/golang/glog@v0.0.0-20210429001901-424d2337a529", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang/glog/com_github_golang_glog-v0.0.0-20210429001901-424d2337a529.zip", - ], - ) - go_repository( - name = "com_github_golang_groupcache", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang/groupcache", - sha256 = "b27034e8fc013627543e1ad098cfc65329f2896df3da5cf3266cc9166f93f3a5", - strip_prefix = "github.com/golang/groupcache@v0.0.0-20210331224755-41bb18bfe9da", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang/groupcache/com_github_golang_groupcache-v0.0.0-20210331224755-41bb18bfe9da.zip", - ], - ) - go_repository( - name = "com_github_golang_jwt_jwt", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang-jwt/jwt", - sha256 = "28d6dd7cc77d0a960699196e9c2170731f65d624d675888d2ababe7e8a422955", - strip_prefix = "github.com/golang-jwt/jwt@v3.2.2+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang-jwt/jwt/com_github_golang_jwt_jwt-v3.2.2+incompatible.zip", - ], - ) - go_repository( - name = "com_github_golang_jwt_jwt_v4", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang-jwt/jwt/v4", - sha256 = "51d00fb75dfa0f4ff7b5597d842c43f53573eca8c58f8bc89b229b9b4853a4ab", - strip_prefix = "github.com/golang-jwt/jwt/v4@v4.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang-jwt/jwt/v4/com_github_golang_jwt_jwt_v4-v4.0.0.zip", - ], - ) - go_repository( - name = "com_github_golang_mock", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang/mock", - sha256 = "fa25916b546f90da49418f436e3a61e4c5dae898cf3c82b0007b5a6fab74261b", - strip_prefix = "github.com/golang/mock@v1.6.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang/mock/com_github_golang_mock-v1.6.0.zip", - ], - ) - go_repository( - name = "com_github_golang_protobuf", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang/protobuf", - patch_args = ["-p1"], - patches = [ - "@cockroach//build/patches:com_github_golang_protobuf.patch", - ], - sha256 = "5d1c817bebc1202ab3b42a418e584e0008e8027baf212ce69c2ae3e9e7b8c64b", - strip_prefix = "github.com/golang/protobuf@v1.5.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang/protobuf/com_github_golang_protobuf-v1.5.2.zip", - ], - ) - go_repository( - name = "com_github_golang_snappy", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang/snappy", - sha256 = "ea4545ca44ee990554094df6de440386a440a5bd99106e048939409d63beb423", - strip_prefix = "github.com/golang/snappy@v0.0.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang/snappy/com_github_golang_snappy-v0.0.4.zip", - ], - ) - go_repository( - name = "com_github_golang_sql_civil", - build_file_proto_mode = "disable_global", - importpath = "github.com/golang-sql/civil", - sha256 = "22fcd1e01cabf6ec75c6b6c8e443de029611c9dd5cc4673818d52dac465ac688", - strip_prefix = "github.com/golang-sql/civil@v0.0.0-20190719163853-cb61b32ac6fe", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang-sql/civil/com_github_golang_sql_civil-v0.0.0-20190719163853-cb61b32ac6fe.zip", - ], - ) - go_repository( - name = "com_github_golangci_lint_1", - build_file_proto_mode = "disable_global", - importpath = "github.com/golangci/lint-1", - sha256 = "2806ffd1a35b26a29b4cea86eb5ae421636b317e33e261fc1c20f9cf8fec2db5", - strip_prefix = "github.com/golangci/lint-1@v0.0.0-20181222135242-d2cdd8c08219", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golangci/lint-1/com_github_golangci_lint_1-v0.0.0-20181222135242-d2cdd8c08219.zip", - ], - ) - go_repository( - name = "com_github_gomodule_redigo", - build_file_proto_mode = "disable_global", - importpath = "github.com/gomodule/redigo", - sha256 = "f665942b590c65e87284d681ea2784d0b9873c644756f4716a9972dc0d8e804e", - strip_prefix = "github.com/gomodule/redigo@v1.7.1-0.20190724094224-574c33c3df38", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gomodule/redigo/com_github_gomodule_redigo-v1.7.1-0.20190724094224-574c33c3df38.zip", - ], - ) - go_repository( - name = "com_github_google_btree", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/btree", - sha256 = "9b9f66ca4eb36bb1867b5ff9134fb2eb9fe9717d44e28836f2e977f9c03b4128", - strip_prefix = "github.com/google/btree@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/btree/com_github_google_btree-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_google_flatbuffers", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/flatbuffers", - sha256 = "0afae89460c24ba56d23f35573ba49713eef3230aeb8c14bf90c771f97efa695", - strip_prefix = "github.com/google/flatbuffers@v2.0.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/flatbuffers/com_github_google_flatbuffers-v2.0.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_google_go_cmp", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/go-cmp", - sha256 = "6c739327d027b2e6573ae5fe3de501ad1e3691af6a9e7f34541944010f142f27", - strip_prefix = "github.com/google/go-cmp@v0.5.7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/go-cmp/com_github_google_go_cmp-v0.5.7.zip", - ], - ) - go_repository( - name = "com_github_google_go_github", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/go-github", - sha256 = "9831222a466bec73a21627e0c3525da9cadd969468e31d10ecae8580b0568d0e", - strip_prefix = "github.com/google/go-github@v17.0.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/go-github/com_github_google_go_github-v17.0.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_google_go_github_v27", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/go-github/v27", - sha256 = "c0bb2e2b9d8b610fd1d4b9fa8a3636a5337f19aecec33e76aecbf32ae4e192bb", - strip_prefix = "github.com/google/go-github/v27@v27.0.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/go-github/v27/com_github_google_go_github_v27-v27.0.4.zip", - ], - ) - go_repository( - name = "com_github_google_go_github_v39", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/go-github/v39", - sha256 = "e8c6bb1c02f57d533559b4125a7f931c55901c9e2560bd688770314c27bcef4f", - strip_prefix = "github.com/google/go-github/v39@v39.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/go-github/v39/com_github_google_go_github_v39-v39.0.0.zip", - ], - ) - go_repository( - name = "com_github_google_go_github_v42", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/go-github/v42", - sha256 = "250d7e937ea6b1d06a95168dba8708db6cc1f447ffe94712d0e2a82540ea01c9", - strip_prefix = "github.com/google/go-github/v42@v42.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/go-github/v42/com_github_google_go_github_v42-v42.0.0.zip", - ], - ) - go_repository( - name = "com_github_google_go_querystring", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/go-querystring", - sha256 = "a6aafc01f5602e6177928751074e325792a654e1d92f0e238b8e8739656dd72b", - strip_prefix = "github.com/google/go-querystring@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/go-querystring/com_github_google_go_querystring-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_google_gofuzz", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/gofuzz", - sha256 = "5c41453c0e2df199e899097e95d75f19fdda591e977233f47fab15b84e352b04", - strip_prefix = "github.com/google/gofuzz@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/gofuzz/com_github_google_gofuzz-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_google_martian", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/martian", - sha256 = "5bdd2ebd37dda1c0cf786db27707966c8624b288641da704b0e31c96b393ce70", - strip_prefix = "github.com/google/martian@v2.1.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/martian/com_github_google_martian-v2.1.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_google_martian_v3", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/martian/v3", - sha256 = "d1450c8806be91afda7d68d9eee117de58aa04e89d01dbd328455c294379c6c0", - strip_prefix = "github.com/google/martian/v3@v3.2.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/martian/v3/com_github_google_martian_v3-v3.2.1.zip", - ], - ) - go_repository( - name = "com_github_google_pprof", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/pprof", - sha256 = "ef4516ff75385445e0afd1bfd452506cc8f791fe3bf71c9f5bcff0814f301c2e", - strip_prefix = "github.com/google/pprof@v0.0.0-20210827144239-02619b876842", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/pprof/com_github_google_pprof-v0.0.0-20210827144239-02619b876842.zip", - ], - ) - go_repository( - name = "com_github_google_renameio", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/renameio", - sha256 = "b8510bb34078691a20b8e4902d371afe0eb171b2daf953f67cb3960d1926ccf3", - strip_prefix = "github.com/google/renameio@v0.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/renameio/com_github_google_renameio-v0.1.0.zip", - ], - ) - go_repository( - name = "com_github_google_shlex", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/shlex", - sha256 = "1bf70bdb4c889b47b1976370832da79060c36cad282f278f279603200623775c", - strip_prefix = "github.com/google/shlex@v0.0.0-20191202100458-e7afc7fbc510", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/shlex/com_github_google_shlex-v0.0.0-20191202100458-e7afc7fbc510.zip", - ], - ) - 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 = [ - "https://storage.googleapis.com/cockroach-godeps/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", - sha256 = "0a5fcc05ea492afeaca984a012485f6a15e2259b32f1206d6f36a88c88afc607", - strip_prefix = "github.com/google/uuid@v1.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/uuid/com_github_google_uuid-v1.3.0.zip", - ], - ) - go_repository( - name = "com_github_googleapis_gax_go_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/googleapis/gax-go/v2", - sha256 = "b8f7a0fd38ce167551e21a0c29c9bb3ebb4ccf179ecebe6c5b2504ce7f1baddd", - strip_prefix = "github.com/googleapis/gax-go/v2@v2.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/googleapis/gax-go/v2/com_github_googleapis_gax_go_v2-v2.1.1.zip", - ], - ) - go_repository( - name = "com_github_googleapis_gnostic", - build_file_proto_mode = "disable_global", - importpath = "github.com/googleapis/gnostic", - sha256 = "50fab68c592e8c8038b48b3c7b68d8f56297a58da28194ace2a43a9866c4025b", - strip_prefix = "github.com/googleapis/gnostic@v0.5.5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/googleapis/gnostic/com_github_googleapis_gnostic-v0.5.5.zip", - ], - ) - go_repository( - name = "com_github_gophercloud_gophercloud", - build_file_proto_mode = "disable_global", - importpath = "github.com/gophercloud/gophercloud", - sha256 = "aca35069a500cfa1694c16908985bfc88bd52e455a2ad3d901399352240c7424", - strip_prefix = "github.com/gophercloud/gophercloud@v0.20.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gophercloud/gophercloud/com_github_gophercloud_gophercloud-v0.20.0.zip", - ], - ) - go_repository( - name = "com_github_gopherjs_gopherjs", - build_file_proto_mode = "disable_global", - importpath = "github.com/gopherjs/gopherjs", - sha256 = "096bf06513b3607377446f9864eab5099652c0985c1614b7e89ca92cd8989178", - strip_prefix = "github.com/gopherjs/gopherjs@v0.0.0-20181103185306-d547d1d9531e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gopherjs/gopherjs/com_github_gopherjs_gopherjs-v0.0.0-20181103185306-d547d1d9531e.zip", - ], - ) - go_repository( - name = "com_github_gordonklaus_ineffassign", - build_file_proto_mode = "disable_global", - importpath = "github.com/gordonklaus/ineffassign", - sha256 = "ca53f10fdaec7dd8a835c69dee8fe2c0189cb6da38cb0a601310d7e756f15d09", - strip_prefix = "github.com/gordonklaus/ineffassign@v0.0.0-20200309095847-7953dde2c7bf", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gordonklaus/ineffassign/com_github_gordonklaus_ineffassign-v0.0.0-20200309095847-7953dde2c7bf.zip", - ], - ) - go_repository( - name = "com_github_gorilla_context", - build_file_proto_mode = "disable_global", - importpath = "github.com/gorilla/context", - sha256 = "4ec8e01fe741a931edeebdee9348ffb49b5cc565ca245551d0d20b67062e6f0b", - strip_prefix = "github.com/gorilla/context@v1.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gorilla/context/com_github_gorilla_context-v1.1.1.zip", - ], - ) - go_repository( - name = "com_github_gorilla_handlers", - build_file_proto_mode = "disable_global", - importpath = "github.com/gorilla/handlers", - sha256 = "700cb5572cef0b4c251fc63550d3a656d53b91cec845f19b6a16bdbc6795beec", - strip_prefix = "github.com/gorilla/handlers@v1.5.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gorilla/handlers/com_github_gorilla_handlers-v1.5.1.zip", - ], - ) - go_repository( - name = "com_github_gorilla_mux", - build_file_proto_mode = "disable_global", - importpath = "github.com/gorilla/mux", - sha256 = "7641911e00af9c91f089868333067c9cb9a58702d2c9ea821ee374940091c385", - strip_prefix = "github.com/gorilla/mux@v1.8.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gorilla/mux/com_github_gorilla_mux-v1.8.0.zip", - ], - ) - go_repository( - name = "com_github_gorilla_securecookie", - build_file_proto_mode = "disable_global", - importpath = "github.com/gorilla/securecookie", - sha256 = "dd83a4230e11568159756bbea4d343c88df0cd1415bbbc7cd5badad6cd2ed903", - strip_prefix = "github.com/gorilla/securecookie@v1.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gorilla/securecookie/com_github_gorilla_securecookie-v1.1.1.zip", - ], - ) - go_repository( - name = "com_github_gorilla_sessions", - build_file_proto_mode = "disable_global", - importpath = "github.com/gorilla/sessions", - sha256 = "2c6aeebfef8062537fd7778067e5e99d4c13f79ac63114e905c97040a6e6b523", - strip_prefix = "github.com/gorilla/sessions@v1.2.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gorilla/sessions/com_github_gorilla_sessions-v1.2.1.zip", - ], - ) - go_repository( - name = "com_github_gorilla_websocket", - build_file_proto_mode = "disable_global", - importpath = "github.com/gorilla/websocket", - sha256 = "d0d1728deaa06dac190bf4964c9c6395923403eae337cb3305d6dda18ef07337", - strip_prefix = "github.com/gorilla/websocket@v1.4.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gorilla/websocket/com_github_gorilla_websocket-v1.4.2.zip", - ], - ) - go_repository( - name = "com_github_goware_modvendor", - build_file_proto_mode = "disable_global", - importpath = "github.com/goware/modvendor", - sha256 = "0782a6fdb917d025c21b92e06799c1a29b050a92c9711da10babc7af57c92b4e", - strip_prefix = "github.com/goware/modvendor@v0.5.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/goware/modvendor/com_github_goware_modvendor-v0.5.0.zip", - ], - ) - go_repository( - name = "com_github_gregjones_httpcache", - build_file_proto_mode = "disable_global", - importpath = "github.com/gregjones/httpcache", - sha256 = "2930b770ec363219f32947ec67b36ccb629058849618c82bc4d891f856df49e1", - strip_prefix = "github.com/gregjones/httpcache@v0.0.0-20180305231024-9cad4c3443a7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/gregjones/httpcache/com_github_gregjones_httpcache-v0.0.0-20180305231024-9cad4c3443a7.zip", - ], - ) - go_repository( - name = "com_github_grpc_ecosystem_go_grpc_middleware", - build_file_proto_mode = "disable_global", - importpath = "github.com/grpc-ecosystem/go-grpc-middleware", - sha256 = "29612c2745026cd4dcd312797fe62f88c125c89d2914513cbc37efcf0bb4da54", - strip_prefix = "github.com/grpc-ecosystem/go-grpc-middleware@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/grpc-ecosystem/go-grpc-middleware/com_github_grpc_ecosystem_go_grpc_middleware-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_grpc_ecosystem_go_grpc_prometheus", - build_file_proto_mode = "disable_global", - importpath = "github.com/grpc-ecosystem/go-grpc-prometheus", - sha256 = "124dfc63aa52611a2882417e685c0452d4d99d64c13836a6a6747675e911fc17", - strip_prefix = "github.com/grpc-ecosystem/go-grpc-prometheus@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/grpc-ecosystem/go-grpc-prometheus/com_github_grpc_ecosystem_go_grpc_prometheus-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_grpc_ecosystem_grpc_gateway", - build_file_proto_mode = "disable_global", - build_naming_convention = "go_default_library", - importpath = "github.com/grpc-ecosystem/grpc-gateway", - patch_args = ["-p1"], - patches = [ - "@cockroach//build/patches:com_github_grpc_ecosystem_grpc_gateway.patch", - ], - sha256 = "377b03aef288b34ed894449d3ddba40d525dd7fb55de6e79045cdf499e7fe565", - strip_prefix = "github.com/grpc-ecosystem/grpc-gateway@v1.16.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/grpc-ecosystem/grpc-gateway/com_github_grpc_ecosystem_grpc_gateway-v1.16.0.zip", - ], - ) - go_repository( - name = "com_github_hailocab_go_hostpool", - build_file_proto_mode = "disable_global", - importpath = "github.com/hailocab/go-hostpool", - sha256 = "faf2b985681cda77ab928976b620b790585e364b6aff351483227d474db85e9a", - strip_prefix = "github.com/hailocab/go-hostpool@v0.0.0-20160125115350-e80d13ce29ed", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hailocab/go-hostpool/com_github_hailocab_go_hostpool-v0.0.0-20160125115350-e80d13ce29ed.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_consul_api", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/consul/api", - sha256 = "a84081dcb2361b540bb787871abedc0f9569c09637f5b5c40e973500a4402a82", - strip_prefix = "github.com/hashicorp/consul/api@v1.10.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/consul/api/com_github_hashicorp_consul_api-v1.10.1.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_consul_sdk", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/consul/sdk", - sha256 = "cf29fff6c000ee67eda1b8cacec9648d06944e3cdbb80e2e22dc0165708974c6", - strip_prefix = "github.com/hashicorp/consul/sdk@v0.8.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/consul/sdk/com_github_hashicorp_consul_sdk-v0.8.0.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_errwrap", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/errwrap", - sha256 = "ccdf4c90f894d8a5fde4e79d5828c5d27a13e9f7ce3006dd72ce76e6e17cdeb2", - strip_prefix = "github.com/hashicorp/errwrap@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/errwrap/com_github_hashicorp_errwrap-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_go_cleanhttp", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/go-cleanhttp", - sha256 = "e3cc9964b0bc80c6156d6fb064abcb62ff8c00df8be8009b6f6d3aefc2776a23", - strip_prefix = "github.com/hashicorp/go-cleanhttp@v0.5.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/go-cleanhttp/com_github_hashicorp_go_cleanhttp-v0.5.1.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_go_hclog", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/go-hclog", - sha256 = "c10a48312d0a1ae070bc894005efdb1bc23ad615d950b4e0975c30dfc01147c9", - strip_prefix = "github.com/hashicorp/go-hclog@v0.14.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/go-hclog/com_github_hashicorp_go_hclog-v0.14.0.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_go_immutable_radix", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/go-immutable-radix", - sha256 = "5245859054e0edcc7b017e11c671116b3994e5316695a78bac9b2495a115abc1", - strip_prefix = "github.com/hashicorp/go-immutable-radix@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/go-immutable-radix/com_github_hashicorp_go_immutable_radix-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_go_msgpack", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/go-msgpack", - sha256 = "fb47605669b0ddd75292aac788208475fecd54e0ea3e9a282d8a98ae8c60d1f5", - strip_prefix = "github.com/hashicorp/go-msgpack@v0.5.5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/go-msgpack/com_github_hashicorp_go_msgpack-v0.5.5.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_go_multierror", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/go-multierror", - sha256 = "3c60b77bb039c4431734883c65d645436a57c2653d00ae4cd7ea4f0303bc38e2", - strip_prefix = "github.com/hashicorp/go-multierror@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/go-multierror/com_github_hashicorp_go_multierror-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_go_net", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/go.net", - sha256 = "71564aa3cb6e2820ee31e4d9e264e4ed889c7916f958b2f54c6f3004d4fcd8d2", - strip_prefix = "github.com/hashicorp/go.net@v0.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/go.net/com_github_hashicorp_go_net-v0.0.1.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_go_plugin", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/go-plugin", - sha256 = "bdcedbf701bf0e294e15a46806c520e3c5e40072a1dba1cce5cad959f219f9a3", - strip_prefix = "github.com/hashicorp/go-plugin@v1.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/go-plugin/com_github_hashicorp_go_plugin-v1.3.0.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_go_retryablehttp", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/go-retryablehttp", - sha256 = "1560044c4deed91fa2a27874216ed4580afbabd37f53232d2364b131c915d94f", - strip_prefix = "github.com/hashicorp/go-retryablehttp@v0.5.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/go-retryablehttp/com_github_hashicorp_go_retryablehttp-v0.5.3.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_go_rootcerts", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/go-rootcerts", - sha256 = "864a48e642e87a273fb5ef60bb3575bd74a7090510f93143163fa6700be31948", - strip_prefix = "github.com/hashicorp/go-rootcerts@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/go-rootcerts/com_github_hashicorp_go_rootcerts-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_go_sockaddr", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/go-sockaddr", - sha256 = "50c1b60863b0cd31d03b26d3975f76cab55466666c067cd1823481a61f19af33", - strip_prefix = "github.com/hashicorp/go-sockaddr@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/go-sockaddr/com_github_hashicorp_go_sockaddr-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_go_syslog", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/go-syslog", - sha256 = "a0ca8b61ea365e9ecdca513b94f200aef3ff68b4c95d9dabc88ca25fcb33bce6", - strip_prefix = "github.com/hashicorp/go-syslog@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/go-syslog/com_github_hashicorp_go_syslog-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_go_uuid", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/go-uuid", - sha256 = "30e419ebb4658e789be8ef1f5629faccc15d6571c6914a51afdcbaf74a5862b8", - strip_prefix = "github.com/hashicorp/go-uuid@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/go-uuid/com_github_hashicorp_go_uuid-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_go_version", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/go-version", - sha256 = "a3231adb6bf029750970de2955e82e41e4c062b94eb73683e9111aa0c0841008", - strip_prefix = "github.com/hashicorp/go-version@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/go-version/com_github_hashicorp_go_version-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_golang_lru", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/golang-lru", - sha256 = "7b2a8b1739c858727fca497a6415323edb801dc97b8aca04f7bac4ab9fb5c66b", - strip_prefix = "github.com/hashicorp/golang-lru@v0.5.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/golang-lru/com_github_hashicorp_golang_lru-v0.5.4.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_hcl", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/hcl", - sha256 = "54149a2e5121b3e81f961c79210e63d6798eb63de28d2599ee59ade1fa76c82b", - strip_prefix = "github.com/hashicorp/hcl@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/hcl/com_github_hashicorp_hcl-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_logutils", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/logutils", - sha256 = "0e88424578d1d6b7793b63d30c180a353ce8041701d25dc7c3bcd9841c36db5b", - strip_prefix = "github.com/hashicorp/logutils@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/logutils/com_github_hashicorp_logutils-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_mdns", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/mdns", - sha256 = "0f4b33961638b1273ace80b64c6fc7e54a1064484b2a1e182ab3d38a35dbc94f", - strip_prefix = "github.com/hashicorp/mdns@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/mdns/com_github_hashicorp_mdns-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_memberlist", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/memberlist", - sha256 = "8de4e6391d17ffee7722c3fa96589049ae7b6b4c2b59b757ecb9bb779f5307c6", - strip_prefix = "github.com/hashicorp/memberlist@v0.2.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/memberlist/com_github_hashicorp_memberlist-v0.2.4.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_serf", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/serf", - sha256 = "b26c9916768043e9480615b4032f9f7d18ee2cdad6a7f75436570610df30fadf", - strip_prefix = "github.com/hashicorp/serf@v0.9.5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/serf/com_github_hashicorp_serf-v0.9.5.zip", - ], - ) - go_repository( - name = "com_github_hashicorp_yamux", - build_file_proto_mode = "disable_global", - importpath = "github.com/hashicorp/yamux", - sha256 = "d8a888d6a4ecbc09f2f3663cb47aa2d064298eeb1491f4761a43ae95e93ba035", - strip_prefix = "github.com/hashicorp/yamux@v0.0.0-20190923154419-df201c70410d", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hashicorp/yamux/com_github_hashicorp_yamux-v0.0.0-20190923154419-df201c70410d.zip", - ], - ) - go_repository( - name = "com_github_hdrhistogram_hdrhistogram_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/HdrHistogram/hdrhistogram-go", - sha256 = "12281e93a8cf983caec3286e00eadb1475bddad684226015ab96979012f55ac9", - strip_prefix = "github.com/HdrHistogram/hdrhistogram-go@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/HdrHistogram/hdrhistogram-go/com_github_hdrhistogram_hdrhistogram_go-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_hetznercloud_hcloud_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/hetznercloud/hcloud-go", - sha256 = "c530755603bfe3c79ee4327f896057d6c2fe93792d8a77c42c22b90547c52e7c", - strip_prefix = "github.com/hetznercloud/hcloud-go@v1.32.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hetznercloud/hcloud-go/com_github_hetznercloud_hcloud_go-v1.32.0.zip", - ], - ) - go_repository( - name = "com_github_howeyc_gopass", - build_file_proto_mode = "disable_global", - importpath = "github.com/howeyc/gopass", - sha256 = "83560b6c9a6220bcbb4ad2f043e5a190ab11a013b77c1bbff9a3a67ed74d4b37", - strip_prefix = "github.com/howeyc/gopass@v0.0.0-20190910152052-7cb4b85ec19c", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/howeyc/gopass/com_github_howeyc_gopass-v0.0.0-20190910152052-7cb4b85ec19c.zip", - ], - ) - go_repository( - name = "com_github_hpcloud_tail", - build_file_proto_mode = "disable_global", - importpath = "github.com/hpcloud/tail", - sha256 = "3cba484748e2e2919d72663599b8cc6454058976fbca96f9ac78d84f195b922a", - strip_prefix = "github.com/hpcloud/tail@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hpcloud/tail/com_github_hpcloud_tail-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_huandu_xstrings", - build_file_proto_mode = "disable_global", - importpath = "github.com/huandu/xstrings", - sha256 = "cdd580467bc14ea0ad6856782d8aeb3d954e9c3499f4a771b6813174d2713d0d", - strip_prefix = "github.com/huandu/xstrings@v1.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/huandu/xstrings/com_github_huandu_xstrings-v1.3.0.zip", - ], - ) - go_repository( - name = "com_github_hudl_fargo", - build_file_proto_mode = "disable_global", - importpath = "github.com/hudl/fargo", - sha256 = "040aa24d7c5cdf43ed18767d4dff7d5533c65f58f45424f38eed51a5956445cf", - strip_prefix = "github.com/hudl/fargo@v1.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hudl/fargo/com_github_hudl_fargo-v1.3.0.zip", - ], - ) - go_repository( - name = "com_github_hydrogen18_memlistener", - build_file_proto_mode = "disable_global", - importpath = "github.com/hydrogen18/memlistener", - sha256 = "5bc8454edabbdc6c5b849a51717f825be7d009d79bdc5d3c3a333b869a58c141", - strip_prefix = "github.com/hydrogen18/memlistener@v0.0.0-20200120041712-dcc25e7acd91", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/hydrogen18/memlistener/com_github_hydrogen18_memlistener-v0.0.0-20200120041712-dcc25e7acd91.zip", - ], - ) - go_repository( - name = "com_github_iancoleman_strcase", - build_file_proto_mode = "disable_global", - importpath = "github.com/iancoleman/strcase", - sha256 = "cb5027fec91d36426f0978a6c42ab52d8735fa3e1711be0127feda70a9a9fd05", - strip_prefix = "github.com/iancoleman/strcase@v0.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/iancoleman/strcase/com_github_iancoleman_strcase-v0.2.0.zip", - ], - ) - go_repository( - name = "com_github_ianlancetaylor_demangle", - build_file_proto_mode = "disable_global", - importpath = "github.com/ianlancetaylor/demangle", - sha256 = "f5709a6601f0b4dc17da3baba1a50cc95ebf3efdd040aecc7fcf4d0e89bab066", - strip_prefix = "github.com/ianlancetaylor/demangle@v0.0.0-20200824232613-28f6c0f3b639", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/ianlancetaylor/demangle/com_github_ianlancetaylor_demangle-v0.0.0-20200824232613-28f6c0f3b639.zip", - ], - ) - go_repository( - name = "com_github_icrowley_fake", - build_file_proto_mode = "disable_global", - importpath = "github.com/icrowley/fake", - sha256 = "b503a0bc24e79b470d85701a11294430274f1203977e931008a88543f9f56fd4", - strip_prefix = "github.com/icrowley/fake@v0.0.0-20180203215853-4178557ae428", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/icrowley/fake/com_github_icrowley_fake-v0.0.0-20180203215853-4178557ae428.zip", - ], - ) - go_repository( - name = "com_github_imdario_mergo", - build_file_proto_mode = "disable_global", - importpath = "github.com/imdario/mergo", - sha256 = "47332eb559e993749cc31292807b3a639a470032ec603fd3c15fbe46f82192f6", - strip_prefix = "github.com/imdario/mergo@v0.3.11", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/imdario/mergo/com_github_imdario_mergo-v0.3.11.zip", - ], - ) - go_repository( - name = "com_github_imkira_go_interpol", - build_file_proto_mode = "disable_global", - importpath = "github.com/imkira/go-interpol", - sha256 = "de5111f7694700ea056beeb7c1ca1a827075d423422f251076ee17bd869477d9", - strip_prefix = "github.com/imkira/go-interpol@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/imkira/go-interpol/com_github_imkira_go_interpol-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_inconshreveable_mousetrap", - build_file_proto_mode = "disable_global", - importpath = "github.com/inconshreveable/mousetrap", - sha256 = "c3fa0813e78f5cef10dc0e9912c43e68e06ff970a98e98c4050fe14dbbfd18c7", - strip_prefix = "github.com/inconshreveable/mousetrap@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/inconshreveable/mousetrap/com_github_inconshreveable_mousetrap-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_influxdata_flux", - build_file_proto_mode = "disable_global", - importpath = "github.com/influxdata/flux", - sha256 = "0cfc34ed0de87e3b1b47a656034761bbba5556c68de21f8989865955a85350cc", - strip_prefix = "github.com/influxdata/flux@v0.120.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/influxdata/flux/com_github_influxdata_flux-v0.120.1.zip", - ], - ) - go_repository( - name = "com_github_influxdata_httprouter", - build_file_proto_mode = "disable_global", - importpath = "github.com/influxdata/httprouter", - sha256 = "ef9333cac30fec1fab0a006632394fd4289a7a9ae559c9ed8f45ecf0233cfb4b", - strip_prefix = "github.com/influxdata/httprouter@v1.3.1-0.20191122104820-ee83e2772f69", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/influxdata/httprouter/com_github_influxdata_httprouter-v1.3.1-0.20191122104820-ee83e2772f69.zip", - ], - ) - go_repository( - name = "com_github_influxdata_influxdb", - build_file_proto_mode = "disable_global", - importpath = "github.com/influxdata/influxdb", - sha256 = "1289665beb354ab4b48ad1fdd07713dc03178fb8b4f7d0ebc8a2e4dbbc6a068a", - strip_prefix = "github.com/influxdata/influxdb@v1.9.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/influxdata/influxdb/com_github_influxdata_influxdb-v1.9.3.zip", - ], - ) - go_repository( - name = "com_github_influxdata_influxdb1_client", - build_file_proto_mode = "disable_global", - importpath = "github.com/influxdata/influxdb1-client", - sha256 = "71a73ab9f209f44dd50e35f0f61dd9b25e6a2df2a661ce0468c5cfb5615e1f09", - strip_prefix = "github.com/influxdata/influxdb1-client@v0.0.0-20191209144304-8bf82d3c094d", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/influxdata/influxdb1-client/com_github_influxdata_influxdb1_client-v0.0.0-20191209144304-8bf82d3c094d.zip", - ], - ) - go_repository( - name = "com_github_influxdata_influxdb_client_go_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/influxdata/influxdb-client-go/v2", - sha256 = "62ca3e004452948177e4632f2990281206fac0d41aedcffb6e75ce18d72186a8", - strip_prefix = "github.com/influxdata/influxdb-client-go/v2@v2.3.1-0.20210518120617-5d1fff431040", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/influxdata/influxdb-client-go/v2/com_github_influxdata_influxdb_client_go_v2-v2.3.1-0.20210518120617-5d1fff431040.zip", - ], - ) - go_repository( - name = "com_github_influxdata_influxql", - build_file_proto_mode = "disable_global", - importpath = "github.com/influxdata/influxql", - sha256 = "06bb8421a2faeb74a4494abcf40ca09acc6066c11f2a65c8f437e791a0a864c5", - strip_prefix = "github.com/influxdata/influxql@v1.1.1-0.20210223160523-b6ab99450c93", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/influxdata/influxql/com_github_influxdata_influxql-v1.1.1-0.20210223160523-b6ab99450c93.zip", - ], - ) - go_repository( - name = "com_github_influxdata_line_protocol", - build_file_proto_mode = "disable_global", - importpath = "github.com/influxdata/line-protocol", - sha256 = "5136447167086a6b8ac748f3d74b716940f87240342381c1ac64889a085127c1", - strip_prefix = "github.com/influxdata/line-protocol@v0.0.0-20200327222509-2487e7298839", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/influxdata/line-protocol/com_github_influxdata_line_protocol-v0.0.0-20200327222509-2487e7298839.zip", - ], - ) - go_repository( - name = "com_github_influxdata_pkg_config", - build_file_proto_mode = "disable_global", - importpath = "github.com/influxdata/pkg-config", - sha256 = "4cdbff4816958d1540610fb02311231dffe34b3221abfa0fdd3c72e63113baca", - strip_prefix = "github.com/influxdata/pkg-config@v0.2.7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/influxdata/pkg-config/com_github_influxdata_pkg_config-v0.2.7.zip", - ], - ) - go_repository( - name = "com_github_influxdata_promql_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/influxdata/promql/v2", - sha256 = "b928626f2eb81eed0046ef23a83a77a28dd140d369a0d2538c94e85d1055877f", - strip_prefix = "github.com/influxdata/promql/v2@v2.12.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/influxdata/promql/v2/com_github_influxdata_promql_v2-v2.12.0.zip", - ], - ) - go_repository( - name = "com_github_influxdata_roaring", - build_file_proto_mode = "disable_global", - importpath = "github.com/influxdata/roaring", - sha256 = "7b38a79854fee9589bd94c707a3a93697660ad831642d30729a2dfbecd57beeb", - strip_prefix = "github.com/influxdata/roaring@v0.4.13-0.20180809181101-fc520f41fab6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/influxdata/roaring/com_github_influxdata_roaring-v0.4.13-0.20180809181101-fc520f41fab6.zip", - ], - ) - go_repository( - name = "com_github_influxdata_tdigest", - build_file_proto_mode = "disable_global", - importpath = "github.com/influxdata/tdigest", - sha256 = "8428b1a86f73f701ac1f4fba74ba02c5cb6b2adaf8fa13282d5a60e5f3071b0c", - strip_prefix = "github.com/influxdata/tdigest@v0.0.2-0.20210216194612-fc98d27c9e8b", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/influxdata/tdigest/com_github_influxdata_tdigest-v0.0.2-0.20210216194612-fc98d27c9e8b.zip", - ], - ) - go_repository( - name = "com_github_influxdata_usage_client", - build_file_proto_mode = "disable_global", - importpath = "github.com/influxdata/usage-client", - sha256 = "6a33ba80b3d59a7aeaba3d32a71033f729b6de8e746ab6133f97fba9810532df", - strip_prefix = "github.com/influxdata/usage-client@v0.0.0-20160829180054-6d3895376368", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/influxdata/usage-client/com_github_influxdata_usage_client-v0.0.0-20160829180054-6d3895376368.zip", - ], - ) - go_repository( - name = "com_github_irfansharif_recorder", - build_file_proto_mode = "disable_global", - importpath = "github.com/irfansharif/recorder", - sha256 = "4a2f085d5339eba18558059c51110de1ff6d9ab8389ece8818fd2f62b7b2e7ab", - strip_prefix = "github.com/irfansharif/recorder@v0.0.0-20211218081646-a21b46510fd6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/irfansharif/recorder/com_github_irfansharif_recorder-v0.0.0-20211218081646-a21b46510fd6.zip", - ], - ) - go_repository( - name = "com_github_iris_contrib_blackfriday", - build_file_proto_mode = "disable_global", - importpath = "github.com/iris-contrib/blackfriday", - sha256 = "936679f49251da75fde84b8f38884dbce89747b96f8206f7a4675bfcc7dd165d", - strip_prefix = "github.com/iris-contrib/blackfriday@v2.0.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/iris-contrib/blackfriday/com_github_iris_contrib_blackfriday-v2.0.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_iris_contrib_go_uuid", - build_file_proto_mode = "disable_global", - importpath = "github.com/iris-contrib/go.uuid", - sha256 = "c6bae86643c2d6047c68c25226a1e75c5331c03466532ee6c943705743949bd9", - strip_prefix = "github.com/iris-contrib/go.uuid@v2.0.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/iris-contrib/go.uuid/com_github_iris_contrib_go_uuid-v2.0.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_iris_contrib_i18n", - build_file_proto_mode = "disable_global", - importpath = "github.com/iris-contrib/i18n", - sha256 = "f9d637c5c887210f906f1228682239d98312b99e6d5192bec64faf597a3bab9c", - strip_prefix = "github.com/iris-contrib/i18n@v0.0.0-20171121225848-987a633949d0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/iris-contrib/i18n/com_github_iris_contrib_i18n-v0.0.0-20171121225848-987a633949d0.zip", - ], - ) - go_repository( - name = "com_github_iris_contrib_jade", - build_file_proto_mode = "disable_global", - importpath = "github.com/iris-contrib/jade", - sha256 = "1d5fb817f516b6ac581ef083ee8b80540a6fe8de7ed8273f78c653e4a777a7f1", - strip_prefix = "github.com/iris-contrib/jade@v1.1.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/iris-contrib/jade/com_github_iris_contrib_jade-v1.1.3.zip", - ], - ) - go_repository( - name = "com_github_iris_contrib_pongo2", - build_file_proto_mode = "disable_global", - importpath = "github.com/iris-contrib/pongo2", - sha256 = "9b991986eabd245f0d09a7e1098eafdb3c86b0a7fb115c30f29e94ae9c845d3d", - strip_prefix = "github.com/iris-contrib/pongo2@v0.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/iris-contrib/pongo2/com_github_iris_contrib_pongo2-v0.0.1.zip", - ], - ) - go_repository( - name = "com_github_iris_contrib_schema", - build_file_proto_mode = "disable_global", - importpath = "github.com/iris-contrib/schema", - sha256 = "d0887d45474f3aa30ff0fd329e98341e795be2c6e861bd92c30a7f97f6e57385", - strip_prefix = "github.com/iris-contrib/schema@v0.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/iris-contrib/schema/com_github_iris_contrib_schema-v0.0.1.zip", - ], - ) - go_repository( - name = "com_github_j_keck_arping", - build_file_proto_mode = "disable_global", - importpath = "github.com/j-keck/arping", - sha256 = "6001c94a8c4eed55718f627346cb685cce67369ca5c29ae059f58f7abd8bd8a7", - strip_prefix = "github.com/j-keck/arping@v0.0.0-20160618110441-2cf9dc699c56", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/j-keck/arping/com_github_j_keck_arping-v0.0.0-20160618110441-2cf9dc699c56.zip", - ], - ) - go_repository( - name = "com_github_jackc_chunkreader", - build_file_proto_mode = "disable_global", - importpath = "github.com/jackc/chunkreader", - sha256 = "e204c917e2652ffe047f5c8b031192757321f568654e3df8408bf04178df1408", - strip_prefix = "github.com/jackc/chunkreader@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/chunkreader/com_github_jackc_chunkreader-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_jackc_chunkreader_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/jackc/chunkreader/v2", - sha256 = "6e3f4b7d9647f31061f6446ae10de71fc1407e64f84cd0949afac0cd231e8dd2", - strip_prefix = "github.com/jackc/chunkreader/v2@v2.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/chunkreader/v2/com_github_jackc_chunkreader_v2-v2.0.1.zip", - ], - ) - go_repository( - name = "com_github_jackc_pgconn", - build_file_proto_mode = "disable_global", - importpath = "github.com/jackc/pgconn", - sha256 = "ca2544257ff60423ca23a1560bf3cda188f3cbb32b861ff9d123b2760af50104", - strip_prefix = "github.com/jackc/pgconn@v1.10.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgconn/com_github_jackc_pgconn-v1.10.0.zip", - ], - ) - go_repository( - name = "com_github_jackc_pgio", - build_file_proto_mode = "disable_global", - importpath = "github.com/jackc/pgio", - sha256 = "1a83c03d53f6a40339364cafcbbabb44238203c79ca0c9b98bf582d0df0e0468", - strip_prefix = "github.com/jackc/pgio@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgio/com_github_jackc_pgio-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_jackc_pgmock", - build_file_proto_mode = "disable_global", - importpath = "github.com/jackc/pgmock", - sha256 = "0fffd0a7a67dbdfafa04297e51028c6d2d08cd6691f3b6d78d7ae6502d3d4cf2", - strip_prefix = "github.com/jackc/pgmock@v0.0.0-20210724152146-4ad1a8207f65", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgmock/com_github_jackc_pgmock-v0.0.0-20210724152146-4ad1a8207f65.zip", - ], - ) - go_repository( - name = "com_github_jackc_pgpassfile", - build_file_proto_mode = "disable_global", - importpath = "github.com/jackc/pgpassfile", - sha256 = "1cc79fb0b80f54b568afd3f4648dd1c349f746ad7c379df8d7f9e0eb1cac938b", - strip_prefix = "github.com/jackc/pgpassfile@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgpassfile/com_github_jackc_pgpassfile-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_jackc_pgproto3", - build_file_proto_mode = "disable_global", - importpath = "github.com/jackc/pgproto3", - sha256 = "e3766bee50ed74e49a067b2c4797a2c69015cf104bf3f3624cd483a9e940b4ee", - strip_prefix = "github.com/jackc/pgproto3@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgproto3/com_github_jackc_pgproto3-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_jackc_pgproto3_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/jackc/pgproto3/v2", - sha256 = "0d948d69271a981bcf89d8f093f91246b5bb87f8ce323cafb9998b4d7762bcb3", - strip_prefix = "github.com/jackc/pgproto3/v2@v2.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgproto3/v2/com_github_jackc_pgproto3_v2-v2.1.1.zip", - ], - ) - go_repository( - name = "com_github_jackc_pgservicefile", - build_file_proto_mode = "disable_global", - importpath = "github.com/jackc/pgservicefile", - sha256 = "8422a25b9d2b0be05c66ee1ccfdbaab144ce98f1ac678bc647064c560d4cd6e2", - strip_prefix = "github.com/jackc/pgservicefile@v0.0.0-20200714003250-2b9c44734f2b", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgservicefile/com_github_jackc_pgservicefile-v0.0.0-20200714003250-2b9c44734f2b.zip", - ], - ) - go_repository( - name = "com_github_jackc_pgtype", - build_file_proto_mode = "disable_global", - importpath = "github.com/jackc/pgtype", - sha256 = "f402686a83fa781357059d0c03b79a9a8686349cb9ceed4f7067ae27afb7265a", - strip_prefix = "github.com/jackc/pgtype@v1.8.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgtype/com_github_jackc_pgtype-v1.8.1.zip", - ], - ) - go_repository( - name = "com_github_jackc_pgx_v4", - build_file_proto_mode = "disable_global", - importpath = "github.com/jackc/pgx/v4", - sha256 = "ca77ca40d8c4a2544223728867a0996fd6a8dbdac43eb4bfc98cdda8148aa50c", - strip_prefix = "github.com/jackc/pgx/v4@v4.13.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgx/v4/com_github_jackc_pgx_v4-v4.13.0.zip", - ], - ) - go_repository( - name = "com_github_jackc_puddle", - build_file_proto_mode = "disable_global", - importpath = "github.com/jackc/puddle", - sha256 = "2106d95f2e74cd3a80c5ae06a7e904e52d6c5c617db67fd4491af3a77a29e677", - strip_prefix = "github.com/jackc/puddle@v1.1.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/puddle/com_github_jackc_puddle-v1.1.3.zip", - ], - ) - go_repository( - name = "com_github_jaegertracing_jaeger", - build_file_proto_mode = "disable_global", - importpath = "github.com/jaegertracing/jaeger", - sha256 = "256a95b2a52a66494aca6d354224bb450ff38ce3ea1890af46a7c8dc39203891", - strip_prefix = "github.com/jaegertracing/jaeger@v1.18.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jaegertracing/jaeger/com_github_jaegertracing_jaeger-v1.18.1.zip", - ], - ) - go_repository( - name = "com_github_jcmturner_aescts_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/jcmturner/aescts/v2", - sha256 = "717a211ad4aac248cf33cadde73059c13f8e9462123a0ab2fed5c5e61f7739d7", - strip_prefix = "github.com/jcmturner/aescts/v2@v2.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jcmturner/aescts/v2/com_github_jcmturner_aescts_v2-v2.0.0.zip", - ], - ) - go_repository( - name = "com_github_jcmturner_dnsutils_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/jcmturner/dnsutils/v2", - sha256 = "f9188186b672e547cfaef66107aa62d65054c5d4f10d4dcd1ff157d6bf8c275d", - strip_prefix = "github.com/jcmturner/dnsutils/v2@v2.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jcmturner/dnsutils/v2/com_github_jcmturner_dnsutils_v2-v2.0.0.zip", - ], - ) - go_repository( - name = "com_github_jcmturner_gofork", - build_file_proto_mode = "disable_global", - importpath = "github.com/jcmturner/gofork", - sha256 = "5e015dd9b038f1dded0b2ded77e529d2f6ba0bed228a98831af5a3610eefcb52", - strip_prefix = "github.com/jcmturner/gofork@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jcmturner/gofork/com_github_jcmturner_gofork-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_jcmturner_goidentity_v6", - build_file_proto_mode = "disable_global", - importpath = "github.com/jcmturner/goidentity/v6", - sha256 = "243e6fd6ea9f3094eea32c55febade6d8aaa1b563db655b0c5327940e4719beb", - strip_prefix = "github.com/jcmturner/goidentity/v6@v6.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jcmturner/goidentity/v6/com_github_jcmturner_goidentity_v6-v6.0.1.zip", - ], - ) - go_repository( - name = "com_github_jcmturner_gokrb5_v8", - build_file_proto_mode = "disable_global", - importpath = "github.com/jcmturner/gokrb5/v8", - sha256 = "eecd7120363321bb6b58b015395089958720271b3211659d802447d417af5970", - strip_prefix = "github.com/jcmturner/gokrb5/v8@v8.4.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jcmturner/gokrb5/v8/com_github_jcmturner_gokrb5_v8-v8.4.2.zip", - ], - ) - go_repository( - name = "com_github_jcmturner_rpc_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/jcmturner/rpc/v2", - sha256 = "90c595355e5e2c9dc1e1ae71a88491a04c34d8791180098da103217cbf5f5574", - strip_prefix = "github.com/jcmturner/rpc/v2@v2.0.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jcmturner/rpc/v2/com_github_jcmturner_rpc_v2-v2.0.3.zip", - ], - ) - go_repository( - name = "com_github_jessevdk_go_flags", - build_file_proto_mode = "disable_global", - importpath = "github.com/jessevdk/go-flags", - sha256 = "9886379a8c31f9021ce68490e2a21bdbea7e5fe95533229650e1ac1571dcd78a", - strip_prefix = "github.com/jessevdk/go-flags@v1.5.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jessevdk/go-flags/com_github_jessevdk_go_flags-v1.5.0.zip", - ], - ) - go_repository( - name = "com_github_jhump_protoreflect", - build_file_proto_mode = "disable_global", - importpath = "github.com/jhump/protoreflect", - sha256 = "919843c24904e6855775ea7e248654582a1703bd879b608a9bcc5e4a726e0288", - strip_prefix = "github.com/jhump/protoreflect@v1.9.1-0.20210817181203-db1a327a393e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jhump/protoreflect/com_github_jhump_protoreflect-v1.9.1-0.20210817181203-db1a327a393e.zip", - ], - ) - 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 = [ - "https://storage.googleapis.com/cockroach-godeps/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 = "8c56b1bd3f10b4597c75e1a880bc37c02df633b2afa8d576ab484d681c4c9609", - strip_prefix = "github.com/jinzhu/now@v1.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jinzhu/now/com_github_jinzhu_now-v1.1.1.zip", - ], - ) - go_repository( - name = "com_github_jmespath_go_jmespath", - build_file_proto_mode = "disable_global", - importpath = "github.com/jmespath/go-jmespath", - sha256 = "d1f77b6790d7c4321a74260f3675683d3ac06b0a614b5f83e870beae0a8b2867", - strip_prefix = "github.com/jmespath/go-jmespath@v0.4.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jmespath/go-jmespath/com_github_jmespath_go_jmespath-v0.4.0.zip", - ], - ) - go_repository( - name = "com_github_jmespath_go_jmespath_internal_testify", - build_file_proto_mode = "disable_global", - importpath = "github.com/jmespath/go-jmespath/internal/testify", - sha256 = "338f73832eb2a63ab0c912197e653c7b62426fc4387e0a76ab0d43c65e29b3e1", - strip_prefix = "github.com/jmespath/go-jmespath/internal/testify@v1.5.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jmespath/go-jmespath/internal/testify/com_github_jmespath_go_jmespath_internal_testify-v1.5.1.zip", - ], - ) - go_repository( - name = "com_github_jmoiron_sqlx", - build_file_proto_mode = "disable_global", - importpath = "github.com/jmoiron/sqlx", - sha256 = "84cf22439d71b3dfe534639a128f4459664976271941c2a33bef5c5aa4f7ed70", - strip_prefix = "github.com/jmoiron/sqlx@v1.3.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jmoiron/sqlx/com_github_jmoiron_sqlx-v1.3.1.zip", - ], - ) - go_repository( - name = "com_github_joho_godotenv", - build_file_proto_mode = "disable_global", - importpath = "github.com/joho/godotenv", - sha256 = "acef5a394fbd1193f52d0d19690b0bfe82728d18dd3bf67730dc5031c22d563f", - strip_prefix = "github.com/joho/godotenv@v1.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/joho/godotenv/com_github_joho_godotenv-v1.3.0.zip", - ], - ) - go_repository( - name = "com_github_joker_hpp", - build_file_proto_mode = "disable_global", - importpath = "github.com/Joker/hpp", - sha256 = "790dc3cfb8e51ff22f29d74b5b58782999e267e86290bc2b52485ccf9c8d2792", - strip_prefix = "github.com/Joker/hpp@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Joker/hpp/com_github_joker_hpp-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_joker_jade", - build_file_proto_mode = "disable_global", - importpath = "github.com/Joker/jade", - sha256 = "3fc31c80e93cb053cd4fce60a7288e3760f9fe5c571ec4c2d32c4f9bf6c487e7", - strip_prefix = "github.com/Joker/jade@v1.0.1-0.20190614124447-d475f43051e7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Joker/jade/com_github_joker_jade-v1.0.1-0.20190614124447-d475f43051e7.zip", - ], - ) - go_repository( - name = "com_github_jonboulle_clockwork", - build_file_proto_mode = "disable_global", - importpath = "github.com/jonboulle/clockwork", - sha256 = "930d355d1ced60a668bcbca6154bb5671120ba11a34119505d1c0677f7bbbf97", - strip_prefix = "github.com/jonboulle/clockwork@v0.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jonboulle/clockwork/com_github_jonboulle_clockwork-v0.1.0.zip", - ], - ) - go_repository( - name = "com_github_jordan_wright_email", - build_file_proto_mode = "disable_global", - importpath = "github.com/jordan-wright/email", - sha256 = "6d35fa83ea02cfacd0e1ba9c9061381b963215cef84c8bf83ad5944cb304c390", - strip_prefix = "github.com/jordan-wright/email@v4.0.1-0.20210109023952-943e75fe5223+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jordan-wright/email/com_github_jordan_wright_email-v4.0.1-0.20210109023952-943e75fe5223+incompatible.zip", - ], - ) - go_repository( - name = "com_github_jordanlewis_gcassert", - build_file_proto_mode = "disable_global", - importpath = "github.com/jordanlewis/gcassert", - sha256 = "1f227f6d9c9ae6c913cad0ebbe6b15f6d6af265a8f51dd9caba955123987fab8", - strip_prefix = "github.com/jordanlewis/gcassert@v0.0.0-20210709222130-81f5df3faab8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jordanlewis/gcassert/com_github_jordanlewis_gcassert-v0.0.0-20210709222130-81f5df3faab8.zip", - ], - ) - go_repository( - name = "com_github_josharian_intern", - build_file_proto_mode = "disable_global", - importpath = "github.com/josharian/intern", - sha256 = "5679bfd11c14adccdb45bd1a0f9cf4b445b95caeed6fb507ba96ecced11c248d", - strip_prefix = "github.com/josharian/intern@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/josharian/intern/com_github_josharian_intern-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_jpillora_backoff", - build_file_proto_mode = "disable_global", - importpath = "github.com/jpillora/backoff", - sha256 = "f856692c725143c49b9cceabfbca8bc93d3dbde84a0aaa53fb26ed3774c220cc", - strip_prefix = "github.com/jpillora/backoff@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jpillora/backoff/com_github_jpillora_backoff-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_json_iterator_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/json-iterator/go", - sha256 = "d001ea57081afd0e378467c8f4a9b6a51259996bb8bb763f78107eaf12f99501", - strip_prefix = "github.com/json-iterator/go@v1.1.12", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/json-iterator/go/com_github_json_iterator_go-v1.1.12.zip", - ], - ) - go_repository( - name = "com_github_jstemmer_go_junit_report", - build_file_proto_mode = "disable_global", - importpath = "github.com/jstemmer/go-junit-report", - sha256 = "fbd2196e4a50a88f8c352f76325f4ba72338ecec7b6cb7535317ce9e3aa40284", - strip_prefix = "github.com/jstemmer/go-junit-report@v0.9.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jstemmer/go-junit-report/com_github_jstemmer_go_junit_report-v0.9.1.zip", - ], - ) - go_repository( - name = "com_github_jsternberg_zap_logfmt", - build_file_proto_mode = "disable_global", - importpath = "github.com/jsternberg/zap-logfmt", - sha256 = "04fcbcf1ef6f09169218324a5b3a8453ffecb62c3669e2102ffc96cf599ef876", - strip_prefix = "github.com/jsternberg/zap-logfmt@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jsternberg/zap-logfmt/com_github_jsternberg_zap_logfmt-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_jtolds_gls", - build_file_proto_mode = "disable_global", - importpath = "github.com/jtolds/gls", - sha256 = "2f51f8cb610e846dc4bd9b3c0fbf6bebab24bb06d866db7804e123a61b0bd9ec", - strip_prefix = "github.com/jtolds/gls@v4.20.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jtolds/gls/com_github_jtolds_gls-v4.20.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_juju_errors", - build_file_proto_mode = "disable_global", - importpath = "github.com/juju/errors", - sha256 = "b97a8b6ca1e8cc6fba715b4187a25d9ae53122edbdcaf1154e36249e6d297393", - strip_prefix = "github.com/juju/errors@v0.0.0-20181118221551-089d3ea4e4d5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/juju/errors/com_github_juju_errors-v0.0.0-20181118221551-089d3ea4e4d5.zip", - ], - ) - go_repository( - name = "com_github_juju_loggo", - build_file_proto_mode = "disable_global", - importpath = "github.com/juju/loggo", - sha256 = "64c21c4a3810a5d0e940fd11a46daa08bde2f951b59fb330ff06ab9634cc4863", - strip_prefix = "github.com/juju/loggo@v0.0.0-20180524022052-584905176618", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/juju/loggo/com_github_juju_loggo-v0.0.0-20180524022052-584905176618.zip", - ], - ) - go_repository( - name = "com_github_juju_testing", - build_file_proto_mode = "disable_global", - importpath = "github.com/juju/testing", - sha256 = "a66b521a6b60dd443b86a42d0274209e385d7f3e71db775b8c2000bcfd0c6649", - strip_prefix = "github.com/juju/testing@v0.0.0-20180920084828-472a3e8b2073", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/juju/testing/com_github_juju_testing-v0.0.0-20180920084828-472a3e8b2073.zip", - ], - ) - go_repository( - name = "com_github_julienschmidt_httprouter", - build_file_proto_mode = "disable_global", - importpath = "github.com/julienschmidt/httprouter", - sha256 = "e457dccd7015f340664e3b8cfd41997471382da2f4a743ee55be539abc6ca1f9", - strip_prefix = "github.com/julienschmidt/httprouter@v1.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/julienschmidt/httprouter/com_github_julienschmidt_httprouter-v1.3.0.zip", - ], - ) - go_repository( - name = "com_github_julusian_godocdown", - build_file_proto_mode = "disable_global", - importpath = "github.com/Julusian/godocdown", - sha256 = "1bd26f1d29b20d40b3eb0a5678691a2e6e153c473efe079b8b1bbd97a7cc1f57", - strip_prefix = "github.com/Julusian/godocdown@v0.0.0-20170816220326-6d19f8ff2df8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Julusian/godocdown/com_github_julusian_godocdown-v0.0.0-20170816220326-6d19f8ff2df8.zip", - ], - ) - go_repository( - name = "com_github_jung_kurt_gofpdf", - build_file_proto_mode = "disable_global", - importpath = "github.com/jung-kurt/gofpdf", - sha256 = "f0fa70ade137185bbff2f016831a2a456eaadc8d14bc7bf24f0229211820c078", - strip_prefix = "github.com/jung-kurt/gofpdf@v1.0.3-0.20190309125859-24315acbbda5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jung-kurt/gofpdf/com_github_jung_kurt_gofpdf-v1.0.3-0.20190309125859-24315acbbda5.zip", - ], - ) - go_repository( - name = "com_github_justinas_alice", - build_file_proto_mode = "disable_global", - importpath = "github.com/justinas/alice", - sha256 = "b2d65d6a613d0fe33b4595b69855ab9d55bcfeee506a19d07d4585c566fe6587", - strip_prefix = "github.com/justinas/alice@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/justinas/alice/com_github_justinas_alice-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_jwilder_encoding", - build_file_proto_mode = "disable_global", - importpath = "github.com/jwilder/encoding", - sha256 = "91ab650780db18684a70137cbb34189c171c29a23aab48816c8bca74dbb012e9", - strip_prefix = "github.com/jwilder/encoding@v0.0.0-20170811194829-b4e1701a28ef", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jwilder/encoding/com_github_jwilder_encoding-v0.0.0-20170811194829-b4e1701a28ef.zip", - ], - ) - go_repository( - name = "com_github_k0kubun_colorstring", - build_file_proto_mode = "disable_global", - importpath = "github.com/k0kubun/colorstring", - sha256 = "32a2eac0ffb69c6882b32ccfcdd76968cb9dfee9d9dc3d469fc405775399167c", - strip_prefix = "github.com/k0kubun/colorstring@v0.0.0-20150214042306-9440f1994b88", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/k0kubun/colorstring/com_github_k0kubun_colorstring-v0.0.0-20150214042306-9440f1994b88.zip", - ], - ) - go_repository( - name = "com_github_karrick_godirwalk", - build_file_proto_mode = "disable_global", - importpath = "github.com/karrick/godirwalk", - sha256 = "80518abce2eb573be7f1c529024f9a04cae142cd44995c59ccbffde40a5563d4", - strip_prefix = "github.com/karrick/godirwalk@v1.10.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/karrick/godirwalk/com_github_karrick_godirwalk-v1.10.3.zip", - ], - ) - go_repository( - name = "com_github_kataras_golog", - build_file_proto_mode = "disable_global", - importpath = "github.com/kataras/golog", - sha256 = "a7c666acc9f33f622d141f67cbc007072b80940f18b4dabc26d50a425d8dda62", - strip_prefix = "github.com/kataras/golog@v0.0.10", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kataras/golog/com_github_kataras_golog-v0.0.10.zip", - ], - ) - go_repository( - name = "com_github_kataras_iris_v12", - build_file_proto_mode = "disable_global", - importpath = "github.com/kataras/iris/v12", - sha256 = "60f944610994584b428ac0bf18f8cae914eab7ca9ac7d40cc762825ecef902e9", - strip_prefix = "github.com/kataras/iris/v12@v12.1.8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kataras/iris/v12/com_github_kataras_iris_v12-v12.1.8.zip", - ], - ) - go_repository( - name = "com_github_kataras_neffos", - build_file_proto_mode = "disable_global", - importpath = "github.com/kataras/neffos", - sha256 = "06da0648f8f8aeb261a4d6da332d87004fc02718e4643d468b6315a40ef68c44", - strip_prefix = "github.com/kataras/neffos@v0.0.14", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kataras/neffos/com_github_kataras_neffos-v0.0.14.zip", - ], - ) - go_repository( - name = "com_github_kataras_pio", - build_file_proto_mode = "disable_global", - importpath = "github.com/kataras/pio", - sha256 = "ccec5930116d9b46e338e39fd15404b737d1a7baffb65b6247280a37a9ef9e23", - strip_prefix = "github.com/kataras/pio@v0.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kataras/pio/com_github_kataras_pio-v0.0.2.zip", - ], - ) - go_repository( - name = "com_github_kataras_sitemap", - build_file_proto_mode = "disable_global", - importpath = "github.com/kataras/sitemap", - sha256 = "5e86f8ab488803b503071dfa6b678ad7eb61f1155ddc2b8844798f04d3a927d0", - strip_prefix = "github.com/kataras/sitemap@v0.0.5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kataras/sitemap/com_github_kataras_sitemap-v0.0.5.zip", - ], - ) - go_repository( - name = "com_github_kevinburke_go_bindata", - build_file_proto_mode = "disable_global", - importpath = "github.com/kevinburke/go-bindata", - sha256 = "f087b3a77624a113883bac519ebd1a4de07b70ab2ebe73e61e52325ac30777e0", - strip_prefix = "github.com/kevinburke/go-bindata@v3.13.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kevinburke/go-bindata/com_github_kevinburke_go_bindata-v3.13.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_kisielk_errcheck", - build_file_proto_mode = "disable_global", - importpath = "github.com/kisielk/errcheck", - patch_args = ["-p1"], - patches = [ - "@cockroach//build/patches:com_github_kisielk_errcheck.patch", - ], - sha256 = "99d3220891162cb684f8e05d54f3d0dc58abdd496a2f0cfda7fd4a28917a719e", - strip_prefix = "github.com/kisielk/errcheck@v1.6.1-0.20210625163953-8ddee489636a", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kisielk/errcheck/com_github_kisielk_errcheck-v1.6.1-0.20210625163953-8ddee489636a.zip", - ], - ) - go_repository( - name = "com_github_kisielk_gotool", - build_file_proto_mode = "disable_global", - importpath = "github.com/kisielk/gotool", - sha256 = "089dbba6e3aa09944fdb40d72acc86694e8bdde01cfc0f40fe0248309eb80a3f", - strip_prefix = "github.com/kisielk/gotool@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kisielk/gotool/com_github_kisielk_gotool-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_klauspost_compress", - build_file_proto_mode = "disable_global", - importpath = "github.com/klauspost/compress", - sha256 = "25990a3b573b4568fa9c98c880e82abe5fe4dc6a3c784935923643ef28791acd", - strip_prefix = "github.com/klauspost/compress@v1.14.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/klauspost/compress/com_github_klauspost_compress-v1.14.2.zip", - ], - ) - go_repository( - name = "com_github_klauspost_cpuid", - build_file_proto_mode = "disable_global", - importpath = "github.com/klauspost/cpuid", - sha256 = "f61266e43d5c247fdb55d843e2d93974717c1052cba9f331b181f60c4cf687d9", - strip_prefix = "github.com/klauspost/cpuid@v1.3.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/klauspost/cpuid/com_github_klauspost_cpuid-v1.3.1.zip", - ], - ) - 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 = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/klauspost/cpuid/v2/com_github_klauspost_cpuid_v2-v2.0.9.zip", - ], - ) - go_repository( - name = "com_github_klauspost_crc32", - build_file_proto_mode = "disable_global", - importpath = "github.com/klauspost/crc32", - sha256 = "6b632853a19f039138f251f94dbbdfdb72809adc3a02da08e4301d3d48275b06", - strip_prefix = "github.com/klauspost/crc32@v0.0.0-20161016154125-cb6bfca970f6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/klauspost/crc32/com_github_klauspost_crc32-v0.0.0-20161016154125-cb6bfca970f6.zip", - ], - ) - go_repository( - name = "com_github_klauspost_pgzip", - build_file_proto_mode = "disable_global", - importpath = "github.com/klauspost/pgzip", - sha256 = "1143b6417d4bb46d26dc8e6223407b84b6cd5f32e5d705cd4a9fb142220ce4ba", - strip_prefix = "github.com/klauspost/pgzip@v1.2.5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/klauspost/pgzip/com_github_klauspost_pgzip-v1.2.5.zip", - ], - ) - go_repository( - name = "com_github_knetic_govaluate", - build_file_proto_mode = "disable_global", - importpath = "github.com/Knetic/govaluate", - sha256 = "d1d4ac5b4f5759726368f68b0d47f3c17c6d8689243ec66272311359d28a865b", - strip_prefix = "github.com/Knetic/govaluate@v3.0.1-0.20171022003610-9aa49832a739+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Knetic/govaluate/com_github_knetic_govaluate-v3.0.1-0.20171022003610-9aa49832a739+incompatible.zip", - ], - ) - go_repository( - name = "com_github_knz_go_libedit", - build_file_proto_mode = "disable_global", - importpath = "github.com/knz/go-libedit", - patch_args = ["-p1"], - patches = [ - "@cockroach//build/patches:com_github_knz_go_libedit.patch", - ], - sha256 = "d2ae0f8e43c49f917a2cadf52178c0efe1336fda5b8410a3d0f1270ae05d2532", - strip_prefix = "github.com/otan-cockroach/go-libedit@v1.10.2-0.20201030151939-7cced08450e7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/otan-cockroach/go-libedit/com_github_otan_cockroach_go_libedit-v1.10.2-0.20201030151939-7cced08450e7.zip", - ], - ) - go_repository( - name = "com_github_knz_strtime", - build_file_proto_mode = "disable_global", - importpath = "github.com/knz/strtime", - sha256 = "c1e1b06c339798387413af1444f06f31a483d4f5278ab3a91b6cd5d7cd8d91a1", - strip_prefix = "github.com/knz/strtime@v0.0.0-20200318182718-be999391ffa9", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/knz/strtime/com_github_knz_strtime-v0.0.0-20200318182718-be999391ffa9.zip", - ], - ) - go_repository( - name = "com_github_konsorten_go_windows_terminal_sequences", - build_file_proto_mode = "disable_global", - importpath = "github.com/konsorten/go-windows-terminal-sequences", - sha256 = "429b01413b972b108ea86bbde3d5e660913f3e8099190d07ccfb2f186bc6d837", - strip_prefix = "github.com/konsorten/go-windows-terminal-sequences@v1.0.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/konsorten/go-windows-terminal-sequences/com_github_konsorten_go_windows_terminal_sequences-v1.0.3.zip", - ], - ) - go_repository( - name = "com_github_kr_fs", - build_file_proto_mode = "disable_global", - importpath = "github.com/kr/fs", - sha256 = "d376bd98e81aea34585fc3b04bab76363e9e87cde69383964e57e9779f2af81e", - strip_prefix = "github.com/kr/fs@v0.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kr/fs/com_github_kr_fs-v0.1.0.zip", - ], - ) - go_repository( - name = "com_github_kr_logfmt", - build_file_proto_mode = "disable_global", - importpath = "github.com/kr/logfmt", - sha256 = "ebd95653aaca6182184a1b9b309a65d55eb4c7c833c5e790aee11efd73d4722c", - strip_prefix = "github.com/kr/logfmt@v0.0.0-20140226030751-b84e30acd515", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kr/logfmt/com_github_kr_logfmt-v0.0.0-20140226030751-b84e30acd515.zip", - ], - ) - go_repository( - name = "com_github_kr_pretty", - build_file_proto_mode = "disable_global", - importpath = "github.com/kr/pretty", - sha256 = "3ac65e185f956d889d77485173fadcc30e959b6bcfdaa8acafaec5f4dac5cd48", - strip_prefix = "github.com/kr/pretty@v0.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kr/pretty/com_github_kr_pretty-v0.3.0.zip", - ], - ) - go_repository( - name = "com_github_kr_pty", - build_file_proto_mode = "disable_global", - importpath = "github.com/kr/pty", - sha256 = "d66e6fbc65e772289a7ff8c58ab2cdfb886253053b0cea11ba3ca1738b2d6bc6", - strip_prefix = "github.com/kr/pty@v1.1.8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kr/pty/com_github_kr_pty-v1.1.8.zip", - ], - ) - go_repository( - name = "com_github_kr_text", - build_file_proto_mode = "disable_global", - importpath = "github.com/kr/text", - sha256 = "368eb318f91a5b67be905c47032ab5c31a1d49a97848b1011a0d0a2122b30ba4", - strip_prefix = "github.com/kr/text@v0.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kr/text/com_github_kr_text-v0.2.0.zip", - ], - ) - go_repository( - name = "com_github_krishicks_yaml_patch", - build_file_proto_mode = "disable_global", - importpath = "github.com/krishicks/yaml-patch", - sha256 = "7aaf59809fc6a58e0d182293b974378740962887c8fbc95445921fcebd1fb3ae", - strip_prefix = "github.com/krishicks/yaml-patch@v0.0.10", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/krishicks/yaml-patch/com_github_krishicks_yaml_patch-v0.0.10.zip", - ], - ) - go_repository( - name = "com_github_kylelemons_godebug", - build_file_proto_mode = "disable_global", - importpath = "github.com/kylelemons/godebug", - sha256 = "dbbd0ce8c2f4932bb03704d73026b21af12bd68d5b8f4798dbf10a487a2b6d13", - strip_prefix = "github.com/kylelemons/godebug@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/kylelemons/godebug/com_github_kylelemons_godebug-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_labstack_echo_v4", - build_file_proto_mode = "disable_global", - importpath = "github.com/labstack/echo/v4", - sha256 = "1a09d9e413b2a1336b5295614dc993bc5eebfddc9ac023aa67fa91f36dfe6832", - strip_prefix = "github.com/labstack/echo/v4@v4.6.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/labstack/echo/v4/com_github_labstack_echo_v4-v4.6.1.zip", - ], - ) - go_repository( - name = "com_github_labstack_gommon", - build_file_proto_mode = "disable_global", - importpath = "github.com/labstack/gommon", - sha256 = "2783ed1c24d09a5539bc35954f71f41d270d78dc656be256c98a8ede2cbbe451", - strip_prefix = "github.com/labstack/gommon@v0.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/labstack/gommon/com_github_labstack_gommon-v0.3.0.zip", - ], - ) - go_repository( - name = "com_github_leanovate_gopter", - build_file_proto_mode = "disable_global", - importpath = "github.com/leanovate/gopter", - sha256 = "67c9724f8c25304bdef375d15c39f98621e0448b5f3c2f55bf66e07b52a67128", - strip_prefix = "github.com/leanovate/gopter@v0.2.5-0.20190402064358-634a59d12406", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/leanovate/gopter/com_github_leanovate_gopter-v0.2.5-0.20190402064358-634a59d12406.zip", - ], - ) - go_repository( - name = "com_github_leodido_go_urn", - build_file_proto_mode = "disable_global", - importpath = "github.com/leodido/go-urn", - sha256 = "8a854d784171000a69b79babb2cd3da9b8fccb1e1b6bb102c7a6d2b52380d08a", - strip_prefix = "github.com/leodido/go-urn@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/leodido/go-urn/com_github_leodido_go_urn-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_lib_pq", - build_file_proto_mode = "disable_global", - importpath = "github.com/lib/pq", - sha256 = "7247dc4284bb572dd8bb3932ab1bf8a3de953882ade18c31a240838af8c73ee9", - strip_prefix = "github.com/lib/pq@v1.10.6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/lib/pq/com_github_lib_pq-v1.10.6.zip", - ], - ) - go_repository( - name = "com_github_lib_pq_auth_kerberos", - build_file_proto_mode = "disable_global", - importpath = "github.com/lib/pq/auth/kerberos", - sha256 = "38df8be51351b20287c83bf2a177df328d01b6abe3d150bc77fd280fc5fd9c07", - strip_prefix = "github.com/lib/pq/auth/kerberos@v0.0.0-20220516182748-8c6de565f76f", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/lib/pq/auth/kerberos/com_github_lib_pq_auth_kerberos-v0.0.0-20220516182748-8c6de565f76f.zip", - ], - ) - go_repository( - name = "com_github_lightstep_lightstep_tracer_common_golang_gogo", - build_file_proto_mode = "disable_global", - importpath = "github.com/lightstep/lightstep-tracer-common/golang/gogo", - sha256 = "1bf5cd77739238376e20a64307ef850da518861421a44ce7a10a27bc3bef4874", - strip_prefix = "github.com/lightstep/lightstep-tracer-common/golang/gogo@v0.0.0-20190605223551-bc2310a04743", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/lightstep/lightstep-tracer-common/golang/gogo/com_github_lightstep_lightstep_tracer_common_golang_gogo-v0.0.0-20190605223551-bc2310a04743.zip", - ], - ) - go_repository( - name = "com_github_lightstep_lightstep_tracer_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/lightstep/lightstep-tracer-go", - sha256 = "b90e4c08ddd881bf09dfef53affd03c9d3b246edf64e055dbea549bd31268131", - strip_prefix = "github.com/lightstep/lightstep-tracer-go@v0.18.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/lightstep/lightstep-tracer-go/com_github_lightstep_lightstep_tracer_go-v0.18.1.zip", - ], - ) - go_repository( - name = "com_github_linkedin_goavro_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/linkedin/goavro/v2", - sha256 = "5a0852f154b7dc68b999326cea27c9439faedbf8f09f94d1cb43e53a623f6bfc", - strip_prefix = "github.com/linkedin/goavro/v2@v2.10.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/linkedin/goavro/v2/com_github_linkedin_goavro_v2-v2.10.0.zip", - ], - ) - go_repository( - name = "com_github_linode_linodego", - build_file_proto_mode = "disable_global", - importpath = "github.com/linode/linodego", - sha256 = "b026a65eb731408b69aa6f51ecc25cc3d1e97dcc1f1e4e9dcd82d936472a4349", - strip_prefix = "github.com/linode/linodego@v0.32.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/linode/linodego/com_github_linode_linodego-v0.32.0.zip", - ], - ) - go_repository( - name = "com_github_lufia_iostat", - build_file_proto_mode = "disable_global", - importpath = "github.com/lufia/iostat", - sha256 = "964e9c5528a9de240d77d17df387bae1d59ddedd25734542ae8d70a27c59199e", - strip_prefix = "github.com/lufia/iostat@v1.2.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/lufia/iostat/com_github_lufia_iostat-v1.2.1.zip", - ], - ) - go_repository( - name = "com_github_lufia_plan9stats", - build_file_proto_mode = "disable_global", - importpath = "github.com/lufia/plan9stats", - sha256 = "94730432c565c238cb839bb4fa55bec3b3a19b592af0f7d1418a26a48f8359c6", - strip_prefix = "github.com/lufia/plan9stats@v0.0.0-20211012122336-39d0f177ccd0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/lufia/plan9stats/com_github_lufia_plan9stats-v0.0.0-20211012122336-39d0f177ccd0.zip", - ], - ) - go_repository( - name = "com_github_lyft_protoc_gen_star", - build_file_proto_mode = "disable_global", - importpath = "github.com/lyft/protoc-gen-star", - sha256 = "dabbc4c4e579794053260cdebc105e2f6d3c57002ee5fc3abbc03d5109c477cc", - strip_prefix = "github.com/lyft/protoc-gen-star@v0.5.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/lyft/protoc-gen-star/com_github_lyft_protoc_gen_star-v0.5.3.zip", - ], - ) - go_repository( - name = "com_github_lyft_protoc_gen_validate", - build_file_proto_mode = "disable_global", - importpath = "github.com/lyft/protoc-gen-validate", - sha256 = "86cd7276113087955c832bc1a2d7a8acfed59404375616d6753c4b284d4cd46c", - strip_prefix = "github.com/lyft/protoc-gen-validate@v0.0.13", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/lyft/protoc-gen-validate/com_github_lyft_protoc_gen_validate-v0.0.13.zip", - ], - ) - go_repository( - name = "com_github_magiconair_properties", - build_file_proto_mode = "disable_global", - importpath = "github.com/magiconair/properties", - sha256 = "fa056b3c72df6a36c991e9f22285818b07e377bf07c7beb441d9a097b2d6263e", - strip_prefix = "github.com/magiconair/properties@v1.8.5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/magiconair/properties/com_github_magiconair_properties-v1.8.5.zip", - ], - ) - go_repository( - name = "com_github_mailru_easyjson", - build_file_proto_mode = "disable_global", - importpath = "github.com/mailru/easyjson", - sha256 = "ebdd6d7a8b3d19c039b1a69b77c63b7039d2fe88bcf10b39278c8f7d6060e784", - strip_prefix = "github.com/mailru/easyjson@v0.7.6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mailru/easyjson/com_github_mailru_easyjson-v0.7.6.zip", - ], - ) - go_repository( - name = "com_github_markbates_oncer", - build_file_proto_mode = "disable_global", - importpath = "github.com/markbates/oncer", - sha256 = "959dec2377586af9c354b5667c303f0b506cb480b11f3ecdafc54ff1ec015e62", - strip_prefix = "github.com/markbates/oncer@v0.0.0-20181203154359-bf2de49a0be2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/markbates/oncer/com_github_markbates_oncer-v0.0.0-20181203154359-bf2de49a0be2.zip", - ], - ) - go_repository( - name = "com_github_markbates_safe", - build_file_proto_mode = "disable_global", - importpath = "github.com/markbates/safe", - sha256 = "d5a98e8242318d4e88844ddbbfebe91f67f41e5aa1f6a96a58fa2fa94e0ae9ef", - strip_prefix = "github.com/markbates/safe@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/markbates/safe/com_github_markbates_safe-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_marstr_guid", - build_file_proto_mode = "disable_global", - importpath = "github.com/marstr/guid", - sha256 = "7db3cd8020c72ba260d1a20183bf5a030c696d6442eccaff2b31f72b194fc571", - strip_prefix = "github.com/marstr/guid@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/marstr/guid/com_github_marstr_guid-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_martini_contrib_auth", - build_file_proto_mode = "disable_global", - importpath = "github.com/martini-contrib/auth", - sha256 = "b3b2a267bb6ef227960e4391cc2bc868d0e6bceb2cb32372242c60f28f643cb2", - strip_prefix = "github.com/martini-contrib/auth@v0.0.0-20150219114609-fa62c19b7ae8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/martini-contrib/auth/com_github_martini_contrib_auth-v0.0.0-20150219114609-fa62c19b7ae8.zip", - ], - ) - go_repository( - name = "com_github_martini_contrib_gzip", - build_file_proto_mode = "disable_global", - importpath = "github.com/martini-contrib/gzip", - sha256 = "803830ec3e7c75b135f0215579834192d01ce43da81934d903ed4ff9fa4dac9b", - strip_prefix = "github.com/martini-contrib/gzip@v0.0.0-20151124214156-6c035326b43f", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/martini-contrib/gzip/com_github_martini_contrib_gzip-v0.0.0-20151124214156-6c035326b43f.zip", - ], - ) - go_repository( - name = "com_github_martini_contrib_render", - build_file_proto_mode = "disable_global", - importpath = "github.com/martini-contrib/render", - sha256 = "2edd7f64b2f1f053f86a51856cd0f02b1f762af61a458a2e282dab76ad093d70", - strip_prefix = "github.com/martini-contrib/render@v0.0.0-20150707142108-ec18f8345a11", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/martini-contrib/render/com_github_martini_contrib_render-v0.0.0-20150707142108-ec18f8345a11.zip", - ], - ) - go_repository( - name = "com_github_maruel_panicparse_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/maruel/panicparse/v2", - sha256 = "a51ff19f83c9a1e468b5d722d0857eb468d0f9baa29365e700c2e6ec24bd47a7", - strip_prefix = "github.com/cockroachdb/panicparse/v2@v2.0.0-20211103220158-604c82a44f1e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/panicparse/v2/com_github_cockroachdb_panicparse_v2-v2.0.0-20211103220158-604c82a44f1e.zip", - ], - ) - go_repository( - name = "com_github_marusama_semaphore", - build_file_proto_mode = "disable_global", - importpath = "github.com/marusama/semaphore", - sha256 = "2bc0cfc69824299ce542fd221820905ded92a3e236428f0f157887c081eb367d", - strip_prefix = "github.com/marusama/semaphore@v0.0.0-20190110074507-6952cef993b2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/marusama/semaphore/com_github_marusama_semaphore-v0.0.0-20190110074507-6952cef993b2.zip", - ], - ) - go_repository( - name = "com_github_masterminds_glide", - build_file_proto_mode = "disable_global", - importpath = "github.com/Masterminds/glide", - sha256 = "566d15dde45716f355157ceee512833c7b91e9d25cb609a9bf30f811f61dded7", - strip_prefix = "github.com/Masterminds/glide@v0.13.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Masterminds/glide/com_github_masterminds_glide-v0.13.2.zip", - ], - ) - go_repository( - name = "com_github_masterminds_goutils", - build_file_proto_mode = "disable_global", - importpath = "github.com/Masterminds/goutils", - sha256 = "b9520e8d2775ac1ff3fbf18c93dbc4b921133f957ae274f5b047965e9359d27d", - strip_prefix = "github.com/Masterminds/goutils@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Masterminds/goutils/com_github_masterminds_goutils-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_masterminds_semver", - build_file_proto_mode = "disable_global", - importpath = "github.com/Masterminds/semver", - sha256 = "15f6b54a695c15ffb205d5719e5ed50fab9ba9a739e1b4bdf3a0a319f51a7202", - strip_prefix = "github.com/Masterminds/semver@v1.5.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Masterminds/semver/com_github_masterminds_semver-v1.5.0.zip", - ], - ) - go_repository( - name = "com_github_masterminds_semver_v3", - build_file_proto_mode = "disable_global", - importpath = "github.com/Masterminds/semver/v3", - sha256 = "0a46c7403dfeda09b0821e851f8e1cec8f1ea4276281e42ea399da5bc5bf0704", - strip_prefix = "github.com/Masterminds/semver/v3@v3.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Masterminds/semver/v3/com_github_masterminds_semver_v3-v3.1.1.zip", - ], - ) - go_repository( - name = "com_github_masterminds_sprig", - build_file_proto_mode = "disable_global", - importpath = "github.com/Masterminds/sprig", - sha256 = "1b4d772334cc94e5703291b5f0fe4ac4965ac265424b1060baf18ef5ff9d845c", - strip_prefix = "github.com/Masterminds/sprig@v2.22.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Masterminds/sprig/com_github_masterminds_sprig-v2.22.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_masterminds_vcs", - build_file_proto_mode = "disable_global", - importpath = "github.com/Masterminds/vcs", - sha256 = "c89f09e1c75a80c29d8be82b75a1015b9e811d25d93617f773962f2765d7c9c7", - strip_prefix = "github.com/Masterminds/vcs@v1.13.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Masterminds/vcs/com_github_masterminds_vcs-v1.13.0.zip", - ], - ) - go_repository( - name = "com_github_matryer_moq", - build_file_proto_mode = "disable_global", - importpath = "github.com/matryer/moq", - sha256 = "b9fb2bc3d0894dfaa3cc4298f49c97346ccb66f2f0e6911f4f224ffc9acc3972", - strip_prefix = "github.com/matryer/moq@v0.0.0-20190312154309-6cfb0558e1bd", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/matryer/moq/com_github_matryer_moq-v0.0.0-20190312154309-6cfb0558e1bd.zip", - ], - ) - go_repository( - name = "com_github_mattn_go_colorable", - build_file_proto_mode = "disable_global", - importpath = "github.com/mattn/go-colorable", - sha256 = "2a78bab4fa8a66b3ae48fcd50fc5970db4011a8cee0a3ad7c13da0fb624c95e5", - strip_prefix = "github.com/mattn/go-colorable@v0.1.11", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mattn/go-colorable/com_github_mattn_go_colorable-v0.1.11.zip", - ], - ) - go_repository( - name = "com_github_mattn_go_ieproxy", - build_file_proto_mode = "disable_global", - importpath = "github.com/mattn/go-ieproxy", - sha256 = "2a1ad026c677bddef4136c76da19db2204d568b4c2246b2e00a79b47d8c01192", - strip_prefix = "github.com/mattn/go-ieproxy@v0.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mattn/go-ieproxy/com_github_mattn_go_ieproxy-v0.0.1.zip", - ], - ) - go_repository( - name = "com_github_mattn_go_isatty", - build_file_proto_mode = "disable_global", - importpath = "github.com/mattn/go-isatty", - sha256 = "6b8f017658d900de873fc567237548ef2054082aed64669655e51beeefee83c7", - strip_prefix = "github.com/mattn/go-isatty@v0.0.14", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mattn/go-isatty/com_github_mattn_go_isatty-v0.0.14.zip", - ], - ) - go_repository( - name = "com_github_mattn_go_runewidth", - build_file_proto_mode = "disable_global", - importpath = "github.com/mattn/go-runewidth", - sha256 = "030dcf3ea6cb39b34269f119ee5fe5e9d5834daf409e1f3f48c065a45326f4a6", - strip_prefix = "github.com/mattn/go-runewidth@v0.0.10", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mattn/go-runewidth/com_github_mattn_go_runewidth-v0.0.10.zip", - ], - ) - go_repository( - name = "com_github_mattn_go_shellwords", - build_file_proto_mode = "disable_global", - importpath = "github.com/mattn/go-shellwords", - sha256 = "d9b59db554053d4a244f9ca5c233773f7cf512778d95919c78dc47234eacceee", - strip_prefix = "github.com/mattn/go-shellwords@v1.0.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mattn/go-shellwords/com_github_mattn_go_shellwords-v1.0.3.zip", - ], - ) - go_repository( - name = "com_github_mattn_go_sqlite3", - build_file_proto_mode = "disable_global", - importpath = "github.com/mattn/go-sqlite3", - sha256 = "703e6cca7d67a5a886fab6c5f837e922e71566b215651c069f13ee137b2964b3", - strip_prefix = "github.com/mattn/go-sqlite3@v1.14.6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mattn/go-sqlite3/com_github_mattn_go_sqlite3-v1.14.6.zip", - ], - ) - go_repository( - name = "com_github_mattn_go_tty", - build_file_proto_mode = "disable_global", - importpath = "github.com/mattn/go-tty", - sha256 = "e7384ae06bb54cc8f615d86e6397b11849be12c270d66460856f3fc6ad72aacb", - strip_prefix = "github.com/mattn/go-tty@v0.0.0-20180907095812-13ff1204f104", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mattn/go-tty/com_github_mattn_go_tty-v0.0.0-20180907095812-13ff1204f104.zip", - ], - ) - go_repository( - name = "com_github_mattn_go_zglob", - build_file_proto_mode = "disable_global", - importpath = "github.com/mattn/go-zglob", - sha256 = "8ef2dfc44aa352edd72e50287b7ac836c4c48fa439ca2648d8c1a4067f49e504", - strip_prefix = "github.com/mattn/go-zglob@v0.0.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mattn/go-zglob/com_github_mattn_go_zglob-v0.0.3.zip", - ], - ) - go_repository( - name = "com_github_mattn_goveralls", - build_file_proto_mode = "disable_global", - importpath = "github.com/mattn/goveralls", - sha256 = "3df5b7ebfb61edd9a098895aae7009a927a2fe91f73f38f48467a7b9e6c006f7", - strip_prefix = "github.com/mattn/goveralls@v0.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mattn/goveralls/com_github_mattn_goveralls-v0.0.2.zip", - ], - ) - go_repository( - name = "com_github_matttproud_golang_protobuf_extensions", - build_file_proto_mode = "disable_global", - importpath = "github.com/matttproud/golang_protobuf_extensions", - sha256 = "232df417d378e10bb1dcdd533c493647a247f62d9fe2b13c636d9647ff13384a", - strip_prefix = "github.com/matttproud/golang_protobuf_extensions@v1.0.2-0.20181231171920-c182affec369", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/matttproud/golang_protobuf_extensions/com_github_matttproud_golang_protobuf_extensions-v1.0.2-0.20181231171920-c182affec369.zip", - ], - ) - go_repository( - name = "com_github_mediocregopher_mediocre_go_lib", - build_file_proto_mode = "disable_global", - importpath = "github.com/mediocregopher/mediocre-go-lib", - sha256 = "6b9950c36810c23dfe38c9de790da689af70811f520f161fc9325b202c71fab3", - strip_prefix = "github.com/mediocregopher/mediocre-go-lib@v0.0.0-20181029021733-cb65787f37ed", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mediocregopher/mediocre-go-lib/com_github_mediocregopher_mediocre_go_lib-v0.0.0-20181029021733-cb65787f37ed.zip", - ], - ) - go_repository( - name = "com_github_mediocregopher_radix_v3", - build_file_proto_mode = "disable_global", - importpath = "github.com/mediocregopher/radix/v3", - sha256 = "5be7566cd32610078fa12461b09b674061efb955b2400625ba8ebf3f6182c287", - strip_prefix = "github.com/mediocregopher/radix/v3@v3.4.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mediocregopher/radix/v3/com_github_mediocregopher_radix_v3-v3.4.2.zip", - ], - ) - go_repository( - name = "com_github_mgutz_ansi", - build_file_proto_mode = "disable_global", - importpath = "github.com/mgutz/ansi", - sha256 = "2e0c063f9597cb225904292981732f10298e95aa22a1b815297e318ba103dc1d", - strip_prefix = "github.com/mgutz/ansi@v0.0.0-20200706080929-d51e80ef957d", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mgutz/ansi/com_github_mgutz_ansi-v0.0.0-20200706080929-d51e80ef957d.zip", - ], - ) - go_repository( - name = "com_github_mibk_dupl", - build_file_proto_mode = "disable_global", - importpath = "github.com/mibk/dupl", - sha256 = "73f61090c1cbee024b771fc60804cbedc5c2861f232bd34eff719afd9ac6e098", - strip_prefix = "github.com/mibk/dupl@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mibk/dupl/com_github_mibk_dupl-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_michaeltjones_walk", - build_file_proto_mode = "disable_global", - importpath = "github.com/MichaelTJones/walk", - sha256 = "fd1f0195976f587977eb26c9795f7989c02c0701bdff6f2d155a617ee69fdf6e", - strip_prefix = "github.com/MichaelTJones/walk@v0.0.0-20161122175330-4748e29d5718", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/MichaelTJones/walk/com_github_michaeltjones_walk-v0.0.0-20161122175330-4748e29d5718.zip", - ], - ) - go_repository( - name = "com_github_microcosm_cc_bluemonday", - build_file_proto_mode = "disable_global", - importpath = "github.com/microcosm-cc/bluemonday", - sha256 = "9cfac37098da75ab1c278740e8f0f7741891d8843e14afb256574596ad786f83", - strip_prefix = "github.com/microcosm-cc/bluemonday@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/microcosm-cc/bluemonday/com_github_microcosm_cc_bluemonday-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_microsoft_go_winio", - build_file_proto_mode = "disable_global", - importpath = "github.com/Microsoft/go-winio", - sha256 = "d475d8f45f8e4de4c5f10fa8390a03e47596ea391dbbf5abdb1adc4f8bead50c", - strip_prefix = "github.com/Microsoft/go-winio@v0.4.17", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Microsoft/go-winio/com_github_microsoft_go_winio-v0.4.17.zip", - ], - ) - go_repository( - name = "com_github_microsoft_hcsshim", - build_file_proto_mode = "disable_global", - importpath = "github.com/Microsoft/hcsshim", - sha256 = "71a2ca0d284b6cd843db1b4b4ecd367af25194c1b66e4b50990c448706b0b777", - strip_prefix = "github.com/Microsoft/hcsshim@v0.8.18", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Microsoft/hcsshim/com_github_microsoft_hcsshim-v0.8.18.zip", - ], - ) - go_repository( - name = "com_github_microsoft_hcsshim_test", - build_file_proto_mode = "disable_global", - importpath = "github.com/Microsoft/hcsshim/test", - sha256 = "576f610aff477764e340aca7381f68ad980c410fee028f1d629c0cb6dc865fe9", - strip_prefix = "github.com/Microsoft/hcsshim/test@v0.0.0-20210227013316-43a75bb4edd3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Microsoft/hcsshim/test/com_github_microsoft_hcsshim_test-v0.0.0-20210227013316-43a75bb4edd3.zip", - ], - ) - go_repository( - name = "com_github_miekg_dns", - build_file_proto_mode = "disable_global", - importpath = "github.com/miekg/dns", - sha256 = "98eaddff5c30e475850f8f9c170bfb1adf33f0aaeeb280f71e77808a1dd902aa", - strip_prefix = "github.com/miekg/dns@v1.1.43", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/miekg/dns/com_github_miekg_dns-v1.1.43.zip", - ], - ) - go_repository( - name = "com_github_miekg_pkcs11", - build_file_proto_mode = "disable_global", - importpath = "github.com/miekg/pkcs11", - sha256 = "d06d401db6104517f860ebd4b523a7219fcf9cd16d7f54c930a62894f2067073", - strip_prefix = "github.com/miekg/pkcs11@v1.0.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/miekg/pkcs11/com_github_miekg_pkcs11-v1.0.3.zip", - ], - ) - go_repository( - name = "com_github_mileusna_useragent", - build_file_proto_mode = "disable_global", - importpath = "github.com/mileusna/useragent", - sha256 = "169eabdbd206177d55bcf544ec99437d5e10cea4104f8d542aa16515202e584f", - strip_prefix = "github.com/mileusna/useragent@v0.0.0-20190129205925-3e331f0949a5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mileusna/useragent/com_github_mileusna_useragent-v0.0.0-20190129205925-3e331f0949a5.zip", - ], - ) - go_repository( - name = "com_github_minio_md5_simd", - build_file_proto_mode = "disable_global", - importpath = "github.com/minio/md5-simd", - sha256 = "f829d35a6e6897db415af8888c4b074d1a253aee0e8fb7054b4d95477a81c3d6", - strip_prefix = "github.com/minio/md5-simd@v1.1.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/minio/md5-simd/com_github_minio_md5_simd-v1.1.2.zip", - ], - ) - go_repository( - name = "com_github_minio_minio_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/minio/minio-go", - sha256 = "329d7e50f7e20014fa563aa8ff7a789106660e4b6fed87b2ca17fe3387cecb86", - strip_prefix = "github.com/minio/minio-go@v0.0.0-20190131015406-c8a261de75c1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/minio/minio-go/com_github_minio_minio_go-v0.0.0-20190131015406-c8a261de75c1.zip", - ], - ) - go_repository( - name = "com_github_minio_minio_go_v7", - build_file_proto_mode = "disable_global", - importpath = "github.com/minio/minio-go/v7", - sha256 = "826952231f5c7622b7c2d4b5180a4e12cf3379bd3842e1ef4934dfe115786218", - strip_prefix = "github.com/minio/minio-go/v7@v7.0.21", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/minio/minio-go/v7/com_github_minio_minio_go_v7-v7.0.21.zip", - ], - ) - go_repository( - name = "com_github_minio_sha256_simd", - build_file_proto_mode = "disable_global", - importpath = "github.com/minio/sha256-simd", - sha256 = "62edc1481390c3421ff5a54b80c49acab85331348124d560a5e410074d19c3e5", - strip_prefix = "github.com/minio/sha256-simd@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/minio/sha256-simd/com_github_minio_sha256_simd-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_mistifyio_go_zfs", - build_file_proto_mode = "disable_global", - importpath = "github.com/mistifyio/go-zfs", - sha256 = "fd1f35f187aa04233a178daa1158039578bcb4966b9f038e4d27a6fff2ea3503", - strip_prefix = "github.com/mistifyio/go-zfs@v2.1.2-0.20190413222219-f784269be439+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mistifyio/go-zfs/com_github_mistifyio_go_zfs-v2.1.2-0.20190413222219-f784269be439+incompatible.zip", - ], - ) - go_repository( - name = "com_github_mitchellh_cli", - build_file_proto_mode = "disable_global", - importpath = "github.com/mitchellh/cli", - sha256 = "521d0ee631576325f75092c56264b4f310bba32b46999ed2024d937dd3a41824", - strip_prefix = "github.com/mitchellh/cli@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mitchellh/cli/com_github_mitchellh_cli-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_mitchellh_copystructure", - build_file_proto_mode = "disable_global", - importpath = "github.com/mitchellh/copystructure", - sha256 = "4a2c9eb367a7781864e8edbd3b11781897766bcf6120f77a717d54a575392eee", - strip_prefix = "github.com/mitchellh/copystructure@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mitchellh/copystructure/com_github_mitchellh_copystructure-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_mitchellh_go_homedir", - build_file_proto_mode = "disable_global", - importpath = "github.com/mitchellh/go-homedir", - sha256 = "fffec361fc7e776bb71433560c285ee2982d2c140b8f5bfba0db6033c0ade184", - strip_prefix = "github.com/mitchellh/go-homedir@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mitchellh/go-homedir/com_github_mitchellh_go_homedir-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_mitchellh_go_ps", - build_file_proto_mode = "disable_global", - importpath = "github.com/mitchellh/go-ps", - sha256 = "f2f0400b1d5e136419daed275c27a930b0f5447ac12bb8acd3ddbe39547b2834", - strip_prefix = "github.com/mitchellh/go-ps@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mitchellh/go-ps/com_github_mitchellh_go_ps-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_mitchellh_go_testing_interface", - build_file_proto_mode = "disable_global", - importpath = "github.com/mitchellh/go-testing-interface", - sha256 = "3af316747f951819b19cf55fbaaa592f1d3f19ab078e183c6cd7ca591e6791a8", - strip_prefix = "github.com/mitchellh/go-testing-interface@v1.14.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mitchellh/go-testing-interface/com_github_mitchellh_go_testing_interface-v1.14.0.zip", - ], - ) - go_repository( - name = "com_github_mitchellh_go_wordwrap", - build_file_proto_mode = "disable_global", - importpath = "github.com/mitchellh/go-wordwrap", - sha256 = "9ea185f97dfe616da351b63b229a5a212b14ac0e23bd3f943e39590eadb38031", - strip_prefix = "github.com/mitchellh/go-wordwrap@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mitchellh/go-wordwrap/com_github_mitchellh_go_wordwrap-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_mitchellh_gox", - build_file_proto_mode = "disable_global", - importpath = "github.com/mitchellh/gox", - sha256 = "70c976edc82b069d55c4b05409be9e91d85c20238a5e38c60fbb0b03b43c9550", - strip_prefix = "github.com/mitchellh/gox@v0.4.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mitchellh/gox/com_github_mitchellh_gox-v0.4.0.zip", - ], - ) - go_repository( - name = "com_github_mitchellh_iochan", - build_file_proto_mode = "disable_global", - importpath = "github.com/mitchellh/iochan", - sha256 = "f3eede01adb24c22945bf71b4f84ae25e3744a12b9d8bd7c016705adc0d778b8", - strip_prefix = "github.com/mitchellh/iochan@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mitchellh/iochan/com_github_mitchellh_iochan-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_mitchellh_mapstructure", - build_file_proto_mode = "disable_global", - importpath = "github.com/mitchellh/mapstructure", - sha256 = "bfe856861145c25f6f26c2985760e86a4634e2a28bb9b4582ff0e8a9d2621e10", - strip_prefix = "github.com/mitchellh/mapstructure@v1.4.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mitchellh/mapstructure/com_github_mitchellh_mapstructure-v1.4.1.zip", - ], - ) - go_repository( - name = "com_github_mitchellh_osext", - build_file_proto_mode = "disable_global", - importpath = "github.com/mitchellh/osext", - sha256 = "d8e6e5f6bd749cfa0c1c17c40f5dc0fd19e4a0a83245f46bde23bea4e65d1a20", - strip_prefix = "github.com/mitchellh/osext@v0.0.0-20151018003038-5e2d6d41470f", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mitchellh/osext/com_github_mitchellh_osext-v0.0.0-20151018003038-5e2d6d41470f.zip", - ], - ) - go_repository( - name = "com_github_mitchellh_reflectwalk", - build_file_proto_mode = "disable_global", - importpath = "github.com/mitchellh/reflectwalk", - sha256 = "318ab84e22d4554a7540c7ebc9b4fb607e2608578c3a5bb72434203988048145", - strip_prefix = "github.com/mitchellh/reflectwalk@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mitchellh/reflectwalk/com_github_mitchellh_reflectwalk-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_mjibson_esc", - build_file_proto_mode = "disable_global", - importpath = "github.com/mjibson/esc", - sha256 = "9f090786bd43dddb5c0d798b449d5e8aede4cb7d106f56dcac0aebd8fd1929cc", - strip_prefix = "github.com/mjibson/esc@v0.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mjibson/esc/com_github_mjibson_esc-v0.2.0.zip", - ], - ) - go_repository( - name = "com_github_mmatczuk_go_generics", - build_file_proto_mode = "disable_global", - importpath = "github.com/mmatczuk/go_generics", - sha256 = "18c1e95c93f1f82be0184bc13bf49eb4350c7a4ff524b1bf440b3eb9ff14acc9", - strip_prefix = "github.com/mmatczuk/go_generics@v0.0.0-20181212143635-0aaa050f9bab", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mmatczuk/go_generics/com_github_mmatczuk_go_generics-v0.0.0-20181212143635-0aaa050f9bab.zip", - ], - ) - go_repository( - name = "com_github_mmcloughlin_geohash", - build_file_proto_mode = "disable_global", - importpath = "github.com/mmcloughlin/geohash", - sha256 = "7162856858d9bb3c411d4b42ad19dfff579341ddf0580122e3f1ac3be05c7441", - strip_prefix = "github.com/mmcloughlin/geohash@v0.9.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mmcloughlin/geohash/com_github_mmcloughlin_geohash-v0.9.0.zip", - ], - ) - go_repository( - name = "com_github_moby_locker", - build_file_proto_mode = "disable_global", - importpath = "github.com/moby/locker", - sha256 = "f07361346d12a24e168db7fb2f21281883bee6060f1aedf7507bccf20c4a793f", - strip_prefix = "github.com/moby/locker@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/moby/locker/com_github_moby_locker-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_moby_spdystream", - build_file_proto_mode = "disable_global", - importpath = "github.com/moby/spdystream", - sha256 = "9db6d001a80f4c3cb332bb8a1bb9260908e1ffa9a20491e9bc05358263eed278", - strip_prefix = "github.com/moby/spdystream@v0.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/moby/spdystream/com_github_moby_spdystream-v0.2.0.zip", - ], - ) - go_repository( - name = "com_github_moby_sys_mountinfo", - build_file_proto_mode = "disable_global", - importpath = "github.com/moby/sys/mountinfo", - sha256 = "0f32aa52a3be8bf724fe26307d144ffc4155bebbf1f4445388cc5fe9fe33bcc6", - strip_prefix = "github.com/moby/sys/mountinfo@v0.4.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/moby/sys/mountinfo/com_github_moby_sys_mountinfo-v0.4.1.zip", - ], - ) - go_repository( - name = "com_github_moby_sys_symlink", - build_file_proto_mode = "disable_global", - importpath = "github.com/moby/sys/symlink", - sha256 = "55ff27f7b35dc22c63c5ea4d79a127d45a18df2fcd2f22ca16f9a424c4b4cf51", - strip_prefix = "github.com/moby/sys/symlink@v0.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/moby/sys/symlink/com_github_moby_sys_symlink-v0.1.0.zip", - ], - ) - go_repository( - name = "com_github_moby_term", - build_file_proto_mode = "disable_global", - importpath = "github.com/moby/term", - sha256 = "f01dbf40f90d9023cd67543a3bc2d64c58ac9f4d931e1ba5bebd80ce9ab9ca47", - strip_prefix = "github.com/moby/term@v0.0.0-20201216013528-df9cb8a40635", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/moby/term/com_github_moby_term-v0.0.0-20201216013528-df9cb8a40635.zip", - ], - ) - go_repository( - name = "com_github_modern_go_concurrent", - build_file_proto_mode = "disable_global", - importpath = "github.com/modern-go/concurrent", - sha256 = "91ef49599bec459869d94ff3dec128871ab66bd2dfa61041f1e1169f9b4a8073", - strip_prefix = "github.com/modern-go/concurrent@v0.0.0-20180306012644-bacd9c7ef1dd", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/modern-go/concurrent/com_github_modern_go_concurrent-v0.0.0-20180306012644-bacd9c7ef1dd.zip", - ], - ) - go_repository( - name = "com_github_modern_go_reflect2", - build_file_proto_mode = "disable_global", - importpath = "github.com/modern-go/reflect2", - sha256 = "f46f41409c2e74293f82cfe6c70b5d582bff8ada0106a7d3ff5706520c50c21c", - strip_prefix = "github.com/modern-go/reflect2@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/modern-go/reflect2/com_github_modern_go_reflect2-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_montanaflynn_stats", - build_file_proto_mode = "disable_global", - importpath = "github.com/montanaflynn/stats", - sha256 = "25069347054502d9ab97531f0757b916124ba9966ead38f36f98812b37a6acd9", - strip_prefix = "github.com/montanaflynn/stats@v0.6.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/montanaflynn/stats/com_github_montanaflynn_stats-v0.6.3.zip", - ], - ) - go_repository( - 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 = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/morikuni/aec/com_github_morikuni_aec-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_mostynb_go_grpc_compression", - build_file_proto_mode = "disable_global", - importpath = "github.com/mostynb/go-grpc-compression", - sha256 = "a260a65018fbde39f8b3b996bbb1b6f76f1ea5db26f8892842b249ba7cd5f318", - strip_prefix = "github.com/mostynb/go-grpc-compression@v1.1.12", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mostynb/go-grpc-compression/com_github_mostynb_go_grpc_compression-v1.1.12.zip", - ], - ) - go_repository( - name = "com_github_moul_http2curl", - build_file_proto_mode = "disable_global", - importpath = "github.com/moul/http2curl", - sha256 = "3600be3621038727f856bf7403d3ef0ffcc2a6729716bab67b592dcd19b3fee2", - strip_prefix = "github.com/moul/http2curl@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/moul/http2curl/com_github_moul_http2curl-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_mozilla_tls_observatory", - build_file_proto_mode = "disable_global", - importpath = "github.com/mozilla/tls-observatory", - sha256 = "0798e35f31fdea023c3ded1e0d217295d932ed47f628c7e7c08f54e03da98ca8", - strip_prefix = "github.com/mozilla/tls-observatory@v0.0.0-20190404164649-a3c1b6cfecfd", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mozilla/tls-observatory/com_github_mozilla_tls_observatory-v0.0.0-20190404164649-a3c1b6cfecfd.zip", - ], - ) - go_repository( - name = "com_github_mrunalp_fileutils", - build_file_proto_mode = "disable_global", - importpath = "github.com/mrunalp/fileutils", - sha256 = "202a6e33b519ddcbece708c3779845114bb7324d4c9ff9899f7c4f80f1e7b1bf", - strip_prefix = "github.com/mrunalp/fileutils@v0.5.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mrunalp/fileutils/com_github_mrunalp_fileutils-v0.5.0.zip", - ], - ) - go_repository( - name = "com_github_mschoch_smat", - build_file_proto_mode = "disable_global", - importpath = "github.com/mschoch/smat", - sha256 = "488e193897c7d8e3b3758cbeb8a5bc1b58b9619f3f14288a2ea9e0baa5ed9b3e", - strip_prefix = "github.com/mschoch/smat@v0.0.0-20160514031455-90eadee771ae", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mschoch/smat/com_github_mschoch_smat-v0.0.0-20160514031455-90eadee771ae.zip", - ], - ) - go_repository( - name = "com_github_munnerz_goautoneg", - build_file_proto_mode = "disable_global", - importpath = "github.com/munnerz/goautoneg", - sha256 = "3d7ce17916779890be02ea6b3dd6345c3c30c1df502ad9d8b5b9b310e636afd9", - strip_prefix = "github.com/munnerz/goautoneg@v0.0.0-20191010083416-a7dc8b61c822", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/munnerz/goautoneg/com_github_munnerz_goautoneg-v0.0.0-20191010083416-a7dc8b61c822.zip", - ], - ) - go_repository( - name = "com_github_mwitkow_go_conntrack", - build_file_proto_mode = "disable_global", - importpath = "github.com/mwitkow/go-conntrack", - sha256 = "d6fc513490d5c73e3f64ede3cf18ba973a4f8ef4c39c9816cc6080e39c8c480a", - strip_prefix = "github.com/mwitkow/go-conntrack@v0.0.0-20190716064945-2f068394615f", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mwitkow/go-conntrack/com_github_mwitkow_go_conntrack-v0.0.0-20190716064945-2f068394615f.zip", - ], - ) - go_repository( - name = "com_github_mwitkow_go_proto_validators", - build_file_proto_mode = "disable_global", - importpath = "github.com/mwitkow/go-proto-validators", - sha256 = "a2a5bbb770b5455f12a1ed512704db70f845dfdf29bf96b641e66afbc0893c5e", - strip_prefix = "github.com/mwitkow/go-proto-validators@v0.0.0-20180403085117-0950a7990007", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mwitkow/go-proto-validators/com_github_mwitkow_go_proto_validators-v0.0.0-20180403085117-0950a7990007.zip", - ], - ) - go_repository( - name = "com_github_mxk_go_flowrate", - build_file_proto_mode = "disable_global", - importpath = "github.com/mxk/go-flowrate", - sha256 = "bd0701ef9115469a661c07a3e9c2e572114126eb2d098b01eda34ebf62548492", - strip_prefix = "github.com/mxk/go-flowrate@v0.0.0-20140419014527-cca7078d478f", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/mxk/go-flowrate/com_github_mxk_go_flowrate-v0.0.0-20140419014527-cca7078d478f.zip", - ], - ) - go_repository( - name = "com_github_nats_io_jwt", - build_file_proto_mode = "disable_global", - importpath = "github.com/nats-io/jwt", - sha256 = "d0ab8bb735649df606874454eafc44c9d0b5ae41a0453875260c351e209b1719", - strip_prefix = "github.com/nats-io/jwt@v0.3.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/nats-io/jwt/com_github_nats_io_jwt-v0.3.2.zip", - ], - ) - go_repository( - name = "com_github_nats_io_nats_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/nats-io/nats.go", - sha256 = "34a735d158d70685faad1fc3153f08da0ddc21c0ae42f6a0cb09430d638364b2", - strip_prefix = "github.com/nats-io/nats.go@v1.9.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/nats-io/nats.go/com_github_nats_io_nats_go-v1.9.1.zip", - ], - ) - go_repository( - name = "com_github_nats_io_nats_server_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/nats-io/nats-server/v2", - sha256 = "cf6c4affe3eae3f43b67b5ecc401f41819280136d6ef9209198a5f44b62d3280", - strip_prefix = "github.com/nats-io/nats-server/v2@v2.1.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/nats-io/nats-server/v2/com_github_nats_io_nats_server_v2-v2.1.2.zip", - ], - ) - go_repository( - name = "com_github_nats_io_nkeys", - build_file_proto_mode = "disable_global", - importpath = "github.com/nats-io/nkeys", - sha256 = "291930a7abcd84edcaffc2cadc75aeb830ebf561144313ead6b8e1fcc03b124f", - strip_prefix = "github.com/nats-io/nkeys@v0.1.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/nats-io/nkeys/com_github_nats_io_nkeys-v0.1.3.zip", - ], - ) - go_repository( - name = "com_github_nats_io_nuid", - build_file_proto_mode = "disable_global", - importpath = "github.com/nats-io/nuid", - sha256 = "809d144fbd16f91651a433e28d2008d339e19dafc450c5995e2ed92f1c17c1f3", - strip_prefix = "github.com/nats-io/nuid@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/nats-io/nuid/com_github_nats_io_nuid-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_nbutton23_zxcvbn_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/nbutton23/zxcvbn-go", - sha256 = "d9a08288eb990834ea161adbd57757a449d664ee254dc8c33444663e6596f4d8", - strip_prefix = "github.com/nbutton23/zxcvbn-go@v0.0.0-20180912185939-ae427f1e4c1d", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/nbutton23/zxcvbn-go/com_github_nbutton23_zxcvbn_go-v0.0.0-20180912185939-ae427f1e4c1d.zip", - ], - ) - go_repository( - name = "com_github_ncw_swift", - build_file_proto_mode = "disable_global", - importpath = "github.com/ncw/swift", - sha256 = "38cc53277c66456f267963ad9613cd168f252d9bef58de95dcee5202ceecb3e3", - strip_prefix = "github.com/ncw/swift@v1.0.47", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/ncw/swift/com_github_ncw_swift-v1.0.47.zip", - ], - ) - go_repository( - name = "com_github_ngdinhtoan_glide_cleanup", - build_file_proto_mode = "disable_global", - importpath = "github.com/ngdinhtoan/glide-cleanup", - sha256 = "e008e980d1a5335baaae1d10df2786ea1aea0d9774f8a46d19886a828edde4f3", - strip_prefix = "github.com/ngdinhtoan/glide-cleanup@v0.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/ngdinhtoan/glide-cleanup/com_github_ngdinhtoan_glide_cleanup-v0.2.0.zip", - ], - ) - go_repository( - name = "com_github_niemeyer_pretty", - build_file_proto_mode = "disable_global", - importpath = "github.com/niemeyer/pretty", - sha256 = "2dcb7053faf11c28cad7d84fcfa3dd7f93e3d236b39d83cff0934f691f860d7a", - strip_prefix = "github.com/niemeyer/pretty@v0.0.0-20200227124842-a10e7caefd8e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/niemeyer/pretty/com_github_niemeyer_pretty-v0.0.0-20200227124842-a10e7caefd8e.zip", - ], - ) - go_repository( - name = "com_github_nishanths_predeclared", - build_file_proto_mode = "disable_global", - importpath = "github.com/nishanths/predeclared", - sha256 = "f3a40ab7d3e0570570e7bc41a6cc7b08b3e23df5ef5f08553ef622a3752d6e03", - strip_prefix = "github.com/nishanths/predeclared@v0.0.0-20200524104333-86fad755b4d3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/nishanths/predeclared/com_github_nishanths_predeclared-v0.0.0-20200524104333-86fad755b4d3.zip", - ], - ) - go_repository( - name = "com_github_nkovacs_streamquote", - build_file_proto_mode = "disable_global", - importpath = "github.com/nkovacs/streamquote", - sha256 = "679a789b4b1409ea81054cb12e5f8441199f5fb17d4a2d3510c51f3aa5f3f0cc", - strip_prefix = "github.com/nkovacs/streamquote@v0.0.0-20170412213628-49af9bddb229", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/nkovacs/streamquote/com_github_nkovacs_streamquote-v0.0.0-20170412213628-49af9bddb229.zip", - ], - ) - go_repository( - name = "com_github_nvveen_gotty", - build_file_proto_mode = "disable_global", - importpath = "github.com/Nvveen/Gotty", - sha256 = "362ac7b59d74231419471b65b60079d167785b97fd4aa0de71575088cd192b1e", - strip_prefix = "github.com/Nvveen/Gotty@v0.0.0-20120604004816-cd527374f1e5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Nvveen/Gotty/com_github_nvveen_gotty-v0.0.0-20120604004816-cd527374f1e5.zip", - ], - ) - go_repository( - name = "com_github_nxadm_tail", - build_file_proto_mode = "disable_global", - importpath = "github.com/nxadm/tail", - sha256 = "c9bb9d05b3afd1bacc35e7d305a22b07cd7db38f5fabd4ccd95a9227c5709890", - strip_prefix = "github.com/nxadm/tail@v1.4.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/nxadm/tail/com_github_nxadm_tail-v1.4.4.zip", - ], - ) - go_repository( - name = "com_github_nytimes_gziphandler", - build_file_proto_mode = "disable_global", - importpath = "github.com/NYTimes/gziphandler", - sha256 = "0c2cce989a022621fd3445948136b5ffab40e36a9ef167fc5d6df79077359e50", - strip_prefix = "github.com/NYTimes/gziphandler@v0.0.0-20170623195520-56545f4a5d46", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/NYTimes/gziphandler/com_github_nytimes_gziphandler-v0.0.0-20170623195520-56545f4a5d46.zip", - ], - ) - go_repository( - name = "com_github_oklog_oklog", - build_file_proto_mode = "disable_global", - importpath = "github.com/oklog/oklog", - sha256 = "b37d032de5b0dd5e96063c06b77fcb29a692a07bd52a4d99a361f2fef68822ec", - strip_prefix = "github.com/oklog/oklog@v0.3.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/oklog/oklog/com_github_oklog_oklog-v0.3.2.zip", - ], - ) - go_repository( - name = "com_github_oklog_run", - build_file_proto_mode = "disable_global", - importpath = "github.com/oklog/run", - sha256 = "d6f69fc71aa155043f926c2a98fc1e5b3a8ebab422f2f36d785cfba38a7ebee4", - strip_prefix = "github.com/oklog/run@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/oklog/run/com_github_oklog_run-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_oklog_ulid", - build_file_proto_mode = "disable_global", - importpath = "github.com/oklog/ulid", - sha256 = "40e502c064a922d5eb7f2bc2cda9c6a2a929ec0fc76c9aae4db54fb7b6b611ae", - strip_prefix = "github.com/oklog/ulid@v1.3.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/oklog/ulid/com_github_oklog_ulid-v1.3.1.zip", - ], - ) - go_repository( - name = "com_github_olekukonko_tablewriter", - build_file_proto_mode = "disable_global", - importpath = "github.com/olekukonko/tablewriter", - sha256 = "79daf1c29ec50cdd8dd1ea33f8a814963646a45a2ebe22742d652579340ebde0", - strip_prefix = "github.com/cockroachdb/tablewriter@v0.0.5-0.20200105123400-bd15540e8847", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/tablewriter/com_github_cockroachdb_tablewriter-v0.0.5-0.20200105123400-bd15540e8847.zip", - ], - ) - go_repository( - name = "com_github_olivere_elastic", - build_file_proto_mode = "disable_global", - importpath = "github.com/olivere/elastic", - sha256 = "e8b5e1de9482bf73e64bbec74f9f19c6b2fb7b41c6a3f129634d7ce4d4d8b9f0", - strip_prefix = "github.com/olivere/elastic@v6.2.27+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/olivere/elastic/com_github_olivere_elastic-v6.2.27+incompatible.zip", - ], - ) - go_repository( - name = "com_github_oneofone_xxhash", - build_file_proto_mode = "disable_global", - importpath = "github.com/OneOfOne/xxhash", - sha256 = "b4a7d4dd033e96312c06b43d42a6425e00837c0254741bcd569c9a0909b26f9d", - strip_prefix = "github.com/OneOfOne/xxhash@v1.2.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/OneOfOne/xxhash/com_github_oneofone_xxhash-v1.2.2.zip", - ], - ) - go_repository( - name = "com_github_onsi_ginkgo", - build_file_proto_mode = "disable_global", - importpath = "github.com/onsi/ginkgo", - sha256 = "adfa06497641d0609d7b6e72a6087f898a0912cae0c2e86da90dace1b62045d4", - strip_prefix = "github.com/onsi/ginkgo@v1.14.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/onsi/ginkgo/com_github_onsi_ginkgo-v1.14.0.zip", - ], - ) - go_repository( - name = "com_github_onsi_gomega", - build_file_proto_mode = "disable_global", - importpath = "github.com/onsi/gomega", - sha256 = "2c3224f2611b61f9b966394ebb39ef3244c3419c813fe87fd1a80f60e94a6872", - strip_prefix = "github.com/onsi/gomega@v1.10.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/onsi/gomega/com_github_onsi_gomega-v1.10.3.zip", - ], - ) - go_repository( - name = "com_github_op_go_logging", - build_file_proto_mode = "disable_global", - importpath = "github.com/op/go-logging", - sha256 = "c506eace74028656eb28677a4c162f9c023ce2f9c0207354ba80cca89f11b461", - strip_prefix = "github.com/op/go-logging@v0.0.0-20160315200505-970db520ece7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/op/go-logging/com_github_op_go_logging-v0.0.0-20160315200505-970db520ece7.zip", - ], - ) - go_repository( - 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 = [ - "https://storage.googleapis.com/cockroach-godeps/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 = "ebb2dca711a137fbfb717158b0368792f834000f4308d9ea259d06c6804c677c", - strip_prefix = "github.com/opencontainers/image-spec@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/opencontainers/image-spec/com_github_opencontainers_image_spec-v1.0.1.zip", - ], - ) - go_repository( - name = "com_github_opencontainers_runc", - build_file_proto_mode = "disable_global", - importpath = "github.com/opencontainers/runc", - sha256 = "a93e8183c3abf68deec3958c5c88382c7dfc9403b8ba6fe3467b6456373864a3", - strip_prefix = "github.com/opencontainers/runc@v1.0.0-rc93", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/opencontainers/runc/com_github_opencontainers_runc-v1.0.0-rc93.zip", - ], - ) - go_repository( - name = "com_github_opencontainers_runtime_spec", - build_file_proto_mode = "disable_global", - importpath = "github.com/opencontainers/runtime-spec", - sha256 = "b5b116e59245c3a7ce1b750db1a2140eae0a448fc57023c4de81e1fd00bf586e", - strip_prefix = "github.com/opencontainers/runtime-spec@v1.0.3-0.20200929063507-e6143ca7d51d", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/opencontainers/runtime-spec/com_github_opencontainers_runtime_spec-v1.0.3-0.20200929063507-e6143ca7d51d.zip", - ], - ) - go_repository( - name = "com_github_opencontainers_runtime_tools", - build_file_proto_mode = "disable_global", - importpath = "github.com/opencontainers/runtime-tools", - sha256 = "49e4ed2cb59461d3af837a3d624096b1fb8f3f0aa021e11c2d3025cca83d862f", - strip_prefix = "github.com/opencontainers/runtime-tools@v0.0.0-20181011054405-1d69bd0f9c39", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/opencontainers/runtime-tools/com_github_opencontainers_runtime_tools-v0.0.0-20181011054405-1d69bd0f9c39.zip", - ], - ) - go_repository( - name = "com_github_opencontainers_selinux", - build_file_proto_mode = "disable_global", - importpath = "github.com/opencontainers/selinux", - sha256 = "3f052d891fccea2ec3b7118187cacdf45003167e5ca123058975d14cd51aa095", - strip_prefix = "github.com/opencontainers/selinux@v1.8.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/opencontainers/selinux/com_github_opencontainers_selinux-v1.8.0.zip", - ], - ) - go_repository( - name = "com_github_opennota_wd", - build_file_proto_mode = "disable_global", - importpath = "github.com/opennota/wd", - sha256 = "f7976f0639a473690c38576162f76c9b253e0867e6dea81257375baa56cf79e9", - strip_prefix = "github.com/opennota/wd@v0.0.0-20180911144301-b446539ab1e7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/opennota/wd/com_github_opennota_wd-v0.0.0-20180911144301-b446539ab1e7.zip", - ], - ) - go_repository( - name = "com_github_opentracing_basictracer_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/opentracing/basictracer-go", - sha256 = "a908957c8e55b7b036b4761fb64c643806fcb9b59d4e7c6fcd03fca1105a9156", - strip_prefix = "github.com/opentracing/basictracer-go@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/opentracing/basictracer-go/com_github_opentracing_basictracer_go-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_opentracing_contrib_go_grpc", - build_file_proto_mode = "disable_global", - importpath = "github.com/opentracing-contrib/go-grpc", - sha256 = "51f4dabc672c3d1f4c91eb09f033bab42620e55ee477c01751adeee0b6524f89", - strip_prefix = "github.com/opentracing-contrib/go-grpc@v0.0.0-20180928155321-4b5a12d3ff02", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/opentracing-contrib/go-grpc/com_github_opentracing_contrib_go_grpc-v0.0.0-20180928155321-4b5a12d3ff02.zip", - ], - ) - go_repository( - name = "com_github_opentracing_contrib_go_observer", - build_file_proto_mode = "disable_global", - importpath = "github.com/opentracing-contrib/go-observer", - sha256 = "50023eee1ef04412410f43d8b5dcf3ef481c0fc39067add27799654705fa84b2", - strip_prefix = "github.com/opentracing-contrib/go-observer@v0.0.0-20170622124052-a52f23424492", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/opentracing-contrib/go-observer/com_github_opentracing_contrib_go_observer-v0.0.0-20170622124052-a52f23424492.zip", - ], - ) - go_repository( - name = "com_github_opentracing_contrib_go_stdlib", - build_file_proto_mode = "disable_global", - importpath = "github.com/opentracing-contrib/go-stdlib", - sha256 = "4ed9796a724963db8c0f052747a86262faa16b46a67a794cdda2814f47736a44", - strip_prefix = "github.com/opentracing-contrib/go-stdlib@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/opentracing-contrib/go-stdlib/com_github_opentracing_contrib_go_stdlib-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_opentracing_opentracing_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/opentracing/opentracing-go", - sha256 = "9b1a75e9a454a0cf01a26c18e48cd321e3b300943ac5adb9098ba033dbd40db5", - strip_prefix = "github.com/opentracing/opentracing-go@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/opentracing/opentracing-go/com_github_opentracing_opentracing_go-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_openzipkin_contrib_zipkin_go_opentracing", - build_file_proto_mode = "disable_global", - importpath = "github.com/openzipkin-contrib/zipkin-go-opentracing", - sha256 = "74763b01a30fa2f7116f0408c792b4db50bb01200cfe5f3f8b351ac638d1adb4", - strip_prefix = "github.com/openzipkin-contrib/zipkin-go-opentracing@v0.4.5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/openzipkin-contrib/zipkin-go-opentracing/com_github_openzipkin_contrib_zipkin_go_opentracing-v0.4.5.zip", - ], - ) - go_repository( - name = "com_github_openzipkin_zipkin_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/openzipkin/zipkin-go", - sha256 = "337535c088bd6f7a479e21747044286f66490871948989d52f7812bc4cca955e", - strip_prefix = "github.com/openzipkin/zipkin-go@v0.2.5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/openzipkin/zipkin-go/com_github_openzipkin_zipkin_go-v0.2.5.zip", - ], - ) - go_repository( - name = "com_github_ory_dockertest_v3", - build_file_proto_mode = "disable_global", - importpath = "github.com/ory/dockertest/v3", - sha256 = "afc2d1a0dc4f70add02e7dbd682646b749fad48dffd69c252bfb44d419f7dc6f", - strip_prefix = "github.com/ory/dockertest/v3@v3.6.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/ory/dockertest/v3/com_github_ory_dockertest_v3-v3.6.0.zip", - ], - ) - go_repository( - name = "com_github_oxtoacart_bpool", - build_file_proto_mode = "disable_global", - importpath = "github.com/oxtoacart/bpool", - sha256 = "6816ec3a6f197cbee0ba6ddb9ec70958bc28870e59864b24e43da0c858079a1b", - strip_prefix = "github.com/oxtoacart/bpool@v0.0.0-20190530202638-03653db5a59c", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/oxtoacart/bpool/com_github_oxtoacart_bpool-v0.0.0-20190530202638-03653db5a59c.zip", - ], - ) - go_repository( - name = "com_github_pact_foundation_pact_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/pact-foundation/pact-go", - sha256 = "e753f63d70bf56300c60fe87817d04935bd41693fef06d273ec70014cccabd3b", - strip_prefix = "github.com/pact-foundation/pact-go@v1.0.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pact-foundation/pact-go/com_github_pact_foundation_pact_go-v1.0.4.zip", - ], - ) - go_repository( - name = "com_github_pascaldekloe_goe", - build_file_proto_mode = "disable_global", - importpath = "github.com/pascaldekloe/goe", - sha256 = "37b73886f1eec9b093143e7b03f547b90ab55d8d5c9aa3966e90f9df2d07353c", - strip_prefix = "github.com/pascaldekloe/goe@v0.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pascaldekloe/goe/com_github_pascaldekloe_goe-v0.1.0.zip", - ], - ) - go_repository( - name = "com_github_patrickmn_go_cache", - build_file_proto_mode = "disable_global", - importpath = "github.com/patrickmn/go-cache", - sha256 = "d5d1c13e3c9cfeb04a943f656333ec68627dd6ce136af67e2aa5881ad7353c55", - strip_prefix = "github.com/patrickmn/go-cache@v2.1.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/patrickmn/go-cache/com_github_patrickmn_go_cache-v2.1.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_paulbellamy_ratecounter", - build_file_proto_mode = "disable_global", - importpath = "github.com/paulbellamy/ratecounter", - sha256 = "fb012856582335cdac02ee17c08692d75d539158a82eda3a26fb8a51d4ef27e6", - strip_prefix = "github.com/paulbellamy/ratecounter@v0.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/paulbellamy/ratecounter/com_github_paulbellamy_ratecounter-v0.2.0.zip", - ], - ) - go_repository( - name = "com_github_pborman_uuid", - build_file_proto_mode = "disable_global", - importpath = "github.com/pborman/uuid", - sha256 = "b888ff5d33651a1f5f6b8094acc434dd6dc284e2fe5052754a7993cebd539437", - strip_prefix = "github.com/pborman/uuid@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pborman/uuid/com_github_pborman_uuid-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_pelletier_go_toml", - build_file_proto_mode = "disable_global", - importpath = "github.com/pelletier/go-toml", - sha256 = "a52f4a0d5d8f6e98bbfc493ec947e1be44b8f304005d2059ecc4c5938b712961", - strip_prefix = "github.com/pelletier/go-toml@v1.9.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pelletier/go-toml/com_github_pelletier_go_toml-v1.9.3.zip", - ], - ) - go_repository( - name = "com_github_performancecopilot_speed", - build_file_proto_mode = "disable_global", - importpath = "github.com/performancecopilot/speed", - sha256 = "44150a760ccfe232d3ce6bf40e537342d01f78ddac18b795f623d004257c00b0", - strip_prefix = "github.com/performancecopilot/speed@v3.0.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/performancecopilot/speed/com_github_performancecopilot_speed-v3.0.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_peterbourgon_diskv", - build_file_proto_mode = "disable_global", - importpath = "github.com/peterbourgon/diskv", - sha256 = "1eeff260bd1ad71cd1611078995db99e1c7eba28628e7d6f24c79039536ea1cb", - strip_prefix = "github.com/peterbourgon/diskv@v2.0.1+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/peterbourgon/diskv/com_github_peterbourgon_diskv-v2.0.1+incompatible.zip", - ], - ) - go_repository( - name = "com_github_peterbourgon_g2s", - build_file_proto_mode = "disable_global", - importpath = "github.com/peterbourgon/g2s", - sha256 = "41526f42b4fe3019581ab3745afea18271d7f037eb55a6e9fb3e32fd09ff9b8d", - strip_prefix = "github.com/peterbourgon/g2s@v0.0.0-20170223122336-d4e7ad98afea", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/peterbourgon/g2s/com_github_peterbourgon_g2s-v0.0.0-20170223122336-d4e7ad98afea.zip", - ], - ) - go_repository( - name = "com_github_peterh_liner", - build_file_proto_mode = "disable_global", - importpath = "github.com/peterh/liner", - sha256 = "0d96c450f9c55a8102f4ae7fd8a583ebfaeba23e3939d6b6284306a82a21430f", - strip_prefix = "github.com/peterh/liner@v1.0.1-0.20180619022028-8c1271fcf47f", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/peterh/liner/com_github_peterh_liner-v1.0.1-0.20180619022028-8c1271fcf47f.zip", - ], - ) - go_repository( - name = "com_github_petermattis_goid", - build_file_proto_mode = "disable_global", - importpath = "github.com/petermattis/goid", - sha256 = "9f536c5d39d6a3c851670ec585e1c876fe31f3402556d215ebbaffcecbacb30a", - strip_prefix = "github.com/petermattis/goid@v0.0.0-20211229010228-4d14c490ee36", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/petermattis/goid/com_github_petermattis_goid-v0.0.0-20211229010228-4d14c490ee36.zip", - ], - ) - go_repository( - name = "com_github_philhofer_fwd", - build_file_proto_mode = "disable_global", - importpath = "github.com/philhofer/fwd", - sha256 = "b4e79b1f5fdfe8c44bf6dae3dd593c62862930114411a30968f304084de1d0b3", - strip_prefix = "github.com/philhofer/fwd@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/philhofer/fwd/com_github_philhofer_fwd-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_pierrec_lz4", - build_file_proto_mode = "disable_global", - importpath = "github.com/pierrec/lz4", - sha256 = "3442d00156073088858844e4e25753b683ef1d39a5ff9f912079f7f8a1d72a61", - strip_prefix = "github.com/pierrec/lz4@v2.6.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pierrec/lz4/com_github_pierrec_lz4-v2.6.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_pierrre_compare", - build_file_proto_mode = "disable_global", - importpath = "github.com/pierrre/compare", - sha256 = "99af9543f52487c6e7015721def85aa2d9eb7661e37b151f1db91875dcda2ee7", - strip_prefix = "github.com/pierrre/compare@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pierrre/compare/com_github_pierrre_compare-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_pierrre_geohash", - build_file_proto_mode = "disable_global", - importpath = "github.com/pierrre/geohash", - sha256 = "8c94a7e1f93170b53cf6e9d615967c24ff5342d5182d510f4829b3f39e249b4d", - strip_prefix = "github.com/pierrre/geohash@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pierrre/geohash/com_github_pierrre_geohash-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_pingcap_errors", - build_file_proto_mode = "disable_global", - importpath = "github.com/pingcap/errors", - sha256 = "df62e548162429501a88d936a3e8330f2379ddfcd4d23c22b78bc1b157e05b97", - strip_prefix = "github.com/pingcap/errors@v0.11.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pingcap/errors/com_github_pingcap_errors-v0.11.4.zip", - ], - ) - go_repository( - name = "com_github_pires_go_proxyproto", - build_file_proto_mode = "disable_global", - importpath = "github.com/pires/go-proxyproto", - sha256 = "ad00aa7f321a1b560d2c6fb33f0bfaf2a0ce056a25c9a756cbd198b655fcbbf9", - strip_prefix = "github.com/pires/go-proxyproto@v0.0.0-20191211124218-517ecdf5bb2b", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pires/go-proxyproto/com_github_pires_go_proxyproto-v0.0.0-20191211124218-517ecdf5bb2b.zip", - ], - ) - go_repository( - name = "com_github_pkg_browser", - build_file_proto_mode = "disable_global", - importpath = "github.com/pkg/browser", - sha256 = "b845f84fbf08bba75401a4eff94c01c9e2c668fa1b43016e835bd60c6a8b4e87", - strip_prefix = "github.com/pkg/browser@v0.0.0-20180916011732-0a3d74bf9ce4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pkg/browser/com_github_pkg_browser-v0.0.0-20180916011732-0a3d74bf9ce4.zip", - ], - ) - go_repository( - name = "com_github_pkg_diff", - build_file_proto_mode = "disable_global", - importpath = "github.com/pkg/diff", - sha256 = "f35b23fdd2b9522ddd46cc5c0161b4f0765c514475d5d4ca2a86aca31388c8bd", - strip_prefix = "github.com/pkg/diff@v0.0.0-20210226163009-20ebb0f2a09e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pkg/diff/com_github_pkg_diff-v0.0.0-20210226163009-20ebb0f2a09e.zip", - ], - ) - go_repository( - name = "com_github_pkg_errors", - build_file_proto_mode = "disable_global", - importpath = "github.com/pkg/errors", - sha256 = "d4c36b8bcd0616290a3913215e0f53b931bd6e00670596f2960df1b44af2bd07", - strip_prefix = "github.com/pkg/errors@v0.9.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pkg/errors/com_github_pkg_errors-v0.9.1.zip", - ], - ) - go_repository( - name = "com_github_pkg_profile", - build_file_proto_mode = "disable_global", - importpath = "github.com/pkg/profile", - sha256 = "a31530cc1be940d949f8c3ae285cf877858c9e71b0a4da457787a4fee80711b9", - strip_prefix = "github.com/pkg/profile@v1.6.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pkg/profile/com_github_pkg_profile-v1.6.0.zip", - ], - ) - go_repository( - name = "com_github_pkg_sftp", - build_file_proto_mode = "disable_global", - importpath = "github.com/pkg/sftp", - sha256 = "4e30f0455865434be7b83d4010ab97667217dafd0017caa651faafa2cc6aed64", - strip_prefix = "github.com/pkg/sftp@v1.10.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pkg/sftp/com_github_pkg_sftp-v1.10.1.zip", - ], - ) - go_repository( - name = "com_github_pkg_term", - build_file_proto_mode = "disable_global", - importpath = "github.com/pkg/term", - sha256 = "165bb00eeab26fe65c64e0e13bc29abc7ea18ac28d288e2218c137cd0bd91d9b", - strip_prefix = "github.com/pkg/term@v0.0.0-20180730021639-bffc007b7fd5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pkg/term/com_github_pkg_term-v0.0.0-20180730021639-bffc007b7fd5.zip", - ], - ) - go_repository( - name = "com_github_pmezard_go_difflib", - build_file_proto_mode = "disable_global", - importpath = "github.com/pmezard/go-difflib", - sha256 = "de04cecc1a4b8d53e4357051026794bcbc54f2e6a260cfac508ce69d5d6457a0", - strip_prefix = "github.com/pmezard/go-difflib@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pmezard/go-difflib/com_github_pmezard_go_difflib-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_posener_complete", - build_file_proto_mode = "disable_global", - importpath = "github.com/posener/complete", - sha256 = "88b48005b995dc6592fa6fda08130488c83f63bcaa4ccb0fb8e926fee63112ec", - strip_prefix = "github.com/posener/complete@v1.2.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/posener/complete/com_github_posener_complete-v1.2.3.zip", - ], - ) - go_repository( - name = "com_github_power_devops_perfstat", - build_file_proto_mode = "disable_global", - importpath = "github.com/power-devops/perfstat", - sha256 = "3ef206586f26201742728d9ae351348179ae94bb8b0c7913aa1cdf0f13e24fd8", - strip_prefix = "github.com/power-devops/perfstat@v0.0.0-20210106213030-5aafc221ea8c", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/power-devops/perfstat/com_github_power_devops_perfstat-v0.0.0-20210106213030-5aafc221ea8c.zip", - ], - ) - go_repository( - name = "com_github_pquerna_cachecontrol", - build_file_proto_mode = "disable_global", - importpath = "github.com/pquerna/cachecontrol", - sha256 = "aee5feeaf00551b3448ba6ab0d56314924cbe2aff3eb56257839b528502c4b1a", - strip_prefix = "github.com/pquerna/cachecontrol@v0.0.0-20200921180117-858c6e7e6b7e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pquerna/cachecontrol/com_github_pquerna_cachecontrol-v0.0.0-20200921180117-858c6e7e6b7e.zip", - ], - ) - go_repository( - name = "com_github_prashantv_protectmem", - build_file_proto_mode = "disable_global", - importpath = "github.com/prashantv/protectmem", - sha256 = "53d930afbb812eb68b665dcbd96ac371ff600c8821cf5e43628ab283457881e9", - strip_prefix = "github.com/prashantv/protectmem@v0.0.0-20171002184600-e20412882b3a", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prashantv/protectmem/com_github_prashantv_protectmem-v0.0.0-20171002184600-e20412882b3a.zip", - ], - ) - go_repository( - name = "com_github_prometheus_alertmanager", - build_file_proto_mode = "disable_global", - importpath = "github.com/prometheus/alertmanager", - sha256 = "1c51abe35f12ebc11de46e0d888c93fe8e85b146ced1c2ab2a49dd97cf2b1c6a", - strip_prefix = "github.com/prometheus/alertmanager@v0.23.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/alertmanager/com_github_prometheus_alertmanager-v0.23.0.zip", - ], - ) - go_repository( - name = "com_github_prometheus_client_golang", - build_file_proto_mode = "disable_global", - importpath = "github.com/prometheus/client_golang", - sha256 = "9776139bdb0080e048ddad860ba49e9cca0f7b7736ab219ca0d69da4900d830d", - strip_prefix = "github.com/prometheus/client_golang@v1.12.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/client_golang/com_github_prometheus_client_golang-v1.12.0.zip", - ], - ) - go_repository( - name = "com_github_prometheus_client_model", - build_directives = [ - "gazelle:resolve go go github.com/golang/protobuf/ptypes/timestamp @com_github_golang_protobuf//ptypes/timestamp:go_default_library", - ], - build_file_proto_mode = "default", - importpath = "github.com/prometheus/client_model", - sha256 = "44fc58fe25ed9b122b6755e8d356d5f199592f959af3b87a3b636c6eb82b43c5", - strip_prefix = "github.com/prometheus/client_model@v0.2.1-0.20210607210712-147c58e9608a", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/client_model/com_github_prometheus_client_model-v0.2.1-0.20210607210712-147c58e9608a.zip", - ], - ) - go_repository( - name = "com_github_prometheus_common", - build_file_proto_mode = "disable_global", - importpath = "github.com/prometheus/common", - sha256 = "9630b9bbfcf1746a01c8aff0262271c60cf891fa1cd48a8ed9149de557dc98d6", - strip_prefix = "github.com/prometheus/common@v0.32.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/common/com_github_prometheus_common-v0.32.1.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 = [ - "https://storage.googleapis.com/cockroach-godeps/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 = "bac6a6c26e51c687abaf14e06b4a99eaa876380d917ff6b9bce38461ee4f95aa", - strip_prefix = "github.com/prometheus/exporter-toolkit@v0.6.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/exporter-toolkit/com_github_prometheus_exporter_toolkit-v0.6.1.zip", - ], - ) - go_repository( - name = "com_github_prometheus_procfs", - build_file_proto_mode = "disable_global", - importpath = "github.com/prometheus/procfs", - sha256 = "3e37c9f62738a493dd28283179d802749050353df0bca161df7cec4ed43e6f1a", - strip_prefix = "github.com/prometheus/procfs@v0.7.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/procfs/com_github_prometheus_procfs-v0.7.3.zip", - ], - ) - go_repository( - name = "com_github_prometheus_prometheus", - build_file_proto_mode = "disable_global", - importpath = "github.com/prometheus/prometheus", - sha256 = "934ceb931a2f3065c3aae015afcb49a9ed52043dfe29ae41a3a3e6299db1448a", - strip_prefix = "github.com/prometheus/prometheus@v1.8.2-0.20210914090109-37468d88dce8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/prometheus/com_github_prometheus_prometheus-v1.8.2-0.20210914090109-37468d88dce8.zip", - ], - ) - go_repository( - name = "com_github_prometheus_statsd_exporter", - build_file_proto_mode = "disable_global", - importpath = "github.com/prometheus/statsd_exporter", - sha256 = "aa848ade6fb019df4f7992808a1d6aa48d6b8276017970af4aabc1bd337c2dc3", - strip_prefix = "github.com/prometheus/statsd_exporter@v0.21.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/statsd_exporter/com_github_prometheus_statsd_exporter-v0.21.0.zip", - ], - ) - go_repository( - name = "com_github_prometheus_tsdb", - build_file_proto_mode = "disable_global", - importpath = "github.com/prometheus/tsdb", - sha256 = "360ce38297a00439c4bfbbded7b750f6d45582d581cde70572a003bcbc8b0c7b", - strip_prefix = "github.com/prometheus/tsdb@v0.7.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/tsdb/com_github_prometheus_tsdb-v0.7.1.zip", - ], - ) - go_repository( - name = "com_github_pseudomuto_protoc_gen_doc", - build_file_proto_mode = "disable_global", - importpath = "github.com/pseudomuto/protoc-gen-doc", - patch_args = ["-p1"], - patches = [ - "@cockroach//build/patches:com_github_pseudomuto_protoc_gen_doc.patch", - ], - sha256 = "ecf627d6f5b4e55d4844dda45612cbd152f0bc4dbe2ba182c7bc3ad1dc63ce5f", - strip_prefix = "github.com/pseudomuto/protoc-gen-doc@v1.3.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pseudomuto/protoc-gen-doc/com_github_pseudomuto_protoc_gen_doc-v1.3.2.zip", - ], - ) - go_repository( - name = "com_github_pseudomuto_protokit", - build_file_proto_mode = "disable_global", - importpath = "github.com/pseudomuto/protokit", - sha256 = "16d5fe0f6ac5bebbf9f2f05fde72f28bbf05bb18baef045b9ae79c2585f4e127", - strip_prefix = "github.com/pseudomuto/protokit@v0.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/pseudomuto/protokit/com_github_pseudomuto_protokit-v0.2.0.zip", - ], - ) - go_repository( - name = "com_github_puerkitobio_goquery", - build_file_proto_mode = "disable_global", - importpath = "github.com/PuerkitoBio/goquery", - sha256 = "9d5bbc466dc4fac7ad872f69eeb9dcf6ddfd925821c4699226fbdeae117839a2", - strip_prefix = "github.com/PuerkitoBio/goquery@v1.5.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/PuerkitoBio/goquery/com_github_puerkitobio_goquery-v1.5.1.zip", - ], - ) - go_repository( - name = "com_github_puerkitobio_purell", - build_file_proto_mode = "disable_global", - importpath = "github.com/PuerkitoBio/purell", - sha256 = "59e636760d7f2ab41c2f80c1784b1c73d381d44888d1999228dedd634ddcf5ed", - strip_prefix = "github.com/PuerkitoBio/purell@v1.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/PuerkitoBio/purell/com_github_puerkitobio_purell-v1.1.1.zip", - ], - ) - go_repository( - name = "com_github_puerkitobio_urlesc", - build_file_proto_mode = "disable_global", - importpath = "github.com/PuerkitoBio/urlesc", - sha256 = "1793124273dd94e7089e95716d40529bcf70b9e87162d60218f68dde4d6aeb9d", - strip_prefix = "github.com/PuerkitoBio/urlesc@v0.0.0-20170810143723-de5bf2ad4578", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/PuerkitoBio/urlesc/com_github_puerkitobio_urlesc-v0.0.0-20170810143723-de5bf2ad4578.zip", - ], - ) - go_repository( - name = "com_github_rcrowley_go_metrics", - build_file_proto_mode = "disable_global", - importpath = "github.com/rcrowley/go-metrics", - sha256 = "e4dbd20c185cb05019fd7d4a361266bd5d182938f49fd9577df4d12c16dc81c3", - strip_prefix = "github.com/rcrowley/go-metrics@v0.0.0-20201227073835-cf1acfcdf475", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/rcrowley/go-metrics/com_github_rcrowley_go_metrics-v0.0.0-20201227073835-cf1acfcdf475.zip", - ], - ) - go_repository( - name = "com_github_remyoudompheng_bigfft", - build_file_proto_mode = "disable_global", - importpath = "github.com/remyoudompheng/bigfft", - sha256 = "04fb0a6c44cd9665764d43b3ed7c223c60cdae140e46b9fd1581887310d198a9", - strip_prefix = "github.com/remyoudompheng/bigfft@v0.0.0-20170806203942-52369c62f446", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/remyoudompheng/bigfft/com_github_remyoudompheng_bigfft-v0.0.0-20170806203942-52369c62f446.zip", - ], - ) - go_repository( - name = "com_github_retailnext_hllpp", - build_file_proto_mode = "disable_global", - importpath = "github.com/retailnext/hllpp", - sha256 = "7863938cb01dfe9d4495df3c6608bedceec2d1195da05612f3c1b0e27d37729d", - strip_prefix = "github.com/retailnext/hllpp@v1.0.1-0.20180308014038-101a6d2f8b52", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/retailnext/hllpp/com_github_retailnext_hllpp-v1.0.1-0.20180308014038-101a6d2f8b52.zip", - ], - ) - go_repository( - name = "com_github_rivo_uniseg", - build_file_proto_mode = "disable_global", - importpath = "github.com/rivo/uniseg", - sha256 = "cb701df81f36acfbb2627a78662fdcaa150ee1ac00d0796a7f3eafbdb6218128", - strip_prefix = "github.com/rivo/uniseg@v0.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/rivo/uniseg/com_github_rivo_uniseg-v0.1.0.zip", - ], - ) - go_repository( - name = "com_github_robertkrimen_godocdown", - build_file_proto_mode = "disable_global", - importpath = "github.com/robertkrimen/godocdown", - sha256 = "789ed4a63a797e0dbac7c358eafa8fec4c9885f67ee61da941af4bad2d8c3b55", - strip_prefix = "github.com/robertkrimen/godocdown@v0.0.0-20130622164427-0bfa04905481", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/robertkrimen/godocdown/com_github_robertkrimen_godocdown-v0.0.0-20130622164427-0bfa04905481.zip", - ], - ) - 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 = [ - "https://storage.googleapis.com/cockroach-godeps/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", - importpath = "github.com/rogpeppe/fastuuid", - sha256 = "f9b8293f5e20270e26fb4214ca7afec864de92c73d03ff62b5ee29d1db4e72a1", - strip_prefix = "github.com/rogpeppe/fastuuid@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/rogpeppe/fastuuid/com_github_rogpeppe_fastuuid-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_rogpeppe_go_internal", - build_file_proto_mode = "disable_global", - importpath = "github.com/rogpeppe/go-internal", - sha256 = "d3d86854181b9fa008f294a1798d550337be44c8285dba9f2854f308d23931d2", - strip_prefix = "github.com/rogpeppe/go-internal@v1.8.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/rogpeppe/go-internal/com_github_rogpeppe_go_internal-v1.8.1.zip", - ], - ) - go_repository( - name = "com_github_rs_cors", - build_file_proto_mode = "disable_global", - importpath = "github.com/rs/cors", - sha256 = "9aeb6b48d7ba5d34187b40adaed8280f0690e6d9b4fd6132eccbd62aa2c0efd9", - strip_prefix = "github.com/rs/cors@v1.8.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/rs/cors/com_github_rs_cors-v1.8.0.zip", - ], - ) - go_repository( - name = "com_github_rs_xid", - build_file_proto_mode = "disable_global", - importpath = "github.com/rs/xid", - sha256 = "809ed1d8845fe5d73f6973e9b7a33eefd786cc97b1aebe493243e420b7c89958", - strip_prefix = "github.com/rs/xid@v1.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/rs/xid/com_github_rs_xid-v1.3.0.zip", - ], - ) - go_repository( - name = "com_github_rs_zerolog", - build_file_proto_mode = "disable_global", - importpath = "github.com/rs/zerolog", - sha256 = "bb7aa934fc89548dabf71c27427eab5920c9014af6cd06f53175411df09a4241", - strip_prefix = "github.com/rs/zerolog@v1.21.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/rs/zerolog/com_github_rs_zerolog-v1.21.0.zip", - ], - ) - go_repository( - name = "com_github_russross_blackfriday", - build_file_proto_mode = "disable_global", - importpath = "github.com/russross/blackfriday", - sha256 = "8dbd018a896577afef870d49adc9a7cbdcef54f6edd97dcbbe1b53e7cd6d66d4", - strip_prefix = "github.com/russross/blackfriday@v1.6.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/russross/blackfriday/com_github_russross_blackfriday-v1.6.0.zip", - ], - ) - go_repository( - name = "com_github_russross_blackfriday_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/russross/blackfriday/v2", - sha256 = "7852750d58a053ce38b01f2c203208817564f552ebf371b2b630081d7004c6ae", - strip_prefix = "github.com/russross/blackfriday/v2@v2.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/russross/blackfriday/v2/com_github_russross_blackfriday_v2-v2.1.0.zip", - ], - ) - go_repository( - name = "com_github_ryanuber_columnize", - build_file_proto_mode = "disable_global", - importpath = "github.com/ryanuber/columnize", - sha256 = "ff687e133db2e470640e511c90cf474154941537a94cd97bb0cf7a28a7d00dc7", - strip_prefix = "github.com/ryanuber/columnize@v2.1.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/ryanuber/columnize/com_github_ryanuber_columnize-v2.1.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_safchain_ethtool", - build_file_proto_mode = "disable_global", - importpath = "github.com/safchain/ethtool", - sha256 = "d334d35faf29091158a17c695830d15da359e7fb01d779fcec17fc787ef72d1e", - strip_prefix = "github.com/safchain/ethtool@v0.0.0-20190326074333-42ed695e3de8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/safchain/ethtool/com_github_safchain_ethtool-v0.0.0-20190326074333-42ed695e3de8.zip", - ], - ) - go_repository( - name = "com_github_samuel_go_zookeeper", - build_file_proto_mode = "disable_global", - importpath = "github.com/samuel/go-zookeeper", - sha256 = "13c5ccd4ada8ba049a48ae6fdf5b4de54894e56e8f017187466a8cb95ce1faf3", - strip_prefix = "github.com/samuel/go-zookeeper@v0.0.0-20200724154423-2164a8ac840e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/samuel/go-zookeeper/com_github_samuel_go_zookeeper-v0.0.0-20200724154423-2164a8ac840e.zip", - ], - ) - go_repository( - name = "com_github_sap_go_hdb", - build_file_proto_mode = "disable_global", - importpath = "github.com/SAP/go-hdb", - sha256 = "273de28a254c39e9f24293b864c1d664488e4a5d44d535755a5e5b68ae7eed8d", - strip_prefix = "github.com/SAP/go-hdb@v0.14.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/SAP/go-hdb/com_github_sap_go_hdb-v0.14.1.zip", - ], - ) - go_repository( - name = "com_github_sasha_s_go_deadlock", - build_file_proto_mode = "disable_global", - importpath = "github.com/sasha-s/go-deadlock", - sha256 = "82eaa020f254a21d5025b6cae9a908315ffa382f941ef228431c10177b9657d4", - strip_prefix = "github.com/sasha-s/go-deadlock@v0.3.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/sasha-s/go-deadlock/com_github_sasha_s_go_deadlock-v0.3.1.zip", - ], - ) - go_repository( - name = "com_github_satori_go_uuid", - build_file_proto_mode = "disable_global", - importpath = "github.com/satori/go.uuid", - sha256 = "31af2e17e052a9cf74182b335ecb9abadaf9235e09e5cc6a55ebd06d355f1dd2", - strip_prefix = "github.com/satori/go.uuid@v1.2.1-0.20181028125025-b2ce2384e17b", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/satori/go.uuid/com_github_satori_go_uuid-v1.2.1-0.20181028125025-b2ce2384e17b.zip", - ], - ) - go_repository( - name = "com_github_savsgio_gotils", - build_file_proto_mode = "disable_global", - importpath = "github.com/savsgio/gotils", - sha256 = "2d92113b0b2a2c22947d56f51129cf58013e4aaecd2cadfd84d7693c4186ac58", - strip_prefix = "github.com/savsgio/gotils@v0.0.0-20210921075833-21a6215cb0e4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/savsgio/gotils/com_github_savsgio_gotils-v0.0.0-20210921075833-21a6215cb0e4.zip", - ], - ) - go_repository( - name = "com_github_scaleway_scaleway_sdk_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/scaleway/scaleway-sdk-go", - sha256 = "d3085a949bf12cb3afe81309662d3657b600b2f2178c9f05fbc9cd5a6a3f4c3d", - strip_prefix = "github.com/scaleway/scaleway-sdk-go@v1.0.0-beta.7.0.20210223165440-c65ae3540d44", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/scaleway/scaleway-sdk-go/com_github_scaleway_scaleway_sdk_go-v1.0.0-beta.7.0.20210223165440-c65ae3540d44.zip", - ], - ) - go_repository( - 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 = [ - "https://storage.googleapis.com/cockroach-godeps/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_global", - importpath = "github.com/sclevine/agouti", - sha256 = "b20c8a6a2c1fda0ae6a9cd6d319e78a7a5afea4bc90810cd46b99246d8219d23", - strip_prefix = "github.com/sclevine/agouti@v3.0.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/sclevine/agouti/com_github_sclevine_agouti-v3.0.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_scylladb_termtables", - build_file_proto_mode = "disable_global", - importpath = "github.com/scylladb/termtables", - sha256 = "0afd3a75417e6b708c62329cea7f2822162c8bf6ada0de094cdc032461b8f196", - strip_prefix = "github.com/scylladb/termtables@v0.0.0-20191203121021-c4c0b6d42ff4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/scylladb/termtables/com_github_scylladb_termtables-v0.0.0-20191203121021-c4c0b6d42ff4.zip", - ], - ) - go_repository( - name = "com_github_sean__seed", - build_file_proto_mode = "disable_global", - importpath = "github.com/sean-/seed", - sha256 = "0bc8e6e0a07e554674b0bb92ef4eb7de1650056b50878eed8d5d631aec9b6362", - strip_prefix = "github.com/sean-/seed@v0.0.0-20170313163322-e2103e2c3529", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/sean-/seed/com_github_sean__seed-v0.0.0-20170313163322-e2103e2c3529.zip", - ], - ) - go_repository( - name = "com_github_seccomp_libseccomp_golang", - build_file_proto_mode = "disable_global", - importpath = "github.com/seccomp/libseccomp-golang", - sha256 = "5989692d87ef4c377fbc60d441795a90d9453b9e357d019e44d9033ab39ca888", - strip_prefix = "github.com/seccomp/libseccomp-golang@v0.9.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/seccomp/libseccomp-golang/com_github_seccomp_libseccomp_golang-v0.9.1.zip", - ], - ) - go_repository( - name = "com_github_sectioneight_md_to_godoc", - build_file_proto_mode = "disable_global", - importpath = "github.com/sectioneight/md-to-godoc", - sha256 = "8b605818df307b414d0a680f147f0baeb37c9166df9e111ede5531cf50124203", - strip_prefix = "github.com/sectioneight/md-to-godoc@v0.0.0-20161108233149-55e43be6c335", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/sectioneight/md-to-godoc/com_github_sectioneight_md_to_godoc-v0.0.0-20161108233149-55e43be6c335.zip", - ], - ) - go_repository( - name = "com_github_securego_gosec", - build_file_proto_mode = "disable_global", - importpath = "github.com/securego/gosec", - sha256 = "e0adea3cd40ba9d690b8054ff1341cf7d035084f50273a4f7bbac803fec3453a", - strip_prefix = "github.com/securego/gosec@v0.0.0-20200203094520-d13bb6d2420c", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/securego/gosec/com_github_securego_gosec-v0.0.0-20200203094520-d13bb6d2420c.zip", - ], - ) - go_repository( - name = "com_github_segmentio_kafka_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/segmentio/kafka-go", - sha256 = "b2a88eb5b65fbb75dac0ba5e721cd2cb8e39275d1702a0f97e3c4807d78e8b48", - strip_prefix = "github.com/segmentio/kafka-go@v0.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/segmentio/kafka-go/com_github_segmentio_kafka_go-v0.2.0.zip", - ], - ) - go_repository( - name = "com_github_sergi_go_diff", - build_file_proto_mode = "disable_global", - importpath = "github.com/sergi/go-diff", - sha256 = "a9c0203d5188745f59c29e170e8b1a7e7c8bd007634bce75932ffac042e43eac", - strip_prefix = "github.com/sergi/go-diff@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/sergi/go-diff/com_github_sergi_go_diff-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_shirou_gopsutil_v3", - build_file_proto_mode = "disable_global", - importpath = "github.com/shirou/gopsutil/v3", - sha256 = "ea6f8b430cee40870d8d454aaa5d4c22e84d217a2548a3f755b91a96b1c67a88", - strip_prefix = "github.com/shirou/gopsutil/v3@v3.21.12", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/shirou/gopsutil/v3/com_github_shirou_gopsutil_v3-v3.21.12.zip", - ], - ) - go_repository( - name = "com_github_shopify_goreferrer", - build_file_proto_mode = "disable_global", - importpath = "github.com/Shopify/goreferrer", - sha256 = "e47cdf750e6aa39707b90e62f4f87e97abb8d64b2525a16c021c82efb24f9969", - strip_prefix = "github.com/Shopify/goreferrer@v0.0.0-20181106222321-ec9c9a553398", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Shopify/goreferrer/com_github_shopify_goreferrer-v0.0.0-20181106222321-ec9c9a553398.zip", - ], - ) - go_repository( - name = "com_github_shopify_logrus_bugsnag", - build_file_proto_mode = "disable_global", - importpath = "github.com/Shopify/logrus-bugsnag", - sha256 = "a4cc3fa4b7b493b36b96ea035caa7afcf7307b0c4efc5e523a46597e171b95ce", - strip_prefix = "github.com/Shopify/logrus-bugsnag@v0.0.0-20171204204709-577dee27f20d", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Shopify/logrus-bugsnag/com_github_shopify_logrus_bugsnag-v0.0.0-20171204204709-577dee27f20d.zip", - ], - ) - go_repository( - name = "com_github_shopify_sarama", - build_file_proto_mode = "disable_global", - importpath = "github.com/Shopify/sarama", - sha256 = "e40e234e595aee956281eb80bcdda92342f2686180313cfcb379e7bcd1d49b58", - strip_prefix = "github.com/Shopify/sarama@v1.29.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Shopify/sarama/com_github_shopify_sarama-v1.29.0.zip", - ], - ) - go_repository( - name = "com_github_shopify_toxiproxy", - build_file_proto_mode = "disable_global", - importpath = "github.com/Shopify/toxiproxy", - sha256 = "9427e70698ee6a906904dfa0652624f640619acef40652a1e5490e13b31e7f61", - strip_prefix = "github.com/Shopify/toxiproxy@v2.1.4+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/Shopify/toxiproxy/com_github_shopify_toxiproxy-v2.1.4+incompatible.zip", - ], - ) - go_repository( - name = "com_github_shopspring_decimal", - build_file_proto_mode = "disable_global", - importpath = "github.com/shopspring/decimal", - sha256 = "65c34c248e7f736cadf03a7caa0c0870d15499eb593f933fe106c96c2b7699a7", - strip_prefix = "github.com/shopspring/decimal@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/shopspring/decimal/com_github_shopspring_decimal-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_shurcool_httpfs", - build_file_proto_mode = "disable_global", - importpath = "github.com/shurcooL/httpfs", - sha256 = "a2079dbd8c236262ecbb22312467265fbbddd9b5ee789531c5f7f24fbdda174b", - strip_prefix = "github.com/shurcooL/httpfs@v0.0.0-20190707220628-8d4bc4ba7749", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/shurcooL/httpfs/com_github_shurcool_httpfs-v0.0.0-20190707220628-8d4bc4ba7749.zip", - ], - ) - go_repository( - name = "com_github_shurcool_sanitized_anchor_name", - build_file_proto_mode = "disable_global", - importpath = "github.com/shurcooL/sanitized_anchor_name", - sha256 = "0af034323e0627a9e94367f87aa50ce29e5b165d54c8da2926cbaffd5834f757", - strip_prefix = "github.com/shurcooL/sanitized_anchor_name@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/shurcooL/sanitized_anchor_name/com_github_shurcool_sanitized_anchor_name-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_shurcool_vfsgen", - build_file_proto_mode = "disable_global", - importpath = "github.com/shurcooL/vfsgen", - sha256 = "98198ecd8f122d1266ff2db193f1aae8a88f2f299bfc34b06ef356694cca537d", - strip_prefix = "github.com/shurcooL/vfsgen@v0.0.0-20200824052919-0d455de96546", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/shurcooL/vfsgen/com_github_shurcool_vfsgen-v0.0.0-20200824052919-0d455de96546.zip", - ], - ) - go_repository( - name = "com_github_sirupsen_logrus", - build_file_proto_mode = "disable_global", - importpath = "github.com/sirupsen/logrus", - sha256 = "8caec32e0aba1b95effc69d645b50f937137f78f0d0534b149f017dc0164a354", - strip_prefix = "github.com/sirupsen/logrus@v1.8.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/sirupsen/logrus/com_github_sirupsen_logrus-v1.8.1.zip", - ], - ) - go_repository( - name = "com_github_sjmudd_stopwatch", - build_file_proto_mode = "disable_global", - importpath = "github.com/sjmudd/stopwatch", - sha256 = "69e0ed207172b04161ccb26977f4c657fbee77296eca0b7ff84f8b1f2c2a6847", - strip_prefix = "github.com/sjmudd/stopwatch@v0.0.0-20170613150411-f380bf8a9be1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/sjmudd/stopwatch/com_github_sjmudd_stopwatch-v0.0.0-20170613150411-f380bf8a9be1.zip", - ], - ) - go_repository( - name = "com_github_slack_go_slack", - build_file_proto_mode = "disable_global", - importpath = "github.com/slack-go/slack", - sha256 = "2b1cc2d4107c7017f1348beefeb23db1cdbecf94b32590da364daed420371cde", - strip_prefix = "github.com/slack-go/slack@v0.9.5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/slack-go/slack/com_github_slack_go_slack-v0.9.5.zip", - ], - ) - go_repository( - name = "com_github_slok_go_http_metrics", - build_file_proto_mode = "disable_global", - importpath = "github.com/slok/go-http-metrics", - sha256 = "bf2e2b626e4fbd9735165494c574f2474f400786d8bd96b6b4648eba352c817b", - strip_prefix = "github.com/slok/go-http-metrics@v0.10.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/slok/go-http-metrics/com_github_slok_go_http_metrics-v0.10.0.zip", - ], - ) - go_repository( - name = "com_github_smartystreets_assertions", - build_file_proto_mode = "disable_global", - importpath = "github.com/smartystreets/assertions", - sha256 = "bf12bc33290d3e1e6f4cfe89aad0ad40c0acbfb378ce11e8157569aaf1526c04", - strip_prefix = "github.com/smartystreets/assertions@v0.0.0-20190116191733-b6c0e53d7304", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/smartystreets/assertions/com_github_smartystreets_assertions-v0.0.0-20190116191733-b6c0e53d7304.zip", - ], - ) - go_repository( - name = "com_github_smartystreets_goconvey", - build_file_proto_mode = "disable_global", - importpath = "github.com/smartystreets/goconvey", - sha256 = "a931413713a303a958a9c3ac31305498905fb91465e725552472462130396dda", - strip_prefix = "github.com/smartystreets/goconvey@v1.6.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/smartystreets/goconvey/com_github_smartystreets_goconvey-v1.6.4.zip", - ], - ) - go_repository( - name = "com_github_snowflakedb_gosnowflake", - build_file_proto_mode = "disable_global", - importpath = "github.com/snowflakedb/gosnowflake", - sha256 = "a39ab3850d25f162e2ed4bf920c0fba1559e1c5ec41e1ca35f44600a2e9a971d", - strip_prefix = "github.com/snowflakedb/gosnowflake@v1.3.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/snowflakedb/gosnowflake/com_github_snowflakedb_gosnowflake-v1.3.4.zip", - ], - ) - go_repository( - name = "com_github_soheilhy_cmux", - build_file_proto_mode = "disable_global", - importpath = "github.com/soheilhy/cmux", - sha256 = "6d6cadade0e186f84b5f8e7ddf8f4256601b21e49b0ca49fd003a7e570ae1885", - strip_prefix = "github.com/soheilhy/cmux@v0.1.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/soheilhy/cmux/com_github_soheilhy_cmux-v0.1.4.zip", - ], - ) - go_repository( - name = "com_github_sony_gobreaker", - build_file_proto_mode = "disable_global", - importpath = "github.com/sony/gobreaker", - sha256 = "eab9bf8f98b16b051d7d13c4f5c70d6d1039347e380e0a12cb9ff6e33200d784", - strip_prefix = "github.com/sony/gobreaker@v0.4.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/sony/gobreaker/com_github_sony_gobreaker-v0.4.1.zip", - ], - ) - go_repository( - name = "com_github_spaolacci_murmur3", - build_file_proto_mode = "disable_global", - importpath = "github.com/spaolacci/murmur3", - sha256 = "7fca345fffeb6d4ef1ffb8a9130a715f6b6e71c0e0dcc5eacf73995601b69766", - strip_prefix = "github.com/spaolacci/murmur3@v0.0.0-20180118202830-f09979ecbc72", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/spaolacci/murmur3/com_github_spaolacci_murmur3-v0.0.0-20180118202830-f09979ecbc72.zip", - ], - ) - go_repository( - name = "com_github_spf13_afero", - build_file_proto_mode = "disable_global", - importpath = "github.com/spf13/afero", - sha256 = "234791203d4bb7405bf5ef7f5cecc6e64fdfa9fc5a12d85b6ec7ecdb86cc0834", - strip_prefix = "github.com/spf13/afero@v1.6.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/spf13/afero/com_github_spf13_afero-v1.6.0.zip", - ], - ) - go_repository( - name = "com_github_spf13_cast", - build_file_proto_mode = "disable_global", - importpath = "github.com/spf13/cast", - sha256 = "9431fba3679d68cb98976c0f87e20520555835ecf772182991a37831426f219e", - strip_prefix = "github.com/spf13/cast@v1.3.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/spf13/cast/com_github_spf13_cast-v1.3.1.zip", - ], - ) - go_repository( - name = "com_github_spf13_cobra", - build_file_proto_mode = "disable_global", - importpath = "github.com/spf13/cobra", - sha256 = "9dad7255db19d7e264232543b42a0f5f04c4561df708702f1d895ff7c66818e5", - strip_prefix = "github.com/spf13/cobra@v1.2.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/spf13/cobra/com_github_spf13_cobra-v1.2.1.zip", - ], - ) - go_repository( - name = "com_github_spf13_jwalterweatherman", - build_file_proto_mode = "disable_global", - importpath = "github.com/spf13/jwalterweatherman", - sha256 = "43cc5f056caf66dc8225dca36637bfc18509521b103a69ca76fbc2b6519194a3", - strip_prefix = "github.com/spf13/jwalterweatherman@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/spf13/jwalterweatherman/com_github_spf13_jwalterweatherman-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_spf13_pflag", - build_file_proto_mode = "disable_global", - importpath = "github.com/spf13/pflag", - sha256 = "fc6e704f2f6a84ddcdce6de0404e5340fa20c8676181bf5d381b17888107ba84", - strip_prefix = "github.com/spf13/pflag@v1.0.5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/spf13/pflag/com_github_spf13_pflag-v1.0.5.zip", - ], - ) - go_repository( - name = "com_github_spf13_viper", - build_file_proto_mode = "disable_global", - importpath = "github.com/spf13/viper", - sha256 = "3223fb4fb8308f36d504b12653027403fa277cc03f49141e6539edb6991f7fef", - strip_prefix = "github.com/spf13/viper@v1.8.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/spf13/viper/com_github_spf13_viper-v1.8.1.zip", - ], - ) - go_repository( - name = "com_github_stefanberger_go_pkcs11uri", - build_file_proto_mode = "disable_global", - importpath = "github.com/stefanberger/go-pkcs11uri", - sha256 = "a9e09db495594e9f0e6b4c625ce12b026a14fa54a6478de762904594f545cb1a", - strip_prefix = "github.com/stefanberger/go-pkcs11uri@v0.0.0-20201008174630-78d3cae3a980", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/stefanberger/go-pkcs11uri/com_github_stefanberger_go_pkcs11uri-v0.0.0-20201008174630-78d3cae3a980.zip", - ], - ) - go_repository( - name = "com_github_stephens2424_writerset", - build_file_proto_mode = "disable_global", - importpath = "github.com/stephens2424/writerset", - sha256 = "a5444ddf04cda5666c4511e5ca793a80372d560376c4193a1fa2e2294d0760dc", - strip_prefix = "github.com/stephens2424/writerset@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/stephens2424/writerset/com_github_stephens2424_writerset-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_stoewer_go_strcase", - build_file_proto_mode = "disable_global", - importpath = "github.com/stoewer/go-strcase", - sha256 = "8f24d2c36a4bc9d78cb8aa046183c098e8acad1d812adb7dafc9c29f4e2affd0", - strip_prefix = "github.com/stoewer/go-strcase@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/stoewer/go-strcase/com_github_stoewer_go_strcase-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_streadway_amqp", - build_file_proto_mode = "disable_global", - importpath = "github.com/streadway/amqp", - sha256 = "66bd109504bf565a4a777c20a8cf6a1c5d05cd87b59baa50da8b6f2b0da4c494", - strip_prefix = "github.com/streadway/amqp@v0.0.0-20190827072141-edfb9018d271", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/streadway/amqp/com_github_streadway_amqp-v0.0.0-20190827072141-edfb9018d271.zip", - ], - ) - go_repository( - name = "com_github_streadway_handy", - build_file_proto_mode = "disable_global", - importpath = "github.com/streadway/handy", - sha256 = "f770ed96081220a9cbc5e975a06c2858b4f3d02820cb9902982116af491b171f", - strip_prefix = "github.com/streadway/handy@v0.0.0-20190108123426-d5acb3125c2a", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/streadway/handy/com_github_streadway_handy-v0.0.0-20190108123426-d5acb3125c2a.zip", - ], - ) - go_repository( - name = "com_github_streadway_quantile", - build_file_proto_mode = "disable_global", - importpath = "github.com/streadway/quantile", - sha256 = "45156bab62475784e2eacb349570c86bcf245a84d97825ce9ee2bf604a4438d5", - strip_prefix = "github.com/streadway/quantile@v0.0.0-20150917103942-b0c588724d25", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/streadway/quantile/com_github_streadway_quantile-v0.0.0-20150917103942-b0c588724d25.zip", - ], - ) - go_repository( - name = "com_github_stretchr_objx", - build_file_proto_mode = "disable_global", - importpath = "github.com/stretchr/objx", - sha256 = "5517d43cfb7e628b9c2c64010b934e346cd24726e3d6eaf02b7f86e10752e968", - strip_prefix = "github.com/stretchr/objx@v0.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/stretchr/objx/com_github_stretchr_objx-v0.2.0.zip", - ], - ) - go_repository( - name = "com_github_stretchr_testify", - build_file_proto_mode = "disable_global", - importpath = "github.com/stretchr/testify", - sha256 = "5a46ccebeff510df3e2f6d3842ee79d3f68d0e7b1554cd6ee93390d68b6c6b34", - strip_prefix = "github.com/stretchr/testify@v1.7.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/stretchr/testify/com_github_stretchr_testify-v1.7.0.zip", - ], - ) - go_repository( - name = "com_github_subosito_gotenv", - build_file_proto_mode = "disable_global", - importpath = "github.com/subosito/gotenv", - sha256 = "21474df92536f36de6f91dfbf466995289445cc4e5a5900d9c40ae8776b8b0cf", - strip_prefix = "github.com/subosito/gotenv@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/subosito/gotenv/com_github_subosito_gotenv-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_syndtr_gocapability", - build_file_proto_mode = "disable_global", - importpath = "github.com/syndtr/gocapability", - sha256 = "91ff91da1936e17aa68fc13756e40ba4db1d7c9375a4ef0969fe19c9aa281195", - strip_prefix = "github.com/syndtr/gocapability@v0.0.0-20200815063812-42c35b437635", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/syndtr/gocapability/com_github_syndtr_gocapability-v0.0.0-20200815063812-42c35b437635.zip", - ], - ) - go_repository( - name = "com_github_tchap_go_patricia", - build_file_proto_mode = "disable_global", - importpath = "github.com/tchap/go-patricia", - sha256 = "948494017eae153a8c2d4ae9b450fd42abcb2578211f1c28e69ab71a2f27814d", - strip_prefix = "github.com/tchap/go-patricia@v2.2.6+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/tchap/go-patricia/com_github_tchap_go_patricia-v2.2.6+incompatible.zip", - ], - ) - go_repository( - name = "com_github_tebeka_selenium", - build_file_proto_mode = "disable_global", - importpath = "github.com/tebeka/selenium", - sha256 = "1bcf27d3675f057bf2af7d73db1d06b932537ba46fa5bd4be6855105c31106d7", - strip_prefix = "github.com/tebeka/selenium@v0.9.9", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/tebeka/selenium/com_github_tebeka_selenium-v0.9.9.zip", - ], - ) - go_repository( - name = "com_github_the42_cartconvert", - build_file_proto_mode = "disable_global", - importpath = "github.com/the42/cartconvert", - sha256 = "a254c587b6ad690e45269f161fa52e26406bafc14f94442684063df8c953cbf3", - strip_prefix = "github.com/the42/cartconvert@v0.0.0-20131203171324-aae784c392b8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/the42/cartconvert/com_github_the42_cartconvert-v0.0.0-20131203171324-aae784c392b8.zip", - ], - ) - go_repository( - name = "com_github_tidwall_pretty", - build_file_proto_mode = "disable_global", - importpath = "github.com/tidwall/pretty", - sha256 = "3b25a1a0fe7688989326aaa1ca1c74c972b30152ef2a756fbf2d217a827fc07d", - strip_prefix = "github.com/tidwall/pretty@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/tidwall/pretty/com_github_tidwall_pretty-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_tinylib_msgp", - build_file_proto_mode = "disable_global", - importpath = "github.com/tinylib/msgp", - sha256 = "5f95bcd71857878008dd8f1aca59e672f9e07122ff9689bcf3bc9b8b859ba4e2", - strip_prefix = "github.com/tinylib/msgp@v1.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/tinylib/msgp/com_github_tinylib_msgp-v1.1.1.zip", - ], - ) - go_repository( - name = "com_github_tklauser_go_sysconf", - build_file_proto_mode = "disable_global", - importpath = "github.com/tklauser/go-sysconf", - sha256 = "2233c2cf18d4d37354eb333ec8a2dca63c24a09cfbc3b90cd06a8b3afe70893f", - strip_prefix = "github.com/tklauser/go-sysconf@v0.3.9", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/tklauser/go-sysconf/com_github_tklauser_go_sysconf-v0.3.9.zip", - ], - ) - go_repository( - name = "com_github_tklauser_numcpus", - build_file_proto_mode = "disable_global", - importpath = "github.com/tklauser/numcpus", - sha256 = "a5569abed62bb2d5f5f322f23fe8cae888fe98704442d59ed9e7aabfed423899", - strip_prefix = "github.com/tklauser/numcpus@v0.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/tklauser/numcpus/com_github_tklauser_numcpus-v0.3.0.zip", - ], - ) - go_repository( - name = "com_github_tmc_grpc_websocket_proxy", - build_file_proto_mode = "disable_global", - importpath = "github.com/tmc/grpc-websocket-proxy", - sha256 = "dadf62266d259ffb6aa1d707892b97fa36c3f39df5cae99f54d3ef7682995376", - strip_prefix = "github.com/tmc/grpc-websocket-proxy@v0.0.0-20190109142713-0ad062ec5ee5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/tmc/grpc-websocket-proxy/com_github_tmc_grpc_websocket_proxy-v0.0.0-20190109142713-0ad062ec5ee5.zip", - ], - ) - go_repository( - name = "com_github_tomihiltunen_geohash_golang", - build_file_proto_mode = "disable_global", - importpath = "github.com/TomiHiltunen/geohash-golang", - sha256 = "508c58cbcd4d2cec576cfd3450077413ba31cac31f825d8660d8d11c783501a0", - strip_prefix = "github.com/TomiHiltunen/geohash-golang@v0.0.0-20150112065804-b3e4e625abfb", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/TomiHiltunen/geohash-golang/com_github_tomihiltunen_geohash_golang-v0.0.0-20150112065804-b3e4e625abfb.zip", - ], - ) - go_repository( - name = "com_github_toqueteos_webbrowser", - build_file_proto_mode = "disable_global", - importpath = "github.com/toqueteos/webbrowser", - sha256 = "1227d3ebeab16d8232a304a10b087984a96ad30f7439b6687bab2f5747d308cf", - strip_prefix = "github.com/toqueteos/webbrowser@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/toqueteos/webbrowser/com_github_toqueteos_webbrowser-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_trivago_tgo", - build_file_proto_mode = "disable_global", - importpath = "github.com/trivago/tgo", - sha256 = "795b3a41901f6b694195d6be9c6e7730a971fbc0ec4cd236e73cc845aca6cb7e", - strip_prefix = "github.com/trivago/tgo@v1.0.7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/trivago/tgo/com_github_trivago_tgo-v1.0.7.zip", - ], - ) - go_repository( - name = "com_github_tv42_httpunix", - build_file_proto_mode = "disable_global", - importpath = "github.com/tv42/httpunix", - sha256 = "8246ebc82e0d9d3142f5aeb50d4fcd67f3f435fb5464120c356a4e5d57ef4aa0", - strip_prefix = "github.com/tv42/httpunix@v0.0.0-20150427012821-b75d8614f926", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/tv42/httpunix/com_github_tv42_httpunix-v0.0.0-20150427012821-b75d8614f926.zip", - ], - ) - go_repository( - name = "com_github_twitchtv_twirp", - build_file_proto_mode = "disable_global", - importpath = "github.com/twitchtv/twirp", - sha256 = "6a5499c6572cf367ac9c2bd7913abef5bc8ef9de5e7194d12452863ddcec6104", - strip_prefix = "github.com/twitchtv/twirp@v8.1.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/twitchtv/twirp/com_github_twitchtv_twirp-v8.1.0+incompatible.zip", - ], - ) - go_repository( - name = "com_github_twpayne_go_geom", - build_file_proto_mode = "disable_global", - importpath = "github.com/twpayne/go-geom", - sha256 = "31c2358ae2f1c10a406c529737c0928971fa3e17f4f807a45b02cf3eebacd03a", - strip_prefix = "github.com/twpayne/go-geom@v1.4.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/twpayne/go-geom/com_github_twpayne_go_geom-v1.4.1.zip", - ], - ) - go_repository( - name = "com_github_twpayne_go_kml", - build_file_proto_mode = "disable_global", - importpath = "github.com/twpayne/go-kml", - sha256 = "f67a698f9a02c889a1f6ff4e0a0625ec2359057674c0f25cf8c862ae519e382e", - strip_prefix = "github.com/twpayne/go-kml@v1.5.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/twpayne/go-kml/com_github_twpayne_go_kml-v1.5.2.zip", - ], - ) - go_repository( - name = "com_github_twpayne_go_polyline", - build_file_proto_mode = "disable_global", - importpath = "github.com/twpayne/go-polyline", - sha256 = "1794c8b7368bd16dec9cdb7b9be394c2030a1cc706a51edc318490667d9a5a97", - strip_prefix = "github.com/twpayne/go-polyline@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/twpayne/go-polyline/com_github_twpayne_go_polyline-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_twpayne_go_waypoint", - build_file_proto_mode = "disable_global", - importpath = "github.com/twpayne/go-waypoint", - sha256 = "8163a963b71e0723d694f87eeb15e3a7f9a32ad5fd189a1b78cf0aa293d300c8", - strip_prefix = "github.com/twpayne/go-waypoint@v0.0.0-20200706203930-b263a7f6e4e8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/twpayne/go-waypoint/com_github_twpayne_go_waypoint-v0.0.0-20200706203930-b263a7f6e4e8.zip", - ], - ) - go_repository( - name = "com_github_uber_athenadriver", - build_file_proto_mode = "disable_global", - importpath = "github.com/uber/athenadriver", - sha256 = "6ac94915e7d83bae55c968c4b750a4dee2ca6a57a5ed2bb8f9203735e452080d", - strip_prefix = "github.com/uber/athenadriver@v1.1.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/uber/athenadriver/com_github_uber_athenadriver-v1.1.4.zip", - ], - ) - go_repository( - name = "com_github_uber_go_atomic", - build_file_proto_mode = "disable_global", - importpath = "github.com/uber-go/atomic", - sha256 = "f380292d46ebec89bf53939e4d7d19d617327cbcdf2978e30e6c39bc77df5e73", - strip_prefix = "github.com/uber-go/atomic@v1.4.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/uber-go/atomic/com_github_uber_go_atomic-v1.4.0.zip", - ], - ) - go_repository( - name = "com_github_uber_go_tally", - build_file_proto_mode = "disable_global", - importpath = "github.com/uber-go/tally", - sha256 = "f1d6e97da887bf4a704dace304fdb46cc69a03969c779638f6f805ecfa7aa27c", - strip_prefix = "github.com/uber-go/tally@v3.3.15+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/uber-go/tally/com_github_uber_go_tally-v3.3.15+incompatible.zip", - ], - ) - go_repository( - name = "com_github_uber_jaeger_client_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/uber/jaeger-client-go", - sha256 = "a6933446c0bdeccfdb60361df9945138b1821dee1dfd5ec27f4fd832550e80fb", - strip_prefix = "github.com/uber/jaeger-client-go@v2.29.1+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/uber/jaeger-client-go/com_github_uber_jaeger_client_go-v2.29.1+incompatible.zip", - ], - ) - go_repository( - name = "com_github_uber_jaeger_lib", - build_file_proto_mode = "disable_global", - importpath = "github.com/uber/jaeger-lib", - sha256 = "b43fc0c89c3c54498ae6108453ca2af987e074680742dd79bdceda94685a7efb", - strip_prefix = "github.com/uber/jaeger-lib@v2.4.1+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/uber/jaeger-lib/com_github_uber_jaeger_lib-v2.4.1+incompatible.zip", - ], - ) - go_repository( - name = "com_github_uber_tchannel_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/uber/tchannel-go", - sha256 = "64a37a5e89dd111ab943d94a1670f9addc0d2d41d34d630c95b0a756df916e01", - strip_prefix = "github.com/uber/tchannel-go@v1.16.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/uber/tchannel-go/com_github_uber_tchannel_go-v1.16.0.zip", - ], - ) - go_repository( - name = "com_github_ugorji_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/ugorji/go", - sha256 = "d02959e71c59b273d5b099697c058426941a862feef66c191c63e2934db7a2ff", - strip_prefix = "github.com/ugorji/go@v1.1.7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/ugorji/go/com_github_ugorji_go-v1.1.7.zip", - ], - ) - go_repository( - name = "com_github_ugorji_go_codec", - build_file_proto_mode = "disable_global", - importpath = "github.com/ugorji/go/codec", - sha256 = "8d482061c55b4c4fbf78de9fbf98a8d1b295f5904769679c73a2dc0b06a1a102", - strip_prefix = "github.com/ugorji/go/codec@v1.1.7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/ugorji/go/codec/com_github_ugorji_go_codec-v1.1.7.zip", - ], - ) - go_repository( - name = "com_github_urfave_cli", - build_file_proto_mode = "disable_global", - importpath = "github.com/urfave/cli", - sha256 = "c974a314e3abfdd6340f4e0c423969238544cf6513ef41385f834cbe122a57e5", - strip_prefix = "github.com/urfave/cli@v1.22.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/urfave/cli/com_github_urfave_cli-v1.22.2.zip", - ], - ) - go_repository( - name = "com_github_urfave_cli_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/urfave/cli/v2", - sha256 = "bef25aedf2f3ac498094ec9cd216bca61ddf5f2eb7b1ecd850bbfb6053fe4103", - strip_prefix = "github.com/urfave/cli/v2@v2.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/urfave/cli/v2/com_github_urfave_cli_v2-v2.3.0.zip", - ], - ) - go_repository( - name = "com_github_urfave_negroni", - build_file_proto_mode = "disable_global", - importpath = "github.com/urfave/negroni", - sha256 = "7b50615961d34d748866565b8885edd7013e33812acdbaed47502d7cc73a4bbd", - strip_prefix = "github.com/urfave/negroni@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/urfave/negroni/com_github_urfave_negroni-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_valyala_bytebufferpool", - build_file_proto_mode = "disable_global", - importpath = "github.com/valyala/bytebufferpool", - sha256 = "7f59f32c568539afee9a21a665a4156962b019beaac8404e26ba37af056b4f1e", - strip_prefix = "github.com/valyala/bytebufferpool@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/valyala/bytebufferpool/com_github_valyala_bytebufferpool-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_valyala_fasthttp", - build_file_proto_mode = "disable_global", - importpath = "github.com/valyala/fasthttp", - sha256 = "b6270b17ff9ef1d1c58d86099d64d7aef0b78c7e7cf48ae4ddf29c8dca933a92", - strip_prefix = "github.com/valyala/fasthttp@v1.31.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/valyala/fasthttp/com_github_valyala_fasthttp-v1.31.0.zip", - ], - ) - go_repository( - name = "com_github_valyala_fasttemplate", - build_file_proto_mode = "disable_global", - importpath = "github.com/valyala/fasttemplate", - sha256 = "d8186bd1cfea049449decf7ce2568f33f0d2b5350fe8cf62956fa25762eaba5c", - strip_prefix = "github.com/valyala/fasttemplate@v1.2.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/valyala/fasttemplate/com_github_valyala_fasttemplate-v1.2.1.zip", - ], - ) - go_repository( - name = "com_github_valyala_tcplisten", - build_file_proto_mode = "disable_global", - importpath = "github.com/valyala/tcplisten", - sha256 = "07066d5b879a94d6bc1feed20ad4003c62865975dd1f4c062673178be406206a", - strip_prefix = "github.com/valyala/tcplisten@v0.0.0-20161114210144-ceec8f93295a", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/valyala/tcplisten/com_github_valyala_tcplisten-v0.0.0-20161114210144-ceec8f93295a.zip", - ], - ) - go_repository( - name = "com_github_vektah_gqlparser", - build_file_proto_mode = "disable_global", - importpath = "github.com/vektah/gqlparser", - sha256 = "cdd0119855b98641e7af60dce5b2848b31f8ef03dfcf097c06912309b86fc97c", - strip_prefix = "github.com/vektah/gqlparser@v1.1.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/vektah/gqlparser/com_github_vektah_gqlparser-v1.1.2.zip", - ], - ) - go_repository( - name = "com_github_vektra_mockery", - build_file_proto_mode = "disable_global", - importpath = "github.com/vektra/mockery", - sha256 = "b1268e9da9a6c808d28a76f725df57a44f2c209a6224491239f843e04d5a4558", - strip_prefix = "github.com/vektra/mockery@v0.0.0-20181123154057-e78b021dcbb5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/vektra/mockery/com_github_vektra_mockery-v0.0.0-20181123154057-e78b021dcbb5.zip", - ], - ) - go_repository( - name = "com_github_vishvananda_netlink", - build_file_proto_mode = "disable_global", - importpath = "github.com/vishvananda/netlink", - sha256 = "7d4eb2060dac62357d038661e285a4eabec668e21c5a568c229cdc97ef54cbb0", - strip_prefix = "github.com/vishvananda/netlink@v1.1.1-0.20201029203352-d40f9887b852", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/vishvananda/netlink/com_github_vishvananda_netlink-v1.1.1-0.20201029203352-d40f9887b852.zip", - ], - ) - go_repository( - name = "com_github_vishvananda_netns", - build_file_proto_mode = "disable_global", - importpath = "github.com/vishvananda/netns", - sha256 = "4e3dd4f80e263e250c91b38a424381c93523fe494f82a00d4ae421afd45dbef1", - strip_prefix = "github.com/vishvananda/netns@v0.0.0-20200728191858-db3c7e526aae", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/vishvananda/netns/com_github_vishvananda_netns-v0.0.0-20200728191858-db3c7e526aae.zip", - ], - ) - go_repository( - name = "com_github_vividcortex_ewma", - build_file_proto_mode = "disable_global", - importpath = "github.com/VividCortex/ewma", - sha256 = "eebee7c0f20e96abbda1611ed2a3d26b4c2c10393caa6a2dfd1605763a5c1a12", - strip_prefix = "github.com/VividCortex/ewma@v1.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/VividCortex/ewma/com_github_vividcortex_ewma-v1.1.1.zip", - ], - ) - go_repository( - name = "com_github_vividcortex_gohistogram", - build_file_proto_mode = "disable_global", - importpath = "github.com/VividCortex/gohistogram", - sha256 = "16ebeceeb7e4066f90edbfb90282cd90d4dad0f71339199551de3fbdc7e8c545", - strip_prefix = "github.com/VividCortex/gohistogram@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/VividCortex/gohistogram/com_github_vividcortex_gohistogram-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_wadey_gocovmerge", - build_file_proto_mode = "disable_global", - importpath = "github.com/wadey/gocovmerge", - sha256 = "9f5952330bf701f65988725ec1f3a34ebf3c79c1db5a70e48b48e0797f470c28", - strip_prefix = "github.com/wadey/gocovmerge@v0.0.0-20160331181800-b5bfa59ec0ad", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/wadey/gocovmerge/com_github_wadey_gocovmerge-v0.0.0-20160331181800-b5bfa59ec0ad.zip", - ], - ) - go_repository( - name = "com_github_willf_bitset", - build_file_proto_mode = "disable_global", - importpath = "github.com/willf/bitset", - sha256 = "9fd0ee4e781c0cfe6df5db67dbbcda1c7adb7cea73c0afc068aa495c7e8027f6", - strip_prefix = "github.com/willf/bitset@v1.1.11", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/willf/bitset/com_github_willf_bitset-v1.1.11.zip", - ], - ) - go_repository( - name = "com_github_xdg_go_pbkdf2", - build_file_proto_mode = "disable_global", - importpath = "github.com/xdg-go/pbkdf2", - sha256 = "c22c803b9e69744dc4e33c5607652b87d61ee6926c54a67c6260b827e2040fec", - strip_prefix = "github.com/xdg-go/pbkdf2@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/xdg-go/pbkdf2/com_github_xdg_go_pbkdf2-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_xdg_go_scram", - build_file_proto_mode = "disable_global", - importpath = "github.com/xdg-go/scram", - sha256 = "c7846f2609f2efc1d248301c2f261ff6cb1be971fa77de5790bda1fcd14fcceb", - strip_prefix = "github.com/xdg-go/scram@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/xdg-go/scram/com_github_xdg_go_scram-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_xdg_go_stringprep", - build_file_proto_mode = "disable_global", - importpath = "github.com/xdg-go/stringprep", - sha256 = "4f4d7c8ba09ab5fa288ff86902c2f4000f3a85cd55d9ff75a04ade18c8e33ad9", - strip_prefix = "github.com/xdg-go/stringprep@v1.0.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/xdg-go/stringprep/com_github_xdg_go_stringprep-v1.0.2.zip", - ], - ) - go_repository( - name = "com_github_xdg_scram", - build_file_proto_mode = "disable_global", - importpath = "github.com/xdg/scram", - sha256 = "56875f465f0ed3170846db4d300328b9c769c35a3c59a479c8b9ac659765e48c", - strip_prefix = "github.com/xdg/scram@v1.0.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/xdg/scram/com_github_xdg_scram-v1.0.3.zip", - ], - ) - go_repository( - name = "com_github_xdg_stringprep", - build_file_proto_mode = "disable_global", - importpath = "github.com/xdg/stringprep", - sha256 = "7cb9711fd7b3c1518e1fbd4e39be11737d7006a5e4a59f1ceb4ba9c205eb90fa", - strip_prefix = "github.com/xdg/stringprep@v1.0.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/xdg/stringprep/com_github_xdg_stringprep-v1.0.3.zip", - ], - ) - go_repository( - name = "com_github_xeipuuv_gojsonpointer", - build_file_proto_mode = "disable_global", - importpath = "github.com/xeipuuv/gojsonpointer", - sha256 = "5b1a4bcc8e003f214c92b3fa52959d9eb0e3af1c0c529efa55815db951146e48", - strip_prefix = "github.com/xeipuuv/gojsonpointer@v0.0.0-20180127040702-4e3ac2762d5f", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/xeipuuv/gojsonpointer/com_github_xeipuuv_gojsonpointer-v0.0.0-20180127040702-4e3ac2762d5f.zip", - ], - ) - go_repository( - name = "com_github_xeipuuv_gojsonreference", - build_file_proto_mode = "disable_global", - importpath = "github.com/xeipuuv/gojsonreference", - sha256 = "7ec98f4df894413f4dc58c8df330ca8b24ff425b05a8e1074c3028c99f7e45e7", - strip_prefix = "github.com/xeipuuv/gojsonreference@v0.0.0-20180127040603-bd5ef7bd5415", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/xeipuuv/gojsonreference/com_github_xeipuuv_gojsonreference-v0.0.0-20180127040603-bd5ef7bd5415.zip", - ], - ) - go_repository( - name = "com_github_xeipuuv_gojsonschema", - build_file_proto_mode = "disable_global", - importpath = "github.com/xeipuuv/gojsonschema", - sha256 = "55c8ce068257aa0d263aad7470113dafcd50f955ee754fc853c2fdcd31ad096f", - strip_prefix = "github.com/xeipuuv/gojsonschema@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/xeipuuv/gojsonschema/com_github_xeipuuv_gojsonschema-v1.2.0.zip", - ], - ) - go_repository( - name = "com_github_xiang90_probing", - build_file_proto_mode = "disable_global", - importpath = "github.com/xiang90/probing", - sha256 = "437bdc666239fda4581b592b068001f08269c68c70699a721bff9334412d4181", - strip_prefix = "github.com/xiang90/probing@v0.0.0-20190116061207-43a291ad63a2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/xiang90/probing/com_github_xiang90_probing-v0.0.0-20190116061207-43a291ad63a2.zip", - ], - ) - go_repository( - name = "com_github_xlab_treeprint", - build_file_proto_mode = "disable_global", - importpath = "github.com/xlab/treeprint", - sha256 = "4334f3a6e37e92cdd18688a59710663a0f3bff61b225f236fa1be8875e483152", - strip_prefix = "github.com/xlab/treeprint@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/xlab/treeprint/com_github_xlab_treeprint-v1.1.0.zip", - ], - ) - go_repository( - name = "com_github_xordataexchange_crypt", - build_file_proto_mode = "disable_global", - importpath = "github.com/xordataexchange/crypt", - sha256 = "46dc29ef77d77a2bc3e7bd70c94dbaeec0062dd3bd6fcacbaab785c15dcd625b", - strip_prefix = "github.com/xordataexchange/crypt@v0.0.3-0.20170626215501-b2862e3d0a77", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/xordataexchange/crypt/com_github_xordataexchange_crypt-v0.0.3-0.20170626215501-b2862e3d0a77.zip", - ], - ) - go_repository( - name = "com_github_yalp_jsonpath", - build_file_proto_mode = "disable_global", - importpath = "github.com/yalp/jsonpath", - sha256 = "2cb9c5b63fa0616fbcf73bc1c652f930212d243fdf5f73d1379921deff6dc051", - strip_prefix = "github.com/yalp/jsonpath@v0.0.0-20180802001716-5cc68e5049a0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/yalp/jsonpath/com_github_yalp_jsonpath-v0.0.0-20180802001716-5cc68e5049a0.zip", - ], - ) - go_repository( - name = "com_github_youmark_pkcs8", - build_file_proto_mode = "disable_global", - importpath = "github.com/youmark/pkcs8", - sha256 = "0aa5f6c2169751b272e7bb04c2951a17beb6bae2111553b74fd1f50c5ea18688", - strip_prefix = "github.com/youmark/pkcs8@v0.0.0-20181117223130-1be2e3e5546d", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/youmark/pkcs8/com_github_youmark_pkcs8-v0.0.0-20181117223130-1be2e3e5546d.zip", - ], - ) - go_repository( - name = "com_github_yudai_gojsondiff", - build_file_proto_mode = "disable_global", - importpath = "github.com/yudai/gojsondiff", - sha256 = "90c457b595a661a25760d9f10cfda3fec27f7213c0e7026a5b97b30168e8f2d1", - strip_prefix = "github.com/yudai/gojsondiff@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/yudai/gojsondiff/com_github_yudai_gojsondiff-v1.0.0.zip", - ], - ) - go_repository( - name = "com_github_yudai_golcs", - build_file_proto_mode = "disable_global", - importpath = "github.com/yudai/golcs", - sha256 = "ab50327aa849e409b14f5373543635fb53476792b65a1914f6f90c46fc64ee44", - strip_prefix = "github.com/yudai/golcs@v0.0.0-20170316035057-ecda9a501e82", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/yudai/golcs/com_github_yudai_golcs-v0.0.0-20170316035057-ecda9a501e82.zip", - ], - ) - go_repository( - name = "com_github_yudai_pp", - build_file_proto_mode = "disable_global", - importpath = "github.com/yudai/pp", - sha256 = "ecfda4152182e295f2b21a7b2726e2865a9415fc135a955ce42e039db29e7a20", - strip_prefix = "github.com/yudai/pp@v2.0.1+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/yudai/pp/com_github_yudai_pp-v2.0.1+incompatible.zip", - ], - ) - go_repository( - name = "com_github_yuin_goldmark", - build_file_proto_mode = "disable_global", - importpath = "github.com/yuin/goldmark", - sha256 = "ba4763c06e40aaa865a0b90a1603f0be13174cc880acfad9640089c6ca9bd086", - strip_prefix = "github.com/yuin/goldmark@v1.4.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/yuin/goldmark/com_github_yuin_goldmark-v1.4.1.zip", - ], - ) - go_repository( - name = "com_github_yusufpapurcu_wmi", - build_file_proto_mode = "disable_global", - importpath = "github.com/yusufpapurcu/wmi", - sha256 = "5fe3e595564a38f7ba71acf4646ebdf542a1da8fa3afb116afb0fbec0cffe9b1", - strip_prefix = "github.com/yusufpapurcu/wmi@v1.2.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/yusufpapurcu/wmi/com_github_yusufpapurcu_wmi-v1.2.2.zip", - ], - ) - go_repository( - name = "com_github_yvasiyarov_go_metrics", - build_file_proto_mode = "disable_global", - importpath = "github.com/yvasiyarov/go-metrics", - sha256 = "1f5232fe57c3b7eb0f106cc757441191ef139cb437883a787c180fc3ad46c43f", - strip_prefix = "github.com/yvasiyarov/go-metrics@v0.0.0-20140926110328-57bccd1ccd43", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/yvasiyarov/go-metrics/com_github_yvasiyarov_go_metrics-v0.0.0-20140926110328-57bccd1ccd43.zip", - ], - ) - go_repository( - name = "com_github_yvasiyarov_gorelic", - build_file_proto_mode = "disable_global", - importpath = "github.com/yvasiyarov/gorelic", - sha256 = "8e81ca0272c35235d450c0061620cc178df6554bb9d5be5d828c80e08e97fd66", - strip_prefix = "github.com/yvasiyarov/gorelic@v0.0.0-20141212073537-a9bba5b9ab50", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/yvasiyarov/gorelic/com_github_yvasiyarov_gorelic-v0.0.0-20141212073537-a9bba5b9ab50.zip", - ], - ) - go_repository( - name = "com_github_yvasiyarov_newrelic_platform_go", - build_file_proto_mode = "disable_global", - importpath = "github.com/yvasiyarov/newrelic_platform_go", - sha256 = "67a98b32ee13f9d4f8f8de52c332e4c4eceea9144ccb5141167a2c40db201658", - strip_prefix = "github.com/yvasiyarov/newrelic_platform_go@v0.0.0-20140908184405-b21fdbd4370f", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/yvasiyarov/newrelic_platform_go/com_github_yvasiyarov_newrelic_platform_go-v0.0.0-20140908184405-b21fdbd4370f.zip", - ], - ) - go_repository( - name = "com_github_z_division_go_zookeeper", - build_file_proto_mode = "disable_global", - importpath = "github.com/z-division/go-zookeeper", - sha256 = "b0a67a3bb3cfbb1be18618b84b02588979795966e040f18c5bb4be036888cabd", - strip_prefix = "github.com/z-division/go-zookeeper@v0.0.0-20190128072838-6d7457066b9b", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/z-division/go-zookeeper/com_github_z_division_go_zookeeper-v0.0.0-20190128072838-6d7457066b9b.zip", - ], - ) - go_repository( - name = "com_github_zabawaba99_go_gitignore", - build_file_proto_mode = "disable_global", - importpath = "github.com/zabawaba99/go-gitignore", - sha256 = "6c837b93e1c73e53123941c8e866de1deae6b645cc49a7d30d493c146178f8e8", - strip_prefix = "github.com/zabawaba99/go-gitignore@v0.0.0-20200117185801-39e6bddfb292", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/zabawaba99/go-gitignore/com_github_zabawaba99_go_gitignore-v0.0.0-20200117185801-39e6bddfb292.zip", - ], - ) - go_repository( - name = "com_github_zenazn_goji", - build_file_proto_mode = "disable_global", - importpath = "github.com/zenazn/goji", - sha256 = "0807a255d9d715d18427a6eedd8e4f5a22670b09e5f45fddd229c1ae38da25a9", - strip_prefix = "github.com/zenazn/goji@v0.9.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/zenazn/goji/com_github_zenazn_goji-v0.9.0.zip", - ], - ) - go_repository( - name = "com_google_cloud_go", - build_file_proto_mode = "disable_global", - importpath = "cloud.google.com/go", - sha256 = "79e47d6cd3f86477d6ae148d52189150160847e10b4ddd11a0ec77fcebf49e80", - strip_prefix = "cloud.google.com/go@v0.100.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/cloud.google.com/go/com_google_cloud_go-v0.100.2.zip", - ], - ) - go_repository( - name = "com_google_cloud_go_bigquery", - build_file_proto_mode = "disable_global", - importpath = "cloud.google.com/go/bigquery", - sha256 = "892b10929d4cf89b0c8c9895c17cdeff6c0d28f65e4ffaae6725997572e21249", - strip_prefix = "cloud.google.com/go/bigquery@v1.8.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/cloud.google.com/go/bigquery/com_google_cloud_go_bigquery-v1.8.0.zip", - ], - ) - go_repository( - name = "com_google_cloud_go_bigtable", - build_file_proto_mode = "disable_global", - importpath = "cloud.google.com/go/bigtable", - sha256 = "b52d66d4d3761a8e6b5a0e8b7c76f07e0a76ea5c4f563062e440ca3ea8e24ec5", - strip_prefix = "cloud.google.com/go/bigtable@v1.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/cloud.google.com/go/bigtable/com_google_cloud_go_bigtable-v1.3.0.zip", - ], - ) - go_repository( - name = "com_google_cloud_go_compute", - build_file_proto_mode = "disable_global", - importpath = "cloud.google.com/go/compute", - sha256 = "d72bba51817b72a8be2baae1ac9b051c4ce913c96394f4e4a1cc8c9000ae2115", - strip_prefix = "cloud.google.com/go/compute@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/cloud.google.com/go/compute/com_google_cloud_go_compute-v1.2.0.zip", - ], - ) - go_repository( - name = "com_google_cloud_go_datastore", - build_file_proto_mode = "disable_global", - importpath = "cloud.google.com/go/datastore", - sha256 = "7dae563dc7c2e544b229f3032103ac05687120e8d25521aef04b45f346ec5ffb", - strip_prefix = "cloud.google.com/go/datastore@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/cloud.google.com/go/datastore/com_google_cloud_go_datastore-v1.1.0.zip", - ], - ) - go_repository( - name = "com_google_cloud_go_firestore", - build_file_proto_mode = "disable_global", - importpath = "cloud.google.com/go/firestore", - sha256 = "41156d229c53c4e5e084524f3fecbb2a70d0ec9ac98af7a30413ebd9e8eb4a9e", - strip_prefix = "cloud.google.com/go/firestore@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/cloud.google.com/go/firestore/com_google_cloud_go_firestore-v1.1.0.zip", - ], - ) - go_repository( - name = "com_google_cloud_go_iam", - build_file_proto_mode = "disable_global", - importpath = "cloud.google.com/go/iam", - sha256 = "fd7412140440b51b39f605defa8ac062fb2b65dee94d1096db8a62709ae34b8f", - strip_prefix = "cloud.google.com/go/iam@v0.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/cloud.google.com/go/iam/com_google_cloud_go_iam-v0.1.1.zip", - ], - ) - go_repository( - name = "com_google_cloud_go_kms", - build_file_proto_mode = "disable_global", - importpath = "cloud.google.com/go/kms", - sha256 = "8cb6a77ae7336f22aff5287d2f531dab4ca418593bf897d6aaa05a5ced3b0b0a", - strip_prefix = "cloud.google.com/go/kms@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/cloud.google.com/go/kms/com_google_cloud_go_kms-v1.1.0.zip", - ], - ) - go_repository( - name = "com_google_cloud_go_pubsub", - build_file_proto_mode = "disable_global", - importpath = "cloud.google.com/go/pubsub", - sha256 = "98134d072e18ee03b96eaf208934bd0fc9431a747a2d62181b86b89c9beceafd", - strip_prefix = "cloud.google.com/go/pubsub@v1.16.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/cloud.google.com/go/pubsub/com_google_cloud_go_pubsub-v1.16.0.zip", - ], - ) - go_repository( - name = "com_google_cloud_go_storage", - build_file_proto_mode = "disable_global", - importpath = "cloud.google.com/go/storage", - sha256 = "fb7b2e6ffe19ef64c8ccd809a64896e551137bfeb7a9af973dab8ab39da211ec", - strip_prefix = "cloud.google.com/go/storage@v1.21.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/cloud.google.com/go/storage/com_google_cloud_go_storage-v1.21.0.zip", - ], - ) - go_repository( - name = "com_shuralyov_dmitri_gpu_mtl", - build_file_proto_mode = "disable_global", - importpath = "dmitri.shuralyov.com/gpu/mtl", - sha256 = "d9992a60371571861985f191ac38954db2cc1bd36e834058ad50f989ccc8fa06", - strip_prefix = "dmitri.shuralyov.com/gpu/mtl@v0.0.0-20201218220906-28db891af037", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/dmitri.shuralyov.com/gpu/mtl/com_shuralyov_dmitri_gpu_mtl-v0.0.0-20201218220906-28db891af037.zip", - ], - ) - go_repository( - name = "com_sourcegraph_sourcegraph_appdash", - build_file_proto_mode = "disable_global", - importpath = "sourcegraph.com/sourcegraph/appdash", - sha256 = "bd2492d9db05362c2fecd0b3d0f6002c89a6d90d678fb93b4158298ab883736f", - strip_prefix = "sourcegraph.com/sourcegraph/appdash@v0.0.0-20190731080439-ebfcffb1b5c0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/sourcegraph.com/sourcegraph/appdash/com_sourcegraph_sourcegraph_appdash-v0.0.0-20190731080439-ebfcffb1b5c0.zip", - ], - ) - go_repository( - name = "in_gopkg_airbrake_gobrake_v2", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/airbrake/gobrake.v2", - sha256 = "2db903664908e5a9afafefba94821b9579bbf271e2929c1f0b7b1fdd23f7bbcf", - strip_prefix = "gopkg.in/airbrake/gobrake.v2@v2.0.9", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/airbrake/gobrake.v2/in_gopkg_airbrake_gobrake_v2-v2.0.9.zip", - ], - ) - go_repository( - name = "in_gopkg_alecthomas_kingpin_v2", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/alecthomas/kingpin.v2", - sha256 = "638080591aefe7d2642f2575b627d534c692606f02ea54ba89f42db112ba8839", - strip_prefix = "gopkg.in/alecthomas/kingpin.v2@v2.2.6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/alecthomas/kingpin.v2/in_gopkg_alecthomas_kingpin_v2-v2.2.6.zip", - ], - ) - go_repository( - name = "in_gopkg_asn1_ber_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/asn1-ber.v1", - sha256 = "fee158570ba9cbfc11156afbe9b9ab0833ab00d0f1a2a2af29a6325984a79903", - strip_prefix = "gopkg.in/asn1-ber.v1@v1.0.0-20181015200546-f715ec2f112d", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/asn1-ber.v1/in_gopkg_asn1_ber_v1-v1.0.0-20181015200546-f715ec2f112d.zip", - ], - ) - go_repository( - name = "in_gopkg_check_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/check.v1", - sha256 = "f555684e5c5dacc2850dddb345fef1b8f93f546b72685589789da6d2b062710e", - strip_prefix = "gopkg.in/check.v1@v1.0.0-20201130134442-10cb98267c6c", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/check.v1/in_gopkg_check_v1-v1.0.0-20201130134442-10cb98267c6c.zip", - ], - ) - go_repository( - name = "in_gopkg_cheggaaa_pb_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/cheggaaa/pb.v1", - sha256 = "12c7e316faacb5cfa5d0851b6e576391b2517a36d5221f42443cd8435394d9fe", - strip_prefix = "gopkg.in/cheggaaa/pb.v1@v1.0.25", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/cheggaaa/pb.v1/in_gopkg_cheggaaa_pb_v1-v1.0.25.zip", - ], - ) - go_repository( - name = "in_gopkg_datadog_dd_trace_go_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/DataDog/dd-trace-go.v1", - sha256 = "2ebcc818df0b2d560a61037da4492ae7effbaed67de94339a1d3a72728d2cb09", - strip_prefix = "gopkg.in/DataDog/dd-trace-go.v1@v1.17.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/DataDog/dd-trace-go.v1/in_gopkg_datadog_dd_trace_go_v1-v1.17.0.zip", - ], - ) - go_repository( - name = "in_gopkg_errgo_v2", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/errgo.v2", - sha256 = "6b8954819a20ec52982a206fd3eb94629ff53c5790aa77534e6d8daf7de01bee", - strip_prefix = "gopkg.in/errgo.v2@v2.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/errgo.v2/in_gopkg_errgo_v2-v2.1.0.zip", - ], - ) - go_repository( - name = "in_gopkg_fsnotify_fsnotify_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/fsnotify/fsnotify.v1", - sha256 = "6f74f844c970ff3059d1639c8a850d9ba7029dd059b5d9a305f87bd307c05491", - strip_prefix = "gopkg.in/fsnotify/fsnotify.v1@v1.4.7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/fsnotify/fsnotify.v1/in_gopkg_fsnotify_fsnotify_v1-v1.4.7.zip", - ], - ) - go_repository( - name = "in_gopkg_fsnotify_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/fsnotify.v1", - sha256 = "ce003d540f42b3c0a3dec385deb387b255b536b25ea4438baa65b89458b28f75", - strip_prefix = "gopkg.in/fsnotify.v1@v1.4.7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/fsnotify.v1/in_gopkg_fsnotify_v1-v1.4.7.zip", - ], - ) - go_repository( - name = "in_gopkg_gcfg_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/gcfg.v1", - sha256 = "06cdad29610507bafb35e2e73d64fd7aa6c5c2ce1e5feff30a622af5475bca3b", - strip_prefix = "gopkg.in/gcfg.v1@v1.2.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/gcfg.v1/in_gopkg_gcfg_v1-v1.2.3.zip", - ], - ) - go_repository( - name = "in_gopkg_gemnasium_logrus_airbrake_hook_v2", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/gemnasium/logrus-airbrake-hook.v2", - sha256 = "ce35c69d2a1f49d8672447bced4833c02cc7af036aa9df94d5a6a0f5d871cccd", - strip_prefix = "gopkg.in/gemnasium/logrus-airbrake-hook.v2@v2.1.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/gemnasium/logrus-airbrake-hook.v2/in_gopkg_gemnasium_logrus_airbrake_hook_v2-v2.1.2.zip", - ], - ) - go_repository( - name = "in_gopkg_go_playground_assert_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/go-playground/assert.v1", - sha256 = "11da2f608d82304df2384a2301e0155fe72e8414e1a17776f1966c3a4c403bc4", - strip_prefix = "gopkg.in/go-playground/assert.v1@v1.2.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/go-playground/assert.v1/in_gopkg_go_playground_assert_v1-v1.2.1.zip", - ], - ) - go_repository( - name = "in_gopkg_go_playground_validator_v8", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/go-playground/validator.v8", - sha256 = "fea7482c7122c2573d964b7d294a78f2162fa206ccd4b808d0c82f3d87b4d159", - strip_prefix = "gopkg.in/go-playground/validator.v8@v8.18.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/go-playground/validator.v8/in_gopkg_go_playground_validator_v8-v8.18.2.zip", - ], - ) - go_repository( - name = "in_gopkg_go_playground_validator_v9", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/go-playground/validator.v9", - sha256 = "1c54e86e418da6789520d7ed9d0b53727c539b6a73ea8538f8b85f6bbcf352ad", - strip_prefix = "gopkg.in/go-playground/validator.v9@v9.29.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/go-playground/validator.v9/in_gopkg_go_playground_validator_v9-v9.29.1.zip", - ], - ) - go_repository( - name = "in_gopkg_inconshreveable_log15_v2", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/inconshreveable/log15.v2", - sha256 = "799307ed46ca30ca0ac2dc0332f3673814b8ff6cc1ee905a462ccfd438e8e695", - strip_prefix = "gopkg.in/inconshreveable/log15.v2@v2.0.0-20180818164646-67afb5ed74ec", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/inconshreveable/log15.v2/in_gopkg_inconshreveable_log15_v2-v2.0.0-20180818164646-67afb5ed74ec.zip", - ], - ) - go_repository( - name = "in_gopkg_inf_v0", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/inf.v0", - sha256 = "08abac18c95cc43b725d4925f63309398d618beab68b4669659b61255e5374a0", - strip_prefix = "gopkg.in/inf.v0@v0.9.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/inf.v0/in_gopkg_inf_v0-v0.9.1.zip", - ], - ) - go_repository( - name = "in_gopkg_ini_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/ini.v1", - sha256 = "a4a3f632adece28b596b54e5e71f986158188e29e58b4d84b3abd3ed240f5826", - strip_prefix = "gopkg.in/ini.v1@v1.66.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/ini.v1/in_gopkg_ini_v1-v1.66.3.zip", - ], - ) - go_repository( - name = "in_gopkg_jcmturner_aescts_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/jcmturner/aescts.v1", - sha256 = "8bfd83c7204032fb16946202d5d643bd9a7e618005bd39578f29030a7d51dcf9", - strip_prefix = "gopkg.in/jcmturner/aescts.v1@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/jcmturner/aescts.v1/in_gopkg_jcmturner_aescts_v1-v1.0.1.zip", - ], - ) - go_repository( - name = "in_gopkg_jcmturner_dnsutils_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/jcmturner/dnsutils.v1", - sha256 = "4fb8b6a5471cb6dda1d0aabd1e01e4d54cb5ee83c395849916392b19153f5203", - strip_prefix = "gopkg.in/jcmturner/dnsutils.v1@v1.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/jcmturner/dnsutils.v1/in_gopkg_jcmturner_dnsutils_v1-v1.0.1.zip", - ], - ) - go_repository( - name = "in_gopkg_jcmturner_goidentity_v3", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/jcmturner/goidentity.v3", - sha256 = "1be44bee93d9080ce89f40827c57e8a396b7c801e2d19a1f5446a4325afa755e", - strip_prefix = "gopkg.in/jcmturner/goidentity.v3@v3.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/jcmturner/goidentity.v3/in_gopkg_jcmturner_goidentity_v3-v3.0.0.zip", - ], - ) - go_repository( - name = "in_gopkg_jcmturner_gokrb5_v7", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/jcmturner/gokrb5.v7", - sha256 = "0d54c32510f4ab41729761fda5b448c5124917752485711f3d0c0810460134b8", - strip_prefix = "gopkg.in/jcmturner/gokrb5.v7@v7.5.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/jcmturner/gokrb5.v7/in_gopkg_jcmturner_gokrb5_v7-v7.5.0.zip", - ], - ) - go_repository( - name = "in_gopkg_jcmturner_rpc_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/jcmturner/rpc.v1", - sha256 = "83d897b60ecb5a66d25232b775ed04c182ca8e02431f351b3768d4d2876d07ae", - strip_prefix = "gopkg.in/jcmturner/rpc.v1@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/jcmturner/rpc.v1/in_gopkg_jcmturner_rpc_v1-v1.1.0.zip", - ], - ) - go_repository( - name = "in_gopkg_ldap_v2", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/ldap.v2", - sha256 = "44fbb28e1a7b33d08edd31957f9fea15744979a97392d89a894306a610ed78f1", - strip_prefix = "gopkg.in/ldap.v2@v2.5.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/ldap.v2/in_gopkg_ldap_v2-v2.5.0.zip", - ], - ) - go_repository( - name = "in_gopkg_mgo_v2", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/mgo.v2", - sha256 = "86c056ac7d51d59bb158bb740e774c0f80b28c8ce8db56d619a569aa96b2cd03", - strip_prefix = "gopkg.in/mgo.v2@v2.0.0-20180705113604-9856a29383ce", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/mgo.v2/in_gopkg_mgo_v2-v2.0.0-20180705113604-9856a29383ce.zip", - ], - ) - go_repository( - name = "in_gopkg_natefinch_lumberjack_v2", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/natefinch/lumberjack.v2", - sha256 = "8c268e36660d6ce36af808d74b9be80207c05463679703e93d857e954c637aaa", - strip_prefix = "gopkg.in/natefinch/lumberjack.v2@v2.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/natefinch/lumberjack.v2/in_gopkg_natefinch_lumberjack_v2-v2.0.0.zip", - ], - ) - go_repository( - name = "in_gopkg_resty_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/resty.v1", - sha256 = "43487bb0bb40626d16502b1fe9e719cf751e7a5b4e4233276971873e7863d3cf", - strip_prefix = "gopkg.in/resty.v1@v1.12.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/resty.v1/in_gopkg_resty_v1-v1.12.0.zip", - ], - ) - go_repository( - name = "in_gopkg_square_go_jose_v2", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/square/go-jose.v2", - sha256 = "1eca83b44bbb8ec53ad5643e0e3c2c9a646e3411f7bd9c3cd4fb16895d72a9f9", - strip_prefix = "gopkg.in/square/go-jose.v2@v2.5.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/square/go-jose.v2/in_gopkg_square_go_jose_v2-v2.5.1.zip", - ], - ) - go_repository( - name = "in_gopkg_src_d_go_billy_v4", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/src-d/go-billy.v4", - sha256 = "389c7137c3424429eb3454b382a19a4c5050b397f80a9be112a50e65d8a0e353", - strip_prefix = "gopkg.in/src-d/go-billy.v4@v4.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/src-d/go-billy.v4/in_gopkg_src_d_go_billy_v4-v4.3.0.zip", - ], - ) - go_repository( - name = "in_gopkg_tomb_v1", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/tomb.v1", - sha256 = "34898dc0e38ba7a792ab74a3e0fa113116313fd9142ffb444b011fd392762186", - strip_prefix = "gopkg.in/tomb.v1@v1.0.0-20141024135613-dd632973f1e7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/tomb.v1/in_gopkg_tomb_v1-v1.0.0-20141024135613-dd632973f1e7.zip", - ], - ) - go_repository( - name = "in_gopkg_warnings_v0", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/warnings.v0", - sha256 = "c412b1f704c1e8ba59b6cfdb1072f8be847c03f77d6507c692913d6d9454e51c", - strip_prefix = "gopkg.in/warnings.v0@v0.1.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/warnings.v0/in_gopkg_warnings_v0-v0.1.2.zip", - ], - ) - go_repository( - name = "in_gopkg_yaml_v2", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/yaml.v2", - sha256 = "98f901d1a2446ea98010e56f8f0587f2f790704ea56d14417803602b214e5697", - strip_prefix = "github.com/cockroachdb/yaml@v0.0.0-20210825132133-2d6955c8edbc", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/yaml/com_github_cockroachdb_yaml-v0.0.0-20210825132133-2d6955c8edbc.zip", - ], - ) - go_repository( - name = "in_gopkg_yaml_v3", - build_file_proto_mode = "disable_global", - importpath = "gopkg.in/yaml.v3", - sha256 = "5169b5625d3c351f13e8a4ec4802f709072701b441ed92181c6051ece53615a9", - strip_prefix = "gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/yaml.v3/in_gopkg_yaml_v3-v3.0.0-20210107192922-496545a6307b.zip", - ], - ) - go_repository( - name = "io_etcd_go_bbolt", - build_file_proto_mode = "disable_global", - importpath = "go.etcd.io/bbolt", - sha256 = "cbb488f86631df05edb2aa3e2c25e0d5994d46a118fc5f2150932fa6ed469cff", - strip_prefix = "go.etcd.io/bbolt@v1.3.5", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.etcd.io/bbolt/io_etcd_go_bbolt-v1.3.5.zip", - ], - ) - go_repository( - name = "io_etcd_go_etcd", - build_file_proto_mode = "disable_global", - importpath = "go.etcd.io/etcd", - sha256 = "d982ee501979b41b68625693bad77d15e4ae79ab9d0eae5f6028205f96a74e49", - strip_prefix = "go.etcd.io/etcd@v0.5.0-alpha.5.0.20200910180754-dd1b699fc489", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.etcd.io/etcd/io_etcd_go_etcd-v0.5.0-alpha.5.0.20200910180754-dd1b699fc489.zip", - ], - ) - go_repository( - name = "io_etcd_go_etcd_api_v3", - build_file_proto_mode = "disable_global", - importpath = "go.etcd.io/etcd/api/v3", - sha256 = "8754587bf6d4b1bc889d519355ea8899e093d8550e0d98730f8570d608f998f9", - strip_prefix = "go.etcd.io/etcd/api/v3@v3.5.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.etcd.io/etcd/api/v3/io_etcd_go_etcd_api_v3-v3.5.0.zip", - ], - ) - go_repository( - name = "io_etcd_go_etcd_client_pkg_v3", - build_file_proto_mode = "disable_global", - importpath = "go.etcd.io/etcd/client/pkg/v3", - sha256 = "c0ca209767c5734c6ed023888ba5be02aab5bd3c4d018999467f2bfa8bf65ee3", - strip_prefix = "go.etcd.io/etcd/client/pkg/v3@v3.5.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.etcd.io/etcd/client/pkg/v3/io_etcd_go_etcd_client_pkg_v3-v3.5.0.zip", - ], - ) - go_repository( - name = "io_etcd_go_etcd_client_v2", - build_file_proto_mode = "disable_global", - importpath = "go.etcd.io/etcd/client/v2", - sha256 = "91fcb507fe8c193844b56bfb6c8741aaeb6ffa11ee9043de2af0f141173679f3", - strip_prefix = "go.etcd.io/etcd/client/v2@v2.305.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.etcd.io/etcd/client/v2/io_etcd_go_etcd_client_v2-v2.305.0.zip", - ], - ) - go_repository( - name = "io_etcd_go_etcd_pkg_v3", - build_file_proto_mode = "disable_global", - importpath = "go.etcd.io/etcd/pkg/v3", - sha256 = "1700dfed48becf82ccfe6865fe59daac2121d48f60b7c4bf090f0ff2320d33d4", - strip_prefix = "go.etcd.io/etcd/pkg/v3@v3.0.0-20201109164711-01844fd28560", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.etcd.io/etcd/pkg/v3/io_etcd_go_etcd_pkg_v3-v3.0.0-20201109164711-01844fd28560.zip", - ], - ) - go_repository( - name = "io_etcd_go_etcd_raft_v3", - build_directives = [ - "gazelle:resolve proto proto gogoproto/gogo.proto @com_github_gogo_protobuf//gogoproto:gogo_proto", - "gazelle:resolve proto go gogoproto/gogo.proto @com_github_gogo_protobuf//gogoproto", - "gazelle:go_proto_compilers @cockroach//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler", - "gazelle:go_grpc_compilers @cockroach//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler", - "gazelle:proto_import_prefix etcd/raft/v3", - ], - build_file_proto_mode = "default", - importpath = "go.etcd.io/etcd/raft/v3", - sha256 = "62faedd81e10061a4e0d7476865a62b84121ea462514afeaa1b9d66cc53b5a4b", - strip_prefix = "go.etcd.io/etcd/raft/v3@v3.0.0-20210320072418-e51c697ec6e8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.etcd.io/etcd/raft/v3/io_etcd_go_etcd_raft_v3-v3.0.0-20210320072418-e51c697ec6e8.zip", - ], - ) - go_repository( - name = "io_goji", - build_file_proto_mode = "disable_global", - importpath = "goji.io", - sha256 = "1ea69b28e356cb91381ce2339004fcf144ad1b268c9e3497c9ef304751ae0bb3", - strip_prefix = "goji.io@v2.0.2+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/goji.io/io_goji-v2.0.2+incompatible.zip", - ], - ) - go_repository( - name = "io_gorm_driver_postgres", - build_file_proto_mode = "disable_global", - importpath = "gorm.io/driver/postgres", - sha256 = "a35ed3044796b91cf9ead206329ceb34b256da3044a3528a3aa185cd128f8ac8", - strip_prefix = "gorm.io/driver/postgres@v1.0.8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gorm.io/driver/postgres/io_gorm_driver_postgres-v1.0.8.zip", - ], - ) - go_repository( - name = "io_gorm_gorm", - build_file_proto_mode = "disable_global", - importpath = "gorm.io/gorm", - sha256 = "4048b3c1d2cd0b8372755fcf9bc33d621c1e532e4e2b791c17036e02ac9b0694", - strip_prefix = "gorm.io/gorm@v1.21.4", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gorm.io/gorm/io_gorm_gorm-v1.21.4.zip", - ], - ) - go_repository( - name = "io_k8s_api", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/api", - sha256 = "f7bdf8655b5078d05124dacb2eeaf2e2dc356334f174b623d3afa9130517e272", - strip_prefix = "k8s.io/api@v0.22.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/api/io_k8s_api-v0.22.1.zip", - ], - ) - go_repository( - name = "io_k8s_apiextensions_apiserver", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/apiextensions-apiserver", - sha256 = "f3be44b21eaea21dbc2655f207f838a94e4ed63b24e5ce4f1d688c329b53c9ff", - strip_prefix = "k8s.io/apiextensions-apiserver@v0.17.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/apiextensions-apiserver/io_k8s_apiextensions_apiserver-v0.17.3.zip", - ], - ) - go_repository( - name = "io_k8s_apimachinery", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/apimachinery", - sha256 = "2097d287ef9b837b18951bea7cca7cab8bdd3d25fd4c30210fc8cb8fcbbf2ca0", - strip_prefix = "k8s.io/apimachinery@v0.22.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/apimachinery/io_k8s_apimachinery-v0.22.1.zip", - ], - ) - go_repository( - name = "io_k8s_apiserver", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/apiserver", - sha256 = "b5fc2f9e9476511badce4bd460880113a9bee48fc9a22747003eb75327c9b98b", - strip_prefix = "k8s.io/apiserver@v0.20.6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/apiserver/io_k8s_apiserver-v0.20.6.zip", - ], - ) - go_repository( - name = "io_k8s_client_go", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/client-go", - sha256 = "cf2ce10509391b8633c8368881197c296e9ea060df227c0e002bc2df1b07dc31", - strip_prefix = "k8s.io/client-go@v0.22.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/client-go/io_k8s_client_go-v0.22.1.zip", - ], - ) - go_repository( - name = "io_k8s_code_generator", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/code-generator", - sha256 = "59dd76fe046441365da49abb1eb22db7e368508f2622730b0bf125b044bbf07d", - strip_prefix = "k8s.io/code-generator@v0.17.3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/code-generator/io_k8s_code_generator-v0.17.3.zip", - ], - ) - go_repository( - name = "io_k8s_component_base", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/component-base", - sha256 = "b42b00af9459d285c9372c30d605204b4ec64e90f2eaeb17e9e1bf700bbc84cf", - strip_prefix = "k8s.io/component-base@v0.20.6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/component-base/io_k8s_component_base-v0.20.6.zip", - ], - ) - go_repository( - name = "io_k8s_cri_api", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/cri-api", - sha256 = "7c3559a06c58744fd8a4491a809257b979c7ac8def5dda9973648e38ff05471c", - strip_prefix = "k8s.io/cri-api@v0.20.6", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/cri-api/io_k8s_cri_api-v0.20.6.zip", - ], - ) - go_repository( - name = "io_k8s_gengo", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/gengo", - sha256 = "2591d39f698cdb50c870a8b97706f5c2b4d2819bd95e9b5c3ff57aca905264e1", - strip_prefix = "k8s.io/gengo@v0.0.0-20200413195148-3a45101e95ac", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/gengo/io_k8s_gengo-v0.0.0-20200413195148-3a45101e95ac.zip", - ], - ) - go_repository( - name = "io_k8s_klog", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/klog", - sha256 = "a564b06078ddf014c5b793a7d36643d6fda31fc131e36b95cdea94ff838b99be", - strip_prefix = "k8s.io/klog@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/klog/io_k8s_klog-v1.0.0.zip", - ], - ) - go_repository( - name = "io_k8s_klog_v2", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/klog/v2", - sha256 = "ccf4ab19ef25cf4208c03f8656161d989bb4fa5075f8ce04afb29656d96d8606", - strip_prefix = "k8s.io/klog/v2@v2.10.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/klog/v2/io_k8s_klog_v2-v2.10.0.zip", - ], - ) - go_repository( - name = "io_k8s_kube_openapi", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/kube-openapi", - sha256 = "face91ada098a926d588b0e96b40715f68dfc375e17b6c10274ae6f20849b55c", - strip_prefix = "k8s.io/kube-openapi@v0.0.0-20210421082810-95288971da7e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/kube-openapi/io_k8s_kube_openapi-v0.0.0-20210421082810-95288971da7e.zip", - ], - ) - go_repository( - name = "io_k8s_kubernetes", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/kubernetes", - sha256 = "f065c08345beaa714fa5c81a548e2015babd496729f333721948b341eef9eb36", - strip_prefix = "k8s.io/kubernetes@v1.13.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/kubernetes/io_k8s_kubernetes-v1.13.0.zip", - ], - ) - go_repository( - name = "io_k8s_sigs_apiserver_network_proxy_konnectivity_client", - build_file_proto_mode = "disable_global", - importpath = "sigs.k8s.io/apiserver-network-proxy/konnectivity-client", - sha256 = "70c5b8d90b0c0d03d4b75dd2af46664965f20d7f54a9cfc340256128eba457d2", - strip_prefix = "sigs.k8s.io/apiserver-network-proxy/konnectivity-client@v0.0.15", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/sigs.k8s.io/apiserver-network-proxy/konnectivity-client/io_k8s_sigs_apiserver_network_proxy_konnectivity_client-v0.0.15.zip", - ], - ) - go_repository( - name = "io_k8s_sigs_structured_merge_diff", - build_file_proto_mode = "disable_global", - importpath = "sigs.k8s.io/structured-merge-diff", - sha256 = "a7c7f139cf93c42d9954f02b1f3d393f988cf6b8a423b3baf0f13716dab95141", - strip_prefix = "sigs.k8s.io/structured-merge-diff@v1.0.1-0.20191108220359-b1b620dd3f06", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/sigs.k8s.io/structured-merge-diff/io_k8s_sigs_structured_merge_diff-v1.0.1-0.20191108220359-b1b620dd3f06.zip", - ], - ) - go_repository( - name = "io_k8s_sigs_structured_merge_diff_v2", - build_file_proto_mode = "disable_global", - importpath = "sigs.k8s.io/structured-merge-diff/v2", - sha256 = "42c1a3be55e05ee4419bb4833419723a32bfa272e27ee3344efb3f570548c43b", - strip_prefix = "sigs.k8s.io/structured-merge-diff/v2@v2.0.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/sigs.k8s.io/structured-merge-diff/v2/io_k8s_sigs_structured_merge_diff_v2-v2.0.1.zip", - ], - ) - go_repository( - name = "io_k8s_sigs_structured_merge_diff_v4", - build_file_proto_mode = "disable_global", - importpath = "sigs.k8s.io/structured-merge-diff/v4", - sha256 = "b32af97dadd79179a8f62aaf4ef1e0562e051be77053a60c7a4e724a5cbd00ce", - strip_prefix = "sigs.k8s.io/structured-merge-diff/v4@v4.1.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/sigs.k8s.io/structured-merge-diff/v4/io_k8s_sigs_structured_merge_diff_v4-v4.1.2.zip", - ], - ) - go_repository( - name = "io_k8s_sigs_yaml", - build_file_proto_mode = "disable_global", - importpath = "sigs.k8s.io/yaml", - sha256 = "55ed08c5df448a033bf7e2c2912d4daa85b856a05c854b0c87ccc85c7f3fbfc7", - strip_prefix = "sigs.k8s.io/yaml@v1.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/sigs.k8s.io/yaml/io_k8s_sigs_yaml-v1.2.0.zip", - ], - ) - go_repository( - name = "io_k8s_utils", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/utils", - sha256 = "0af5b5d14e8b80fcf9cb01dbc35d7627cccd6c87573cf2a3249c218a2b72ce89", - strip_prefix = "k8s.io/utils@v0.0.0-20210707171843-4b05e18ac7d9", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/utils/io_k8s_utils-v0.0.0-20210707171843-4b05e18ac7d9.zip", - ], - ) - go_repository( - name = "io_opencensus_go", - build_file_proto_mode = "disable_global", - importpath = "go.opencensus.io", - sha256 = "81c78beb84872084d6d5ddc0a0bffc47294412898472c891a29cfcb66f3fa2d8", - strip_prefix = "go.opencensus.io@v0.23.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.opencensus.io/io_opencensus_go-v0.23.0.zip", - ], - ) - go_repository( - name = "io_opencensus_go_contrib_exporter_prometheus", - build_file_proto_mode = "disable_global", - importpath = "contrib.go.opencensus.io/exporter/prometheus", - sha256 = "e5dc381a98aad09e887f5232b00147308ff806e9189fbf901736ccded75a3357", - strip_prefix = "contrib.go.opencensus.io/exporter/prometheus@v0.4.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/contrib.go.opencensus.io/exporter/prometheus/io_opencensus_go_contrib_exporter_prometheus-v0.4.0.zip", - ], - ) - go_repository( - name = "io_opentelemetry_go_otel", - build_file_proto_mode = "disable_global", - importpath = "go.opentelemetry.io/otel", - sha256 = "e909ee92d1e37586550fe693701ef8064b58794a3ed5cc61351a07fac6b40ee0", - strip_prefix = "go.opentelemetry.io/otel@v1.0.0-RC3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.opentelemetry.io/otel/io_opentelemetry_go_otel-v1.0.0-RC3.zip", - ], - ) - go_repository( - name = "io_opentelemetry_go_otel_exporters_jaeger", - build_file_proto_mode = "disable_global", - importpath = "go.opentelemetry.io/otel/exporters/jaeger", - sha256 = "89e57276d1f4c79e2353bda09fdeb6eb5c47af0cd974a490637ce1f71744830c", - strip_prefix = "go.opentelemetry.io/otel/exporters/jaeger@v1.0.0-RC3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.opentelemetry.io/otel/exporters/jaeger/io_opentelemetry_go_otel_exporters_jaeger-v1.0.0-RC3.zip", - ], - ) - go_repository( - name = "io_opentelemetry_go_otel_exporters_otlp_otlptrace", - build_file_proto_mode = "disable_global", - importpath = "go.opentelemetry.io/otel/exporters/otlp/otlptrace", - sha256 = "fc6bd34099ffc6bc523dab02b678ebaa324c06dc0f95ddcbacc7633705ded1f0", - strip_prefix = "go.opentelemetry.io/otel/exporters/otlp/otlptrace@v1.0.0-RC3.0.20210907151655-df2bdbbadb26", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.opentelemetry.io/otel/exporters/otlp/otlptrace/io_opentelemetry_go_otel_exporters_otlp_otlptrace-v1.0.0-RC3.0.20210907151655-df2bdbbadb26.zip", - ], - ) - 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", - sha256 = "b6cddcb6cbee0e0dc31b6a125e270db8aadb6017f1449b5d0874c2963b12d2e9", - strip_prefix = "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc@v1.0.0-RC3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/io_opentelemetry_go_otel_exporters_otlp_otlptrace_otlptracegrpc-v1.0.0-RC3.zip", - ], - ) - go_repository( - name = "io_opentelemetry_go_otel_exporters_zipkin", - build_file_proto_mode = "disable_global", - importpath = "go.opentelemetry.io/otel/exporters/zipkin", - sha256 = "4e4074dc5fa0ae55cddbba06d4c266c23b0461bd5056ab69055f203b506fa64b", - strip_prefix = "go.opentelemetry.io/otel/exporters/zipkin@v1.0.0-RC3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.opentelemetry.io/otel/exporters/zipkin/io_opentelemetry_go_otel_exporters_zipkin-v1.0.0-RC3.zip", - ], - ) - go_repository( - name = "io_opentelemetry_go_otel_metric", - build_file_proto_mode = "disable_global", - importpath = "go.opentelemetry.io/otel/metric", - sha256 = "d7ae3abbdcf9ea48ff23a477f324cb3595c77f3eb83f6acde5c0c9300e23fedb", - strip_prefix = "go.opentelemetry.io/otel/metric@v0.20.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.opentelemetry.io/otel/metric/io_opentelemetry_go_otel_metric-v0.20.0.zip", - ], - ) - go_repository( - name = "io_opentelemetry_go_otel_sdk", - build_file_proto_mode = "disable_global", - importpath = "go.opentelemetry.io/otel/sdk", - sha256 = "8f4a796143524ee6905d2f53ec402a314228457038298ef106e72bbb1b97a674", - strip_prefix = "go.opentelemetry.io/otel/sdk@v1.0.0-RC3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.opentelemetry.io/otel/sdk/io_opentelemetry_go_otel_sdk-v1.0.0-RC3.zip", - ], - ) - go_repository( - name = "io_opentelemetry_go_otel_trace", - build_file_proto_mode = "disable_global", - importpath = "go.opentelemetry.io/otel/trace", - sha256 = "534dc0f9e0d8b540ff3b73e52dd0554960f7b5818cacbb1e17113ef1225da5bd", - strip_prefix = "go.opentelemetry.io/otel/trace@v1.0.0-RC3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.opentelemetry.io/otel/trace/io_opentelemetry_go_otel_trace-v1.0.0-RC3.zip", - ], - ) - go_repository( - name = "io_opentelemetry_go_proto_otlp", - build_directives = [ - "gazelle:resolve go go github.com/golang/protobuf/descriptor @com_github_golang_protobuf//descriptor:go_default_library_gen", - ], - build_file_proto_mode = "disable_global", - importpath = "go.opentelemetry.io/proto/otlp", - sha256 = "1a91376c923da07bee23439e8430c32736f6330532df85d3bd1ada90305097d7", - strip_prefix = "go.opentelemetry.io/proto/otlp@v0.9.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.opentelemetry.io/proto/otlp/io_opentelemetry_go_proto_otlp-v0.9.0.zip", - ], - ) - go_repository( - name = "io_rsc_binaryregexp", - build_file_proto_mode = "disable_global", - importpath = "rsc.io/binaryregexp", - sha256 = "b3e706aa278fa7f880d32fa1cc40ef8282d1fc7d6e00356579ed0db88f3b0047", - strip_prefix = "rsc.io/binaryregexp@v0.2.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/rsc.io/binaryregexp/io_rsc_binaryregexp-v0.2.0.zip", - ], - ) - go_repository( - name = "io_rsc_pdf", - build_file_proto_mode = "disable_global", - importpath = "rsc.io/pdf", - sha256 = "79bf310e399cf0e2d8aa61536750d2a6999c5ca884e7a27faf88d3701cd5ba8f", - strip_prefix = "rsc.io/pdf@v0.1.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/rsc.io/pdf/io_rsc_pdf-v0.1.1.zip", - ], - ) - go_repository( - name = "io_rsc_quote_v3", - build_file_proto_mode = "disable_global", - importpath = "rsc.io/quote/v3", - sha256 = "b434cbbfc32c17b5228d0b0eddeaea89bef4ec9bd90b5c8fc55b64f8ce13eeb9", - strip_prefix = "rsc.io/quote/v3@v3.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/rsc.io/quote/v3/io_rsc_quote_v3-v3.1.0.zip", - ], - ) - go_repository( - name = "io_rsc_sampler", - build_file_proto_mode = "disable_global", - importpath = "rsc.io/sampler", - sha256 = "da202b0da803ab2661ab98a680bba4f64123a326e540c25582b6cdbb9dc114aa", - strip_prefix = "rsc.io/sampler@v1.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/rsc.io/sampler/io_rsc_sampler-v1.3.0.zip", - ], - ) - go_repository( - name = "io_vitess_vitess", - build_file_proto_mode = "disable_global", - importpath = "vitess.io/vitess", - sha256 = "71f14e67f9396930d978d85c47b853f5cc4ce340e53cf88bf7d731b8428b2f77", - strip_prefix = "github.com/cockroachdb/vitess@v0.0.0-20210218160543-54524729cc82", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/vitess/com_github_cockroachdb_vitess-v0.0.0-20210218160543-54524729cc82.zip", - ], - ) - go_repository( - name = "org_bazil_fuse", - build_file_proto_mode = "disable_global", - importpath = "bazil.org/fuse", - sha256 = "c4f8d08b812e14a7689471372b43e43a0d6c984cdf3d9e541750d69398442e5a", - strip_prefix = "bazil.org/fuse@v0.0.0-20160811212531-371fbbdaa898", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/bazil.org/fuse/org_bazil_fuse-v0.0.0-20160811212531-371fbbdaa898.zip", - ], - ) - go_repository( - name = "org_collectd", - build_file_proto_mode = "disable_global", - importpath = "collectd.org", - sha256 = "18974a8911a7e89cdeb35f25daddf37eb5026fd42a54a4116fa0fd5af457ae4c", - strip_prefix = "collectd.org@v0.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/collectd.org/org_collectd-v0.3.0.zip", - ], - ) - go_repository( - name = "org_golang_google_api", - build_file_proto_mode = "disable_global", - importpath = "google.golang.org/api", - sha256 = "29ab5b924df6b1e5c36aad1465f89f8a314d2d300aa329afbca89b599415c47b", - strip_prefix = "google.golang.org/api@v0.69.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/google.golang.org/api/org_golang_google_api-v0.69.0.zip", - ], - ) - go_repository( - name = "org_golang_google_appengine", - build_file_proto_mode = "disable_global", - importpath = "google.golang.org/appengine", - sha256 = "79f80dfac18681788f1414e21a4a7734eff4cdf992070be9163103eb8d9f92cd", - strip_prefix = "google.golang.org/appengine@v1.6.7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/google.golang.org/appengine/org_golang_google_appengine-v1.6.7.zip", - ], - ) - go_repository( - name = "org_golang_google_cloud", - build_file_proto_mode = "disable_global", - importpath = "google.golang.org/cloud", - sha256 = "b1d5595a11b88273665d35d4316edbd4545731c979d046c82844fafef2039c2a", - strip_prefix = "google.golang.org/cloud@v0.0.0-20151119220103-975617b05ea8", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/google.golang.org/cloud/org_golang_google_cloud-v0.0.0-20151119220103-975617b05ea8.zip", - ], - ) - go_repository( - name = "org_golang_google_genproto", - build_file_proto_mode = "disable_global", - importpath = "google.golang.org/genproto", - sha256 = "8aa446ba7fe5a28d398eceefdad569b604bd4f9c0f86662db0d35fbf61d316cf", - strip_prefix = "google.golang.org/genproto@v0.0.0-20220505152158-f39f71e6c8f3", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/google.golang.org/genproto/org_golang_google_genproto-v0.0.0-20220505152158-f39f71e6c8f3.zip", - ], - ) - go_repository( - name = "org_golang_google_grpc", - build_file_proto_mode = "disable_global", - importpath = "google.golang.org/grpc", - sha256 = "f7bd2af40f0d6b16f7d771099e0ae7ed3468b9e40faf88be9d9759fffaff2a4a", - strip_prefix = "google.golang.org/grpc@v1.46.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/google.golang.org/grpc/org_golang_google_grpc-v1.46.0.zip", - ], - ) - go_repository( - name = "org_golang_google_grpc_cmd_protoc_gen_go_grpc", - build_file_proto_mode = "disable_global", - importpath = "google.golang.org/grpc/cmd/protoc-gen-go-grpc", - sha256 = "13877d86cbfa30bde4d62fef2bc58dd56377dcb502c16cf78197f6934193009a", - strip_prefix = "google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/google.golang.org/grpc/cmd/protoc-gen-go-grpc/org_golang_google_grpc_cmd_protoc_gen_go_grpc-v1.1.0.zip", - ], - ) - go_repository( - name = "org_golang_google_grpc_examples", - build_file_proto_mode = "disable_global", - importpath = "google.golang.org/grpc/examples", - sha256 = "f5cad7b05a93557c91864a02890a35c6bc5c394897222978cff2b880a78f7a11", - strip_prefix = "google.golang.org/grpc/examples@v0.0.0-20210324172016-702608ffae4d", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/google.golang.org/grpc/examples/org_golang_google_grpc_examples-v0.0.0-20210324172016-702608ffae4d.zip", - ], - ) - go_repository( - name = "org_golang_google_protobuf", - build_file_proto_mode = "disable_global", - importpath = "google.golang.org/protobuf", - sha256 = "f06dc39ce93043d6ec91a5106c7ec958be6b4ba520cab3a21a2448d387cf15a4", - strip_prefix = "google.golang.org/protobuf@v1.28.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/google.golang.org/protobuf/org_golang_google_protobuf-v1.28.0.zip", - ], - ) - go_repository( - name = "org_golang_x_arch", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/arch", - sha256 = "9f67b677a3fefc503111d9aa7df8bacd2677411b0fcb982eb1654aa6d14cc3f8", - strip_prefix = "golang.org/x/arch@v0.0.0-20180920145803-b19384d3c130", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/arch/org_golang_x_arch-v0.0.0-20180920145803-b19384d3c130.zip", - ], - ) - go_repository( - name = "org_golang_x_crypto", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/crypto", - sha256 = "882c2c5b949711073e3cc937d7e0bac965aae7ffefcc556b8fd7966f2349127a", - strip_prefix = "golang.org/x/crypto@v0.0.0-20220307211146-efcb8507fb70", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/crypto/org_golang_x_crypto-v0.0.0-20220307211146-efcb8507fb70.zip", - ], - ) - go_repository( - name = "org_golang_x_exp", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/exp", - sha256 = "50e096afbb8e0f073519dd05f6573aefe410a829c87a7c1b64efb8c4a3948c50", - strip_prefix = "golang.org/x/exp@v0.0.0-20220104160115-025e73f80486", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/exp/org_golang_x_exp-v0.0.0-20220104160115-025e73f80486.zip", - ], - ) - go_repository( - name = "org_golang_x_image", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/image", - sha256 = "4a44b498934a95e8f84e8374530de0cab38d81fcd558898d4880c3c5ce1efe47", - strip_prefix = "golang.org/x/image@v0.0.0-20190802002840-cff245a6509b", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/image/org_golang_x_image-v0.0.0-20190802002840-cff245a6509b.zip", - ], - ) - go_repository( - name = "org_golang_x_lint", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/lint", - sha256 = "0a4a5ebd2b1d79e7f480cbf5a54b45a257ae1ec9d11f01688efc5c35268d4603", - strip_prefix = "golang.org/x/lint@v0.0.0-20210508222113-6edffad5e616", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/lint/org_golang_x_lint-v0.0.0-20210508222113-6edffad5e616.zip", - ], - ) - go_repository( - name = "org_golang_x_mobile", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/mobile", - sha256 = "1fd2f665cdb7f64b80e2e1224941d1ecad10bd99327c6fc8906183d2ef3816df", - strip_prefix = "golang.org/x/mobile@v0.0.0-20201217150744-e6ae53a27f4f", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/mobile/org_golang_x_mobile-v0.0.0-20201217150744-e6ae53a27f4f.zip", - ], - ) - go_repository( - name = "org_golang_x_mod", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/mod", - sha256 = "6e5454f23b4ebc6c18c8db07bc168c71938269deb92c22c9ce4810903680fccb", - strip_prefix = "golang.org/x/mod@v0.6.0-dev.0.20211013180041-c96bc1413d57", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/mod/org_golang_x_mod-v0.6.0-dev.0.20211013180041-c96bc1413d57.zip", - ], - ) - go_repository( - name = "org_golang_x_net", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/net", - sha256 = "fb6a68784dabf543c3d90fc35598bdd9c356f22bddc59c8f820de6db7ea6a039", - strip_prefix = "golang.org/x/net@v0.0.0-20220225172249-27dd8689420f", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/net/org_golang_x_net-v0.0.0-20220225172249-27dd8689420f.zip", - ], - ) - go_repository( - name = "org_golang_x_oauth2", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/oauth2", - sha256 = "f67c8da0113402471bd476d772e1f4e20907cb3d12c413c0c445e0f4c906b002", - strip_prefix = "golang.org/x/oauth2@v0.0.0-20220309155454-6242fa91716a", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/oauth2/org_golang_x_oauth2-v0.0.0-20220309155454-6242fa91716a.zip", - ], - ) - go_repository( - name = "org_golang_x_perf", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/perf", - sha256 = "a2c7d02cc94c4ba767b6322f70ddcba4941cb5f60fed1bada3aa7a4d3a8128f1", - strip_prefix = "golang.org/x/perf@v0.0.0-20180704124530-6e6d33e29852", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/perf/org_golang_x_perf-v0.0.0-20180704124530-6e6d33e29852.zip", - ], - ) - go_repository( - name = "org_golang_x_sync", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/sync", - sha256 = "92a8663af035a6831dcc9cc9d895a1f4bb51fc21efe97f04fa0676fc14992a46", - strip_prefix = "golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/sync/org_golang_x_sync-v0.0.0-20210220032951-036812b2e83c.zip", - ], - ) - go_repository( - name = "org_golang_x_sys", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/sys", - sha256 = "84289ab5dec00ea6f7b911c392b59198d046eabe43185cba45cff79f5b1a9233", - strip_prefix = "golang.org/x/sys@v0.0.0-20220209214540-3681064d5158", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/sys/org_golang_x_sys-v0.0.0-20220209214540-3681064d5158.zip", - ], - ) - go_repository( - name = "org_golang_x_term", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/term", - sha256 = "3adf713afa49fe26580ffe4adb1f4fb2f4921c945301aa5a9fb6d34031fa30cd", - strip_prefix = "golang.org/x/term@v0.0.0-20210927222741-03fcf44c2211", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/term/org_golang_x_term-v0.0.0-20210927222741-03fcf44c2211.zip", - ], - ) - go_repository( - name = "org_golang_x_text", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/text", - sha256 = "e1a9115e61a38da8bdc893d0ba83b65f89cc1114f152a98eb572c5ea6551e8d4", - strip_prefix = "golang.org/x/text@v0.3.7", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/text/org_golang_x_text-v0.3.7.zip", - ], - ) - go_repository( - name = "org_golang_x_time", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/time", - sha256 = "e5d8ade42804ec7d96a632c031dde7db087e8bc4cd5dfd6f38df03ce4f16d9b6", - strip_prefix = "golang.org/x/time@v0.0.0-20210723032227-1f47c861a9ac", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/time/org_golang_x_time-v0.0.0-20210723032227-1f47c861a9ac.zip", - ], - ) - go_repository( - name = "org_golang_x_tools", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/tools", - sha256 = "4ca90457aebec9b546bff39c89669c7a8185b70c7dc24248f5bb577c0041624b", - strip_prefix = "golang.org/x/tools@v0.1.8-0.20211029000441-d6a9af8af023", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/tools/org_golang_x_tools-v0.1.8-0.20211029000441-d6a9af8af023.zip", - ], - ) - go_repository( - name = "org_golang_x_xerrors", - build_file_proto_mode = "disable_global", - importpath = "golang.org/x/xerrors", - sha256 = "380aaa3368ae165628bb487cf4e695a55c1420072b8b7a6f59c122f6a23bb255", - strip_prefix = "golang.org/x/xerrors@v0.0.0-20200804184101-5ec99f83aff1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/xerrors/org_golang_x_xerrors-v0.0.0-20200804184101-5ec99f83aff1.zip", - ], - ) - go_repository( - name = "org_gonum_v1_gonum", - build_file_proto_mode = "disable_global", - importpath = "gonum.org/v1/gonum", - sha256 = "57ecefd9c1ab5a40ed9e37e824597e523e85e78022cd8a4fc5533ff785f49863", - strip_prefix = "gonum.org/v1/gonum@v0.8.2", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gonum.org/v1/gonum/org_gonum_v1_gonum-v0.8.2.zip", - ], - ) - go_repository( - name = "org_gonum_v1_netlib", - build_file_proto_mode = "disable_global", - importpath = "gonum.org/v1/netlib", - sha256 = "ed4dca5026c9ab5410d23bbe21c089433ca58a19bd2902311c6a91791142a687", - strip_prefix = "gonum.org/v1/netlib@v0.0.0-20190331212654-76723241ea4e", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gonum.org/v1/netlib/org_gonum_v1_netlib-v0.0.0-20190331212654-76723241ea4e.zip", - ], - ) - go_repository( - name = "org_gonum_v1_plot", - build_file_proto_mode = "disable_global", - importpath = "gonum.org/v1/plot", - sha256 = "2d4cadb4bafb5bbfe1f614d7e402c670446fccd154bc4c6b1699e3dffde68ff4", - strip_prefix = "gonum.org/v1/plot@v0.0.0-20190515093506-e2840ee46a6b", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gonum.org/v1/plot/org_gonum_v1_plot-v0.0.0-20190515093506-e2840ee46a6b.zip", - ], - ) - go_repository( - name = "org_modernc_cc", - build_file_proto_mode = "disable_global", - importpath = "modernc.org/cc", - sha256 = "24711e9b28b0d79dd32438eeb7debd86b850350f5f7749b7af640422ecf6b93b", - strip_prefix = "modernc.org/cc@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/modernc.org/cc/org_modernc_cc-v1.0.0.zip", - ], - ) - go_repository( - name = "org_modernc_golex", - build_file_proto_mode = "disable_global", - importpath = "modernc.org/golex", - sha256 = "335133038991d7feaba5349ac2385db7b49601bba0904abf680803ee2d3c99df", - strip_prefix = "modernc.org/golex@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/modernc.org/golex/org_modernc_golex-v1.0.0.zip", - ], - ) - go_repository( - name = "org_modernc_mathutil", - build_file_proto_mode = "disable_global", - importpath = "modernc.org/mathutil", - sha256 = "766ad95195543fe1ac217ce9f54e1fb43119c25db2b89013b9ef5477ad2dd9d1", - strip_prefix = "modernc.org/mathutil@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/modernc.org/mathutil/org_modernc_mathutil-v1.0.0.zip", - ], - ) - go_repository( - name = "org_modernc_strutil", - build_file_proto_mode = "disable_global", - importpath = "modernc.org/strutil", - sha256 = "4bbca362df97450c6f24b90b7dc80b97ecf19e5f0f5954655b26f335a0b8f378", - strip_prefix = "modernc.org/strutil@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/modernc.org/strutil/org_modernc_strutil-v1.0.0.zip", - ], - ) - go_repository( - name = "org_modernc_xc", - build_file_proto_mode = "disable_global", - importpath = "modernc.org/xc", - sha256 = "ef80e60acacc023cd294eef2555bd348f74c1bcd22c8cfbbd2472cb91e35900d", - strip_prefix = "modernc.org/xc@v1.0.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/modernc.org/xc/org_modernc_xc-v1.0.0.zip", - ], - ) - go_repository( - name = "org_mongodb_go_mongo_driver", - build_file_proto_mode = "disable_global", - importpath = "go.mongodb.org/mongo-driver", - sha256 = "446cff132e82c64af7ffcf48e268eb16ec81f694914aa6baecb06cbbae1be0d7", - strip_prefix = "go.mongodb.org/mongo-driver@v1.5.1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.mongodb.org/mongo-driver/org_mongodb_go_mongo_driver-v1.5.1.zip", - ], - ) - go_repository( - name = "org_mozilla_go_pkcs7", - build_file_proto_mode = "disable_global", - importpath = "go.mozilla.org/pkcs7", - sha256 = "3c4c1667907ff3127e371d44696326bad9e965216d4257917ae28e8b82a9e08d", - strip_prefix = "go.mozilla.org/pkcs7@v0.0.0-20200128120323-432b2356ecb1", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.mozilla.org/pkcs7/org_mozilla_go_pkcs7-v0.0.0-20200128120323-432b2356ecb1.zip", - ], - ) - go_repository( - name = "org_uber_go_atomic", - build_file_proto_mode = "disable_global", - importpath = "go.uber.org/atomic", - sha256 = "6a1b34a0510c5d0d09f141b3afcd40e6500a2005f5f36578e29b5fc6dc64c24a", - strip_prefix = "go.uber.org/atomic@v1.9.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.uber.org/atomic/org_uber_go_atomic-v1.9.0.zip", - ], - ) - go_repository( - name = "org_uber_go_automaxprocs", - build_file_proto_mode = "disable_global", - importpath = "go.uber.org/automaxprocs", - sha256 = "8f3ac8ce408b75928367ef26bbcb40dc98bbd197e2e9c51129859b2e6073542b", - strip_prefix = "go.uber.org/automaxprocs@v1.3.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.uber.org/automaxprocs/org_uber_go_automaxprocs-v1.3.0.zip", - ], - ) - go_repository( - name = "org_uber_go_goleak", - build_file_proto_mode = "disable_global", - importpath = "go.uber.org/goleak", - sha256 = "cb024defccc4ab71e4175e527e5ca475fbb54c4b2bad91e4292d55431f3606ec", - strip_prefix = "go.uber.org/goleak@v1.1.10", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.uber.org/goleak/org_uber_go_goleak-v1.1.10.zip", - ], - ) - go_repository( - name = "org_uber_go_multierr", - build_file_proto_mode = "disable_global", - importpath = "go.uber.org/multierr", - sha256 = "abee21bbd1cb62b0721680430ef8e098717299d10b4382876b9aa40664e6556c", - strip_prefix = "go.uber.org/multierr@v1.7.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.uber.org/multierr/org_uber_go_multierr-v1.7.0.zip", - ], - ) - go_repository( - name = "org_uber_go_tools", - build_file_proto_mode = "disable_global", - importpath = "go.uber.org/tools", - sha256 = "988dba9c5074080240d33d98e8ce511532f728698db7a9a4ac316c02c94030d6", - strip_prefix = "go.uber.org/tools@v0.0.0-20190618225709-2cfd321de3ee", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.uber.org/tools/org_uber_go_tools-v0.0.0-20190618225709-2cfd321de3ee.zip", - ], - ) - go_repository( - name = "org_uber_go_zap", - build_file_proto_mode = "disable_global", - importpath = "go.uber.org/zap", - sha256 = "6437824258873fed421b7975b8e4cafd1be80cdc15e553beaa887b499dd01420", - strip_prefix = "go.uber.org/zap@v1.19.0", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/go.uber.org/zap/org_uber_go_zap-v1.19.0.zip", - ], - ) - go_repository( - name = "tools_gotest", - build_file_proto_mode = "disable_global", - importpath = "gotest.tools", - sha256 = "55fab831b2660201183b54d742602563d4e17e7125ee75788a309a4f6cb7285e", - strip_prefix = "gotest.tools@v2.2.0+incompatible", - urls = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gotest.tools/tools_gotest-v2.2.0+incompatible.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 = [ - "https://storage.googleapis.com/cockroach-godeps/gomod/gotest.tools/v3/tools_gotest_v3-v3.0.3.zip", - ], - ) diff --git a/WORKSPACE b/WORKSPACE deleted file mode 100644 index b582ee7dd98..00000000000 --- a/WORKSPACE +++ /dev/null @@ -1,494 +0,0 @@ -# Define the top level namespace. This lets everything be addressable using -# `@cockroach//...`. -workspace( - name = "cockroach", - managed_directories = { - "@npm": ["pkg/ui/node_modules"], - }, -) - -# Load the things that let us load other things. -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -# Load go bazel tools. This gives us access to the go bazel SDK/toolchains. -http_archive( - name = "io_bazel_rules_go", - sha256 = "a80c384a85ab9f6318419ed38a39b13e8481e9d2ea25a696ea9e25438e017b5f", - strip_prefix = "cockroachdb-rules_go-f96cc04", - urls = [ - # cockroachdb/rules_go as of f96cc0445102a7b08bceeb0bba32b4d82467a065 - # (upstream release-0.29 plus a few patches). - "https://storage.googleapis.com/public-bazel-artifacts/bazel/cockroachdb-rules_go-v0.27.0-54-gf96cc04.tar.gz", - ], -) - -# Like the above, but for nodeJS. -http_archive( - name = "build_bazel_rules_nodejs", - sha256 = "cfc289523cf1594598215901154a6c2515e8bf3671fd708264a6f6aefe02bf39", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/bazel/rules_nodejs-4.4.6.tar.gz", - ], -) - -# Load gazelle. This lets us auto-generate BUILD.bazel files throughout the -# repo. -http_archive( - name = "bazel_gazelle", - sha256 = "9fba095e4bebd8c6748154ca53c365862af47fa1651f7c0d25459e6ca5bb208f", - strip_prefix = "bazelbuild-bazel-gazelle-3ea1d64", - urls = [ - # v0.24.0 - "https://storage.googleapis.com/public-bazel-artifacts/bazel/bazelbuild-bazel-gazelle-v0.24.0-0-g3ea1d64.tar.gz", - ], -) - -# Load up cockroachdb's go dependencies (the ones listed under go.mod). The -# `DEPS.bzl` file is kept up to date using `build/bazelutil/bazel-generate.sh`. -load("//:DEPS.bzl", "go_deps") - -# VERY IMPORTANT that we call into this function to prefer our pinned versions -# of the dependencies to any that might be pulled in via functions like -# `go_rules_dependencies`, `gazelle_dependencies`, etc. -# gazelle:repository_macro DEPS.bzl%go_deps -go_deps() - -####### THIRD-PARTY DEPENDENCIES ####### -# Below we need to call into various helper macros to pull dependencies for -# helper libraries like rules_go, rules_nodejs, and rules_foreign_cc. However, -# calling into those helper macros can cause the build to pull from sources not -# under CRDB's control. To avoid this, we pre-emptively declare each repository -# as an http_archive/go_repository *before* calling into the macro where it -# would otherwise be defined. In doing so we "override" the URL the macro will -# point to. -# -# When upgrading any of these helper libraries, you will have to manually -# inspect the definition of the macro to see what's changed. If the helper -# library has defined any new dependencies, check whether we've already defined -# that repository somewhere (either in this file or in `DEPS.bzl`). If it is -# already defined somewhere, then add a note like "$REPO handled in DEPS.bzl" -# for future maintainers. Otherwise, mirror the .tar.gz and add an http_archive -# pointing to the mirror. For dependencies that were updated, check whether we -# need to pull a new version of that dependency and mirror it and update the URL -# accordingly. - -############################### -# begin rules_go dependencies # -############################### - -# For those rules_go dependencies that are NOT handled in DEPS.bzl, we point to -# CRDB mirrors. - -# Ref: https://github.com/bazelbuild/rules_go/blob/master/go/private/repositories.bzl - -http_archive( - name = "platforms", - sha256 = "079945598e4b6cc075846f7fd6a9d0857c33a7afc0de868c2ccb96405225135d", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/bazel/platforms-0.0.4.tar.gz", - ], -) - -http_archive( - name = "bazel_skylib", - sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/bazel/bazel-skylib-1.0.3.tar.gz", - ], -) - -# org_golang_x_tools handled in DEPS.bzl. -# org_golang_x_xerrors handled in DEPS.bzl. - -http_archive( - name = "rules_cc", - sha256 = "92a89a2bbe6c6db2a8b87da4ce723aff6253656e8417f37e50d362817c39b98b", - strip_prefix = "rules_cc-88ef31b429631b787ceb5e4556d773b20ad797c8", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/bazel/88ef31b429631b787ceb5e4556d773b20ad797c8.zip", - ], -) - -# org_golang_google_protobuf handled in DEPS.bzl. -# com_github_golang_protobuf handled in DEPS.bzl. -# com_github_mwitkow_go_proto_validators handled in DEPS.bzl. -# com_github_gogo_protobuf handled in DEPS.bzl. -# org_golang_google_genproto handled in DEPS.bzl. - -http_archive( - name = "go_googleapis", - patch_args = [ - "-E", - "-p1", - ], - patches = [ - "@io_bazel_rules_go//third_party:go_googleapis-deletebuild.patch", - "@io_bazel_rules_go//third_party:go_googleapis-directives.patch", - "@io_bazel_rules_go//third_party:go_googleapis-gazelle.patch", - "@cockroach//build/patches:go_googleapis.patch", - ], - sha256 = "a85c6a00e9cf0f004992ebea1d10688e3beea9f8e1a5a04ee53f367e72ee85af", - strip_prefix = "googleapis-409e134ffaacc243052b08e6fb8e2d458014ed37", - # master, as of 2021-10-06 - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/bazel/409e134ffaacc243052b08e6fb8e2d458014ed37.zip", - ], -) - -# Load the go dependencies and invoke them. -load( - "@io_bazel_rules_go//go:deps.bzl", - "go_download_sdk", - "go_host_sdk", - "go_local_sdk", - "go_register_toolchains", - "go_rules_dependencies", -) - -# To point to a mirrored artifact, use: -# -go_download_sdk( - name = "go_sdk", - sdks = { - "darwin_amd64": ("go1.17.11.darwin-amd64.tar.gz", "4f924c534230de8f0e1c7369f611c0310efd21fc2d9438b13bc2703af9dda25a"), - "darwin_arm64": ("go1.17.11.darwin-arm64.tar.gz", "b8e1ab009c2ff8dea462c7a1263d1f3f38e90ab5262e74c76d70e41a4db320be"), - "freebsd_amd64": ("go1.17.11.freebsd-amd64.tar.gz", "da78bcd5efa24cfa8ca3ccf0d222f7d66b755c4200d404869984ebdcfc7b6aa7"), - "linux_amd64": ("go1.17.11.linux-amd64.tar.gz", "d69a4fe2694f795d8e525c72b497ededc209cb7185f4c3b62d7a98dd6227b3fe"), - "linux_arm64": ("go1.17.11.linux-arm64.tar.gz", "adefa7412c6798f9cad02d1e8336fc2242f5bade30c5b32781759181e01961b7"), - "windows_amd64": ("go1.17.11.windows-amd64.zip", "88e60b92069d8e0932ca5d8bd8227d1693b9570fa2afbedadcc680749c428d54"), - }, - urls = ["https://storage.googleapis.com/public-bazel-artifacts/go/{}"], - version = "1.17.11", -) - -# To point to a local SDK path, use the following instead. We'll call the -# directory into which you cloned the Go repository $GODIR[1]. You'll have to -# first run ./make.bash from $GODIR/src to pick up any custom changes. -# -# [1]: https://go.dev/doc/contribute#testing -# -# go_local_sdk( -# name = "go_sdk", -# path = "", -# ) - -# To use your whatever your local SDK is, use the following instead: -# -# go_host_sdk(name = "go_sdk") - -go_rules_dependencies() - -go_register_toolchains(nogo = "@cockroach//:crdb_nogo") - -############################### -# end rules_go dependencies # -############################### - -################################### -# begin rules_nodejs dependencies # -################################### - -# Configure nodeJS. -load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install") - -node_repositories( - node_repositories = { - "16.13.0-darwin_arm64": ("node-v16.13.0-darwin-arm64.tar.gz", "node-v16.13.0-darwin-arm64", "46d83fc0bd971db5050ef1b15afc44a6665dee40bd6c1cbaec23e1b40fa49e6d"), - "16.13.0-darwin_amd64": ("node-v16.13.0-darwin-x64.tar.gz", "node-v16.13.0-darwin-x64", "37e09a8cf2352f340d1204c6154058d81362fef4ec488b0197b2ce36b3f0367a"), - "16.13.0-linux_arm64": ("node-v16.13.0-linux-arm64.tar.xz", "node-v16.13.0-linux-arm64", "93a0d03f9f802353cb7052bc97a02cd9642b49fa985671cdc16c99936c86d7d2"), - "16.13.0-linux_amd64": ("node-v16.13.0-linux-x64.tar.xz", "node-v16.13.0-linux-x64", "a876ce787133149abd1696afa54b0b5bc5ce3d5ae359081d407ff776e39b7ba8"), - "16.13.0-windows_amd64": ("node-v16.13.0-win-x64.zip", "node-v16.13.0-win-x64", "5a39ec5d4786c2814a6c04488bebac6423c2aaa12832b24f0882456f2e4674e1"), - }, - node_urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/js/node/v{version}/{filename}", - ], - node_version = "16.13.0", - package_json = ["//pkg/ui:package.json"], - yarn_repositories = { - "1.22.11": ("yarn-v1.22.11.tar.gz", "yarn-v1.22.11", "2c320de14a6014f62d29c34fec78fdbb0bc71c9ccba48ed0668de452c1f5fe6c"), - }, - yarn_urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/js/yarn/v{version}/{filename}", - ], - yarn_version = "1.22.11", -) - -# install external dependencies for pkg/ui package -yarn_install( - name = "npm", - args = [ - "--ignore-optional", - "--offline", - ], - package_json = "//pkg/ui:package.json", - strict_visibility = False, - yarn_lock = "//pkg/ui:yarn.lock", - links = { - "@cockroachlabs/crdb-protobuf-client": "//pkg/ui/workspaces/db-console/src/js:crdb-protobuf-client", - "@cockroachlabs/crdb-protobuf-client-ccl": "//pkg/ui/workspaces/db-console/ccl/src/js:crdb-protobuf-client-ccl", - "@cockroachlabs/cluster-ui": "//pkg/ui/workspaces/cluster-ui:cluster-ui", - }, -) - -################################# -# end rules_nodejs dependencies # -################################# - -############################## -# begin gazelle dependencies # -############################## - -# Load gazelle dependencies. -load( - "@bazel_gazelle//:deps.bzl", - "gazelle_dependencies", - "go_repository", -) - -# Ref: https://github.com/bazelbuild/bazel-gazelle/blob/master/deps.bzl - -# bazel_skylib handled above. - -# keep -go_repository( - name = "com_github_bazelbuild_buildtools", - importpath = "github.com/bazelbuild/buildtools", - sha256 = "a9ef5103739dfb5ed2a5b47ab1654842a89695812e4af09e57d7015a5caf97e0", - strip_prefix = "buildtools", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/gomod/github.com/bazelbuild/buildtools/v0.0.0-20200718160251-b1667ff58f71/buildtools-v0.0.0-20200718160251-b1667ff58f71.tar.gz", - ], -) - -# com_github_bazelbuild_rules_go handled in DEPS.bzl. - -# keep -go_repository( - name = "com_github_bmatcuk_doublestar", - importpath = "github.com/bmatcuk/doublestar", - sha256 = "50b02a6a30e186ba189c037901719248667b595b3131a4f6b29aebe3c874e83b", - strip_prefix = "doublestar", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/gomod/github.com/bmatcuk/doublestar/v1.2.2/doublestar-1.2.2.tar.gz", - ], -) - -# com_github_burntsushi_toml handled in DEPS.bzl. -# com_github_davecgh_go_spew handled in DEPS.bzl. -# com_github_fsnotify_fsnotify handled in DEPS.bzl. -# com_github_google_go_cmp handled in DEPS.bzl. -# com_github_kr_pretty handled in DEPS.bzl. -# com_github_kr_pty handled in DEPS.bzl. -# com_github_kr_text handled in DEPS.bzl. -# com_github_pelletier_go_toml handled in DEPS.bzl. -# com_github_pmezard_go_difflib handled in DEPS.bzl. -# in_gopkg_check_v1 handled in DEPS.bzl. -# in_gopkg_yaml_v2 handled in DEPS.bzl. -# org_golang_x_crypto handled in DEPS.bzl. -# org_golang_x_mod handled in DEPS.bzl. -# org_golang_x_net handled in DEPS.bzl. -# org_golang_x_sync handled in DEPS.bzl. -# org_golang_x_sys handled in DEPS.bzl. -# org_golang_x_text handled in DEPS.bzl. -# org_golang_x_tools handled in DEPS.bzl. -# org_golang_x_xerrors handled in DEPS.bzl. - -gazelle_dependencies() - -############################ -# end gazelle dependencies # -############################ - -############################### -# begin protobuf dependencies # -############################### - -# Load the protobuf dependency. -# -# Ref: https://github.com/bazelbuild/rules_go/blob/0.19.0/go/workspace.rst#proto-dependencies -# https://github.com/bazelbuild/bazel-gazelle/issues/591 -# https://github.com/protocolbuffers/protobuf/blob/main/protobuf_deps.bzl -http_archive( - name = "com_google_protobuf", - sha256 = "071ccf561d127d5702910340cf038cb869aa239683544e1cca68a78ea865099e", - strip_prefix = "protobuf-e809d75ecb5770fdc531081eef306b3e672bcdd2", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/bazel/protobuf-e809d75ecb5770fdc531081eef306b3e672bcdd2.tar.gz", - ], -) - -http_archive( - name = "zlib", - build_file = "@com_google_protobuf//:third_party/zlib.BUILD", - sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1", - strip_prefix = "zlib-1.2.11", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/zlib/zlib-1.2.11.tar.gz", - ], -) - -# NB: we don't use six for anything. We're just including it here so we don't -# incidentally pull it from pypi. -http_archive( - name = "six", - build_file = "@com_google_protobuf//:six.BUILD", - sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/python/six-1.10.0.tar.gz", - ], -) - -# rules_cc handled above. - -# NB: we don't use rules_java for anything. We're just including it here so we -# don't incidentally pull it from github. -http_archive( - name = "rules_java", - sha256 = "f5a3e477e579231fca27bf202bb0e8fbe4fc6339d63b38ccb87c2760b533d1c3", - strip_prefix = "rules_java-981f06c3d2bd10225e85209904090eb7b5fb26bd", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/bazel/rules_java-981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz", - ], -) - -http_archive( - name = "rules_proto", - sha256 = "88b0a90433866b44bb4450d4c30bc5738b8c4f9c9ba14e9661deb123f56a833d", - strip_prefix = "rules_proto-b0cc14be5da05168b01db282fe93bdf17aa2b9f4", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/bazel/rules_proto-b0cc14be5da05168b01db282fe93bdf17aa2b9f4.tar.gz", - ], -) - -load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") - -protobuf_deps() - -############################# -# end protobuf dependencies # -############################# - -# Loading c-deps third party dependencies. -load("//c-deps:REPOSITORIES.bzl", "c_deps") - -c_deps() - -####################################### -# begin rules_foreign_cc dependencies # -####################################### - -# Load the bazel utility that lets us build C/C++ projects using -# cmake/make/etc. We point to our fork which adds BSD support -# (https://github.com/bazelbuild/rules_foreign_cc/pull/387) and sysroot -# support (https://github.com/bazelbuild/rules_foreign_cc/pull/532). -# -# TODO(irfansharif): Point to an upstream SHA once maintainers pick up the -# aforementioned PRs. -# -# Ref: https://github.com/bazelbuild/rules_foreign_cc/blob/main/foreign_cc/repositories.bzl -http_archive( - name = "rules_foreign_cc", - sha256 = "272ac2cde4efd316c8d7c0140dee411c89da104466701ac179286ef5a89c7b58", - strip_prefix = "cockroachdb-rules_foreign_cc-6f7f1b1", - urls = [ - # As of commit 6f7f1b1c6f911db5706c2fcbb3d5669d95974a34 (release 0.7.0 plus a couple patches) - "https://storage.googleapis.com/public-bazel-artifacts/bazel/cockroachdb-rules_foreign_cc-6f7f1b1.tar.gz", - ], -) - -load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") - -# bazel_skylib is handled above. - -rules_foreign_cc_dependencies( - register_built_tools = False, - register_default_tools = False, - register_preinstalled_tools = True, -) - -##################################### -# end rules_foreign_cc dependencies # -##################################### - -################################ -# begin rules_pkg dependencies # -################################ - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -http_archive( - name = "rules_pkg", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/bazel/rules_pkg-0.7.0.tar.gz", - ], - sha256 = "8a298e832762eda1830597d64fe7db58178aa84cd5926d76d5b744d6558941c2", -) -# Ref: https://github.com/bazelbuild/rules_pkg/blob/main/pkg/deps.bzl - -# bazel_skylib handled above. -http_archive( - name = "rules_python", - urls = ["https://storage.googleapis.com/public-bazel-artifacts/bazel/rules_python-0.1.0.tar.gz"], - sha256 = "b6d46438523a3ec0f3cead544190ee13223a52f6a6765a29eae7b7cc24cc83a0", -) -http_archive( - name = "rules_license", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/bazel/rules_license-0.0.1.tar.gz", - ], - sha256 = "4865059254da674e3d18ab242e21c17f7e3e8c6b1f1421fffa4c5070f82e98b5", -) -load("@rules_pkg//pkg:deps.bzl", "rules_pkg_dependencies") -rules_pkg_dependencies() - -############################## -# end rules_pkg dependencies # -############################## - -# Load custom toolchains. -load("//build/toolchains:REPOSITORIES.bzl", "toolchain_dependencies") - -toolchain_dependencies() - -register_toolchains( - "//build/toolchains:cross_linux_toolchain", - "//build/toolchains:cross_linux_arm_toolchain", - "//build/toolchains:cross_macos_toolchain", - "//build/toolchains:cross_windows_toolchain", - "//build/toolchains:dev_darwin_x86_64_toolchain", -) - -http_archive( - name = "bazel_gomock", - sha256 = "692421b0c5e04ae4bc0bfff42fb1ce8671fe68daee2b8d8ea94657bb1fcddc0a", - strip_prefix = "bazel_gomock-fde78c91cf1783cc1e33ba278922ba67a6ee2a84", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/bazel/bazel_gomock-fde78c91cf1783cc1e33ba278922ba67a6ee2a84.tar.gz", - ], -) - -http_archive( - name = "com_github_cockroachdb_sqllogictest", - build_file_content = """ -filegroup( - name = "testfiles", - srcs = glob(["test/**/*.test"]), - visibility = ["//visibility:public"], -)""", - sha256 = "f7e0d659fbefb65f32d4c5d146cba4c73c43e0e96f9b217a756c82be17451f97", - strip_prefix = "sqllogictest-96138842571462ed9a697bff590828d8f6356a2f", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/bazel/sqllogictest-96138842571462ed9a697bff590828d8f6356a2f.tar.gz", - ], -) - -http_archive( - name = "railroadjar", - build_file_content = """exports_files(["rr.war"])""", - sha256 = "d2791cd7a44ea5be862f33f5a9b3d40aaad9858455828ebade7007ad7113fb41", - urls = [ - "https://storage.googleapis.com/public-bazel-artifacts/java/railroad/rr-1.63-java8.zip", - ], -) - -load("//build/bazelutil:repositories.bzl", "distdir_repositories") -distdir_repositories() diff --git a/build/BUILD.bazel b/build/BUILD.bazel deleted file mode 100644 index 29b446b8635..00000000000 --- a/build/BUILD.bazel +++ /dev/null @@ -1,2 +0,0 @@ -# Left empty intentionally, for bazel to treat this as a package and source -# utility methods from it. diff --git a/build/bazelutil/BUILD.bazel b/build/bazelutil/BUILD.bazel deleted file mode 100644 index 926a064dbc6..00000000000 --- a/build/bazelutil/BUILD.bazel +++ /dev/null @@ -1,36 +0,0 @@ -exports_files(["nogo_config.json"]) - -load("@bazel_skylib//rules:analysis_test.bzl", "analysis_test") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load(":lint.bzl", "lint_binary") - -genrule( - name = "test_stamping", - outs = ["test_stamping.txt"], - cmd = """cat bazel-out/stable-status.txt | grep STABLE_BUILD > $@""", - stamp = True, -) - -analysis_test( - name = "test_nogo_configured", - targets = select( - { - "//build/toolchains:nogo": [], - "//build/toolchains:nonogo_explicit": [], - }, - no_match_error = "must use exactly one of `--config lintonbuild` or `--config nolintonbuild` explicitly", - ), -) - -lint_binary( - name = "lint", - test = "//pkg/testutils/lint:lint_test", -) - -# This noop target is a workaround for https://github.com/bazelbuild/bazel-gazelle/issues/1078. -# We use it in //pkg/kv/kvclient/{kvcoord,rangefeed}. -go_library( - name = "noop", - importpath = "noop", - visibility = ["//pkg:__subpackages__"], -) diff --git a/build/bazelutil/staticcheckanalyzers/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/BUILD.bazel deleted file mode 100644 index 50f545d6c4e..00000000000 --- a/build/bazelutil/staticcheckanalyzers/BUILD.bazel +++ /dev/null @@ -1 +0,0 @@ -exports_files(["def.bzl"]) diff --git a/build/bazelutil/staticcheckanalyzers/s1000/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1000/BUILD.bazel deleted file mode 100644 index 96e279f3e95..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1000/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1000", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1000", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1001/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1001/BUILD.bazel deleted file mode 100644 index bd92983c251..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1001/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1001", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1001", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1002/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1002/BUILD.bazel deleted file mode 100644 index c1f72e380e4..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1002/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1002", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1002", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1003/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1003/BUILD.bazel deleted file mode 100644 index 1aaac650a5f..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1003/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1003", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1003", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1004/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1004/BUILD.bazel deleted file mode 100644 index 653a9456806..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1004/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1004", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1004", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1005/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1005/BUILD.bazel deleted file mode 100644 index 9fb5c1a7eb6..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1005/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1005", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1005", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1006/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1006/BUILD.bazel deleted file mode 100644 index 71262188938..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1006/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1006", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1006", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1007/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1007/BUILD.bazel deleted file mode 100644 index 9533db0316d..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1007/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1007", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1007", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1008/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1008/BUILD.bazel deleted file mode 100644 index 7b794b9c428..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1008/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1008", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1008", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1009/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1009/BUILD.bazel deleted file mode 100644 index de68c1e4311..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1009/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1009", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1009", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1010/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1010/BUILD.bazel deleted file mode 100644 index 046c5396c38..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1010/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1010", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1010", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1011/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1011/BUILD.bazel deleted file mode 100644 index c6812b7ac26..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1011/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1011", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1011", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1012/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1012/BUILD.bazel deleted file mode 100644 index 7dbd0d558a3..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1012/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1012", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1012", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1016/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1016/BUILD.bazel deleted file mode 100644 index a1667919777..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1016/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1016", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1016", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1017/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1017/BUILD.bazel deleted file mode 100644 index 3969c0c1817..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1017/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1017", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1017", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1018/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1018/BUILD.bazel deleted file mode 100644 index f5e0dfa3749..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1018/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1018", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1018", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1019/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1019/BUILD.bazel deleted file mode 100644 index 0a7664167ab..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1019/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1019", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1019", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1020/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1020/BUILD.bazel deleted file mode 100644 index 80ed8d7b298..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1020/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1020", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1020", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1021/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1021/BUILD.bazel deleted file mode 100644 index dec08b6c136..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1021/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1021", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1021", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1023/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1023/BUILD.bazel deleted file mode 100644 index dd28f453c53..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1023/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1023", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1023", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1024/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1024/BUILD.bazel deleted file mode 100644 index 6f1b1f4e3a4..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1024/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1024", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1024", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1025/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1025/BUILD.bazel deleted file mode 100644 index 4b82a5192d0..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1025/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1025", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1025", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1028/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1028/BUILD.bazel deleted file mode 100644 index f08aecab60d..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1028/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1028", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1028", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1029/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1029/BUILD.bazel deleted file mode 100644 index 997a930bedf..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1029/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1029", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1029", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1030/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1030/BUILD.bazel deleted file mode 100644 index d6190698792..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1030/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1030", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1030", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1031/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1031/BUILD.bazel deleted file mode 100644 index 836c47a6a10..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1031/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1031", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1031", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1032/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1032/BUILD.bazel deleted file mode 100644 index f59d6b58999..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1032/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1032", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1032", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1033/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1033/BUILD.bazel deleted file mode 100644 index 52efec5656a..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1033/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1033", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1033", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1034/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1034/BUILD.bazel deleted file mode 100644 index 894c72d7490..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1034/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1034", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1034", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1035/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1035/BUILD.bazel deleted file mode 100644 index 864d0daab96..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1035/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1035", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1035", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1036/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1036/BUILD.bazel deleted file mode 100644 index a047a9077d6..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1036/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1036", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1036", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1037/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1037/BUILD.bazel deleted file mode 100644 index 02e43b9ff30..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1037/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1037", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1037", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1038/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1038/BUILD.bazel deleted file mode 100644 index d1d451c9525..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1038/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1038", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1038", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1039/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1039/BUILD.bazel deleted file mode 100644 index 752e4d10509..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1039/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1039", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1039", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/s1040/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/s1040/BUILD.bazel deleted file mode 100644 index 6eae37ef071..00000000000 --- a/build/bazelutil/staticcheckanalyzers/s1040/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "s1040", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/s1040", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//simple", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1000/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1000/BUILD.bazel deleted file mode 100644 index ec4c15457fa..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1000/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1000", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1000", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1001/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1001/BUILD.bazel deleted file mode 100644 index 757a7842fe1..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1001/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1001", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1001", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1002/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1002/BUILD.bazel deleted file mode 100644 index 6fde3e73c46..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1002/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1002", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1002", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1003/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1003/BUILD.bazel deleted file mode 100644 index e854d6e07aa..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1003/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1003", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1003", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1004/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1004/BUILD.bazel deleted file mode 100644 index a66ed151d95..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1004/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1004", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1004", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1005/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1005/BUILD.bazel deleted file mode 100644 index 53b6f70199f..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1005/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1005", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1005", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1006/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1006/BUILD.bazel deleted file mode 100644 index fd9d4631e2e..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1006/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1006", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1006", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1007/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1007/BUILD.bazel deleted file mode 100644 index dbafdff204f..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1007/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1007", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1007", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1008/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1008/BUILD.bazel deleted file mode 100644 index 42094c1b833..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1008/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1008", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1008", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1010/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1010/BUILD.bazel deleted file mode 100644 index 95c5e53a8e1..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1010/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1010", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1010", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1011/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1011/BUILD.bazel deleted file mode 100644 index 473d8b0391e..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1011/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1011", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1011", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1012/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1012/BUILD.bazel deleted file mode 100644 index 9591420a3ca..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1012/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1012", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1012", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1013/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1013/BUILD.bazel deleted file mode 100644 index 05ee93c8a88..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1013/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1013", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1013", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1014/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1014/BUILD.bazel deleted file mode 100644 index 2048ba964e9..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1014/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1014", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1014", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1015/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1015/BUILD.bazel deleted file mode 100644 index 34c98304108..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1015/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1015", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1015", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1016/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1016/BUILD.bazel deleted file mode 100644 index dcd76fa8927..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1016/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1016", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1016", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1017/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1017/BUILD.bazel deleted file mode 100644 index 7e3cbb531e9..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1017/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1017", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1017", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1018/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1018/BUILD.bazel deleted file mode 100644 index 95f60e90414..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1018/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1018", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1018", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1019/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1019/BUILD.bazel deleted file mode 100644 index ce5326e3037..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1019/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1019", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1019", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1020/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1020/BUILD.bazel deleted file mode 100644 index b5305d4e9b3..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1020/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1020", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1020", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1021/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1021/BUILD.bazel deleted file mode 100644 index 197e010ff31..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1021/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1021", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1021", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1023/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1023/BUILD.bazel deleted file mode 100644 index 483a52f8de4..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1023/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1023", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1023", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1024/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1024/BUILD.bazel deleted file mode 100644 index 8c5ecdfd9cb..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1024/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1024", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1024", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1025/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1025/BUILD.bazel deleted file mode 100644 index f73118b9db3..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1025/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1025", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1025", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1026/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1026/BUILD.bazel deleted file mode 100644 index c78b97ebfca..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1026/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1026", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1026", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1027/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1027/BUILD.bazel deleted file mode 100644 index e6b60d13307..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1027/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1027", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1027", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1028/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1028/BUILD.bazel deleted file mode 100644 index edde4ba8377..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1028/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1028", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1028", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1029/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1029/BUILD.bazel deleted file mode 100644 index 3f8ec7cc6a3..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1029/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1029", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1029", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa1030/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa1030/BUILD.bazel deleted file mode 100644 index 9701b3296f9..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa1030/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa1030", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa1030", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa2000/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa2000/BUILD.bazel deleted file mode 100644 index 58bcec68d3a..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa2000/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa2000", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa2000", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa2001/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa2001/BUILD.bazel deleted file mode 100644 index b358613fdc7..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa2001/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa2001", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa2001", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa2002/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa2002/BUILD.bazel deleted file mode 100644 index 65e33d0370f..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa2002/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa2002", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa2002", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa2003/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa2003/BUILD.bazel deleted file mode 100644 index a105f40c500..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa2003/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa2003", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa2003", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa3000/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa3000/BUILD.bazel deleted file mode 100644 index ec0e785bb4d..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa3000/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa3000", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa3000", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa3001/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa3001/BUILD.bazel deleted file mode 100644 index 9c1af386b58..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa3001/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa3001", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa3001", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4000/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4000/BUILD.bazel deleted file mode 100644 index 60993906bd3..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4000/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4000", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4000", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4001/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4001/BUILD.bazel deleted file mode 100644 index 35e7db70a04..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4001/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4001", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4001", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4003/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4003/BUILD.bazel deleted file mode 100644 index 127c3f9b706..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4003/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4003", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4003", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4004/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4004/BUILD.bazel deleted file mode 100644 index 684cf396ce8..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4004/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4004", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4004", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4005/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4005/BUILD.bazel deleted file mode 100644 index ea32c507c05..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4005/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4005", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4005", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4006/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4006/BUILD.bazel deleted file mode 100644 index a2644ec7db9..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4006/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4006", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4006", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4008/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4008/BUILD.bazel deleted file mode 100644 index 5d6b9f2a8dd..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4008/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4008", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4008", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4009/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4009/BUILD.bazel deleted file mode 100644 index 644a0b1bda7..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4009/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4009", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4009", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4010/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4010/BUILD.bazel deleted file mode 100644 index 5fad734b6f1..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4010/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4010", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4010", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4011/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4011/BUILD.bazel deleted file mode 100644 index 08ea9aae1d1..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4011/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4011", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4011", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4012/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4012/BUILD.bazel deleted file mode 100644 index 2fa64101635..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4012/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4012", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4012", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4013/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4013/BUILD.bazel deleted file mode 100644 index 12cbe3119a3..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4013/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4013", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4013", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4014/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4014/BUILD.bazel deleted file mode 100644 index dda44a6b23d..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4014/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4014", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4014", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4015/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4015/BUILD.bazel deleted file mode 100644 index 701a6d3f7ce..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4015/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4015", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4015", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4016/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4016/BUILD.bazel deleted file mode 100644 index 0eb95bba1f2..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4016/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4016", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4016", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4017/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4017/BUILD.bazel deleted file mode 100644 index b5b6c1a7f6c..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4017/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4017", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4017", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4018/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4018/BUILD.bazel deleted file mode 100644 index b01a9dfbc5c..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4018/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4018", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4018", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4019/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4019/BUILD.bazel deleted file mode 100644 index 6b9a3e775e6..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4019/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4019", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4019", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4020/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4020/BUILD.bazel deleted file mode 100644 index 08676aa28a8..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4020/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4020", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4020", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4021/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4021/BUILD.bazel deleted file mode 100644 index eadd8ad3808..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4021/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4021", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4021", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4022/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4022/BUILD.bazel deleted file mode 100644 index 4191889382c..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4022/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4022", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4022", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4023/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4023/BUILD.bazel deleted file mode 100644 index 5147d9be863..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4023/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4023", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4023", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4024/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4024/BUILD.bazel deleted file mode 100644 index d2b9232848d..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4024/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4024", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4024", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4025/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4025/BUILD.bazel deleted file mode 100644 index 0313b03a0e1..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4025/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4025", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4025", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4026/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4026/BUILD.bazel deleted file mode 100644 index 5a112872327..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4026/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4026", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4026", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa4027/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa4027/BUILD.bazel deleted file mode 100644 index c7547719272..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa4027/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa4027", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa4027", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa5000/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa5000/BUILD.bazel deleted file mode 100644 index 9bd11d66c03..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa5000/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa5000", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa5000", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa5001/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa5001/BUILD.bazel deleted file mode 100644 index ce3e4b979fc..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa5001/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa5001", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa5001", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa5002/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa5002/BUILD.bazel deleted file mode 100644 index b06e3a2878d..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa5002/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa5002", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa5002", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa5003/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa5003/BUILD.bazel deleted file mode 100644 index 7711fa64ce5..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa5003/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa5003", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa5003", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa5004/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa5004/BUILD.bazel deleted file mode 100644 index 00035e5b679..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa5004/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa5004", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa5004", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa5005/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa5005/BUILD.bazel deleted file mode 100644 index 07b6f9f147c..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa5005/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa5005", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa5005", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa5007/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa5007/BUILD.bazel deleted file mode 100644 index 4cd2ce90c7d..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa5007/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa5007", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa5007", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa5008/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa5008/BUILD.bazel deleted file mode 100644 index fb2f439951f..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa5008/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa5008", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa5008", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa5009/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa5009/BUILD.bazel deleted file mode 100644 index 34535fe68c3..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa5009/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa5009", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa5009", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa5010/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa5010/BUILD.bazel deleted file mode 100644 index 8f488c21e6f..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa5010/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa5010", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa5010", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa5011/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa5011/BUILD.bazel deleted file mode 100644 index 43d6d06916b..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa5011/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa5011", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa5011", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa5012/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa5012/BUILD.bazel deleted file mode 100644 index a0a2176b64d..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa5012/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa5012", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa5012", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa6000/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa6000/BUILD.bazel deleted file mode 100644 index 6b3ecfd8a0b..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa6000/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa6000", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa6000", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa6001/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa6001/BUILD.bazel deleted file mode 100644 index 63917622376..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa6001/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa6001", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa6001", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa6002/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa6002/BUILD.bazel deleted file mode 100644 index 2eb9dc1b6db..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa6002/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa6002", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa6002", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa6003/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa6003/BUILD.bazel deleted file mode 100644 index 205909c3788..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa6003/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa6003", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa6003", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa6005/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa6005/BUILD.bazel deleted file mode 100644 index f787eb3c5a1..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa6005/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa6005", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa6005", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa9001/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa9001/BUILD.bazel deleted file mode 100644 index fe11aa9c904..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa9001/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa9001", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa9001", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa9002/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa9002/BUILD.bazel deleted file mode 100644 index a53e4656472..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa9002/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa9002", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa9002", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa9003/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa9003/BUILD.bazel deleted file mode 100644 index 115522d025e..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa9003/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa9003", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa9003", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa9004/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa9004/BUILD.bazel deleted file mode 100644 index 8f5f06130b6..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa9004/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa9004", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa9004", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa9005/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa9005/BUILD.bazel deleted file mode 100644 index 769e66abca0..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa9005/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa9005", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa9005", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/sa9006/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/sa9006/BUILD.bazel deleted file mode 100644 index 46961b271f4..00000000000 --- a/build/bazelutil/staticcheckanalyzers/sa9006/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sa9006", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/sa9006", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//staticcheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1000/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1000/BUILD.bazel deleted file mode 100644 index 2da5193c640..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1000/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1000", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1000", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1001/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1001/BUILD.bazel deleted file mode 100644 index 81b60aa3fcb..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1001/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1001", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1001", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1003/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1003/BUILD.bazel deleted file mode 100644 index 1df4b907b05..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1003/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1003", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1003", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1005/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1005/BUILD.bazel deleted file mode 100644 index 8fa410d2f57..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1005/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1005", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1005", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1006/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1006/BUILD.bazel deleted file mode 100644 index 85a8441dfe5..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1006/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1006", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1006", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1008/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1008/BUILD.bazel deleted file mode 100644 index 89385eaa7d4..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1008/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1008", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1008", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1011/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1011/BUILD.bazel deleted file mode 100644 index 74f4c940972..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1011/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1011", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1011", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1012/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1012/BUILD.bazel deleted file mode 100644 index d77b4941181..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1012/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1012", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1012", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1013/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1013/BUILD.bazel deleted file mode 100644 index f4c920949a2..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1013/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1013", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1013", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1015/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1015/BUILD.bazel deleted file mode 100644 index fa9fbe0bd60..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1015/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1015", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1015", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1016/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1016/BUILD.bazel deleted file mode 100644 index 50e86f49590..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1016/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1016", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1016", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1017/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1017/BUILD.bazel deleted file mode 100644 index 3f40a94402f..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1017/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1017", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1017", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1018/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1018/BUILD.bazel deleted file mode 100644 index 4295539feb6..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1018/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1018", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1018", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1019/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1019/BUILD.bazel deleted file mode 100644 index a4bba830f9c..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1019/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1019", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1019", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1020/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1020/BUILD.bazel deleted file mode 100644 index c8cfbc2c4fd..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1020/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1020", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1020", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1021/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1021/BUILD.bazel deleted file mode 100644 index bc95d6ef126..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1021/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1021", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1021", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1022/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1022/BUILD.bazel deleted file mode 100644 index 877f160de68..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1022/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1022", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1022", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/st1023/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/st1023/BUILD.bazel deleted file mode 100644 index e89d54e0ca9..00000000000 --- a/build/bazelutil/staticcheckanalyzers/st1023/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "st1023", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/st1023", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//stylecheck", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/staticcheckanalyzers/u1000/BUILD.bazel b/build/bazelutil/staticcheckanalyzers/u1000/BUILD.bazel deleted file mode 100644 index a64ad3da33d..00000000000 --- a/build/bazelutil/staticcheckanalyzers/u1000/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "u1000", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/staticcheckanalyzers/u1000", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/staticcheck", - "@co_honnef_go_tools//unused", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/build/bazelutil/whereis/BUILD.bazel b/build/bazelutil/whereis/BUILD.bazel deleted file mode 100644 index 072f085514e..00000000000 --- a/build/bazelutil/whereis/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "whereis_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/build/bazelutil/whereis", - visibility = ["//visibility:private"], -) - -go_binary( - name = "whereis", - embed = [":whereis_lib"], - visibility = ["//visibility:public"], -) diff --git a/build/patches/BUILD.bazel b/build/patches/BUILD.bazel deleted file mode 100644 index 68e8a20adc5..00000000000 --- a/build/patches/BUILD.bazel +++ /dev/null @@ -1,7 +0,0 @@ -# This directory contains patches for third-party vendored code in the Bazel build. - -filegroup( - name = "all_patches", - srcs = glob(["*.patch"]), - visibility = ["//visibility:public"], -) diff --git a/build/toolchains/BUILD.bazel b/build/toolchains/BUILD.bazel deleted file mode 100644 index b75ee1f8754..00000000000 --- a/build/toolchains/BUILD.bazel +++ /dev/null @@ -1,239 +0,0 @@ -load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") - -toolchain( - name = "cross_linux_toolchain", - exec_compatible_with = [ - "@platforms//os:linux", - "@platforms//cpu:x86_64", - ], - target_compatible_with = [ - "@platforms//os:linux", - "@platforms//cpu:x86_64", - ], - target_settings = [ - ":cross", - ], - toolchain = "@toolchain_cross_x86_64-unknown-linux-gnu//:toolchain", - toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", -) - -platform( - name = "cross_linux", - constraint_values = [ - "@platforms//os:linux", - "@platforms//cpu:x86_64", - ], -) - -toolchain( - name = "cross_windows_toolchain", - exec_compatible_with = [ - "@platforms//os:linux", - "@platforms//cpu:x86_64", - ], - target_compatible_with = [ - "@platforms//os:windows", - "@platforms//cpu:x86_64", - ], - target_settings = [ - ":cross", - ], - toolchain = "@toolchain_cross_x86_64-w64-mingw32//:toolchain", - toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", -) - -platform( - name = "cross_windows", - constraint_values = [ - "@platforms//os:windows", - "@platforms//cpu:x86_64", - ], -) - -toolchain( - name = "cross_macos_toolchain", - exec_compatible_with = [ - "@platforms//os:linux", - "@platforms//cpu:x86_64", - ], - target_compatible_with = [ - "@platforms//os:macos", - "@platforms//cpu:x86_64", - ], - target_settings = [ - ":cross", - ], - toolchain = "@toolchain_cross_x86_64-apple-darwin19//:toolchain", - toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", -) - -platform( - name = "cross_macos", - constraint_values = [ - "@platforms//os:macos", - "@platforms//cpu:x86_64", - ], -) - -toolchain( - name = "cross_linux_arm_toolchain", - exec_compatible_with = [ - "@platforms//os:linux", - "@platforms//cpu:x86_64", - ], - target_compatible_with = [ - "@platforms//os:linux", - "@platforms//cpu:arm64", - ], - target_settings = [ - ":cross", - ], - toolchain = "@toolchain_cross_aarch64-unknown-linux-gnu//:toolchain", - toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", -) - -platform( - name = "cross_linux_arm", - constraint_values = [ - "@platforms//os:linux", - "@platforms//cpu:arm64", - ], -) - -toolchain( - name = "dev_darwin_x86_64_toolchain", - exec_compatible_with = [ - "@platforms//os:macos", - "@platforms//cpu:x86_64", - ], - target_compatible_with = [ - "@platforms//os:macos", - "@platforms//cpu:x86_64", - ], - target_settings = [ - ":dev", - ], - toolchain = "@toolchain_dev_darwin_x86-64//:toolchain", - toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", -) - -platform( - name = "darwin_x86_64", - constraint_values = [ - "@platforms//os:macos", - "@platforms//cpu:x86_64", - ], -) - -# There are aliases for each of these flags defined in .bazelrc; for example, -# --crdb_test instead of --//build/toolchains:crdb_test_flag. -# -# crdb_test_flag is set to true for every `bazel test` invocation (see .bazelrc). -# When building a test executable via `bazel build`, you want to make sure you -# set this flag (via `--config test` or `--crdb_test`) or else the executable -# won't be compiled with the appropriate test logic. -# crdb_test_off_flag is provided as an override to disable this default behavior -# if desired. It's unnecessary under any other circumstances. -bool_flag( - name = "crdb_test_flag", - build_setting_default = False, - visibility = ["//visibility:public"], -) - -bool_flag( - name = "crdb_test_off_flag", - build_setting_default = False, - visibility = [":__pkg__"], -) - -config_setting( - name = "crdb_test", - flag_values = { - ":crdb_test_flag": "true", - ":crdb_test_off_flag": "false", - }, -) - -bool_flag( - name = "dev_flag", - build_setting_default = False, - visibility = ["//visibility:public"], -) - -config_setting( - name = "dev", - flag_values = { - ":dev_flag": "true", - }, -) - -bool_flag( - name = "cross_flag", - build_setting_default = False, - visibility = ["//visibility:public"], -) - -config_setting( - name = "cross", - flag_values = { - ":cross_flag": "true", - }, -) - -config_setting( - name = "is_cross_macos", - constraint_values = [ - "@io_bazel_rules_go//go/toolchain:darwin", - ], - flag_values = { - ":cross_flag": "true", - }, -) - -config_setting( - name = "is_cross_linux", - constraint_values = [ - "@io_bazel_rules_go//go/toolchain:linux", - ], - flag_values = { - ":cross_flag": "true", - }, -) - -config_setting( - name = "opt", - values = { - "compilation_mode": "opt", - }, -) - -bool_flag( - name = "nogo_flag", - build_setting_default = False, - visibility = ["//visibility:public"], -) - -config_setting( - name = "nogo", - flag_values = { - ":nogo_flag": "true", - }, -) - -# Note: the flag nonogo_flag and config_setting nonogo_explicit aren't meant -# to be directly used in select()'s. Not using nogo is the default behavior. -# The flag and config_setting are here solely so that they can be used by `dev` -# to check whether an option is configured. -bool_flag( - name = "nonogo_explicit_flag", - build_setting_default = False, - visibility = ["//visibility:public"], -) - -config_setting( - name = "nonogo_explicit", - flag_values = { - ":nonogo_explicit_flag": "true", - }, - visibility = ["//build/bazelutil:__pkg__"], -) diff --git a/c-deps/BUILD.bazel b/c-deps/BUILD.bazel deleted file mode 100644 index 3b8c1118176..00000000000 --- a/c-deps/BUILD.bazel +++ /dev/null @@ -1,205 +0,0 @@ -# Load the components that lets us use cmake/make in third party deps. -load("@rules_foreign_cc//foreign_cc:cmake.bzl", "cmake") -load("@rules_foreign_cc//foreign_cc:configure.bzl", "configure_make") - -exports_files([ - "REPOSITORIES.bzl", -]) - -# Define the build target for libjemalloc. -configure_make( - name = "libjemalloc", - autoconf = True, - configure_in_place = True, - configure_options = [ - "--enable-prof", - ] + select({ - "@io_bazel_rules_go//go/platform:windows": ["--host=x86_64-w64-mingw32"], - "@io_bazel_rules_go//go/platform:darwin": ["--host=x86_64-apple-darwin19"], - "@io_bazel_rules_go//go/platform:linux_arm64": ["--host=aarch64-unknown-linux-gnu"], - "//conditions:default": [], - }), - env = select({ - "//build/toolchains:dev": {"AR": ""}, - "//conditions:default": {}, - }), - lib_source = "@jemalloc//:all", - out_static_libs = select({ - "@io_bazel_rules_go//go/platform:windows": ["jemalloc.lib"], - "//conditions:default": ["libjemalloc.a"], - }), - targets = [ - "build_lib_static", - "install_lib", - "install_include", - ], - visibility = ["//visibility:public"], -) - -# Define the build target for libproj. -cmake( - name = "libproj", - cache_entries = select({ - # TODO(ricky): The repetition here is dumb, but I don't know a cleaner - # way to do it? - # https://github.com/bazelbuild/bazel/issues/12457 would help. - "@io_bazel_rules_go//go/platform:windows": { - "BUILD_LIBPROJ_SHARED": "OFF", - "CMAKE_BUILD_TYPE": "Release", - "CMAKE_SYSTEM_NAME": "Generic", - }, - "@io_bazel_rules_go//go/platform:darwin": { - "BUILD_LIBPROJ_SHARED": "OFF", - "CMAKE_BUILD_TYPE": "Release", - "CMAKE_SYSTEM_NAME": "Generic", - }, - "//conditions:default": { - "BUILD_LIBPROJ_SHARED": "OFF", - "CMAKE_BUILD_TYPE": "Release", - }, - }), - generate_args = ["-GUnix Makefiles"], - lib_source = "@proj//:all", - out_static_libs = ["libproj.a"], - visibility = ["//visibility:public"], -) - -# Define the targets for libgeos. -cmake( - name = "libgeos", - cache_entries = select({ - "@io_bazel_rules_go//go/platform:windows": { - "CMAKE_BUILD_TYPE": "Release", - "CMAKE_C_FLAGS": "-fPIC", - "CMAKE_CXX_FLAGS": "-fPIC", - "CMAKE_SYSTEM_NAME": "Windows", - }, - "@io_bazel_rules_go//go/platform:darwin": { - "CMAKE_BUILD_TYPE": "Release", - "CMAKE_C_FLAGS": "-fPIC", - "CMAKE_CXX_FLAGS": "-fPIC", - "CMAKE_SYSTEM_NAME": "Darwin", - }, - "//conditions:default": { - "CMAKE_BUILD_TYPE": "Release", - "CMAKE_C_FLAGS": "-fPIC", - "CMAKE_CXX_FLAGS": "-fPIC", - }, - }), - data = select({ - "//build/toolchains:is_cross_macos": [ - "@toolchain_cross_x86_64-apple-darwin19//:bin/x86_64-apple-darwin19-install_name_tool", - "@toolchain_cross_x86_64-apple-darwin19//:bin/x86_64-apple-darwin19-otool", - ], - "//conditions:default": [], - }), - env = select({ - "//build/toolchains:is_cross_macos": { - "CMAKE_INSTALL_NAME_TOOL": "$(execpath @toolchain_cross_x86_64-apple-darwin19//:bin/x86_64-apple-darwin19-install_name_tool)", - "OTOOL": "$(execpath @toolchain_cross_x86_64-apple-darwin19//:bin/x86_64-apple-darwin19-otool)", - }, - "//conditions:default": {}, - }), - generate_args = ["-GUnix Makefiles"], - lib_source = "@geos//:all", - out_lib_dir = select({ - "@io_bazel_rules_go//go/platform:windows": "bin", - "//conditions:default": "lib", - }), - out_shared_libs = select({ - "@io_bazel_rules_go//go/platform:darwin": [ - "libgeos_c.dylib", - "libgeos.dylib", - ], - "@io_bazel_rules_go//go/platform:windows": [ - "libgeos_c.dll", - "libgeos.dll", - ], - "//conditions:default": [ - "libgeos_c.so", - "libgeos.so", - ], - }), - postfix_script = "mkdir -p libgeos/lib\n" + select({ - "//build/toolchains:is_cross_macos": ( - "cp -L lib/libgeos.3.8.1.dylib $INSTALLDIR/lib/libgeos.dylib\n" + - "PREFIX=$($OTOOL -D $INSTALLDIR/lib/libgeos_c.dylib | tail -n1 | rev | cut -d/ -f2- | rev)\n" + - "$CMAKE_INSTALL_NAME_TOOL -id @rpath/libgeos.3.8.1.dylib $INSTALLDIR/lib/libgeos.dylib\n" + - "$CMAKE_INSTALL_NAME_TOOL -id @rpath/libgeos_c.1.dylib $INSTALLDIR/lib/libgeos_c.dylib\n" + - "$CMAKE_INSTALL_NAME_TOOL -change $PREFIX/libgeos.3.8.1.dylib @rpath/libgeos.3.8.1.dylib $INSTALLDIR/lib/libgeos_c.dylib\n" - ), - "@io_bazel_rules_go//go/platform:darwin": "cp -L lib/libgeos.3.8.1.dylib $INSTALLDIR/lib/libgeos.dylib", - "@io_bazel_rules_go//go/platform:windows": "", - "//build/toolchains:is_cross_linux": ( - "cp -L lib/libgeos.so.3.8.1 $INSTALLDIR/lib/libgeos.so\n" + - "patchelf --set-rpath /usr/local/lib/cockroach/ $INSTALLDIR/lib/libgeos_c.so\n" + - "patchelf --set-soname libgeos.so $INSTALLDIR/lib/libgeos.so\n" + - "patchelf --replace-needed libgeos.so.3.8.1 libgeos.so $INSTALLDIR/lib/libgeos_c.so\n" - ), - "//conditions:default": "cp -L lib/libgeos.so.3.8.1 $INSTALLDIR/lib/libgeos.so", - }), - targets = ["geos_c"], - visibility = ["//visibility:public"], -) - -# Define the build target for kerberos. -configure_make( - name = "libkrb5", - autoreconf = True, - autoreconf_directory = "src", - autoreconf_options = [ - "-Wno-obsolete", - ], - configure_command = "src/configure", - configure_in_place = True, - configure_options = [ - "--enable-static", - "--disable-shared", - ], - # We specify -fcommon to get around duplicate definition errors in recent gcc. - copts = ["-fcommon"], - data = [":autom4te"], - env = { - "AUTOM4TE": "$(execpath :autom4te)", - }, - lib_source = "@krb5//:all", - out_static_libs = [ - "libgssapi_krb5.a", - "libkrb5.a", - "libkrb5support.a", - "libk5crypto.a", - "libcom_err.a", - ], - postfix_script = ("""mkdir -p libkrb5/lib -cp lib/libcom_err.a libkrb5/lib -cp lib/libgssapi_krb5.a libkrb5/lib -cp lib/libkrb5.a libkrb5/lib -cp lib/libkrb5support.a libkrb5/lib -cp lib/libk5crypto.a libkrb5/lib -mkdir -p libkrb5/include/gssapi -cp include/gssapi/gssapi.h libkrb5/include/gssapi"""), - visibility = ["//visibility:public"], -) - -# This is extremely stupid and unnecessary, but in certain cases to depend on -# the output of a `cmake` target, we need to launder through a filegroup: -# https://github.com/bazelbuild/rules_foreign_cc/issues/619#issuecomment-844473637 -# This is apparently a bug. In the meantime, people can depend on the :*_files -# targets rather than :libgeos where it matters. -filegroup( - name = "libgeos_files", - srcs = [":libgeos"], - visibility = ["//visibility:public"], -) - -filegroup( - name = "libproj_files", - srcs = [":libproj"], - visibility = ["//visibility:public"], -) - -filegroup( - name = "libedit_files", - srcs = ["@com_github_knz_go_libedit//unix:edit"], - visibility = ["//visibility:public"], -) diff --git a/docs/generated/BUILD.bazel b/docs/generated/BUILD.bazel deleted file mode 100644 index da2baa1befb..00000000000 --- a/docs/generated/BUILD.bazel +++ /dev/null @@ -1,71 +0,0 @@ -load( - "//pkg/util/log/eventpb:PROTOS.bzl", - _EVENTPB_PROTO_LOCATIONS = "EVENTPB_PROTO_LOCATIONS", - _EVENTPB_PROTO_SRCS = "EVENTPB_PROTO_SRCS", -) - -genrule( - name = "gen-logging-md", - srcs = [ - "//pkg/util/log/logpb:log.proto", - ], - outs = ["logging.md"], - cmd = """ - $(location //pkg/util/log/gen) $(location //pkg/util/log/logpb:log.proto) \ - logging.md $(location logging.md) - """, - exec_tools = [ - "//pkg/util/log/gen", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -genrule( - name = "gen-logsinks-md", - srcs = [ - "//pkg/util/log/logconfig:config.go", - ], - outs = ["logsinks.md"], - cmd = """ - $(location //pkg/util/log/logconfig:gen) < $(location //pkg/util/log/logconfig:config.go) > $(location logsinks.md) - """, - exec_tools = [ - "//pkg/util/log/logconfig:gen", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -genrule( - name = "gen-eventlog-md", - srcs = _EVENTPB_PROTO_SRCS, - outs = ["eventlog.md"], - cmd = """ - $(location //pkg/util/log/eventpb:gen) eventlog.md \ - {} \ - >$(location eventlog.md) - """.format(_EVENTPB_PROTO_LOCATIONS), - exec_tools = [ - "//pkg/util/log/eventpb:gen", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -genrule( - name = "gen-logformats-md", - outs = ["logformats.md"], - cmd = "$(location //pkg/cmd/docgen) logformats $(location logformats.md)", - exec_tools = ["//pkg/cmd/docgen"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/docs/generated/http/BUILD.bazel b/docs/generated/http/BUILD.bazel deleted file mode 100644 index 09c098abc36..00000000000 --- a/docs/generated/http/BUILD.bazel +++ /dev/null @@ -1,79 +0,0 @@ -genrule( - name = "http", - srcs = [ - "//pkg/build:build_proto", - "//pkg/clusterversion:clusterversion_proto", - "//pkg/config/zonepb:zonepb_proto", - "//pkg/geo/geoindex:geoindex_proto", - "//pkg/geo/geopb:geopb_proto", - "//pkg/gossip:gossip_proto", - "//pkg/jobs/jobspb:jobspb_proto", - "//pkg/kv/kvserver/concurrency/lock:lock_proto", - "//pkg/kv/kvserver/kvserverpb:kvserverpb_proto", - "//pkg/kv/kvserver/liveness/livenesspb:livenesspb_proto", - "//pkg/kv/kvserver/readsummary/rspb:rspb_proto", - "//pkg/roachpb:roachpb_proto", - "//pkg/server/diagnostics/diagnosticspb:diagnosticspb_proto", - "//pkg/server/serverpb:serverpb_proto", - "//pkg/server/status/statuspb:statuspb_proto", - "//pkg/settings:settings_proto", - "//pkg/sql/catalog/catpb:catpb_proto", - "//pkg/sql/catalog/descpb:descpb_proto", - "//pkg/sql/contentionpb:contentionpb_proto", - "//pkg/sql/execinfrapb:execinfrapb_proto", - "//pkg/sql/inverted:inverted_proto", - "//pkg/sql/lex:lex_proto", - "//pkg/sql/pgwire/pgerror:pgerror_proto", - "//pkg/sql/schemachanger/scpb:scpb_proto", - "//pkg/sql/sessiondatapb:sessiondatapb_proto", - "//pkg/sql/types:types_proto", - "//pkg/storage/enginepb:enginepb_proto", - "//pkg/ts/catalog:catalog_proto", - "//pkg/ts/tspb:tspb_proto", - "//pkg/util/duration:duration_proto", - "//pkg/util/hlc:hlc_proto", - "//pkg/util/log/logpb:logpb_proto", - "//pkg/util/metric:metric_proto", - "//pkg/util/timeutil/pgdate:pgdate_proto", - "//pkg/util/tracing/tracingpb:tracingpb_proto", - "//pkg/util:util_proto", - "@com_github_prometheus_client_model//io/prometheus/client:io_prometheus_client_proto", - "@com_github_cockroachdb_errors//errorspb:errorspb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:descriptor_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", - "@go_googleapis//google/api:annotations_proto", - "@io_etcd_go_etcd_raft_v3//raftpb:raftpb_proto", - ], - outs = [ - "full.md", - "health-other.md", - "health-request.md", - "health-response.md", - "hotranges-other.md", - "hotranges-request.md", - "hotranges-response.md", - "nodes-other.md", - "nodes-request.md", - "nodes-response.md", - ], - cmd = """ - DESCRIPTOR_SET_IN=$$(echo $(SRCS) | tr -s '[:blank:]' ':') - $(location //pkg/cmd/docgen) \ - http --protoc $(location @com_google_protobuf//:protoc) \ - --gendoc $(location @com_github_pseudomuto_protoc_gen_doc//cmd/protoc-gen-doc) \ - --out $(RULEDIR) \ - --protoc-flags "--descriptor_set_in $$DESCRIPTOR_SET_IN server/serverpb/status.proto server/serverpb/admin.proto server/status/statuspb/status.proto" - """, - exec_tools = [ - "@com_google_protobuf//:protoc", - "@com_github_pseudomuto_protoc_gen_doc//cmd/protoc-gen-doc", - "//pkg/cmd/docgen", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/docs/generated/settings/BUILD.bazel b/docs/generated/settings/BUILD.bazel deleted file mode 100644 index 35deaa72e72..00000000000 --- a/docs/generated/settings/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -genrule( - name = "settings", - outs = ["settings.html"], - cmd = "$(location //pkg/cmd/cockroach-short) gen settings-list --format=rawhtml > $@", - exec_tools = ["//pkg/cmd/cockroach-short"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -genrule( - name = "settings_for_tenants", - outs = ["settings-for-tenants.txt"], - cmd = "$(location //pkg/cmd/cockroach-short) gen settings-list --without-system-only > $@", - exec_tools = ["//pkg/cmd/cockroach-short"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/docs/generated/sql/BUILD.bazel b/docs/generated/sql/BUILD.bazel deleted file mode 100644 index 076c35eb773..00000000000 --- a/docs/generated/sql/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -genrule( - name = "sql", - outs = [ - "aggregates.md", - "functions.md", - "operators.md", - "window_functions.md", - ], - cmd = """ -$(location //pkg/cmd/docgen) functions $(RULEDIR) --quiet -""", - exec_tools = ["//pkg/cmd/docgen"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/docs/generated/sql/bnf/BUILD.bazel b/docs/generated/sql/bnf/BUILD.bazel deleted file mode 100644 index b18205ac6df..00000000000 --- a/docs/generated/sql/bnf/BUILD.bazel +++ /dev/null @@ -1,290 +0,0 @@ -# There should be an entry in this list for every .bnf in this directory (omit -# the .bnf suffix). -FILES = [ - "abort_stmt", - "add_column", - "add_constraint", - "alter_changefeed", - "alter_backup", - "alter_column", - "alter_database_add_region_stmt", - "alter_database_add_super_region", - "alter_database_alter_super_region", - "alter_database_drop_region", - "alter_database_drop_super_region", - "alter_database_owner", - "alter_database_primary_region", - "alter_database_stmt", - "alter_database_survival_goal_stmt", - "alter_database_to_schema_stmt", - "alter_ddl_stmt", - "alter_default_privileges_stmt", - "alter_index_partition_by", - "alter_index_stmt", - "alter_partition_stmt", - "alter_primary_key", - "alter_range_relocate_stmt", - "alter_range_stmt", - "alter_rename_view_stmt", - "alter_role_stmt", - "alter_scatter_index_stmt", - "alter_scatter_stmt", - "alter_schema", - "alter_sequence", - "alter_sequence_options_stmt", - "alter_sequence_owner_stmt", - "alter_sequence_set_schema_stmt", - "alter_stmt", - "alter_table", - "alter_table_locality_stmt", - "alter_table_owner_stmt", - "alter_table_partition_by", - "alter_table_reset_storage_param", - "alter_table_set_schema_stmt", - "alter_table_set_storage_param", - "alter_table_stmt", - "alter_tenant_csetting_stmt", - "alter_type", - "alter_view", - "alter_view_owner_stmt", - "alter_view_set_schema_stmt", - "alter_zone_database_stmt", - "alter_zone_index_stmt", - "alter_zone_partition_stmt", - "alter_zone_range_stmt", - "alter_zone_table_stmt", - "analyze_stmt", - "backup", - "begin_stmt", - "begin_transaction", - "cancel_all_jobs_stmt", - "cancel_job", - "cancel_query", - "cancel_session", - "cancel_stmt", - "check_column_level", - "check_table_level", - "close_cursor_stmt", - "col_qualification", - "column_def", - "comment", - "commit_transaction", - "copy_from_stmt", - "create_as_col_qual_list", - "create_as_constraint_def", - "create_changefeed_stmt", - "create_database_stmt", - "create_ddl_stmt", - "create_extension_stmt", - "create_index_stmt", - "create_index_with_storage_param", - "create_inverted_index_stmt", - "create_replication_stream_stmt", - "create_role_stmt", - "create_schedule_for_backup_stmt", - "create_schema_stmt", - "create_sequence_stmt", - "create_stats_stmt", - "create_stmt", - "create_table_as_stmt", - "create_table_with_storage_param", - "create_table_stmt", - "create_type", - "create_view_stmt", - "deallocate_stmt", - "declare_cursor_stmt", - "default_value_column_level", - "delete_stmt", - "discard_stmt", - "drop_column", - "drop_constraint", - "drop_database", - "drop_ddl_stmt", - "drop_index", - "drop_owned_by_stmt", - "drop_role_stmt", - "drop_schedule_stmt", - "drop_schema", - "drop_sequence_stmt", - "drop_stmt", - "drop_table", - "drop_type", - "drop_view", - "execute_stmt", - "experimental_audit", - "explain_analyze_stmt", - "explain_stmt", - "explainable_stmt", - "export_stmt", - "family_def", - "fetch_cursor_stmt", - "for_locking", - "foreign_key_column_level", - "foreign_key_table_level", - "generic_set", - "grant_stmt", - "import_csv", - "import_dump", - "import_into", - "index_def", - "insert_rest", - "insert_stmt", - "iso_level", - "joined_table", - "like_table_option_list", - "limit_clause", - "move_cursor_stmt", - "not_null_column_level", - "offset_clause", - "on_conflict", - "opt_frame_clause", - "opt_locality", - "opt_persistence_temp_table", - "opt_with_storage_parameter_list", - "pause_all_jobs_stmt", - "pause_job", - "pause_schedule", - "pause_stmt", - "preparable_stmt", - "prepare_stmt", - "primary_key_column_level", - "primary_key_table_level", - "reassign_owned_by_stmt", - "refresh_materialized_views", - "release_savepoint", - "rename_column", - "rename_constraint", - "rename_database", - "rename_index", - "rename_sequence", - "rename_table", - "reset_csetting_stmt", - "reset_session_stmt", - "reset_stmt", - "restore", - "resume_all_jobs_stmt", - "resume_job", - "resume_schedule", - "resume_stmt", - "revoke_stmt", - "rollback_transaction", - "row_source_extension_stmt", - "savepoint_stmt", - "scrub_database_stmt", - "scrub_stmt", - "scrub_table_stmt", - "select_clause", - "select_stmt", - "set_cluster_setting", - "set_csetting_stmt", - "set_or_reset_csetting_stmt", - "set_exprs_internal", - "set_local_stmt", - "set_operation", - "set_rest", - "set_rest_more", - "set_session_stmt", - "set_transaction", - "set_transaction_stmt", - "show_backup", - "show_cluster_setting", - "show_columns_stmt", - "show_constraints_stmt", - "show_create_stmt", - "show_create_schedules_stmt", - "show_databases_stmt", - "show_default_privileges_stmt", - "show_enums", - "show_full_scans", - "show_grants_stmt", - "show_indexes_stmt", - "show_jobs", - "show_keys", - "show_local_or_tenant_csettings_stmt", - "show_locality", - "show_locality_stmt", - "show_partitions_stmt", - "show_range_for_row_stmt", - "show_ranges_stmt", - "show_regions", - "show_roles_stmt", - "show_savepoint_status", - "show_schedules", - "show_schemas", - "show_sequences", - "show_session_stmt", - "show_sessions", - "show_statements", - "show_stats", - "show_survival_goal_stmt", - "show_tables", - "show_trace", - "show_transactions_stmt", - "show_transfer_stmt", - "show_types_stmt", - "show_users_stmt", - "show_var", - "show_zone_stmt", - "simple_select_clause", - "sort_clause", - "split_index_at", - "split_table_at", - "stmt", - "stmt_block", - "table_clause", - "table_constraint", - "table_ref", - "transaction_stmt", - "truncate_stmt", - "unique_column_level", - "unique_table_level", - "unsplit_index_at", - "unsplit_table_at", - "update_stmt", - "upsert_stmt", - "use_stmt", - "validate_constraint", - "values_clause", - "window_definition", - "with_clause", -] - -genrule( - name = "bnf", - srcs = ["//pkg/sql/parser:sql.y"], - outs = [file + ".bnf" for file in FILES], - cmd = """ - $(location //pkg/cmd/docgen) grammar bnf $(RULEDIR) --quiet --addr $(location //pkg/sql/parser:sql.y) - for FILE in $$(ls $(RULEDIR)) - do - if [[ "$(OUTS)" != *"$$FILE"* ]]; then - echo "$$FILE is not a generated file; please add $${FILE%.bnf} to the list of FILES in docs/generated/sql/bnf/BUILD.bazel" - exit 1 - fi - done - """, - exec_tools = ["//pkg/cmd/docgen"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -genrule( - name = "svg", - srcs = [ - "@railroadjar//:rr.war", - "//pkg/sql/parser:sql.y", - ":bnf", - ], - outs = [file.replace("_stmt", "") + ".html" for file in FILES if "_stmt" not in file or file.replace("_stmt", "") not in FILES], - cmd = """ - bnf_locs=$$(echo $(locations :bnf) | cut -d' ' -f1 | xargs dirname) - COCKROACH_REQUIRE_RAILROAD=1 $(location //pkg/cmd/docgen) grammar svg $$bnf_locs $(RULEDIR) --addr $(location //pkg/sql/parser:sql.y) --railroad $(location @railroadjar//:rr.war) - """, - exec_tools = ["//pkg/cmd/docgen"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/docs/generated/swagger/BUILD.bazel b/docs/generated/swagger/BUILD.bazel deleted file mode 100644 index c800688f46a..00000000000 --- a/docs/generated/swagger/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_path") - -genrule( - name = "swagger", - srcs = [ - ":swagger_go_path", - ], - outs = ["spec.json"], - cmd = """ - GO_REL_PATH=`dirname $(location @go_sdk//:bin/go)` - GO_ABS_PATH=`cd $$GO_REL_PATH && pwd` - env PATH=$$GO_ABS_PATH HOME=$(GENDIR) GOPATH=$$(cd $(location :swagger_go_path) && pwd) GO111MODULE=off \ - $(location @com_github_go_swagger_go_swagger//cmd/swagger) generate spec -w $(location :swagger_go_path)/src/github.com/cockroachdb/cockroach/pkg --scan-models -t bazel -o $@ - """, - exec_tools = [ - "@com_github_go_swagger_go_swagger//cmd/swagger", - "@go_sdk//:bin/go", - ], - visibility = ["//visibility:public"], -) - -go_path( - name = "swagger_go_path", - deps = [ - "//pkg/server", - ], -) diff --git a/pkg/BUILD.bazel b/pkg/BUILD.bazel deleted file mode 100644 index 42a8fd443e2..00000000000 --- a/pkg/BUILD.bazel +++ /dev/null @@ -1,529 +0,0 @@ -# Code generated by generate-test-suites, DO NOT EDIT. -# gazelle:proto_strip_import_prefix /pkg - -ALL_TESTS = [ - "//pkg/base:base_test", - "//pkg/bench/rttanalysis:rttanalysis_test", - "//pkg/bench/tpcc:tpcc_test", - "//pkg/bench:bench_test", - "//pkg/blobs:blobs_test", - "//pkg/build/starlarkutil:starlarkutil_test", - "//pkg/build/util:util_test", - "//pkg/ccl/backupccl/backupresolver:backupresolver_test", - "//pkg/ccl/backupccl:backupccl_test", - "//pkg/ccl/baseccl:baseccl_test", - "//pkg/ccl/benchccl/rttanalysisccl:rttanalysisccl_test", - "//pkg/ccl/changefeedccl/cdctest:cdctest_test", - "//pkg/ccl/changefeedccl/cdcutils:cdcutils_test", - "//pkg/ccl/changefeedccl/kvevent:kvevent_test", - "//pkg/ccl/changefeedccl/kvfeed:kvfeed_test", - "//pkg/ccl/changefeedccl/schemafeed:schemafeed_test", - "//pkg/ccl/changefeedccl:changefeedccl_test", - "//pkg/ccl/cliccl:cliccl_test", - "//pkg/ccl/importerccl:importerccl_test", - "//pkg/ccl/jobsccl/jobsprotectedtsccl:jobsccl_test", - "//pkg/ccl/jobsccl/jobsprotectedtsccl:jobsprotectedtsccl_test", - "//pkg/ccl/kvccl/kvfollowerreadsccl:kvfollowerreadsccl_test", - "//pkg/ccl/kvccl/kvtenantccl:kvtenantccl_test", - "//pkg/ccl/logictestccl:logictestccl_test", - "//pkg/ccl/migrationccl/migrationsccl:migrationsccl_test", - "//pkg/ccl/multiregionccl:multiregionccl_test", - "//pkg/ccl/multitenantccl/tenantcostclient:tenantcostclient_test", - "//pkg/ccl/multitenantccl/tenantcostserver/tenanttokenbucket:tenanttokenbucket_test", - "//pkg/ccl/multitenantccl/tenantcostserver:tenantcostserver_test", - "//pkg/ccl/oidcccl:oidcccl_test", - "//pkg/ccl/partitionccl:partitionccl_test", - "//pkg/ccl/schemachangerccl:schemachangerccl_test", - "//pkg/ccl/serverccl/adminccl:adminccl_test", - "//pkg/ccl/serverccl/diagnosticsccl:diagnosticsccl_test", - "//pkg/ccl/serverccl/statusccl:statusccl_test", - "//pkg/ccl/serverccl:serverccl_test", - "//pkg/ccl/spanconfigccl/spanconfigcomparedccl:spanconfigcomparedccl_test", - "//pkg/ccl/spanconfigccl/spanconfigkvaccessorccl:spanconfigkvaccessorccl_test", - "//pkg/ccl/spanconfigccl/spanconfiglimiterccl:spanconfiglimiterccl_test", - "//pkg/ccl/spanconfigccl/spanconfigreconcilerccl:spanconfigreconcilerccl_test", - "//pkg/ccl/spanconfigccl/spanconfigsplitterccl:spanconfigsplitterccl_test", - "//pkg/ccl/spanconfigccl/spanconfigsqltranslatorccl:spanconfigsqltranslatorccl_test", - "//pkg/ccl/spanconfigccl/spanconfigsqlwatcherccl:spanconfigsqlwatcherccl_test", - "//pkg/ccl/sqlproxyccl/balancer:balancer_test", - "//pkg/ccl/sqlproxyccl/denylist:denylist_test", - "//pkg/ccl/sqlproxyccl/interceptor:interceptor_test", - "//pkg/ccl/sqlproxyccl/tenant:tenant_test", - "//pkg/ccl/sqlproxyccl/throttler:throttler_test", - "//pkg/ccl/sqlproxyccl:sqlproxyccl_test", - "//pkg/ccl/storageccl/engineccl:engineccl_test", - "//pkg/ccl/storageccl:storageccl_test", - "//pkg/ccl/streamingccl/streamclient:streamclient_test", - "//pkg/ccl/streamingccl/streamingest:streamingest_test", - "//pkg/ccl/streamingccl/streamproducer:streamproducer_test", - "//pkg/ccl/telemetryccl:telemetryccl_test", - "//pkg/ccl/testccl/sqlccl:sqlccl_test", - "//pkg/ccl/testccl/workload/schemachange:schemachange_test", - "//pkg/ccl/utilccl/sampledataccl:sampledataccl_test", - "//pkg/ccl/utilccl:utilccl_test", - "//pkg/ccl/workloadccl/allccl:allccl_test", - "//pkg/ccl/workloadccl:workloadccl_test", - "//pkg/cli/clierror:clierror_test", - "//pkg/cli/clisqlclient:clisqlclient_test", - "//pkg/cli/clisqlexec:clisqlexec_test", - "//pkg/cli/clisqlshell:clisqlshell_test", - "//pkg/cli/democluster:democluster_test", - "//pkg/cli/exit:exit_test", - "//pkg/cli:cli_test", - "//pkg/cloud/amazon:amazon_test", - "//pkg/cloud/azure:azure_test", - "//pkg/cloud/gcp:gcp_test", - "//pkg/cloud/httpsink:httpsink_test", - "//pkg/cloud/impl/cloudimpltests:cloudimpltests_test", - "//pkg/cloud/nodelocal:nodelocal_test", - "//pkg/cloud/nullsink:nullsink_test", - "//pkg/cloud/userfile/filetable/filetabletest:filetabletest_test", - "//pkg/cloud/userfile:userfile_test", - "//pkg/clusterversion:clusterversion_test", - "//pkg/cmd/bazci:bazci_test", - "//pkg/cmd/cmpconn:cmpconn_test", - "//pkg/cmd/cockroach-oss:cockroach-oss_test", - "//pkg/cmd/dev:dev_test", - "//pkg/cmd/docgen/extract:extract_test", - "//pkg/cmd/docs-issue-generation:docs-issue-generation_test", - "//pkg/cmd/github-post:github-post_test", - "//pkg/cmd/github-pull-request-make:github-pull-request-make_test", - "//pkg/cmd/internal/issues:issues_test", - "//pkg/cmd/label-merged-pr:label-merged-pr_test", - "//pkg/cmd/mirror:mirror_test", - "//pkg/cmd/prereqs:prereqs_test", - "//pkg/cmd/publish-artifacts:publish-artifacts_test", - "//pkg/cmd/publish-provisional-artifacts:publish-provisional-artifacts_test", - "//pkg/cmd/reduce/reduce/reducesql:reducesql_test", - "//pkg/cmd/reduce/reduce:reduce_test", - "//pkg/cmd/release:release_test", - "//pkg/cmd/roachtest/prometheus:prometheus_test", - "//pkg/cmd/roachtest/tests:tests_test", - "//pkg/cmd/roachtest:roachtest_test", - "//pkg/cmd/teamcity-trigger:teamcity-trigger_test", - "//pkg/cmd/testfilter:testfilter_test", - "//pkg/col/coldata:coldata_test", - "//pkg/col/coldataext:coldataext_test", - "//pkg/col/colserde:colserde_test", - "//pkg/config/zonepb:zonepb_test", - "//pkg/config:config_test", - "//pkg/geo/geogen:geogen_test", - "//pkg/geo/geogfn:geogfn_test", - "//pkg/geo/geographiclib:geographiclib_test", - "//pkg/geo/geoindex:geoindex_test", - "//pkg/geo/geomfn:geomfn_test", - "//pkg/geo/geopb:geopb_test", - "//pkg/geo/geoproj:geoproj_test", - "//pkg/geo/geoprojbase:geoprojbase_test", - "//pkg/geo/geos:geos_test", - "//pkg/geo/geotransform:geotransform_test", - "//pkg/geo/twkb:twkb_test", - "//pkg/geo:geo_test", - "//pkg/gossip:gossip_test", - "//pkg/internal/client/requestbatcher:requestbatcher_test", - "//pkg/internal/codeowners:codeowners_test", - "//pkg/internal/rsg/yacc:yacc_test", - "//pkg/internal/rsg:rsg_test", - "//pkg/internal/sqlsmith:sqlsmith_test", - "//pkg/internal/team:team_test", - "//pkg/jobs/joberror:joberror_test", - "//pkg/jobs/jobsprotectedts:jobsprotectedts_test", - "//pkg/jobs:jobs_test", - "//pkg/keys:keys_test", - "//pkg/kv/bulk:bulk_test", - "//pkg/kv/kvclient/kvcoord:kvcoord_test", - "//pkg/kv/kvclient/rangecache:rangecache_test", - "//pkg/kv/kvclient/rangefeed/rangefeedbuffer:rangefeedbuffer_test", - "//pkg/kv/kvclient/rangefeed/rangefeedcache:rangefeedcache_test", - "//pkg/kv/kvclient/rangefeed:rangefeed_test", - "//pkg/kv/kvnemesis:kvnemesis_test", - "//pkg/kv/kvprober:kvprober_test", - "//pkg/kv/kvserver/abortspan:abortspan_test", - "//pkg/kv/kvserver/apply:apply_test", - "//pkg/kv/kvserver/batcheval/result:result_test", - "//pkg/kv/kvserver/batcheval:batcheval_test", - "//pkg/kv/kvserver/closedts/sidetransport:sidetransport_test", - "//pkg/kv/kvserver/closedts/tracker:tracker_test", - "//pkg/kv/kvserver/closedts:closedts_test", - "//pkg/kv/kvserver/concurrency/lock:lock_test", - "//pkg/kv/kvserver/concurrency/poison:poison_test", - "//pkg/kv/kvserver/concurrency:concurrency_test", - "//pkg/kv/kvserver/gc:gc_test", - "//pkg/kv/kvserver/idalloc:idalloc_test", - "//pkg/kv/kvserver/intentresolver:intentresolver_test", - "//pkg/kv/kvserver/liveness:liveness_test", - "//pkg/kv/kvserver/loqrecovery:loqrecovery_test", - "//pkg/kv/kvserver/protectedts/ptcache:ptcache_test", - "//pkg/kv/kvserver/protectedts/ptreconcile:ptreconcile_test", - "//pkg/kv/kvserver/protectedts/ptstorage:ptstorage_test", - "//pkg/kv/kvserver/protectedts:protectedts_test", - "//pkg/kv/kvserver/raftentry:raftentry_test", - "//pkg/kv/kvserver/rangefeed:rangefeed_test", - "//pkg/kv/kvserver/rditer:rditer_test", - "//pkg/kv/kvserver/reports:reports_test", - "//pkg/kv/kvserver/spanlatch:spanlatch_test", - "//pkg/kv/kvserver/spanset:spanset_test", - "//pkg/kv/kvserver/split:split_test", - "//pkg/kv/kvserver/stateloader:stateloader_test", - "//pkg/kv/kvserver/tenantrate:tenantrate_test", - "//pkg/kv/kvserver/tscache:tscache_test", - "//pkg/kv/kvserver/txnrecovery:txnrecovery_test", - "//pkg/kv/kvserver/txnwait:txnwait_test", - "//pkg/kv/kvserver/uncertainty:uncertainty_test", - "//pkg/kv/kvserver:kvserver_test", - "//pkg/kv:kv_test", - "//pkg/migration/migrationcluster:migrationcluster_test", - "//pkg/migration/migrationmanager:migrationmanager_test", - "//pkg/migration/migrations:migrations_test", - "//pkg/roachpb:roachpb_test", - "//pkg/roachpb:string_test", - "//pkg/roachprod/cloud:cloud_test", - "//pkg/roachprod/config:config_test", - "//pkg/roachprod/install:install_test", - "//pkg/roachprod/ssh:ssh_test", - "//pkg/roachprod/vm:vm_test", - "//pkg/rpc/nodedialer:nodedialer_test", - "//pkg/rpc:rpc_test", - "//pkg/security/certmgr:certmgr_test", - "//pkg/security/sessionrevival:sessionrevival_test", - "//pkg/security:security_test", - "//pkg/server/debug/goroutineui:goroutineui_test", - "//pkg/server/debug/pprofui:pprofui_test", - "//pkg/server/debug:debug_test", - "//pkg/server/diagnostics:diagnostics_test", - "//pkg/server/dumpstore:dumpstore_test", - "//pkg/server/goroutinedumper:goroutinedumper_test", - "//pkg/server/heapprofiler:heapprofiler_test", - "//pkg/server/pgurl:pgurl_test", - "//pkg/server/serverpb:serverpb_test", - "//pkg/server/settingswatcher:settingswatcher_test", - "//pkg/server/status:status_test", - "//pkg/server/systemconfigwatcher:systemconfigwatcher_test", - "//pkg/server/telemetry:telemetry_test", - "//pkg/server/tenantsettingswatcher:tenantsettingswatcher_test", - "//pkg/server/tracedumper:tracedumper_test", - "//pkg/server:server_test", - "//pkg/settings:settings_test", - "//pkg/spanconfig/spanconfigkvaccessor:spanconfigkvaccessor_test", - "//pkg/spanconfig/spanconfigkvsubscriber:spanconfigkvsubscriber_test", - "//pkg/spanconfig/spanconfigmanager:spanconfigmanager_test", - "//pkg/spanconfig/spanconfigptsreader:spanconfigptsreader_test", - "//pkg/spanconfig/spanconfigreconciler:spanconfigreconciler_test", - "//pkg/spanconfig/spanconfigsqltranslator:spanconfigsqltranslator_test", - "//pkg/spanconfig/spanconfigsqlwatcher:spanconfigsqlwatcher_test", - "//pkg/spanconfig/spanconfigstore:spanconfigstore_test", - "//pkg/spanconfig/spanconfigtestutils:spanconfigtestutils_test", - "//pkg/spanconfig:spanconfig_test", - "//pkg/sql/backfill:backfill_test", - "//pkg/sql/catalog/bootstrap:bootstrap_test", - "//pkg/sql/catalog/catalogkeys:catalogkeys_test", - "//pkg/sql/catalog/catformat:catformat_test", - "//pkg/sql/catalog/catpb:catpb_test", - "//pkg/sql/catalog/catprivilege:catprivilege_test", - "//pkg/sql/catalog/colinfo:colinfo_test", - "//pkg/sql/catalog/dbdesc:dbdesc_test", - "//pkg/sql/catalog/descpb:descpb_test", - "//pkg/sql/catalog/descs:descs_test", - "//pkg/sql/catalog/hydratedtables:hydratedtables_test", - "//pkg/sql/catalog/internal/validate:validate_test", - "//pkg/sql/catalog/lease:lease_test", - "//pkg/sql/catalog/multiregion:multiregion_test", - "//pkg/sql/catalog/nstree:nstree_test", - "//pkg/sql/catalog/resolver:resolver_test", - "//pkg/sql/catalog/schemadesc:schemadesc_test", - "//pkg/sql/catalog/schemaexpr:schemaexpr_test", - "//pkg/sql/catalog/seqexpr:seqexpr_test", - "//pkg/sql/catalog/systemschema:systemschema_test", - "//pkg/sql/catalog/tabledesc:tabledesc_test", - "//pkg/sql/catalog/typedesc:typedesc_test", - "//pkg/sql/catalog:catalog_test", - "//pkg/sql/colcontainer:colcontainer_test", - "//pkg/sql/colconv:colconv_test", - "//pkg/sql/colencoding:colencoding_test", - "//pkg/sql/colexec/colbuilder:colbuilder_test", - "//pkg/sql/colexec/colexecagg:colexecagg_test", - "//pkg/sql/colexec/colexecargs:colexecargs_test", - "//pkg/sql/colexec/colexecbase:colexecbase_test", - "//pkg/sql/colexec/colexeccmp:colexeccmp_test", - "//pkg/sql/colexec/colexechash:colexechash_test", - "//pkg/sql/colexec/colexecjoin:colexecjoin_test", - "//pkg/sql/colexec/colexecproj:colexecproj_test", - "//pkg/sql/colexec/colexecsel:colexecsel_test", - "//pkg/sql/colexec/colexecspan:colexecspan_test", - "//pkg/sql/colexec/colexectestutils:colexectestutils_test", - "//pkg/sql/colexec/colexecutils:colexecutils_test", - "//pkg/sql/colexec/colexecwindow:colexecwindow_test", - "//pkg/sql/colexec/execgen/cmd/execgen:execgen_test", - "//pkg/sql/colexec/execgen:execgen_test", - "//pkg/sql/colexec:colexec_test", - "//pkg/sql/colexecerror:colexecerror_test", - "//pkg/sql/colexecop:colexecop_test", - "//pkg/sql/colfetcher:colfetcher_test", - "//pkg/sql/colflow/colrpc:colrpc_test", - "//pkg/sql/colflow:colflow_test", - "//pkg/sql/colmem:colmem_test", - "//pkg/sql/contention/contentionutils:contentionutils_test", - "//pkg/sql/contention/txnidcache:txnidcache_test", - "//pkg/sql/contention:contention_test", - "//pkg/sql/contentionpb:contentionpb_test", - "//pkg/sql/covering:covering_test", - "//pkg/sql/delegate:delegate_test", - "//pkg/sql/distsql:distsql_test", - "//pkg/sql/doctor:doctor_test", - "//pkg/sql/enum:enum_test", - "//pkg/sql/execinfra:execinfra_test", - "//pkg/sql/execinfrapb:execinfrapb_test", - "//pkg/sql/execstats:execstats_test", - "//pkg/sql/flowinfra:flowinfra_test", - "//pkg/sql/gcjob/gcjobnotifier:gcjobnotifier_test", - "//pkg/sql/gcjob:gcjob_test", - "//pkg/sql/gcjob_test:gcjob_test_test", - "//pkg/sql/idxusage:idxusage_test", - "//pkg/sql/importer:importer_test", - "//pkg/sql/inverted:inverted_test", - "//pkg/sql/kvstreamer:kvstreamer_test", - "//pkg/sql/lex:lex_test", - "//pkg/sql/lexbase:lexbase_test", - "//pkg/sql/logictest:logictest_test", - "//pkg/sql/oidext:oidext_test", - "//pkg/sql/opt/bench:bench_test", - "//pkg/sql/opt/cat:cat_test", - "//pkg/sql/opt/constraint:constraint_test", - "//pkg/sql/opt/distribution:distribution_test", - "//pkg/sql/opt/exec/execbuilder:execbuilder_test", - "//pkg/sql/opt/exec/explain:explain_test", - "//pkg/sql/opt/idxconstraint:idxconstraint_test", - "//pkg/sql/opt/indexrec:indexrec_test", - "//pkg/sql/opt/invertedexpr:invertedexpr_test", - "//pkg/sql/opt/invertedidx:invertedidx_test", - "//pkg/sql/opt/memo:memo_test", - "//pkg/sql/opt/norm:norm_test", - "//pkg/sql/opt/opbench:opbench_test", - "//pkg/sql/opt/optbuilder:optbuilder_test", - "//pkg/sql/opt/optgen/cmd/optfmt:optfmt_test", - "//pkg/sql/opt/optgen/cmd/optgen:optgen_test", - "//pkg/sql/opt/optgen/exprgen:exprgen_test", - "//pkg/sql/opt/optgen/lang:lang_test", - "//pkg/sql/opt/ordering:ordering_test", - "//pkg/sql/opt/partialidx:partialidx_test", - "//pkg/sql/opt/partition:partition_test", - "//pkg/sql/opt/props/physical:physical_test", - "//pkg/sql/opt/props:props_test", - "//pkg/sql/opt/testutils/opttester:opttester_test", - "//pkg/sql/opt/testutils/testcat:testcat_test", - "//pkg/sql/opt/testutils:testutils_test", - "//pkg/sql/opt/xform:xform_test", - "//pkg/sql/opt:opt_test", - "//pkg/sql/parser:parser_test", - "//pkg/sql/pgwire/hba:hba_test", - "//pkg/sql/pgwire/identmap:identmap_test", - "//pkg/sql/pgwire/pgerror:pgerror_test", - "//pkg/sql/pgwire/pgwirecancel:pgwirecancel_test", - "//pkg/sql/pgwire:pgwire_test", - "//pkg/sql/physicalplan/replicaoracle:replicaoracle_test", - "//pkg/sql/physicalplan:physicalplan_test", - "//pkg/sql/privilege:privilege_test", - "//pkg/sql/protoreflect:protoreflect_test", - "//pkg/sql/querycache:querycache_test", - "//pkg/sql/randgen:randgen_test", - "//pkg/sql/row:row_test", - "//pkg/sql/rowcontainer:rowcontainer_test", - "//pkg/sql/rowenc/keyside:keyside_test", - "//pkg/sql/rowenc/valueside:valueside_test", - "//pkg/sql/rowenc:rowenc_test", - "//pkg/sql/rowexec:rowexec_test", - "//pkg/sql/rowflow:rowflow_test", - "//pkg/sql/scanner:scanner_test", - "//pkg/sql/scheduledlogging:scheduledlogging_test", - "//pkg/sql/schemachange:schemachange_test", - "//pkg/sql/schemachanger/corpus:corpus_test", - "//pkg/sql/schemachanger/rel:rel_test", - "//pkg/sql/schemachanger/scbuild:scbuild_test", - "//pkg/sql/schemachanger/scdecomp:scdecomp_test", - "//pkg/sql/schemachanger/scdeps:scdeps_test", - "//pkg/sql/schemachanger/scexec:scexec_test", - "//pkg/sql/schemachanger/scplan/internal/opgen:opgen_test", - "//pkg/sql/schemachanger/scplan/internal/rules:rules_test", - "//pkg/sql/schemachanger/scplan/internal/scgraph:scgraph_test", - "//pkg/sql/schemachanger/scplan:scplan_test", - "//pkg/sql/schemachanger/screl:screl_test", - "//pkg/sql/schemachanger:schemachanger_test", - "//pkg/sql/sem/builtins:builtins_test", - "//pkg/sql/sem/tree/eval_test:eval_test_test", - "//pkg/sql/sem/tree:tree_test", - "//pkg/sql/sessiondata:sessiondata_test", - "//pkg/sql/sessioninit:sessioninit_test", - "//pkg/sql/span:span_test", - "//pkg/sql/sqlinstance/instanceprovider:instanceprovider_test", - "//pkg/sql/sqlinstance/instancestorage:instancestorage_test", - "//pkg/sql/sqlliveness/slinstance:slinstance_test", - "//pkg/sql/sqlliveness/slstorage:slstorage_test", - "//pkg/sql/sqlstats/persistedsqlstats/sqlstatsutil:sqlstatsutil_test", - "//pkg/sql/sqlstats/persistedsqlstats:persistedsqlstats_test", - "//pkg/sql/sqlstats/sslocal:sslocal_test", - "//pkg/sql/stats:stats_test", - "//pkg/sql/stmtdiagnostics:stmtdiagnostics_test", - "//pkg/sql/tests:tests_test", - "//pkg/sql/ttl/ttljob:ttljob_test", - "//pkg/sql/types:types_test", - "//pkg/sql:sql_test", - "//pkg/startupmigrations/leasemanager:leasemanager_test", - "//pkg/startupmigrations:startupmigrations_test", - "//pkg/storage/enginepb:enginepb_test", - "//pkg/storage/fs:fs_test", - "//pkg/storage/metamorphic:metamorphic_test", - "//pkg/storage:storage_test", - "//pkg/testutils/floatcmp:floatcmp_test", - "//pkg/testutils/keysutils:keysutils_test", - "//pkg/testutils/lint/passes/errwrap:errwrap_test", - "//pkg/testutils/lint/passes/fmtsafe:fmtsafe_test", - "//pkg/testutils/lint/passes/forbiddenmethod:forbiddenmethod_test", - "//pkg/testutils/lint/passes/hash:hash_test", - "//pkg/testutils/lint/passes/leaktestcall:leaktestcall_test", - "//pkg/testutils/lint/passes/nilness:nilness_test", - "//pkg/testutils/lint/passes/nocopy:nocopy_test", - "//pkg/testutils/lint/passes/passesutil:passesutil_test", - "//pkg/testutils/lint/passes/returnerrcheck:returnerrcheck_test", - "//pkg/testutils/lint/passes/timer:timer_test", - "//pkg/testutils/lint/passes/unconvert:unconvert_test", - "//pkg/testutils/sqlutils:sqlutils_test", - "//pkg/testutils/testcluster:testcluster_test", - "//pkg/testutils/zerofields:zerofields_test", - "//pkg/testutils:testutils_test", - "//pkg/ts/testmodel:testmodel_test", - "//pkg/ts:ts_test", - "//pkg/util/admission:admission_test", - "//pkg/util/binfetcher:binfetcher_test", - "//pkg/util/bitarray:bitarray_test", - "//pkg/util/buildutil:buildutil_test", - "//pkg/util/cache:cache_test", - "//pkg/util/caller:caller_test", - "//pkg/util/cgroups:cgroups_test", - "//pkg/util/circuit:circuit_test", - "//pkg/util/cloudinfo:cloudinfo_test", - "//pkg/util/contextutil:contextutil_test", - "//pkg/util/ctxgroup:ctxgroup_test", - "//pkg/util/duration:duration_test", - "//pkg/util/encoding/csv:csv_test", - "//pkg/util/encoding:encoding_test", - "//pkg/util/envutil:envutil_test", - "//pkg/util/errorutil/unimplemented:unimplemented_test", - "//pkg/util/errorutil:errorutil_test", - "//pkg/util/flagutil:flagutil_test", - "//pkg/util/fsm:fsm_test", - "//pkg/util/fuzzystrmatch:fuzzystrmatch_test", - "//pkg/util/goschedstats:goschedstats_test", - "//pkg/util/grpcutil:grpcutil_test", - "//pkg/util/hlc:hlc_test", - "//pkg/util/httputil:httputil_test", - "//pkg/util/humanizeutil:humanizeutil_test", - "//pkg/util/interval/generic:generic_test", - "//pkg/util/interval:interval_test", - "//pkg/util/ipaddr:ipaddr_test", - "//pkg/util/json:json_test", - "//pkg/util/limit:limit_test", - "//pkg/util/log/eventpb:eventpb_test", - "//pkg/util/log/logconfig:logconfig_test", - "//pkg/util/log/logcrash:logcrash_test", - "//pkg/util/log/testshout:testshout_test", - "//pkg/util/log:log_test", - "//pkg/util/metric/aggmetric:aggmetric_test", - "//pkg/util/metric:metric_test", - "//pkg/util/mon:mon_test", - "//pkg/util/netutil/addr:addr_test", - "//pkg/util/netutil:netutil_test", - "//pkg/util/optional:optional_test", - "//pkg/util/pretty:pretty_test", - "//pkg/util/protoutil:protoutil_test", - "//pkg/util/quotapool:quotapool_test", - "//pkg/util/randutil:randutil_test", - "//pkg/util/retry:retry_test", - "//pkg/util/ring:ring_test", - "//pkg/util/sdnotify:sdnotify_test", - "//pkg/util/search:search_test", - "//pkg/util/shuffle:shuffle_test", - "//pkg/util/span:span_test", - "//pkg/util/startup:startup_test", - "//pkg/util/stop:stop_test", - "//pkg/util/stringarena:stringarena_test", - "//pkg/util/syncutil/singleflight:singleflight_test", - "//pkg/util/syncutil:syncutil_test", - "//pkg/util/sysutil:sysutil_test", - "//pkg/util/targz:targz_test", - "//pkg/util/timeofday:timeofday_test", - "//pkg/util/timetz:timetz_test", - "//pkg/util/timeutil/pgdate:pgdate_test", - "//pkg/util/timeutil:timeutil_test", - "//pkg/util/tracing/collector:collector_test", - "//pkg/util/tracing/service:service_test", - "//pkg/util/tracing:tracing_test", - "//pkg/util/treeprinter:treeprinter_test", - "//pkg/util/uint128:uint128_test", - "//pkg/util/ulid:ulid_test", - "//pkg/util/unique:unique_test", - "//pkg/util/uuid:uuid_test", - "//pkg/util/version:version_test", - "//pkg/util:util_test", - "//pkg/workload/bank:bank_test", - "//pkg/workload/cli:cli_test", - "//pkg/workload/faker:faker_test", - "//pkg/workload/histogram:histogram_test", - "//pkg/workload/movr:movr_test", - "//pkg/workload/tpcc:tpcc_test", - "//pkg/workload/tpch:tpch_test", - "//pkg/workload/workloadimpl:workloadimpl_test", - "//pkg/workload/workloadsql:workloadsql_test", - "//pkg/workload/ycsb:ycsb_test", - "//pkg/workload:workload_test", -] - -# These suites run only the tests with the appropriate "size" (excepting those -# tagged "broken_in_bazel", "flaky", or "integration") [1]. Note that tests have -# a default timeout depending on the size [2]. - -# [1] https://docs.bazel.build/versions/master/be/general.html#test_suite -# [2] https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-tests - -test_suite( - name = "small_tests", - tags = [ - "-broken_in_bazel", - "-flaky", - "-integration", - "small", - ], - tests = ALL_TESTS, -) - -test_suite( - name = "medium_tests", - tags = [ - "-broken_in_bazel", - "-flaky", - "-integration", - "medium", - ], - tests = ALL_TESTS, -) - -test_suite( - name = "large_tests", - tags = [ - "-broken_in_bazel", - "-flaky", - "-integration", - "large", - ], - tests = ALL_TESTS, -) - -test_suite( - name = "enormous_tests", - tags = [ - "-broken_in_bazel", - "-flaky", - "-integration", - "enormous", - ], - tests = ALL_TESTS, -) diff --git a/pkg/acceptance/BUILD.bazel b/pkg/acceptance/BUILD.bazel deleted file mode 100644 index 83d054fc4b0..00000000000 --- a/pkg/acceptance/BUILD.bazel +++ /dev/null @@ -1,59 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "acceptance", - srcs = [ - "flags.go", - "test_acceptance.go", # keep - "util_cluster.go", - "util_docker.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/acceptance", - visibility = ["//visibility:public"], - deps = [ - "//pkg/acceptance/cluster", - "//pkg/base", - "//pkg/build/bazel", - "//pkg/security", - "//pkg/security/securitytest", #keep - "//pkg/server", # keep - "//pkg/testutils", - "//pkg/testutils/serverutils", # keep - "//pkg/testutils/testcluster", # keep - "//pkg/util/log", - "//pkg/util/randutil", # keep - "//pkg/util/stop", - "@com_github_cockroachdb_errors//:errors", - "@com_github_containerd_containerd//platforms", - "@com_github_docker_docker//api/types", - "@com_github_docker_docker//api/types/container", - ], -) - -go_test( - name = "acceptance_test", - size = "enormous", - srcs = [ - "adapter_test.go", - "cli_test.go", - "compose_test.go", - "debug_remote_test.go", - "main_test.go", - ], - data = glob([ - "testdata/**", - "compose/**", - ]) + [ - "//pkg/cli:interactive_tests", - ], - embed = [":acceptance"], - gotags = ["acceptance"], - tags = ["integration"], - deps = [ - "//pkg/acceptance/cluster", - "//pkg/build/bazel", - "//pkg/security", - "//pkg/testutils/skip", - "//pkg/util/log", - ], -) diff --git a/pkg/acceptance/cluster/BUILD.bazel b/pkg/acceptance/cluster/BUILD.bazel deleted file mode 100644 index 199627fdfa8..00000000000 --- a/pkg/acceptance/cluster/BUILD.bazel +++ /dev/null @@ -1,63 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "cluster", - srcs = [ - "certs.go", - "cluster.go", - "docker.go", - "dockercluster.go", - "http.go", - ], - embed = [":cluster_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/acceptance/cluster", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/config/zonepb", - "//pkg/roachpb", - "//pkg/security", - "//pkg/util/contextutil", - "//pkg/util/log", - "//pkg/util/log/logflags", - "//pkg/util/log/severity", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_containerd_containerd//platforms", - "@com_github_docker_distribution//reference", - "@com_github_docker_docker//api/types", - "@com_github_docker_docker//api/types/container", - "@com_github_docker_docker//api/types/events", - "@com_github_docker_docker//api/types/filters", - "@com_github_docker_docker//api/types/network", - "@com_github_docker_docker//client", - "@com_github_docker_docker//pkg/jsonmessage", - "@com_github_docker_docker//pkg/stdcopy", - "@com_github_docker_go_connections//nat", - "@com_github_mattn_go_isatty//:go-isatty", - "@com_github_opencontainers_image_spec//specs-go/v1:specs-go", - ], -) - -proto_library( - name = "cluster_proto", - srcs = ["testconfig.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "cluster_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/acceptance/cluster", - proto = ":cluster_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) diff --git a/pkg/acceptance/localcluster/BUILD.bazel b/pkg/acceptance/localcluster/BUILD.bazel deleted file mode 100644 index e70361be14f..00000000000 --- a/pkg/acceptance/localcluster/BUILD.bazel +++ /dev/null @@ -1,33 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "localcluster", - srcs = [ - "cluster.go", - "localcluster.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/acceptance/localcluster", - visibility = ["//visibility:public"], - deps = [ - "//pkg/acceptance/cluster", - "//pkg/base", - "//pkg/config/zonepb", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/security", - "//pkg/server/serverpb", - "//pkg/settings/cluster", - "//pkg/testutils", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_gogo_protobuf//proto", - "@com_github_lib_pq//:pq", - ], -) diff --git a/pkg/acceptance/localcluster/tc/BUILD.bazel b/pkg/acceptance/localcluster/tc/BUILD.bazel deleted file mode 100644 index c758ad5a9e7..00000000000 --- a/pkg/acceptance/localcluster/tc/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "tc", - srcs = ["tc.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/acceptance/localcluster/tc", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) diff --git a/pkg/base/BUILD.bazel b/pkg/base/BUILD.bazel deleted file mode 100644 index e51d80458d5..00000000000 --- a/pkg/base/BUILD.bazel +++ /dev/null @@ -1,76 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "base", - srcs = [ - "addr_validation.go", - "cluster_id.go", - "config.go", - "constants.go", - "license.go", - "node_id.go", - "store_spec.go", - "test_server_args.go", - "testing_knobs.go", - "zone.go", - ":gen-clusterreplication-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/base", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cli/cliflags", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/util", - "//pkg/util/envutil", - "//pkg/util/errorutil", - "//pkg/util/humanizeutil", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/netutil/addr", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_pebble//:pebble", - "@com_github_cockroachdb_redact//:redact", - "@com_github_dustin_go_humanize//:go-humanize", - "@com_github_spf13_pflag//:pflag", - ], -) - -go_test( - name = "base_test", - size = "small", - srcs = [ - "addr_validation_test.go", - "cluster_id_test.go", - "main_test.go", - "node_id_test.go", - "store_spec_test.go", - ], - deps = [ - ":base", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/testutils", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) - -stringer( - name = "gen-clusterreplication-stringer", - src = "test_server_args.go", - typ = "TestClusterReplicationMode", -) diff --git a/pkg/bench/BUILD.bazel b/pkg/bench/BUILD.bazel deleted file mode 100644 index 5c8ba466711..00000000000 --- a/pkg/bench/BUILD.bazel +++ /dev/null @@ -1,49 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "bench", - srcs = [ - "foreachdb.go", - "query.go", - "setup.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/bench", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "@com_github_go_sql_driver_mysql//:mysql", - "@com_github_lib_pq//:pq", - ], -) - -go_test( - name = "bench_test", - size = "small", - srcs = [ - "bench_test.go", - "main_test.go", - "pgbench_test.go", - ], - embed = [":bench"], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/tracing", - "@com_github_go_sql_driver_mysql//:mysql", - "@com_github_lib_pq//:pq", - ], -) diff --git a/pkg/bench/cmd/pgbenchsetup/BUILD.bazel b/pkg/bench/cmd/pgbenchsetup/BUILD.bazel deleted file mode 100644 index 4512ccca679..00000000000 --- a/pkg/bench/cmd/pgbenchsetup/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "pgbenchsetup_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/bench/cmd/pgbenchsetup", - visibility = ["//visibility:private"], - deps = [ - "//pkg/bench", - "@com_github_lib_pq//:pq", - ], -) - -go_binary( - name = "pgbenchsetup", - embed = [":pgbenchsetup_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/bench/rttanalysis/BUILD.bazel b/pkg/bench/rttanalysis/BUILD.bazel deleted file mode 100644 index 797bdf94d05..00000000000 --- a/pkg/bench/rttanalysis/BUILD.bazel +++ /dev/null @@ -1,62 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rttanalysis", - srcs = [ - "cluster.go", - "registry.go", - "rtt_analysis_bench.go", - "testing_shims.go", - "validate_benchmark_data.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/bench/rttanalysis", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/kv/kvclient/kvcoord", - "//pkg/sql", - "//pkg/testutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/util", - "//pkg/util/log", - "//pkg/util/quotapool", - "//pkg/util/syncutil", - "//pkg/util/system", - "//pkg/util/tracing", - "//pkg/util/tracing/tracingpb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) - -go_test( - name = "rttanalysis_test", - size = "large", - srcs = [ - "alter_table_bench_test.go", - "bench_test.go", - "create_alter_role_bench_test.go", - "drop_bench_test.go", - "grant_revoke_bench_test.go", - "grant_revoke_role_bench_test.go", - "orm_queries_bench_test.go", - "rtt_analysis_test.go", - "system_bench_test.go", - "truncate_bench_test.go", - "validate_benchmark_data_test.go", - "virtual_table_bench_test.go", - ], - data = glob(["testdata/**"]), - embed = [":rttanalysis"], - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/randutil", - ], -) diff --git a/pkg/bench/tpcc/BUILD.bazel b/pkg/bench/tpcc/BUILD.bazel deleted file mode 100644 index 75a8c15d71a..00000000000 --- a/pkg/bench/tpcc/BUILD.bazel +++ /dev/null @@ -1,42 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "tpcc", - srcs = ["tpcc_bench.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/bench/tpcc", - visibility = ["//visibility:public"], -) - -go_test( - name = "tpcc_test", - srcs = [ - "main_test.go", - "subprocess_commands_test.go", - "subprocess_utils_test.go", - "tpcc_bench_generate_data_test.go", - "tpcc_bench_options_test.go", - "tpcc_bench_test.go", - ], - embed = [":tpcc"], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/envutil", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/workload", - "//pkg/workload/histogram", - "//pkg/workload/tpcc", - "//pkg/workload/workloadsql", - "@com_github_cockroachdb_pebble//vfs", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/blobs/BUILD.bazel b/pkg/blobs/BUILD.bazel deleted file mode 100644 index 719c6e42e5a..00000000000 --- a/pkg/blobs/BUILD.bazel +++ /dev/null @@ -1,57 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "blobs", - srcs = [ - "client.go", - "local_storage.go", - "service.go", - "stream.go", - "testutils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/blobs", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/blobs/blobspb", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/util/fileutil", - "//pkg/util/ioctx", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//metadata", - "@org_golang_google_grpc//status", - ], -) - -go_test( - name = "blobs_test", - size = "small", - srcs = [ - "bench_test.go", - "client_test.go", - "local_storage_test.go", - "service_test.go", - ], - embed = [":blobs"], - deps = [ - "//pkg/base", - "//pkg/blobs/blobspb", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/testutils", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/ioctx", - "//pkg/util/leaktest", - "//pkg/util/netutil", - "//pkg/util/stop", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_stretchr_testify//assert", - ], -) diff --git a/pkg/blobs/blobspb/BUILD.bazel b/pkg/blobs/blobspb/BUILD.bazel deleted file mode 100644 index 129471aee0a..00000000000 --- a/pkg/blobs/blobspb/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -proto_library( - name = "blobspb_proto", - srcs = ["blobs.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "blobspb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/blobs/blobspb", - proto = ":blobspb_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) - -go_library( - name = "blobspb", - embed = [":blobspb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/blobs/blobspb", - visibility = ["//visibility:public"], -) diff --git a/pkg/build/BUILD.bazel b/pkg/build/BUILD.bazel deleted file mode 100644 index 2fdb50f1050..00000000000 --- a/pkg/build/BUILD.bazel +++ /dev/null @@ -1,45 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "build", - srcs = [ - "cgo_compiler.go", - "cgo_compiler_nocgo.go", - "info.go", - ], - cgo = True, - embed = [":build_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/build", - visibility = ["//visibility:public"], - x_defs = { - "github.com/cockroachdb/cockroach/pkg/build.cgoTargetTriple": "{STABLE_BUILD_TARGET_TRIPLE}", - "github.com/cockroachdb/cockroach/pkg/build.channel": "{STABLE_BUILD_CHANNEL}", - "github.com/cockroachdb/cockroach/pkg/build.rev": "{BUILD_REV}", - "github.com/cockroachdb/cockroach/pkg/build.tag": "{BUILD_TAG}", - "github.com/cockroachdb/cockroach/pkg/build.typ": "{STABLE_BUILD_TYPE}", - "github.com/cockroachdb/cockroach/pkg/build.utcTime": "{BUILD_UTCTIME}", - }, - deps = [ - "//pkg/util/envutil", - "//pkg/util/version", - ], -) - -proto_library( - name = "build_proto", - srcs = ["info.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "build_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/build", - proto = ":build_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) diff --git a/pkg/build/bazel/BUILD.bazel b/pkg/build/bazel/BUILD.bazel deleted file mode 100644 index ba8d76a03fb..00000000000 --- a/pkg/build/bazel/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "bazel", - srcs = ["bazel.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/build/bazel", - visibility = ["//visibility:public"], - deps = ["@io_bazel_rules_go//go/tools/bazel:go_default_library"], -) diff --git a/pkg/build/starlarkutil/BUILD.bazel b/pkg/build/starlarkutil/BUILD.bazel deleted file mode 100644 index 4f1a3f33b56..00000000000 --- a/pkg/build/starlarkutil/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "starlarkutil", - srcs = ["starlarkutil.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/build/starlarkutil", - visibility = ["//visibility:public"], - deps = ["@com_github_google_skylark//syntax"], -) - -go_test( - name = "starlarkutil_test", - srcs = ["starlarkutil_test.go"], - embed = [":starlarkutil"], - deps = ["@com_github_stretchr_testify//require"], -) diff --git a/pkg/build/util/BUILD.bazel b/pkg/build/util/BUILD.bazel deleted file mode 100644 index 66fdff32211..00000000000 --- a/pkg/build/util/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "util", - srcs = ["util.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/build/util", - visibility = ["//visibility:public"], -) - -go_test( - name = "util_test", - srcs = ["util_test.go"], - embed = [":util"], - deps = ["@com_github_stretchr_testify//require"], -) diff --git a/pkg/cli/BUILD.bazel b/pkg/cli/BUILD.bazel deleted file mode 100644 index e122b3bcf33..00000000000 --- a/pkg/cli/BUILD.bazel +++ /dev/null @@ -1,415 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "cli", - srcs = [ - "absolute_fs.go", - "auth.go", - "cert.go", - "cli.go", - "client_url.go", - "connect.go", - "connect_join.go", - "context.go", - "convert_url.go", - "cpuprofile.go", - "debug.go", - "debug_check_store.go", - "debug_job_trace.go", - "debug_list_files.go", - "debug_logconfig.go", - "debug_merge_logs.go", - "debug_recover_loss_of_quorum.go", - "debug_reset_quorum.go", - "debug_send_kv_batch.go", - "debug_synctest.go", - "declarative_corpus.go", - "decode.go", - "demo.go", - "demo_telemetry.go", - "doctor.go", - "examples.go", - "flags.go", - "flags_util.go", - "gen.go", - "haproxy.go", - "import.go", - "init.go", - "initial_sql.go", - "log_flags.go", - "mt.go", - "mt_cert.go", - "mt_proxy.go", - "mt_start_sql.go", - "mt_test_directory.go", - "node.go", - "nodelocal.go", - "prefixer.go", - "quit.go", - "sql_client.go", - "sql_shell_cmd.go", - "sqlfmt.go", - "start.go", - "start_jemalloc.go", - "start_unix.go", - "start_windows.go", - "statement_bundle.go", - "statement_diag.go", - "swappable_fs.go", - "testutils.go", - "tsdump.go", - "userfile.go", - "zip.go", - "zip_cluster_wide.go", - "zip_cmd.go", - "zip_helpers.go", - "zip_per_node.go", - "zip_table_registry.go", - ":gen-keytype-stringer", # keep - ], - # keep - cdeps = [ - "@cockroach//c-deps:libjemalloc", - ], - cgo = True, - # keep - clinkopts = select({ - "@io_bazel_rules_go//go/platform:android": [ - "-lrt -lm -lpthread", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "-lm", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "-lm", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "-lrt -lm -lpthread", - ], - "//conditions:default": [], - }), - # keep - cppopts = [ - "-DJEMALLOC_NO_DEMANGLE", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cli", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/build", - "//pkg/ccl/sqlproxyccl", - "//pkg/ccl/sqlproxyccl/tenantdirsvr", - "//pkg/cli/clicfg", - "//pkg/cli/clierror", - "//pkg/cli/clierrorplus", - "//pkg/cli/cliflags", - "//pkg/cli/clisqlcfg", - "//pkg/cli/clisqlclient", - "//pkg/cli/clisqlexec", - "//pkg/cli/clisqlshell", - "//pkg/cli/democluster", - "//pkg/cli/exit", - "//pkg/cli/syncbench", - "//pkg/cloud", - "//pkg/cloud/impl:cloudimpl", - "//pkg/cloud/userfile", - "//pkg/clusterversion", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/docs", - "//pkg/geo/geos", - "//pkg/gossip", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/gc", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/kv/kvserver/loqrecovery", - "//pkg/kv/kvserver/loqrecovery/loqrecoverypb", - "//pkg/kv/kvserver/rditer", - "//pkg/kv/kvserver/stateloader", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/server/debug", - "//pkg/server/dumpstore", - "//pkg/server/heapprofiler", - "//pkg/server/pgurl", - "//pkg/server/serverpb", - "//pkg/server/status", - "//pkg/server/status/statuspb", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/descbuilder", - "//pkg/sql/catalog/descpb", - "//pkg/sql/doctor", - "//pkg/sql/execinfrapb", - "//pkg/sql/lexbase", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/protoreflect", - "//pkg/sql/row", - "//pkg/sql/rowenc", - "//pkg/sql/schemachanger/corpus", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scplan", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlstats", - "//pkg/startupmigrations", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/storage/fs", - "//pkg/testutils/serverutils", - "//pkg/ts", - "//pkg/ts/tspb", - "//pkg/util", - "//pkg/util/cgroups", - "//pkg/util/contextutil", - "//pkg/util/encoding", - "//pkg/util/envutil", - "//pkg/util/flagutil", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/humanizeutil", - "//pkg/util/ioctx", - "//pkg/util/iterutil", - "//pkg/util/keysutil", - "//pkg/util/log", - "//pkg/util/log/channel", - "//pkg/util/log/logconfig", - "//pkg/util/log/logcrash", - "//pkg/util/log/logflags", - "//pkg/util/log/logpb", - "//pkg/util/log/severity", - "//pkg/util/netutil/addr", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/retry", - "//pkg/util/sdnotify", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/sysutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/tracing/zipper", - "//pkg/util/uuid", - "//pkg/workload", - "//pkg/workload/bank", - "//pkg/workload/bulkingest", - "//pkg/workload/cli", - "//pkg/workload/examples", - "//pkg/workload/kv", - "//pkg/workload/movr", - "//pkg/workload/tpcc", - "//pkg/workload/tpch", - "//pkg/workload/ttllogger", - "//pkg/workload/workloadsql", - "//pkg/workload/ycsb", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//hintdetail", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_pebble//tool", - "@com_github_cockroachdb_pebble//vfs", - "@com_github_cockroachdb_redact//:redact", - "@com_github_cockroachdb_ttycolor//:ttycolor", - "@com_github_dustin_go_humanize//:go-humanize", - "@com_github_gogo_protobuf//jsonpb", - "@com_github_kr_pretty//:pretty", - "@com_github_lib_pq//:pq", - "@com_github_marusama_semaphore//:semaphore", - "@com_github_mattn_go_isatty//:go-isatty", - "@com_github_spf13_cobra//:cobra", - "@com_github_spf13_cobra//doc", - "@com_github_spf13_pflag//:pflag", - "@in_gopkg_yaml_v2//:yaml_v2", - "@io_etcd_go_etcd_raft_v3//raftpb", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//status", - "@org_golang_x_sync//errgroup", - ] + select({ - "@io_bazel_rules_go//go/platform:aix": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:android": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:illumos": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:js": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:plan9": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "@org_golang_x_sys//unix", - ], - "//conditions:default": [], - }), -) - -go_test( - name = "cli_test", - size = "large", - srcs = [ - "cert_test.go", - "cli_debug_test.go", - "cli_test.go", - "connect_join_test.go", - "convert_url_test.go", - "debug_check_store_test.go", - "debug_job_trace_test.go", - "debug_list_files_test.go", - "debug_merge_logs_test.go", - "debug_recover_loss_of_quorum_test.go", - "debug_send_kv_batch_test.go", - "debug_test.go", - "declarative_corpus_test.go", - "decode_test.go", - "demo_locality_test.go", - "demo_test.go", - "doctor_test.go", - "flags_test.go", - "gen_test.go", - "haproxy_test.go", - "import_test.go", - "log_flags_test.go", - "main_test.go", - "node_test.go", - "nodelocal_test.go", - "prefixer_test.go", - "quit_test.go", - "sqlfmt_test.go", - "start_linux_test.go", - "start_test.go", - "statement_bundle_test.go", - "statement_diag_test.go", - "userfiletable_test.go", - "workload_test.go", - "zip_helpers_test.go", - "zip_table_registry_test.go", - "zip_tenant_test.go", - "zip_test.go", - ], - data = glob(["testdata/**"]), - embed = [":cli"], - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/build", - "//pkg/ccl/kvccl/kvtenantccl", - "//pkg/cli/clicfg", - "//pkg/cli/clierror", - "//pkg/cli/clierrorplus", - "//pkg/cli/cliflags", - "//pkg/cli/clisqlcfg", - "//pkg/cli/clisqlclient", - "//pkg/cli/clisqlexec", - "//pkg/cli/democluster", - "//pkg/cli/exit", - "//pkg/gossip", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/kv/kvserver/loqrecovery/loqrecoverypb", - "//pkg/kv/kvserver/stateloader", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/server/serverpb", - "//pkg/server/status", - "//pkg/server/status/statuspb", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog/descpb", - "//pkg/sql/protoreflect", - "//pkg/sql/tests", - "//pkg/storage", - "//pkg/testutils", - "//pkg/testutils/buildutil", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/ioctx", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/log/logconfig", - "//pkg/util/log/logpb", - "//pkg/util/protoutil", - "//pkg/util/stop", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/workload/examples", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_pebble//vfs", - "@com_github_spf13_cobra//:cobra", - "@com_github_spf13_pflag//:pflag", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) - -stringer( - name = "gen-keytype-stringer", - src = "flags_util.go", - typ = "keyType", -) - -filegroup( - name = "interactive_tests", - srcs = glob( - ["interactive_tests/**"], - # TODO(rail): The following tests fail under bazel. - # https://github.com/cockroachdb/cockroach/issues/71932, aka - # "broken_in_bazel" - exclude = [ - "*/test_multiline_statements.tcl", - "*/test_pretty.tcl", - "*/test_server_sig.tcl", - ], - ), - visibility = ["//visibility:public"], -) diff --git a/pkg/cli/clicfg/BUILD.bazel b/pkg/cli/clicfg/BUILD.bazel deleted file mode 100644 index 6d4a5c77309..00000000000 --- a/pkg/cli/clicfg/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "clicfg", - srcs = [ - "context.go", - "doc.go", - "embedded.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cli/clicfg", - visibility = ["//visibility:public"], -) diff --git a/pkg/cli/clierror/BUILD.bazel b/pkg/cli/clierror/BUILD.bazel deleted file mode 100644 index 1b3cb0fcb7e..00000000000 --- a/pkg/cli/clierror/BUILD.bazel +++ /dev/null @@ -1,54 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "clierror", - srcs = [ - "check.go", - "cli_error.go", - "doc.go", - "formatted_error.go", - "syntax_error.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cli/clierror", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cli/exit", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/util/log/logpb", - "//pkg/util/log/severity", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//:pq", - ], -) - -go_test( - name = "clierror_test", - srcs = [ - "check_test.go", - "error_test.go", - "main_test.go", - "syntax_error_test.go", - ], - embed = [":clierror"], - deps = [ - "//pkg/build", - "//pkg/cli", - "//pkg/cli/clisqlclient", - "//pkg/cli/exit", - "//pkg/security", - "//pkg/server", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/log/channel", - "//pkg/util/log/severity", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//:pq", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cli/clierrorplus/BUILD.bazel b/pkg/cli/clierrorplus/BUILD.bazel deleted file mode 100644 index 7728e6b8907..00000000000 --- a/pkg/cli/clierrorplus/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "clierrorplus", - srcs = [ - "decorate_error.go", - "doc.go", - "shout.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cli/clierrorplus", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cli/clierror", - "//pkg/cli/clisqlclient", - "//pkg/security", - "//pkg/server", - "//pkg/sql/pgwire/pgcode", - "//pkg/util/grpcutil", - "//pkg/util/log", - "//pkg/util/netutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//:pq", - "@com_github_spf13_cobra//:cobra", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//status", - ], -) diff --git a/pkg/cli/cliflags/BUILD.bazel b/pkg/cli/cliflags/BUILD.bazel deleted file mode 100644 index 0dfecdf167f..00000000000 --- a/pkg/cli/cliflags/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "cliflags", - srcs = [ - "flags.go", - "flags_mt.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cli/cliflags", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build", - "//pkg/docs", - "@com_github_kr_text//:text", - ], -) diff --git a/pkg/cli/clisqlcfg/BUILD.bazel b/pkg/cli/clisqlcfg/BUILD.bazel deleted file mode 100644 index 06dcce92a07..00000000000 --- a/pkg/cli/clisqlcfg/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "clisqlcfg", - srcs = [ - "context.go", - "doc.go", - "opt_bool.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cli/clisqlcfg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cli/clicfg", - "//pkg/cli/clisqlclient", - "//pkg/cli/clisqlexec", - "//pkg/cli/clisqlshell", - "//pkg/server/pgurl", - "@com_github_cockroachdb_errors//:errors", - "@com_github_mattn_go_isatty//:go-isatty", - ], -) diff --git a/pkg/cli/clisqlclient/BUILD.bazel b/pkg/cli/clisqlclient/BUILD.bazel deleted file mode 100644 index 6b2577a039e..00000000000 --- a/pkg/cli/clisqlclient/BUILD.bazel +++ /dev/null @@ -1,57 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "clisqlclient", - srcs = [ - "api.go", - "conn.go", - "context.go", - "copy.go", - "doc.go", - "init_conn_error.go", - "make_query.go", - "parse_bool.go", - "rows.go", - "statement_diag.go", - "string_to_duration.go", - "txn_shim.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cli/clisqlclient", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build", - "//pkg/cli/clicfg", - "//pkg/cli/clierror", - "//pkg/security/pprompt", - "//pkg/sql/scanner", - "//pkg/util/version", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//:pq", - "@com_github_lib_pq_auth_kerberos//:kerberos", - ], -) - -go_test( - name = "clisqlclient_test", - srcs = [ - "conn_test.go", - "main_test.go", - "parse_bool_test.go", - "string_to_duration_test.go", - ], - embed = [":clisqlclient"], - deps = [ - "//pkg/build", - "//pkg/cli", - "//pkg/security", - "//pkg/server", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/util/leaktest", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cli/clisqlexec/BUILD.bazel b/pkg/cli/clisqlexec/BUILD.bazel deleted file mode 100644 index c1c93e344a7..00000000000 --- a/pkg/cli/clisqlexec/BUILD.bazel +++ /dev/null @@ -1,55 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "clisqlexec", - srcs = [ - "context.go", - "doc.go", - "format_table.go", - "format_value.go", - "row_strings.go", - "run_query.go", - "table_display_format.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cli/clisqlexec", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build", - "//pkg/cli/clicfg", - "//pkg/cli/clisqlclient", - "//pkg/sql/lexbase", - "//pkg/util", - "//pkg/util/encoding/csv", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//:pq", - "@com_github_olekukonko_tablewriter//:tablewriter", - "@com_github_spf13_pflag//:pflag", - ], -) - -go_test( - name = "clisqlexec_test", - srcs = [ - "format_html_test.go", - "format_table_test.go", - "format_value_test.go", - "main_test.go", - "run_query_test.go", - ], - embed = [":clisqlexec"], - deps = [ - "//pkg/build", - "//pkg/cli", - "//pkg/cli/clisqlclient", - "//pkg/security", - "//pkg/server", - "//pkg/sql/lexbase", - "//pkg/sql/sem/tree", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/util/leaktest", - "//pkg/util/log", - ], -) diff --git a/pkg/cli/clisqlshell/BUILD.bazel b/pkg/cli/clisqlshell/BUILD.bazel deleted file mode 100644 index 5e24c087f2d..00000000000 --- a/pkg/cli/clisqlshell/BUILD.bazel +++ /dev/null @@ -1,60 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "clisqlshell", - srcs = [ - "api.go", - "context.go", - "doc.go", - "sql.go", - "statement_diag.go", - "statements_value.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cli/clisqlshell", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cli/clicfg", - "//pkg/cli/clierror", - "//pkg/cli/clisqlclient", - "//pkg/cli/clisqlexec", - "//pkg/cli/democluster/api", - "//pkg/docs", - "//pkg/server/pgurl", - "//pkg/sql/lexbase", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/scanner", - "//pkg/sql/sqlfsm", - "//pkg/util/envutil", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_knz_go_libedit//:go-libedit", - ], -) - -go_test( - name = "clisqlshell_test", - srcs = [ - "main_test.go", - "sql_internal_test.go", - "sql_test.go", - ], - data = glob(["testdata/**"]), - embed = [":clisqlshell"], - deps = [ - "//pkg/base", - "//pkg/build", - "//pkg/cli", - "//pkg/cli/clicfg", - "//pkg/cli/clisqlclient", - "//pkg/cli/clisqlexec", - "//pkg/security", - "//pkg/server", - "//pkg/sql/scanner", - "//pkg/testutils/serverutils", - "//pkg/util/leaktest", - "//pkg/util/log", - "@com_github_stretchr_testify//assert", - ], -) diff --git a/pkg/cli/democluster/BUILD.bazel b/pkg/cli/democluster/BUILD.bazel deleted file mode 100644 index ddd8725cb54..00000000000 --- a/pkg/cli/democluster/BUILD.bazel +++ /dev/null @@ -1,76 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "democluster", - srcs = [ - "api.go", - "context.go", - "demo_cluster.go", - "demo_locality_list.go", - "doc.go", - "region_latencies.go", - "socket_unix.go", - "socket_windows.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cli/democluster", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/cli/clicfg", - "//pkg/cli/clierror", - "//pkg/cli/cliflags", - "//pkg/cli/democluster/api", - "//pkg/jobs", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/security", - "//pkg/server", - "//pkg/server/pgurl", - "//pkg/server/serverpb", - "//pkg/server/status", - "//pkg/sql", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/distsql", - "//pkg/testutils/serverutils", - "//pkg/util/humanizeutil", - "//pkg/util/log/logcrash", - "//pkg/util/log/logpb", - "//pkg/util/log/severity", - "//pkg/util/netutil/addr", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/workload", - "//pkg/workload/histogram", - "//pkg/workload/workloadsql", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@org_golang_x_time//rate", - ], -) - -go_test( - name = "democluster_test", - srcs = ["demo_cluster_test.go"], - embed = [":democluster"], - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/ccl/kvccl/kvtenantccl", - "//pkg/cli/clisqlclient", - "//pkg/cli/clisqlexec", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/testutils/skip", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/timeutil", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cli/democluster/api/BUILD.bazel b/pkg/cli/democluster/api/BUILD.bazel deleted file mode 100644 index 3d11cbb3166..00000000000 --- a/pkg/cli/democluster/api/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "api", - srcs = ["api.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cli/democluster/api", - visibility = ["//visibility:public"], -) diff --git a/pkg/cli/exit/BUILD.bazel b/pkg/cli/exit/BUILD.bazel deleted file mode 100644 index 7e57604f688..00000000000 --- a/pkg/cli/exit/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "exit", - srcs = [ - "codes.go", - "doc.go", - "exit.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cli/exit", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_redact//:redact"], -) - -go_test( - name = "exit_test", - size = "small", - srcs = ["codes_test.go"], - embed = [":exit"], -) diff --git a/pkg/cli/syncbench/BUILD.bazel b/pkg/cli/syncbench/BUILD.bazel deleted file mode 100644 index 641b806c2fc..00000000000 --- a/pkg/cli/syncbench/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "syncbench", - srcs = ["syncbench.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cli/syncbench", - visibility = ["//visibility:public"], - deps = [ - "//pkg/settings/cluster", - "//pkg/storage", - "//pkg/util/encoding", - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/sysutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_codahale_hdrhistogram//:hdrhistogram", - ], -) diff --git a/pkg/cloud/BUILD.bazel b/pkg/cloud/BUILD.bazel deleted file mode 100644 index 17e5ecdeefc..00000000000 --- a/pkg/cloud/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "cloud", - srcs = [ - "cloud_io.go", - "external_storage.go", - "impl_registry.go", - "kms.go", - "kms_test_utils.go", - "options.go", - "uris.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cloud", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/blobs", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/sqlutil", - "//pkg/util/ctxgroup", - "//pkg/util/ioctx", - "//pkg/util/log", - "//pkg/util/quotapool", - "//pkg/util/retry", - "//pkg/util/sysutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cloud/amazon/BUILD.bazel b/pkg/cloud/amazon/BUILD.bazel deleted file mode 100644 index 8442276e6e4..00000000000 --- a/pkg/cloud/amazon/BUILD.bazel +++ /dev/null @@ -1,62 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "amazon", - srcs = [ - "aws_kms.go", - "s3_storage.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cloud/amazon", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/cloud", - "//pkg/roachpb", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/util/contextutil", - "//pkg/util/envutil", - "//pkg/util/ioctx", - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/tracing", - "@com_github_aws_aws_sdk_go//aws", - "@com_github_aws_aws_sdk_go//aws/awserr", - "@com_github_aws_aws_sdk_go//aws/client", - "@com_github_aws_aws_sdk_go//aws/credentials", - "@com_github_aws_aws_sdk_go//aws/request", - "@com_github_aws_aws_sdk_go//aws/session", - "@com_github_aws_aws_sdk_go//service/kms", - "@com_github_aws_aws_sdk_go//service/s3", - "@com_github_aws_aws_sdk_go//service/s3/s3manager", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_gogo_protobuf//types", - ], -) - -go_test( - name = "amazon_test", - srcs = [ - "aws_kms_test.go", - "s3_storage_test.go", - ], - embed = [":amazon"], - deps = [ - "//pkg/base", - "//pkg/blobs", - "//pkg/cloud", - "//pkg/cloud/cloudtestutils", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/testutils", - "//pkg/testutils/skip", - "//pkg/util/leaktest", - "@com_github_aws_aws_sdk_go//aws/credentials", - "@com_github_aws_aws_sdk_go//aws/session", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cloud/azure/BUILD.bazel b/pkg/cloud/azure/BUILD.bazel deleted file mode 100644 index 3c8e2e3bffd..00000000000 --- a/pkg/cloud/azure/BUILD.bazel +++ /dev/null @@ -1,41 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "azure", - srcs = ["azure_storage.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cloud/azure", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/cloud", - "//pkg/roachpb", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/util/contextutil", - "//pkg/util/ioctx", - "//pkg/util/tracing", - "@com_github_azure_azure_storage_blob_go//azblob", - "@com_github_azure_go_autorest_autorest//azure", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//types", - ], -) - -go_test( - name = "azure_test", - srcs = ["azure_storage_test.go"], - embed = [":azure"], - deps = [ - "//pkg/cloud", - "//pkg/cloud/cloudtestutils", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/testutils/skip", - "//pkg/util/leaktest", - "@com_github_azure_go_autorest_autorest//azure", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cloud/cloudtestutils/BUILD.bazel b/pkg/cloud/cloudtestutils/BUILD.bazel deleted file mode 100644 index 2bca6ca5bc7..00000000000 --- a/pkg/cloud/cloudtestutils/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "cloudtestutils", - srcs = ["cloud_test_helpers.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cloud/cloudtestutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/blobs", - "//pkg/cloud", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/sql/sqlutil", - "//pkg/util/ioctx", - "//pkg/util/randutil", - "//pkg/util/sysutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cloud/gcp/BUILD.bazel b/pkg/cloud/gcp/BUILD.bazel deleted file mode 100644 index 442333ca0d1..00000000000 --- a/pkg/cloud/gcp/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "gcp", - srcs = [ - "gcs_kms.go", - "gcs_retry.go", - "gcs_storage.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cloud/gcp", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/cloud", - "//pkg/roachpb", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/util/contextutil", - "//pkg/util/ioctx", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//types", - "@com_google_cloud_go_kms//apiv1", - "@com_google_cloud_go_storage//:storage", - "@org_golang_google_api//googleapi", - "@org_golang_google_api//iterator", - "@org_golang_google_api//option", - "@org_golang_google_genproto//googleapis/cloud/kms/v1:kms", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//status", - "@org_golang_google_protobuf//types/known/wrapperspb", - "@org_golang_x_net//http2", - "@org_golang_x_oauth2//:oauth2", - ], -) - -go_test( - name = "gcp_test", - srcs = [ - "gcs_kms_test.go", - "gcs_storage_test.go", - ], - embed = [":gcp"], - deps = [ - "//pkg/base", - "//pkg/cloud", - "//pkg/cloud/cloudtestutils", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/testutils", - "//pkg/testutils/skip", - "//pkg/util/ioctx", - "//pkg/util/leaktest", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - "@com_google_cloud_go_kms//apiv1", - "@com_google_cloud_go_storage//:storage", - "@org_golang_x_oauth2//google", - ], -) diff --git a/pkg/cloud/httpsink/BUILD.bazel b/pkg/cloud/httpsink/BUILD.bazel deleted file mode 100644 index e4b55ca857d..00000000000 --- a/pkg/cloud/httpsink/BUILD.bazel +++ /dev/null @@ -1,42 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "httpsink", - srcs = ["http_storage.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cloud/httpsink", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/cloud", - "//pkg/roachpb", - "//pkg/server/telemetry", - "//pkg/settings/cluster", - "//pkg/util/contextutil", - "//pkg/util/ioctx", - "//pkg/util/log", - "//pkg/util/retry", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "httpsink_test", - srcs = ["http_storage_test.go"], - embed = [":httpsink"], - deps = [ - "//pkg/base", - "//pkg/blobs", - "//pkg/cloud", - "//pkg/cloud/cloudtestutils", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/testutils", - "//pkg/util/ctxgroup", - "//pkg/util/ioctx", - "//pkg/util/leaktest", - "//pkg/util/retry", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cloud/impl/BUILD.bazel b/pkg/cloud/impl/BUILD.bazel deleted file mode 100644 index 062aec89161..00000000000 --- a/pkg/cloud/impl/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "cloudimpl", - srcs = ["external_storage.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cloud/impl", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cloud/amazon", - "//pkg/cloud/azure", - "//pkg/cloud/gcp", - "//pkg/cloud/httpsink", - "//pkg/cloud/nodelocal", - "//pkg/cloud/nullsink", - "//pkg/cloud/userfile", - ], -) diff --git a/pkg/cloud/impl/cloudimpltests/BUILD.bazel b/pkg/cloud/impl/cloudimpltests/BUILD.bazel deleted file mode 100644 index 1954da96326..00000000000 --- a/pkg/cloud/impl/cloudimpltests/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_test") - -go_test( - name = "cloudimpltests_test", - srcs = ["main_test.go"], - deps = [ - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/testutils/serverutils", - "//pkg/util/randutil", - ], -) diff --git a/pkg/cloud/nodelocal/BUILD.bazel b/pkg/cloud/nodelocal/BUILD.bazel deleted file mode 100644 index 12511800931..00000000000 --- a/pkg/cloud/nodelocal/BUILD.bazel +++ /dev/null @@ -1,34 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "nodelocal", - srcs = ["nodelocal_storage.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cloud/nodelocal", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/blobs", - "//pkg/cloud", - "//pkg/roachpb", - "//pkg/server/telemetry", - "//pkg/settings/cluster", - "//pkg/util/ioctx", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//status", - ], -) - -go_test( - name = "nodelocal_test", - srcs = ["nodelocal_storage_test.go"], - embed = [":nodelocal"], - deps = [ - "//pkg/cloud/cloudtestutils", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/testutils", - "//pkg/util/leaktest", - ], -) diff --git a/pkg/cloud/nullsink/BUILD.bazel b/pkg/cloud/nullsink/BUILD.bazel deleted file mode 100644 index 96f4e048254..00000000000 --- a/pkg/cloud/nullsink/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "nullsink", - srcs = ["nullsink_storage.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cloud/nullsink", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/cloud", - "//pkg/roachpb", - "//pkg/server/telemetry", - "//pkg/settings/cluster", - "//pkg/util/ioctx", - ], -) - -go_test( - name = "nullsink_test", - srcs = ["nullsink_storage_test.go"], - embed = [":nullsink"], - deps = [ - "//pkg/base", - "//pkg/cloud", - "//pkg/roachpb", - "//pkg/security", - "//pkg/util/leaktest", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cloud/userfile/BUILD.bazel b/pkg/cloud/userfile/BUILD.bazel deleted file mode 100644 index 34580dab7bc..00000000000 --- a/pkg/cloud/userfile/BUILD.bazel +++ /dev/null @@ -1,49 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "userfile", - srcs = ["file_table_storage.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cloud/userfile", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/cloud", - "//pkg/cloud/userfile/filetable", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/server/telemetry", - "//pkg/settings/cluster", - "//pkg/sql/sqlutil", - "//pkg/util/ioctx", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - ], -) - -go_test( - name = "userfile_test", - srcs = [ - "file_table_storage_test.go", - "main_test.go", - ], - embed = [":userfile"], - deps = [ - "//pkg/base", - "//pkg/blobs", - "//pkg/cloud", - "//pkg/cloud/cloudtestutils", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlutil", - "//pkg/sql/tests", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cloud/userfile/filetable/BUILD.bazel b/pkg/cloud/userfile/filetable/BUILD.bazel deleted file mode 100644 index a62ba7af946..00000000000 --- a/pkg/cloud/userfile/filetable/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "filetable", - srcs = ["file_table_read_writer.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cloud/userfile/filetable", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cloud", - "//pkg/kv", - "//pkg/security", - "//pkg/sql/parser", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlutil", - "//pkg/util/ioctx", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/cloud/userfile/filetable/filetabletest/BUILD.bazel b/pkg/cloud/userfile/filetable/filetabletest/BUILD.bazel deleted file mode 100644 index 478e01f7342..00000000000 --- a/pkg/cloud/userfile/filetable/filetabletest/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_test") - -go_test( - name = "filetabletest_test", - size = "medium", - srcs = [ - "file_table_read_writer_test.go", - "main_test.go", - ], - deps = [ - "//pkg/cloud/userfile/filetable", - "//pkg/kv", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/sql/tests", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/util/ioctx", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "@com_github_cockroachdb_errors//oserror", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/clusterversion/BUILD.bazel b/pkg/clusterversion/BUILD.bazel deleted file mode 100644 index 2f39e1b514c..00000000000 --- a/pkg/clusterversion/BUILD.bazel +++ /dev/null @@ -1,77 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "clusterversion", - srcs = [ - "clusterversion.go", - "cockroach_versions.go", - "keyed_versions.go", - "setting.go", - "testutils.go", - "utilversions.go", - ":gen-key-stringer", # keep - ], - embed = [":clusterversion_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/clusterversion", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/settings", - "//pkg/util/log", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_kr_pretty//:pretty", - ], -) - -go_test( - name = "clusterversion_test", - size = "small", - srcs = [ - "clusterversion_test.go", - "cockroach_versions_test.go", - ], - embed = [":clusterversion"], - deps = [ - "//pkg/roachpb", - "//pkg/settings", - "//pkg/util/leaktest", - "//pkg/util/protoutil", - "@com_github_cockroachdb_redact//:redact", - "@com_github_dustin_go_humanize//:go-humanize", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "clusterversion_proto", - srcs = ["cluster_version.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb:roachpb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "clusterversion_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/clusterversion", - proto = ":clusterversion_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "@com_github_gogo_protobuf//gogoproto", - ], -) - -stringer( - name = "gen-key-stringer", - src = "cockroach_versions.go", - typ = "Key", -) diff --git a/pkg/cmd/allocsim/BUILD.bazel b/pkg/cmd/allocsim/BUILD.bazel deleted file mode 100644 index 1b49bb86a78..00000000000 --- a/pkg/cmd/allocsim/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "allocsim_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/allocsim", - visibility = ["//visibility:private"], - deps = [ - "//pkg/acceptance/localcluster", - "//pkg/acceptance/localcluster/tc", - "//pkg/cli", - "//pkg/cli/exit", - "//pkg/kv/kvserver", - "//pkg/server/serverpb", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_binary( - name = "allocsim", - embed = [":allocsim_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/bazci/BUILD.bazel b/pkg/cmd/bazci/BUILD.bazel deleted file mode 100644 index ef56a1da2ac..00000000000 --- a/pkg/cmd/bazci/BUILD.bazel +++ /dev/null @@ -1,38 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "bazci_lib", - srcs = [ - "bazci.go", - "main.go", - "watch.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/bazci", - visibility = ["//visibility:private"], - deps = [ - "//pkg/build/util", - "@com_github_alessio_shellescape//:shellescape", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_cobra//:cobra", - ], -) - -go_binary( - name = "bazci", - embed = [":bazci_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "bazci_test", - srcs = [ - "bazci_test.go", - "watch_test.go", - ], - data = glob(["testdata/**"]), - embed = [":bazci_lib"], - deps = [ - "//pkg/testutils", - "@com_github_stretchr_testify//assert", - ], -) diff --git a/pkg/cmd/cmdutil/BUILD.bazel b/pkg/cmd/cmdutil/BUILD.bazel deleted file mode 100644 index 24b0cf7b41c..00000000000 --- a/pkg/cmd/cmdutil/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "cmdutil", - srcs = ["env.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/cmdutil", - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/cmp-protocol/BUILD.bazel b/pkg/cmd/cmp-protocol/BUILD.bazel deleted file mode 100644 index 65f1e256a24..00000000000 --- a/pkg/cmd/cmp-protocol/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "cmp-protocol_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/cmp-protocol", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cmd/cmp-protocol/pgconnect", - "//pkg/sql/pgwire/pgwirebase", - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/randutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_binary( - name = "cmp-protocol", - embed = [":cmp-protocol_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/cmp-protocol/pgconnect/BUILD.bazel b/pkg/cmd/cmp-protocol/pgconnect/BUILD.bazel deleted file mode 100644 index a56a4094ef8..00000000000 --- a/pkg/cmd/cmp-protocol/pgconnect/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "pgconnect", - srcs = ["pgconnect.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/cmp-protocol/pgconnect", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgwirebase", - "//pkg/util/ctxgroup", - "@com_github_cockroachdb_errors//:errors", - "@com_github_jackc_pgproto3_v2//:pgproto3", - ], -) diff --git a/pkg/cmd/cmp-sql/BUILD.bazel b/pkg/cmd/cmp-sql/BUILD.bazel deleted file mode 100644 index c27ffc7172e..00000000000 --- a/pkg/cmd/cmp-sql/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "cmp-sql_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/cmp-sql", - visibility = ["//visibility:private"], - deps = [ - "//pkg/util/randutil", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_jackc_pgtype//:pgtype", - "@com_github_jackc_pgx_v4//:pgx", - ], -) - -go_binary( - name = "cmp-sql", - embed = [":cmp-sql_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/cmpconn/BUILD.bazel b/pkg/cmd/cmpconn/BUILD.bazel deleted file mode 100644 index 411dde20a5d..00000000000 --- a/pkg/cmd/cmpconn/BUILD.bazel +++ /dev/null @@ -1,34 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "cmpconn", - srcs = [ - "compare.go", - "conn.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/cmpconn", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/util/duration", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_google_go_cmp//cmp", - "@com_github_google_go_cmp//cmp/cmpopts", - "@com_github_jackc_pgtype//:pgtype", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_lib_pq//:pq", - ], -) - -go_test( - name = "cmpconn_test", - size = "small", - srcs = ["compare_test.go"], - embed = [":cmpconn"], - deps = [ - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_jackc_pgtype//:pgtype", - ], -) diff --git a/pkg/cmd/cockroach-oss/BUILD.bazel b/pkg/cmd/cockroach-oss/BUILD.bazel deleted file mode 100644 index 62b8c3c606b..00000000000 --- a/pkg/cmd/cockroach-oss/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "cockroach-oss_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/cockroach-oss", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cli", - "//pkg/ui/distoss", - ], -) - -go_binary( - name = "cockroach-oss", - embed = [":cockroach-oss_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "cockroach-oss_test", - size = "medium", - srcs = ["dep_test.go"], - embed = [":cockroach-oss_lib"], - tags = ["broken_in_bazel"], - deps = [ - "//pkg/testutils/buildutil", - "//pkg/util/leaktest", - ], -) diff --git a/pkg/cmd/cockroach-short/BUILD.bazel b/pkg/cmd/cockroach-short/BUILD.bazel deleted file mode 100644 index 919d53a6386..00000000000 --- a/pkg/cmd/cockroach-short/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "cockroach-short_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/cockroach-short", - visibility = ["//visibility:private"], - deps = [ - "//pkg/ccl", - "//pkg/cli", - ], -) - -go_binary( - name = "cockroach-short", - embed = [":cockroach-short_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/cockroach-sql/BUILD.bazel b/pkg/cmd/cockroach-sql/BUILD.bazel deleted file mode 100644 index 08585dec42c..00000000000 --- a/pkg/cmd/cockroach-sql/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "cockroach-sql_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/cockroach-sql", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cli/clicfg", - "//pkg/cli/clierror", - "//pkg/cli/cliflags", - "//pkg/cli/clisqlcfg", - "//pkg/cli/clisqlclient", - "//pkg/cli/clisqlexec", - "//pkg/cli/exit", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_cobra//:cobra", - ], -) - -go_binary( - name = "cockroach-sql", - embed = [":cockroach-sql_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/cr2pg/BUILD.bazel b/pkg/cmd/cr2pg/BUILD.bazel deleted file mode 100644 index 926e6795d9f..00000000000 --- a/pkg/cmd/cr2pg/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "cr2pg_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/cr2pg", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cmd/cr2pg/sqlstream", - "//pkg/sql/sem/tree", - "@com_github_cockroachdb_errors//:errors", - "@org_golang_x_sync//errgroup", - ], -) - -go_binary( - name = "cr2pg", - embed = [":cr2pg_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/cr2pg/sqlstream/BUILD.bazel b/pkg/cmd/cr2pg/sqlstream/BUILD.bazel deleted file mode 100644 index b7303ab5a7b..00000000000 --- a/pkg/cmd/cr2pg/sqlstream/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sqlstream", - srcs = ["stream.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/cr2pg/sqlstream", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/parser", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/cmd/dev/BUILD.bazel b/pkg/cmd/dev/BUILD.bazel deleted file mode 100644 index 0199c5f66df..00000000000 --- a/pkg/cmd/dev/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "dev_lib", - srcs = [ - "acceptance.go", - "bench.go", - "build.go", - "builder.go", - "cache.go", - "compose.go", - "dev.go", - "doctor.go", - "generate.go", - "go.go", - "lint.go", - "main.go", - "merge_test_xmls.go", - "test.go", - "testlogic.go", - "ui.go", - "util.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/dev", - visibility = ["//visibility:private"], - deps = [ - "//pkg/build/util", - "//pkg/cmd/dev/io/exec", - "//pkg/cmd/dev/io/os", - "@com_github_alessio_shellescape//:shellescape", - "@com_github_google_shlex//:shlex", - "@com_github_spf13_cobra//:cobra", - ], -) - -go_binary( - name = "dev", - embed = [":dev_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "dev_test", - srcs = [ - "datadriven_test.go", - "recorderdriven_test.go", - ], - data = glob(["testdata/**"]), - embed = [":dev_lib"], - deps = [ - "//pkg/build/bazel", - "//pkg/cmd/dev/io/exec", - "//pkg/cmd/dev/io/os", - "//pkg/testutils", - "@com_github_alessio_shellescape//:shellescape", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_google_shlex//:shlex", - "@com_github_irfansharif_recorder//:recorder", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cmd/dev/io/exec/BUILD.bazel b/pkg/cmd/dev/io/exec/BUILD.bazel deleted file mode 100644 index a91324f3220..00000000000 --- a/pkg/cmd/dev/io/exec/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "exec", - srcs = ["exec.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/dev/io/exec", - visibility = ["//visibility:public"], - deps = [ - "@com_github_alessio_shellescape//:shellescape", - "@com_github_irfansharif_recorder//:recorder", - ], -) diff --git a/pkg/cmd/dev/io/os/BUILD.bazel b/pkg/cmd/dev/io/os/BUILD.bazel deleted file mode 100644 index 0ddfe1abaea..00000000000 --- a/pkg/cmd/dev/io/os/BUILD.bazel +++ /dev/null @@ -1,11 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "os", - srcs = ["os.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/dev/io/os", - visibility = ["//visibility:public"], - deps = [ - "@com_github_irfansharif_recorder//:recorder", - ], -) diff --git a/pkg/cmd/docgen/BUILD.bazel b/pkg/cmd/docgen/BUILD.bazel deleted file mode 100644 index a05f13ac19d..00000000000 --- a/pkg/cmd/docgen/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "docgen_lib", - srcs = [ - "diagrams.go", - "funcs.go", - "http.go", - "logformats.go", - "main.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/docgen", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cli/exit", - "//pkg/cmd/docgen/extract", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/util/envutil", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - "@com_github_golang_commonmark_markdown//:markdown", - "@com_github_spf13_cobra//:cobra", - ], -) - -go_binary( - name = "docgen", - embed = [":docgen_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/docgen/extract/BUILD.bazel b/pkg/cmd/docgen/extract/BUILD.bazel deleted file mode 100644 index d660fdb98e5..00000000000 --- a/pkg/cmd/docgen/extract/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "extract", - srcs = [ - "extract.go", - "xhtml.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/docgen/extract", - visibility = ["//visibility:public"], - deps = [ - "//pkg/internal/rsg/yacc", - "//pkg/util/httputil", - "//pkg/util/syncutil", - "@com_github_puerkitobio_goquery//:goquery", - "@org_golang_x_net//html", - ], -) - -go_test( - name = "extract_test", - size = "small", - srcs = ["extract_test.go"], - embed = [":extract"], -) diff --git a/pkg/cmd/docs-issue-generation/BUILD.bazel b/pkg/cmd/docs-issue-generation/BUILD.bazel deleted file mode 100644 index 5fc05abd5a3..00000000000 --- a/pkg/cmd/docs-issue-generation/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "docs-issue-generation_lib", - srcs = [ - "docs_issue_generation.go", - "main.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/docs-issue-generation", - visibility = ["//visibility:private"], - deps = ["@com_github_spf13_cobra//:cobra"], -) - -go_binary( - name = "docs-issue-generation", - embed = [":docs-issue-generation_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "docs-issue-generation_test", - srcs = ["docs_issue_generation_test.go"], - data = glob(["testdata/**"]), - embed = [":docs-issue-generation_lib"], - deps = ["@com_github_stretchr_testify//assert"], -) diff --git a/pkg/cmd/fuzz/BUILD.bazel b/pkg/cmd/fuzz/BUILD.bazel deleted file mode 100644 index 80d1e13633b..00000000000 --- a/pkg/cmd/fuzz/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "fuzz_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/fuzz", - visibility = ["//visibility:private"], - deps = ["@org_golang_x_tools//go/packages"], -) - -go_binary( - name = "fuzz", - embed = [":fuzz_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/generate-binary/BUILD.bazel b/pkg/cmd/generate-binary/BUILD.bazel deleted file mode 100644 index bfb3e724dbb..00000000000 --- a/pkg/cmd/generate-binary/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "generate-binary_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/generate-binary", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cmd/cmp-protocol/pgconnect", - "//pkg/sql/oidext", - "//pkg/sql/pgwire/pgwirebase", - ], -) - -go_binary( - name = "generate-binary", - embed = [":generate-binary_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/generate-distdir/BUILD.bazel b/pkg/cmd/generate-distdir/BUILD.bazel deleted file mode 100644 index 35bdb72ba42..00000000000 --- a/pkg/cmd/generate-distdir/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "generate-distdir_lib", - srcs = ["main.go"], - data = [ - "//:DEPS.bzl", - "//:WORKSPACE", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/generate-distdir", - visibility = ["//visibility:private"], - deps = [ - "//pkg/build/bazel", - "//pkg/build/starlarkutil", - "@com_github_google_skylark//syntax", - ], -) - -go_binary( - name = "generate-distdir", - embed = [":generate-distdir_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/generate-metadata-tables/BUILD.bazel b/pkg/cmd/generate-metadata-tables/BUILD.bazel deleted file mode 100644 index 24adae7708e..00000000000 --- a/pkg/cmd/generate-metadata-tables/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "generate-metadata-tables_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/generate-metadata-tables", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cmd/generate-metadata-tables/rdbms:generate-metadata-tables-rdbms_lib", - "//pkg/sql", - ], -) - -go_binary( - name = "generate-metadata-tables", - embed = [":generate-metadata-tables_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/generate-metadata-tables/rdbms/BUILD.bazel b/pkg/cmd/generate-metadata-tables/rdbms/BUILD.bazel deleted file mode 100644 index e3d2154e011..00000000000 --- a/pkg/cmd/generate-metadata-tables/rdbms/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "generate-metadata-tables-rdbms_lib", - srcs = [ - "metadata.go", - "mysql.go", - "postgres.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/generate-metadata-tables/rdbms", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql", - "//pkg/sql/types", - "@com_github_go_sql_driver_mysql//:mysql", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_lib_pq//oid", - ], -) diff --git a/pkg/cmd/generate-spatial-ref-sys/BUILD.bazel b/pkg/cmd/generate-spatial-ref-sys/BUILD.bazel deleted file mode 100644 index a8e6dc5b713..00000000000 --- a/pkg/cmd/generate-spatial-ref-sys/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "generate-spatial-ref-sys_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/generate-spatial-ref-sys", - visibility = ["//visibility:private"], - deps = [ - "//pkg/geo/geoproj", - "//pkg/geo/geoprojbase", - "//pkg/geo/geoprojbase/embeddedproj", - "//pkg/util/ctxgroup", - "//pkg/util/httputil", - "//pkg/util/syncutil", - ], -) - -go_binary( - name = "generate-spatial-ref-sys", - embed = [":generate-spatial-ref-sys_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/generate-staticcheck/BUILD.bazel b/pkg/cmd/generate-staticcheck/BUILD.bazel deleted file mode 100644 index 7490fdc1a01..00000000000 --- a/pkg/cmd/generate-staticcheck/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "generate-staticcheck_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/generate-staticcheck", - visibility = ["//visibility:private"], - deps = [ - "@co_honnef_go_tools//analysis/lint", - "@co_honnef_go_tools//simple", - "@co_honnef_go_tools//staticcheck", - "@co_honnef_go_tools//stylecheck", - "@co_honnef_go_tools//unused", - ], -) - -go_binary( - name = "generate-staticcheck", - embed = [":generate-staticcheck_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/generate-test-suites/BUILD.bazel b/pkg/cmd/generate-test-suites/BUILD.bazel deleted file mode 100644 index 90a979db20d..00000000000 --- a/pkg/cmd/generate-test-suites/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "generate-test-suites_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/generate-test-suites", - visibility = ["//visibility:private"], - deps = ["@com_github_alessio_shellescape//:shellescape"], -) - -go_binary( - name = "generate-test-suites", - embed = [":generate-test-suites_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/geoviz/BUILD.bazel b/pkg/cmd/geoviz/BUILD.bazel deleted file mode 100644 index 8a615078f64..00000000000 --- a/pkg/cmd/geoviz/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "geoviz_lib", - srcs = [ - "geoviz.go", - "main.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/geoviz", - visibility = ["//visibility:private"], - deps = [ - "//pkg/geo", - "//pkg/geo/geoindex", - "//pkg/geo/geos", - "@com_github_golang_geo//s2", - ], -) - -go_binary( - name = "geoviz", - embed = [":geoviz_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/gossipsim/BUILD.bazel b/pkg/cmd/gossipsim/BUILD.bazel deleted file mode 100644 index 690864e688b..00000000000 --- a/pkg/cmd/gossipsim/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "gossipsim_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/gossipsim", - visibility = ["//visibility:private"], - deps = [ - "//pkg/config/zonepb", - "//pkg/gossip", - "//pkg/gossip/simulation", - "//pkg/roachpb", - "//pkg/util/encoding", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/stop", - ], -) - -go_binary( - name = "gossipsim", - embed = [":gossipsim_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/import-tools/BUILD.bazel b/pkg/cmd/import-tools/BUILD.bazel deleted file mode 100644 index c16291e80ca..00000000000 --- a/pkg/cmd/import-tools/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "import-tools", - srcs = ["stub.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/import-tools", - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/internal/issues/BUILD.bazel b/pkg/cmd/internal/issues/BUILD.bazel deleted file mode 100644 index 87cb5c283ae..00000000000 --- a/pkg/cmd/internal/issues/BUILD.bazel +++ /dev/null @@ -1,39 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "issues", - srcs = [ - "condense.go", - "formatter_unit.go", - "issues.go", - "render.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/internal/issues", - visibility = ["//pkg/cmd:__subpackages__"], - deps = [ - "//pkg/util/version", - "@com_github_cockroachdb_errors//:errors", - "@com_github_google_go_github//github", - "@org_golang_x_oauth2//:oauth2", - ], -) - -go_test( - name = "issues_test", - size = "small", - srcs = [ - "condense_test.go", - "issues_test.go", - "render_test.go", - ], - data = glob(["testdata/**"]), - embed = [":issues"], - deps = [ - "//pkg/testutils", - "//pkg/testutils/skip", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_google_go_github//github", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cmd/label-merged-pr/BUILD.bazel b/pkg/cmd/label-merged-pr/BUILD.bazel deleted file mode 100644 index bdc04eb22b2..00000000000 --- a/pkg/cmd/label-merged-pr/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "label-merged-pr_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/label-merged-pr", - visibility = ["//visibility:private"], -) - -go_binary( - name = "label-merged-pr", - embed = [":label-merged-pr_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "label-merged-pr_test", - srcs = ["main_test.go"], - embed = [":label-merged-pr_lib"], - deps = [ - "//pkg/testutils/skip", - "@com_github_stretchr_testify//assert", - ], -) diff --git a/pkg/cmd/mirror/BUILD.bazel b/pkg/cmd/mirror/BUILD.bazel deleted file mode 100644 index 23152b1905b..00000000000 --- a/pkg/cmd/mirror/BUILD.bazel +++ /dev/null @@ -1,36 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "mirror_lib", - srcs = ["mirror.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/mirror", - visibility = ["//visibility:private"], - deps = [ - "//pkg/build/bazel", - "//pkg/build/starlarkutil", - "//pkg/util/envutil", - "@com_google_cloud_go_storage//:storage", - "@org_golang_google_api//googleapi", - "@org_golang_x_sync//errgroup", - ], -) - -go_binary( - name = "mirror", - data = [ - "//:DEPS.bzl", - "//:go.mod", - "//:go.sum", - "//build/patches:all_patches", - "@go_sdk//:files", - ], - embed = [":mirror_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "mirror_test", - srcs = ["mirror_test.go"], - embed = [":mirror_lib"], - deps = ["@com_github_stretchr_testify//require"], -) diff --git a/pkg/cmd/prereqs/BUILD.bazel b/pkg/cmd/prereqs/BUILD.bazel deleted file mode 100644 index 97c504bcc01..00000000000 --- a/pkg/cmd/prereqs/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "prereqs_lib", - srcs = ["prereqs.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/prereqs", - visibility = ["//visibility:private"], - deps = ["@org_golang_x_tools//go/packages"], -) - -go_binary( - name = "prereqs", - embed = [":prereqs_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "prereqs_test", - size = "small", - srcs = ["prereqs_test.go"], - data = glob(["testdata/**"]), - embed = [":prereqs_lib"], - tags = ["broken_in_bazel"], - deps = ["//pkg/testutils"], -) diff --git a/pkg/cmd/protoc-gen-gogoroach/BUILD.bazel b/pkg/cmd/protoc-gen-gogoroach/BUILD.bazel deleted file mode 100644 index 0e5b5e76310..00000000000 --- a/pkg/cmd/protoc-gen-gogoroach/BUILD.bazel +++ /dev/null @@ -1,72 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") -load("@io_bazel_rules_go//proto:compiler.bzl", "go_proto_compiler") - -go_library( - name = "protoc-gen-gogoroach_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/protoc-gen-gogoroach", - visibility = ["//visibility:private"], - deps = [ - "@com_github_gogo_protobuf//protoc-gen-gogo/descriptor", - "@com_github_gogo_protobuf//vanity", - "@com_github_gogo_protobuf//vanity/command", - ], -) - -go_binary( - name = "protoc-gen-gogoroach", - embed = [":protoc-gen-gogoroach_lib"], - visibility = ["//visibility:public"], -) - -# Ref: -# https://github.com/bazelbuild/rules_go/blob/master/proto/core.rst#go_proto_compiler - -go_proto_compiler( - name = "protoc-gen-gogoroach_compiler", - # Command-line options that are passed to the plugin. - options = [ - # Note: These options (as well as those for - # protoc-gen-gogoroach_grpc_compiler below) were partially derived from - # the protoc invocation in the Makefile, with a couple custom options - # that fix compilation errors under Bazel as well. Without the - # -M options, the generated code will import the wrong go packages. - "Metcd/raft/v3/raftpb/raft.proto=go.etcd.io/etcd/raft/v3/raftpb", - "Merrorspb/errors.proto=github.com/cockroachdb/errors/errorspb", - "Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types", - "Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types", - "Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types", - ], - plugin = ":protoc-gen-gogoroach", - valid_archive = False, - visibility = ["//visibility:public"], - deps = [ - "@com_github_gogo_protobuf//proto", - "@com_github_gogo_protobuf//sortkeys", - "@com_github_gogo_protobuf//types", - ], -) - -go_proto_compiler( - name = "protoc-gen-gogoroach_grpc_compiler", - options = [ - "plugins=grpc", - "Metcd/raft/v3/raftpb/raft.proto=go.etcd.io/etcd/raft/v3/raftpb", - "Merrorspb/errors.proto=github.com/cockroachdb/errors/errorspb", - "Mgoogle/api/annotations.proto=google.golang.org/genproto/googleapis/api/annotations", - "Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types", - "Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types", - "Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types", - ], - plugin = ":protoc-gen-gogoroach", - valid_archive = False, - visibility = ["//visibility:public"], - deps = [ - "@com_github_gogo_protobuf//proto", - "@com_github_gogo_protobuf//sortkeys", - "@com_github_gogo_protobuf//types", - "@org_golang_google_grpc//:grpc", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//status", - ], -) diff --git a/pkg/cmd/publish-artifacts/BUILD.bazel b/pkg/cmd/publish-artifacts/BUILD.bazel deleted file mode 100644 index 30571508016..00000000000 --- a/pkg/cmd/publish-artifacts/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "publish-artifacts_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/publish-artifacts", - visibility = ["//visibility:private"], - deps = [ - "//pkg/release", - "@com_github_kr_pretty//:pretty", - ], -) - -go_binary( - name = "publish-artifacts", - embed = [":publish-artifacts_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "publish-artifacts_test", - size = "small", - srcs = [ - "main_test.go", - "slow_test.go", - ], - args = ["-test.timeout=55s"], - embed = [":publish-artifacts_lib"], - deps = [ - "//pkg/release", - "//pkg/testutils", - "@com_github_alessio_shellescape//:shellescape", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cmd/publish-provisional-artifacts/BUILD.bazel b/pkg/cmd/publish-provisional-artifacts/BUILD.bazel deleted file mode 100644 index a6885edf04a..00000000000 --- a/pkg/cmd/publish-provisional-artifacts/BUILD.bazel +++ /dev/null @@ -1,32 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "publish-provisional-artifacts_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/publish-provisional-artifacts", - visibility = ["//visibility:private"], - deps = [ - "//pkg/release", - "//pkg/util/version", - "@com_github_kr_pretty//:pretty", - ], -) - -go_binary( - name = "publish-provisional-artifacts", - embed = [":publish-provisional-artifacts_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "publish-provisional-artifacts_test", - size = "small", - srcs = ["main_test.go"], - embed = [":publish-provisional-artifacts_lib"], - deps = [ - "//pkg/release", - "//pkg/testutils", - "@com_github_alessio_shellescape//:shellescape", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cmd/reduce/BUILD.bazel b/pkg/cmd/reduce/BUILD.bazel deleted file mode 100644 index c4444d6c7ca..00000000000 --- a/pkg/cmd/reduce/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "reduce_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/reduce", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cmd/reduce/reduce", - "//pkg/cmd/reduce/reduce/reducesql", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_binary( - name = "reduce", - embed = [":reduce_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/reduce/reduce/BUILD.bazel b/pkg/cmd/reduce/reduce/BUILD.bazel deleted file mode 100644 index 9fd99ba609a..00000000000 --- a/pkg/cmd/reduce/reduce/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "reduce", - srcs = [ - "datadriven.go", - "pass.go", - "reduce.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/reduce/reduce", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/ctxgroup", - "//pkg/util/timeutil", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "reduce_test", - size = "small", - srcs = ["reduce_test.go"], - data = glob(["testdata/**"]), - deps = [":reduce"], -) diff --git a/pkg/cmd/reduce/reduce/reducesql/BUILD.bazel b/pkg/cmd/reduce/reduce/reducesql/BUILD.bazel deleted file mode 100644 index efd854cf343..00000000000 --- a/pkg/cmd/reduce/reduce/reducesql/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "reducesql", - srcs = ["reducesql.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/reduce/reduce/reducesql", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cmd/reduce/reduce", - "//pkg/sql/parser", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - ], -) - -go_test( - name = "reducesql_test", - size = "small", - srcs = ["reducesql_test.go"], - data = glob(["testdata/**"]), - deps = [ - ":reducesql", - "//pkg/base", - "//pkg/cmd/reduce/reduce", - "//pkg/security", - "//pkg/server", - "//pkg/testutils/skip", - "@com_github_jackc_pgx_v4//:pgx", - ], -) diff --git a/pkg/cmd/release/BUILD.bazel b/pkg/cmd/release/BUILD.bazel deleted file mode 100644 index f7d400f07a1..00000000000 --- a/pkg/cmd/release/BUILD.bazel +++ /dev/null @@ -1,48 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "release_lib", - srcs = [ - "blockers.go", - "git.go", - "github.go", - "jira.go", - "main.go", - "metadata.go", - "orchestration.go", - "pick_sha.go", - "sender.go", - "templates.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/release", - visibility = ["//visibility:private"], - deps = [ - "@com_github_andygrunwald_go_jira//:go-jira", - "@com_github_google_go_github_v42//github", - "@com_github_jordan_wright_email//:email", - "@com_github_masterminds_semver_v3//:semver", - "@com_github_spf13_cobra//:cobra", - "@com_google_cloud_go_storage//:storage", - "@org_golang_x_oauth2//:oauth2", - ], -) - -go_binary( - name = "release", - embed = [":release_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "release_test", - srcs = [ - "blockers_test.go", - "sender_test.go", - ], - data = glob([ - "templates/**", - "testdata/**", - ]), - embed = [":release_lib"], - deps = ["@com_github_stretchr_testify//require"], -) diff --git a/pkg/cmd/returncheck/BUILD.bazel b/pkg/cmd/returncheck/BUILD.bazel deleted file mode 100644 index e597cfff9ea..00000000000 --- a/pkg/cmd/returncheck/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "returncheck_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/returncheck", - visibility = ["//visibility:private"], - deps = [ - "@com_github_cockroachdb_returncheck//:returncheck", - "@com_github_kisielk_gotool//:gotool", - ], -) - -go_binary( - name = "returncheck", - embed = [":returncheck_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/roachprod-stress/BUILD.bazel b/pkg/cmd/roachprod-stress/BUILD.bazel deleted file mode 100644 index 358e839189a..00000000000 --- a/pkg/cmd/roachprod-stress/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "roachprod-stress_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/roachprod-stress", - visibility = ["//visibility:private"], - deps = [ - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_binary( - name = "roachprod-stress", - embed = [":roachprod-stress_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/roachprod/BUILD.bazel b/pkg/cmd/roachprod/BUILD.bazel deleted file mode 100644 index 21a7e32b366..00000000000 --- a/pkg/cmd/roachprod/BUILD.bazel +++ /dev/null @@ -1,34 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "roachprod_lib", - srcs = [ - "bash_completion.go", - "flags.go", - "main.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/roachprod", - visibility = ["//visibility:private"], - deps = [ - "//pkg/build", - "//pkg/roachprod", - "//pkg/roachprod/config", - "//pkg/roachprod/errors", - "//pkg/roachprod/install", - "//pkg/roachprod/logger", - "//pkg/roachprod/ssh", - "//pkg/roachprod/ui", - "//pkg/roachprod/vm", - "//pkg/roachprod/vm/gce", - "//pkg/util/flagutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_cobra//:cobra", - "@org_golang_x_term//:term", - ], -) - -go_binary( - name = "roachprod", - embed = [":roachprod_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/roachtest/BUILD.bazel b/pkg/cmd/roachtest/BUILD.bazel deleted file mode 100644 index 633d79096a1..00000000000 --- a/pkg/cmd/roachtest/BUILD.bazel +++ /dev/null @@ -1,92 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "roachtest_lib", - srcs = [ - "cluster.go", - "github.go", - "main.go", - "monitor.go", - "slack.go", - "test_impl.go", - "test_registry.go", - "test_runner.go", - "work_pool.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/roachtest", - visibility = ["//visibility:private"], - deps = [ - "//pkg/build", - "//pkg/cmd/internal/issues", - "//pkg/cmd/roachtest/cluster", - "//pkg/cmd/roachtest/option", - "//pkg/cmd/roachtest/registry", - "//pkg/cmd/roachtest/spec", - "//pkg/cmd/roachtest/test", - "//pkg/cmd/roachtest/tests", - "//pkg/internal/team", - "//pkg/roachprod", - "//pkg/roachprod/config", - "//pkg/roachprod/errors", - "//pkg/roachprod/install", - "//pkg/roachprod/logger", - "//pkg/roachprod/vm", - "//pkg/testutils/skip", - "//pkg/util/contextutil", - "//pkg/util/ctxgroup", - "//pkg/util/log", - "//pkg/util/quotapool", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/version", - "@com_github_armon_circbuf//:circbuf", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_lib_pq//:pq", - "@com_github_petermattis_goid//:goid", - "@com_github_slack_go_slack//:slack", - "@com_github_spf13_cobra//:cobra", - "@com_github_spf13_pflag//:pflag", - "@org_golang_x_sync//errgroup", - ], -) - -go_binary( - name = "roachtest", - embed = [":roachtest_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "roachtest_test", - size = "small", - srcs = [ - "cluster_test.go", - "github_test.go", - "main_test.go", - "test_registry_test.go", - "test_test.go", - ], - embed = [":roachtest_lib"], - deps = [ - "//pkg/cmd/roachtest/cluster", - "//pkg/cmd/roachtest/option", - "//pkg/cmd/roachtest/registry", - "//pkg/cmd/roachtest/spec", - "//pkg/cmd/roachtest/test", - "//pkg/internal/team", - "//pkg/roachprod/logger", - "//pkg/roachprod/vm", - "//pkg/testutils", - "//pkg/util/quotapool", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/version", - "@com_github_cockroachdb_errors//:errors", - "@com_github_kr_pretty//:pretty", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/cmd/roachtest/cluster/BUILD.bazel b/pkg/cmd/roachtest/cluster/BUILD.bazel deleted file mode 100644 index 5e9c10ca7fb..00000000000 --- a/pkg/cmd/roachtest/cluster/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "cluster", - srcs = [ - "cluster_interface.go", - "err_command_details.go", - "monitor_interface.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/roachtest/cluster", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cmd/roachtest/option", - "//pkg/cmd/roachtest/spec", - "//pkg/roachprod/install", - "//pkg/roachprod/logger", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/cmd/roachtest/option/BUILD.bazel b/pkg/cmd/roachtest/option/BUILD.bazel deleted file mode 100644 index 182409c1f10..00000000000 --- a/pkg/cmd/roachtest/option/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "option", - srcs = [ - "node_list_option.go", - "node_lister.go", - "option_interface.go", - "options.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/roachtest/option", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachprod", - "//pkg/roachprod/install", - ], -) diff --git a/pkg/cmd/roachtest/prometheus/BUILD.bazel b/pkg/cmd/roachtest/prometheus/BUILD.bazel deleted file mode 100644 index bcdf3635b8a..00000000000 --- a/pkg/cmd/roachtest/prometheus/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@bazel_gomock//:gomock.bzl", "gomock") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "prometheus", - srcs = ["prometheus.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/roachtest/prometheus", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cmd/roachtest/option", - "//pkg/roachprod/logger", - "@com_github_prometheus_client_golang//api/prometheus/v1:prometheus", - "@com_github_prometheus_common//model", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) - -go_test( - name = "prometheus_test", - srcs = [ - "prometheus_test.go", - ":prometheus_mocks", # keep - ], - embed = [":prometheus"], - deps = [ - "//pkg/cmd/roachtest/option", - "//pkg/roachprod/logger", - "@com_github_golang_mock//gomock", - "@com_github_stretchr_testify//require", - ], -) - -gomock( - name = "prometheus_mocks", - out = "mocks_generated_test.go", - interfaces = ["Cluster"], - library = ":prometheus", - package = "prometheus", - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/roachtest/registry/BUILD.bazel b/pkg/cmd/roachtest/registry/BUILD.bazel deleted file mode 100644 index 89772d26e6a..00000000000 --- a/pkg/cmd/roachtest/registry/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "registry", - srcs = [ - "encryption.go", - "filter.go", - "owners.go", - "registry_interface.go", - "tag.go", - "test_spec.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/roachtest/registry", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cmd/roachtest/cluster", - "//pkg/cmd/roachtest/spec", - "//pkg/cmd/roachtest/test", - ], -) diff --git a/pkg/cmd/roachtest/spec/BUILD.bazel b/pkg/cmd/roachtest/spec/BUILD.bazel deleted file mode 100644 index 637b7c8cbeb..00000000000 --- a/pkg/cmd/roachtest/spec/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "spec", - srcs = [ - "cloud.go", - "cluster_spec.go", - "machine_type.go", - "option.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/roachtest/spec", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachprod/vm", - "//pkg/roachprod/vm/aws", - "//pkg/roachprod/vm/azure", - "//pkg/roachprod/vm/gce", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/cmd/roachtest/test/BUILD.bazel b/pkg/cmd/roachtest/test/BUILD.bazel deleted file mode 100644 index a8758568e17..00000000000 --- a/pkg/cmd/roachtest/test/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "test", - srcs = ["test_interface.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/roachtest/test", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachprod/logger", - "//pkg/util/version", - ], -) diff --git a/pkg/cmd/roachtest/tests/BUILD.bazel b/pkg/cmd/roachtest/tests/BUILD.bazel deleted file mode 100644 index 5dd29d985c1..00000000000 --- a/pkg/cmd/roachtest/tests/BUILD.bazel +++ /dev/null @@ -1,257 +0,0 @@ -load("@bazel_gomock//:gomock.bzl", "gomock") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "tests", - srcs = [ - "acceptance.go", - "activerecord.go", - "activerecord_blocklist.go", - "allocator.go", - "alterpk.go", - "asyncpg.go", - "asyncpg_blocklist.go", - "autoupgrade.go", - "backup.go", - "build_info.go", - "canary.go", - "cancel.go", - "cdc.go", - "chaos.go", - "clearrange.go", - "cli.go", - "clock_jump_crash.go", - "clock_monotonic.go", - "clock_util.go", - "cluster_init.go", - "connection_latency.go", - "copy.go", - "decommission.go", - "decommission_self.go", - "disk_full.go", - "disk_stall.go", - "django.go", - "django_blocklist.go", - "drain.go", - "drop.go", - "drt.go", - "encryption.go", - "engine_switch.go", - "event_log.go", - "fixtures.go", - "flowable.go", - "follower_reads.go", - "go_helpers.go", - "gopg.go", - "gopg_blocklist.go", - "gorm.go", - "gorm_blocklist.go", - "gossip.go", - "hibernate.go", - "hibernate_blocklist.go", - "hotspotsplits.go", - "import.go", - "import_cancellation.go", - "inconsistency.go", - "indexes.go", - "inverted_index.go", - "jasyncsql.go", - "jasyncsql_blocklist.go", - "java_helpers.go", - "jepsen.go", - "jobs.go", - "knex.go", - "kv.go", - "kvbench.go", - "ledger.go", - "libpq.go", - "libpq_blocklist.go", - "liquibase.go", - "liquibase_blocklist.go", - "many_splits.go", - "mixed_version_decommission.go", - "mixed_version_jobs.go", - "mixed_version_schemachange.go", - "multitenant.go", - "multitenant_upgrade.go", - "multitenant_utils.go", - "network.go", - "nodejs_postgres.go", - "orm_helpers.go", - "overload_tpcc_olap.go", - "pebble_write_throughput.go", - "pebble_ycsb.go", - "pgjdbc.go", - "pgjdbc_blocklist.go", - "pgx.go", - "pgx_blocklist.go", - "pop.go", - "predecessor_version.go", - "psycopg.go", - "psycopg_blocklist.go", - "python_helpers.go", - "queue.go", - "quit.go", - "rapid_restart.go", - "rebalance_load.go", - "registry.go", - "remove_invalid_database_privileges.go", - "replicagc.go", - "reset_quorum.go", - "restart.go", - "restore.go", - "roachmart.go", - "roachtest.go", - "ruby_pg.go", - "ruby_pg_blocklist.go", - "schema_change_database_version_upgrade.go", - "schemachange.go", - "schemachange_random_load.go", - "scrub.go", - "secondary_indexes.go", - "sequelize.go", - "slow_drain.go", - "smoketest_secure.go", - "split.go", - "sqlalchemy.go", - "sqlalchemy_blocklist.go", - "sqlsmith.go", - "sstable_corruption.go", - "status_server.go", - "synctest.go", - "sysbench.go", - "tlp.go", - "toxiproxy.go", - "tpc_utils.go", - "tpcc.go", - "tpcdsvec.go", - "tpce.go", - "tpch_concurrency.go", - "tpchbench.go", - "tpchvec.go", - "ts_util.go", - "typeorm.go", - "util.go", - "util_disk_usage.go", - "util_if_local.go", - "util_load_group.go", - "validate_grant_option.go", - "version.go", - "version_upgrade_public_schema.go", - "versionupgrade.go", - "ycsb.go", - ], - embedsrcs = ["predecessor_version.json"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/roachtest/tests", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/ccl/changefeedccl", - "//pkg/ccl/changefeedccl/cdctest", - "//pkg/ccl/changefeedccl/changefeedbase", - "//pkg/cli", - "//pkg/cloud", - "//pkg/cloud/amazon", - "//pkg/cloud/gcp", - "//pkg/clusterversion", - "//pkg/cmd/cmpconn", - "//pkg/cmd/roachtest/cluster", - "//pkg/cmd/roachtest/option", - "//pkg/cmd/roachtest/prometheus", - "//pkg/cmd/roachtest/registry", - "//pkg/cmd/roachtest/spec", - "//pkg/cmd/roachtest/test", - "//pkg/gossip", - "//pkg/internal/sqlsmith", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/roachprod", - "//pkg/roachprod/errors", - "//pkg/roachprod/install", - "//pkg/roachprod/logger", - "//pkg/security", - "//pkg/server", - "//pkg/server/serverpb", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/testutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/ts/tspb", - "//pkg/util", - "//pkg/util/binfetcher", - "//pkg/util/cancelchecker", - "//pkg/util/contextutil", - "//pkg/util/httputil", - "//pkg/util/humanizeutil", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/retry", - "//pkg/util/search", - "//pkg/util/timeutil", - "//pkg/util/version", - "//pkg/workload/histogram", - "//pkg/workload/querybench", - "//pkg/workload/tpcc", - "//pkg/workload/tpcds", - "//pkg/workload/tpch", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_ttycolor//:ttycolor", - "@com_github_codahale_hdrhistogram//:hdrhistogram", - "@com_github_dustin_go_humanize//:go-humanize", - "@com_github_google_go_cmp//cmp", - "@com_github_jackc_pgtype//:pgtype", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_kr_pretty//:pretty", - "@com_github_lib_pq//:pq", - "@com_github_prometheus_client_golang//api", - "@com_github_prometheus_client_golang//api/prometheus/v1:prometheus", - "@com_github_prometheus_common//model", - "@com_github_shopify_sarama//:sarama", - "@com_github_shopify_toxiproxy//client", - "@com_github_stretchr_testify//require", - "@org_golang_x_exp//rand", - "@org_golang_x_sync//errgroup", - ], -) - -go_test( - name = "tests_test", - srcs = [ - "blocklist_test.go", - "drt_test.go", - "tpcc_test.go", - "util_load_group_test.go", - ":mocks_drt", # keep - ], - embed = [":tests"], - deps = [ - "//pkg/cmd/roachtest/option", - "//pkg/cmd/roachtest/prometheus", - "//pkg/cmd/roachtest/spec", - "//pkg/roachprod/logger", - "//pkg/testutils/skip", - "//pkg/util/version", - "@com_github_golang_mock//gomock", - "@com_github_google_go_github//github", - "@com_github_prometheus_common//model", - "@com_github_stretchr_testify//require", - "@org_golang_x_oauth2//:oauth2", - ], -) - -gomock( - name = "mocks_drt", - out = "drt_generated_test.go", - interfaces = ["Client"], - library = "//pkg/cmd/roachtest/prometheus", - package = "tests", - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/cmd/roachvet/BUILD.bazel b/pkg/cmd/roachvet/BUILD.bazel deleted file mode 100644 index f9b2ca20586..00000000000 --- a/pkg/cmd/roachvet/BUILD.bazel +++ /dev/null @@ -1,52 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "roachvet_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/roachvet", - visibility = ["//visibility:private"], - deps = [ - "//pkg/testutils/lint/passes/errcmp", - "//pkg/testutils/lint/passes/errwrap", - "//pkg/testutils/lint/passes/fmtsafe", - "//pkg/testutils/lint/passes/forbiddenmethod", - "//pkg/testutils/lint/passes/hash", - "//pkg/testutils/lint/passes/leaktestcall", - "//pkg/testutils/lint/passes/nilness", - "//pkg/testutils/lint/passes/nocopy", - "//pkg/testutils/lint/passes/returnerrcheck", - "//pkg/testutils/lint/passes/timer", - "//pkg/testutils/lint/passes/unconvert", - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/analysis/passes/asmdecl", - "@org_golang_x_tools//go/analysis/passes/assign", - "@org_golang_x_tools//go/analysis/passes/atomic", - "@org_golang_x_tools//go/analysis/passes/bools", - "@org_golang_x_tools//go/analysis/passes/buildtag", - "@org_golang_x_tools//go/analysis/passes/cgocall", - "@org_golang_x_tools//go/analysis/passes/composite", - "@org_golang_x_tools//go/analysis/passes/copylock", - "@org_golang_x_tools//go/analysis/passes/errorsas", - "@org_golang_x_tools//go/analysis/passes/httpresponse", - "@org_golang_x_tools//go/analysis/passes/loopclosure", - "@org_golang_x_tools//go/analysis/passes/lostcancel", - "@org_golang_x_tools//go/analysis/passes/nilfunc", - "@org_golang_x_tools//go/analysis/passes/printf", - "@org_golang_x_tools//go/analysis/passes/shadow", - "@org_golang_x_tools//go/analysis/passes/shift", - "@org_golang_x_tools//go/analysis/passes/stdmethods", - "@org_golang_x_tools//go/analysis/passes/structtag", - "@org_golang_x_tools//go/analysis/passes/tests", - "@org_golang_x_tools//go/analysis/passes/unmarshal", - "@org_golang_x_tools//go/analysis/passes/unreachable", - "@org_golang_x_tools//go/analysis/passes/unsafeptr", - "@org_golang_x_tools//go/analysis/passes/unusedresult", - "@org_golang_x_tools//go/analysis/unitchecker", - ], -) - -go_binary( - name = "roachvet", - embed = [":roachvet_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/skip-test/BUILD.bazel b/pkg/cmd/skip-test/BUILD.bazel deleted file mode 100644 index 665abcbcefa..00000000000 --- a/pkg/cmd/skip-test/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "skip-test_lib", - srcs = [ - "exec.go", - "main.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/skip-test", - visibility = ["//visibility:private"], - deps = [ - "@com_github_cockroachdb_errors//:errors", - "@com_github_google_go_github//github", - "@org_golang_x_oauth2//:oauth2", - ], -) - -go_binary( - name = "skip-test", - embed = [":skip-test_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/skiperrs/BUILD.bazel b/pkg/cmd/skiperrs/BUILD.bazel deleted file mode 100644 index 1b55fb52d9c..00000000000 --- a/pkg/cmd/skiperrs/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "skiperrs_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/skiperrs", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cmd/cr2pg/sqlstream", - "@com_github_lib_pq//:pq", - ], -) - -go_binary( - name = "skiperrs", - embed = [":skiperrs_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/skipped-tests/BUILD.bazel b/pkg/cmd/skipped-tests/BUILD.bazel deleted file mode 100644 index 92d97e1e19f..00000000000 --- a/pkg/cmd/skipped-tests/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "skipped-tests_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/skipped-tests", - visibility = ["//visibility:private"], - deps = [ - "@com_github_cockroachdb_errors//:errors", - "@com_github_ghemawat_stream//:stream", - "@com_github_slack_go_slack//:slack", - ], -) - -go_binary( - name = "skipped-tests", - embed = [":skipped-tests_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/smithcmp/BUILD.bazel b/pkg/cmd/smithcmp/BUILD.bazel deleted file mode 100644 index e7e683e5ef1..00000000000 --- a/pkg/cmd/smithcmp/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "smithcmp_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/smithcmp", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cmd/cmpconn", - "//pkg/internal/sqlsmith", - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/timeutil", - "@com_github_burntsushi_toml//:toml", - "@com_github_lib_pq//oid", - ], -) - -go_binary( - name = "smithcmp", - embed = [":smithcmp_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/smithtest/BUILD.bazel b/pkg/cmd/smithtest/BUILD.bazel deleted file mode 100644 index e3fabb4e5c3..00000000000 --- a/pkg/cmd/smithtest/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "smithtest_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/smithtest", - visibility = ["//visibility:private"], - deps = [ - "//pkg/internal/sqlsmith", - "//pkg/util/ctxgroup", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_google_go_github//github", - "@com_github_jackc_pgconn//:pgconn", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_lib_pq//:pq", - "@com_github_pkg_browser//:browser", - ], -) - -go_binary( - name = "smithtest", - embed = [":smithtest_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/testfilter/BUILD.bazel b/pkg/cmd/testfilter/BUILD.bazel deleted file mode 100644 index 3b4a6467e9f..00000000000 --- a/pkg/cmd/testfilter/BUILD.bazel +++ /dev/null @@ -1,28 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "testfilter_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/testfilter", - visibility = ["//visibility:private"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) - -go_binary( - name = "testfilter", - embed = [":testfilter_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "testfilter_test", - size = "small", - srcs = ["main_test.go"], - data = glob(["testdata/**"]), - embed = [":testfilter_lib"], - deps = [ - "//pkg/testutils", - "//pkg/util/leaktest", - "@com_github_cockroachdb_datadriven//:datadriven", - ], -) diff --git a/pkg/cmd/uptodate/BUILD.bazel b/pkg/cmd/uptodate/BUILD.bazel deleted file mode 100644 index 570d1e7fd8e..00000000000 --- a/pkg/cmd/uptodate/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "uptodate_lib", - srcs = ["uptodate.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/uptodate", - visibility = ["//visibility:private"], - deps = [ - "@com_github_cockroachdb_errors//oserror", - "@com_github_michaeltjones_walk//:walk", - "@com_github_spf13_pflag//:pflag", - ], -) - -go_binary( - name = "uptodate", - embed = [":uptodate_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/urlcheck/BUILD.bazel b/pkg/cmd/urlcheck/BUILD.bazel deleted file mode 100644 index 678523f8c6b..00000000000 --- a/pkg/cmd/urlcheck/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "urlcheck_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/urlcheck", - visibility = ["//visibility:private"], - deps = ["//pkg/cmd/urlcheck/lib/urlcheck"], -) - -go_binary( - name = "urlcheck", - embed = [":urlcheck_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/urlcheck/lib/urlcheck/BUILD.bazel b/pkg/cmd/urlcheck/lib/urlcheck/BUILD.bazel deleted file mode 100644 index c2ef90ecc84..00000000000 --- a/pkg/cmd/urlcheck/lib/urlcheck/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "urlcheck", - srcs = ["urlcheck.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/urlcheck/lib/urlcheck", - visibility = ["//visibility:public"], - deps = [ - "@com_github_cockroachdb_errors//:errors", - "@com_github_ghemawat_stream//:stream", - ], -) diff --git a/pkg/cmd/workload/BUILD.bazel b/pkg/cmd/workload/BUILD.bazel deleted file mode 100644 index ec759d12fc0..00000000000 --- a/pkg/cmd/workload/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "workload_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/workload", - visibility = ["//visibility:private"], - deps = [ - "//pkg/ccl/workloadccl/allccl", - "//pkg/ccl/workloadccl/cliccl", - "//pkg/workload/cli", - ], -) - -go_binary( - name = "workload", - embed = [":workload_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/wraprules/BUILD.bazel b/pkg/cmd/wraprules/BUILD.bazel deleted file mode 100644 index 5035e626824..00000000000 --- a/pkg/cmd/wraprules/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "wraprules_lib", - srcs = ["wraprules.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/wraprules", - visibility = ["//visibility:private"], - deps = [ - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_cobra//:cobra", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) - -go_binary( - name = "wraprules", - embed = [":wraprules_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/cmd/zerosum/BUILD.bazel b/pkg/cmd/zerosum/BUILD.bazel deleted file mode 100644 index 773c5b90e13..00000000000 --- a/pkg/cmd/zerosum/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "zerosum_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/cmd/zerosum", - visibility = ["//visibility:private"], - deps = [ - "//pkg/acceptance/cluster", - "//pkg/acceptance/localcluster", - "//pkg/cli/exit", - "//pkg/keys", - "//pkg/util/encoding", - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_errors//oserror", - ], -) - -go_binary( - name = "zerosum", - embed = [":zerosum_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/col/coldata/BUILD.bazel b/pkg/col/coldata/BUILD.bazel deleted file mode 100644 index be01781363c..00000000000 --- a/pkg/col/coldata/BUILD.bazel +++ /dev/null @@ -1,76 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "coldata", - srcs = [ - "batch.go", - "bytes.go", - "datum_vec.go", - "json.go", - "native_types.go", - "nulls.go", - "testutils.go", - "vec.go", - ":gen-vec", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/col/coldata", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/typeconv", - "//pkg/sql/colexecerror", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/buildutil", - "//pkg/util/duration", - "//pkg/util/json", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) - -go_test( - name = "coldata_test", - size = "small", - srcs = [ - "batch_test.go", - "bytes_test.go", - "dep_test.go", - "main_test.go", - "nulls_test.go", - "vec_test.go", - ], - embed = [":coldata"], - tags = ["no-remote"], - deps = [ - "//pkg/col/coldatatestutils", - "//pkg/sql/colconv", - "//pkg/sql/randgen", - "//pkg/sql/types", - "//pkg/testutils/buildutil", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) - -genrule( - name = "gen-vec", - srcs = ["vec_tmpl.go"], - outs = ["vec.eg.go"], - cmd = """ - $(location //pkg/sql/colexec/execgen/cmd/execgen) \ - -fmt=false pkg/col/coldata/$@ > $@ - $(location @com_github_cockroachdb_gostdlib//x/tools/cmd/goimports) -w $@ - """, - exec_tools = [ - "//pkg/sql/colexec/execgen/cmd/execgen", - "@com_github_cockroachdb_gostdlib//x/tools/cmd/goimports", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/col/coldataext/BUILD.bazel b/pkg/col/coldataext/BUILD.bazel deleted file mode 100644 index 22e212eed74..00000000000 --- a/pkg/col/coldataext/BUILD.bazel +++ /dev/null @@ -1,38 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "coldataext", - srcs = [ - "datum_vec.go", - "extended_column_factory.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/col/coldataext", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/typeconv", - "//pkg/sql/colexecerror", - "//pkg/sql/memsize", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/buildutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "coldataext_test", - size = "small", - srcs = ["datum_vec_test.go"], - embed = [":coldataext"], - deps = [ - "//pkg/col/coldata", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/json", - "//pkg/util/leaktest", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/col/coldatatestutils/BUILD.bazel b/pkg/col/coldatatestutils/BUILD.bazel deleted file mode 100644 index a9b5cfa2a79..00000000000 --- a/pkg/col/coldatatestutils/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "coldatatestutils", - srcs = [ - "random_testutils.go", - "utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/col/coldatatestutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/randgen", - "//pkg/sql/types", - "//pkg/util/duration", - "//pkg/util/json", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/col/colserde/BUILD.bazel b/pkg/col/colserde/BUILD.bazel deleted file mode 100644 index 41ba3d8eff6..00000000000 --- a/pkg/col/colserde/BUILD.bazel +++ /dev/null @@ -1,64 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "colserde", - srcs = [ - "arrowbatchconverter.go", - "file.go", - "record_batch.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/col/colserde", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/colserde/arrowserde", - "//pkg/col/typeconv", - "//pkg/sql/memsize", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/duration", - "@com_github_apache_arrow_go_arrow//array", - "@com_github_apache_arrow_go_arrow//memory", - "@com_github_cockroachdb_errors//:errors", - "@com_github_edsrzf_mmap_go//:mmap-go", - "@com_github_google_flatbuffers//go", - ], -) - -go_test( - name = "colserde_test", - size = "small", - srcs = [ - "arrowbatchconverter_test.go", - "file_test.go", - "main_test.go", - "record_batch_test.go", - ], - deps = [ - ":colserde", - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/coldatatestutils", - "//pkg/col/typeconv", - "//pkg/settings/cluster", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/memsize", - "//pkg/sql/randgen", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/util/json", - "//pkg/util/leaktest", - "//pkg/util/mon", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "@com_github_apache_arrow_go_arrow//:arrow", - "@com_github_apache_arrow_go_arrow//array", - "@com_github_apache_arrow_go_arrow//memory", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/col/colserde/arrowserde/BUILD.bazel b/pkg/col/colserde/arrowserde/BUILD.bazel deleted file mode 100644 index 52f8a7572a9..00000000000 --- a/pkg/col/colserde/arrowserde/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "arrowserde", - srcs = [ - "doc.go", - # These files should be generated in the sandbox: see #72292. - "file_generated.go", # keep - "message_generated.go", # keep - "schema_generated.go", # keep - "tensor_generated.go", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/col/colserde/arrowserde", - visibility = ["//visibility:public"], - deps = [ - "@com_github_google_flatbuffers//go", # keep - ], -) diff --git a/pkg/col/typeconv/BUILD.bazel b/pkg/col/typeconv/BUILD.bazel deleted file mode 100644 index 4763a3aa977..00000000000 --- a/pkg/col/typeconv/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "typeconv", - srcs = ["typeconv.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/col/typeconv", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/types", - "//pkg/util/duration", - "//pkg/util/json", - "@com_github_cockroachdb_apd_v3//:apd", - ], -) diff --git a/pkg/compose/BUILD.bazel b/pkg/compose/BUILD.bazel deleted file mode 100644 index c2a551c05f3..00000000000 --- a/pkg/compose/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "compose", - srcs = ["empty.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/compose", - visibility = ["//visibility:public"], -) - -go_test( - name = "compose_test", - srcs = ["compose_test.go"], - data = [ - "//c-deps:libgeos", - "//pkg/compose:compare/docker-compose.yml", - ], - embed = [":compose"], - gotags = ["compose"], - tags = ["integration"], - deps = ["//pkg/build/bazel"], -) diff --git a/pkg/compose/compare/compare/BUILD.bazel b/pkg/compose/compare/compare/BUILD.bazel deleted file mode 100644 index a941ec287a8..00000000000 --- a/pkg/compose/compare/compare/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "compare", - srcs = ["empty.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/compose/compare/compare", - visibility = ["//visibility:public"], -) - -go_test( - name = "compare_test", - srcs = ["compare_test.go"], - embed = [":compare"], - gotags = ["compose"], - tags = ["integration"], - visibility = ["//pkg/compose:__subpackages__"], - deps = [ - "//pkg/cmd/cmpconn", - "//pkg/internal/sqlsmith", - "//pkg/sql/randgen", - "//pkg/testutils", - "//pkg/util/randutil", - "@com_github_jackc_pgx_v4//:pgx", - ], -) diff --git a/pkg/config/BUILD.bazel b/pkg/config/BUILD.bazel deleted file mode 100644 index 4c52665d963..00000000000 --- a/pkg/config/BUILD.bazel +++ /dev/null @@ -1,77 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "config", - srcs = [ - "keys.go", - "provider.go", - "system.go", - "system_mask.go", - "testutil.go", - ], - embed = [":config_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/config", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/catalog/tabledesc", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - ], -) - -go_test( - name = "config_test", - size = "small", - srcs = [ - "keys_test.go", - "main_test.go", - "system_test.go", - ], - deps = [ - ":config", - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/catalog/tabledesc", - "//pkg/testutils", - "//pkg/util/encoding", - "//pkg/util/leaktest", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "config_proto", - srcs = ["system.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb:roachpb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "config_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/config", - proto = ":config_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "@com_github_gogo_protobuf//gogoproto", - ], -) diff --git a/pkg/config/zonepb/BUILD.bazel b/pkg/config/zonepb/BUILD.bazel deleted file mode 100644 index 87753db818a..00000000000 --- a/pkg/config/zonepb/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "zonepb", - srcs = [ - "zone.go", - "zone_yaml.go", - ], - embed = [":zonepb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/config/zonepb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/sql/sem/tree", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//proto", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) - -go_test( - name = "zonepb_test", - size = "small", - srcs = ["zone_test.go"], - embed = [":zonepb"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/sql/sem/tree", - "//pkg/testutils", - "//pkg/util/leaktest", - "//pkg/util/timeutil", - "@com_github_gogo_protobuf//proto", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) - -proto_library( - name = "zonepb_proto", - srcs = ["zone.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "zonepb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/config/zonepb", - proto = ":zonepb_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) diff --git a/pkg/docs/BUILD.bazel b/pkg/docs/BUILD.bazel deleted file mode 100644 index 95d2b4ca9a2..00000000000 --- a/pkg/docs/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "docs", - srcs = ["docs.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/docs", - visibility = ["//visibility:public"], - deps = ["//pkg/build"], -) diff --git a/pkg/featureflag/BUILD.bazel b/pkg/featureflag/BUILD.bazel deleted file mode 100644 index cca656d94c9..00000000000 --- a/pkg/featureflag/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "featureflag", - srcs = ["feature_flags.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/featureflag", - visibility = ["//visibility:public"], - deps = [ - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sqltelemetry", - "//pkg/util/log", - "//pkg/util/metric", - ], -) diff --git a/pkg/gen/BUILD.bazel b/pkg/gen/BUILD.bazel deleted file mode 100644 index 5d0b1e6c78d..00000000000 --- a/pkg/gen/BUILD.bazel +++ /dev/null @@ -1,38 +0,0 @@ -load(":gen.bzl", "bindata", "docs", "execgen", "gen", "go_proto", "gomock", "misc", "optgen", "stringer") - -bindata() - -execgen() - -gomock() - -go_proto() - -stringer() - -optgen() - -misc() - -docs() - -gen( - name = "gen", - srcs = [ - ":code", - ":docs", - ], -) - -gen( - name = "code", - srcs = [ - ":bindata", - ":execgen", - ":go_proto", - ":gomock", - ":misc", - ":optgen", - ":stringer", - ], -) diff --git a/pkg/gen/genbzl/BUILD.bazel b/pkg/gen/genbzl/BUILD.bazel deleted file mode 100644 index 5f9d5cc8bd7..00000000000 --- a/pkg/gen/genbzl/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "genbzl_lib", - srcs = [ - "main.go", - "target.go", - "targets.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/gen/genbzl", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cli/exit", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_binary( - name = "genbzl", - embed = [":genbzl_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/geo/BUILD.bazel b/pkg/geo/BUILD.bazel deleted file mode 100644 index 4b15786640a..00000000000 --- a/pkg/geo/BUILD.bazel +++ /dev/null @@ -1,65 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "geo", - srcs = [ - "bbox.go", - "encode.go", - "errors.go", - "geo.go", - "hilbert.go", - "iterator.go", - "latlng.go", - "parse.go", - "polyline.go", - "summary.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/geo", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo/geographiclib", - "//pkg/geo/geopb", - "//pkg/geo/geoprojbase", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/util", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_golang_geo//r1", - "@com_github_golang_geo//s1", - "@com_github_golang_geo//s2", - "@com_github_pierrre_geohash//:geohash", - "@com_github_twpayne_go_geom//:go-geom", - "@com_github_twpayne_go_geom//encoding/ewkb", - "@com_github_twpayne_go_geom//encoding/ewkbhex", - "@com_github_twpayne_go_geom//encoding/geojson", - "@com_github_twpayne_go_geom//encoding/kml", - "@com_github_twpayne_go_geom//encoding/wkb", - "@com_github_twpayne_go_geom//encoding/wkbcommon", - "@com_github_twpayne_go_geom//encoding/wkbhex", - "@com_github_twpayne_go_geom//encoding/wkt", - ], -) - -go_test( - name = "geo_test", - size = "small", - srcs = [ - "bbox_test.go", - "encode_test.go", - "geo_test.go", - "iterator_test.go", - "latlng_test.go", - "parse_test.go", - ], - embed = [":geo"], - deps = [ - "//pkg/geo/geopb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_golang_geo//s2", - "@com_github_pierrre_geohash//:geohash", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@com_github_twpayne_go_geom//:go-geom", - ], -) diff --git a/pkg/geo/geodist/BUILD.bazel b/pkg/geo/geodist/BUILD.bazel deleted file mode 100644 index 015136e6f0c..00000000000 --- a/pkg/geo/geodist/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "geodist", - srcs = ["geodist.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geodist", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "@com_github_golang_geo//s2", - "@com_github_twpayne_go_geom//:go-geom", - ], -) diff --git a/pkg/geo/geogen/BUILD.bazel b/pkg/geo/geogen/BUILD.bazel deleted file mode 100644 index 17a17daebf2..00000000000 --- a/pkg/geo/geogen/BUILD.bazel +++ /dev/null @@ -1,28 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "geogen", - srcs = ["geogen.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geogen", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo", - "//pkg/geo/geopb", - "//pkg/geo/geoprojbase", - "@com_github_cockroachdb_errors//:errors", - "@com_github_twpayne_go_geom//:go-geom", - ], -) - -go_test( - name = "geogen_test", - size = "small", - srcs = ["geogen_test.go"], - embed = [":geogen"], - deps = [ - "//pkg/geo/geopb", - "//pkg/util/randutil", - "@com_github_stretchr_testify//require", - "@com_github_twpayne_go_geom//:go-geom", - ], -) diff --git a/pkg/geo/geogfn/BUILD.bazel b/pkg/geo/geogfn/BUILD.bazel deleted file mode 100644 index 9b839531608..00000000000 --- a/pkg/geo/geogfn/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "geogfn", - srcs = [ - "azimuth.go", - "best_projection.go", - "covers.go", - "distance.go", - "dwithin.go", - "geogfn.go", - "geographiclib.go", - "intersects.go", - "segmentize.go", - "topology_operations.go", - "unary_operators.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geogfn", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo", - "//pkg/geo/geodist", - "//pkg/geo/geographiclib", - "//pkg/geo/geopb", - "//pkg/geo/geoprojbase", - "//pkg/geo/geosegmentize", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "@com_github_golang_geo//r3", - "@com_github_golang_geo//s1", - "@com_github_golang_geo//s2", - "@com_github_twpayne_go_geom//:go-geom", - ], -) - -go_test( - name = "geogfn_test", - size = "small", - srcs = [ - "azimuth_test.go", - "best_projection_test.go", - "covers_test.go", - "distance_test.go", - "dwithin_test.go", - "geogfn_test.go", - "intersects_test.go", - "segmentize_test.go", - "topology_operations_test.go", - "unary_operators_test.go", - ], - data = ["@cockroach//c-deps:libgeos"], - embed = [":geogfn"], - deps = [ - "//pkg/geo", - "//pkg/geo/geoprojbase", - "@com_github_golang_geo//s1", - "@com_github_golang_geo//s2", - "@com_github_stretchr_testify//require", - "@com_github_twpayne_go_geom//:go-geom", - ], -) diff --git a/pkg/geo/geographiclib/BUILD.bazel b/pkg/geo/geographiclib/BUILD.bazel deleted file mode 100644 index a0d9cd241e1..00000000000 --- a/pkg/geo/geographiclib/BUILD.bazel +++ /dev/null @@ -1,33 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "geographiclib", - srcs = [ - "geodesic.c", - "geodesic.h", - "geographiclib.cc", - "geographiclib.go", - "geographiclib.h", - ], - cgo = True, - clinkopts = ["-lm"], - cxxopts = ["-std=c++14"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geographiclib", - visibility = ["//visibility:public"], - deps = [ - "@com_github_golang_geo//s1", - "@com_github_golang_geo//s2", - ], -) - -go_test( - name = "geographiclib_test", - size = "small", - srcs = ["geographiclib_test.go"], - embed = [":geographiclib"], - deps = [ - "@com_github_golang_geo//s1", - "@com_github_golang_geo//s2", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/geo/geoindex/BUILD.bazel b/pkg/geo/geoindex/BUILD.bazel deleted file mode 100644 index 361f6619f93..00000000000 --- a/pkg/geo/geoindex/BUILD.bazel +++ /dev/null @@ -1,69 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "geoindex", - srcs = [ - "geoindex.go", - "s2_geography_index.go", - "s2_geometry_index.go", - ], - embed = [":geoindex_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geoindex", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo", - "//pkg/geo/geogfn", - "//pkg/geo/geomfn", - "//pkg/geo/geopb", - "//pkg/geo/geoprojbase", - "//pkg/geo/geos", - "@com_github_cockroachdb_errors//:errors", - "@com_github_golang_geo//r3", - "@com_github_golang_geo//s1", - "@com_github_golang_geo//s2", - "@com_github_twpayne_go_geom//:go-geom", - ], -) - -go_test( - name = "geoindex_test", - size = "small", - srcs = [ - "s2_geography_index_test.go", - "s2_geometry_index_test.go", - "utils_test.go", - ], - data = glob(["testdata/**"]) + ["@cockroach//c-deps:libgeos"], - embed = [":geoindex"], - deps = [ - "//pkg/geo", - "//pkg/geo/geogfn", - "//pkg/geo/geopb", - "//pkg/geo/geoprojbase", - "//pkg/geo/geos", - "//pkg/testutils", - "//pkg/util/leaktest", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_golang_geo//s2", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "geoindex_proto", - srcs = ["config.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "geoindex_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geoindex", - proto = ":geoindex_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) diff --git a/pkg/geo/geomfn/BUILD.bazel b/pkg/geo/geomfn/BUILD.bazel deleted file mode 100644 index c47528a0070..00000000000 --- a/pkg/geo/geomfn/BUILD.bazel +++ /dev/null @@ -1,114 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "geomfn", - srcs = [ - "add_measure.go", - "affine_transforms.go", - "angle.go", - "azimuth.go", - "binary_predicates.go", - "buffer.go", - "collections.go", - "coord.go", - "de9im.go", - "distance.go", - "envelope.go", - "flip_coordinates.go", - "force_layout.go", - "generate_points.go", - "geomfn.go", - "line_crossing_direction.go", - "linear_reference.go", - "linestring.go", - "make_geometry.go", - "node.go", - "orientation.go", - "point_polygon_optimization.go", - "remove_repeated_points.go", - "reverse.go", - "segmentize.go", - "shift_longitude.go", - "simplify.go", - "snap.go", - "snap_to_grid.go", - "subdivide.go", - "swap_ordinates.go", - "topology_operations.go", - "unary_operators.go", - "unary_predicates.go", - "validity_check.go", - "voronoi.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geomfn", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo", - "//pkg/geo/geodist", - "//pkg/geo/geopb", - "//pkg/geo/geos", - "//pkg/geo/geosegmentize", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/util", - "@com_github_cockroachdb_errors//:errors", - "@com_github_twpayne_go_geom//:go-geom", - "@com_github_twpayne_go_geom//encoding/ewkb", - "@com_github_twpayne_go_geom//xy", - "@com_github_twpayne_go_geom//xy/lineintersector", - ], -) - -go_test( - name = "geomfn_test", - size = "small", - srcs = [ - "add_measure_test.go", - "affine_transforms_test.go", - "angle_test.go", - "azimuth_test.go", - "binary_predicates_bench_test.go", - "binary_predicates_test.go", - "buffer_test.go", - "collections_test.go", - "de9im_test.go", - "distance_test.go", - "envelope_test.go", - "flip_coordinates_test.go", - "force_layout_test.go", - "generate_points_test.go", - "geomfn_test.go", - "line_crossing_direction_test.go", - "linear_reference_test.go", - "linestring_test.go", - "make_geometry_test.go", - "node_test.go", - "orientation_test.go", - "remove_repeated_points_test.go", - "reverse_test.go", - "segmentize_test.go", - "shift_longitude_test.go", - "simplify_test.go", - "snap_test.go", - "snap_to_grid_test.go", - "subdivide_test.go", - "swap_ordinates_test.go", - "topology_operations_test.go", - "unary_operators_test.go", - "unary_predicates_test.go", - "validity_check_test.go", - "voronoi_test.go", - ], - data = ["@cockroach//c-deps:libgeos"], - embed = [":geomfn"], - deps = [ - "//pkg/geo", - "//pkg/geo/geopb", - "//pkg/geo/geos", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@com_github_twpayne_go_geom//:go-geom", - "@com_github_twpayne_go_geom//encoding/wkt", - ], -) diff --git a/pkg/geo/geopb/BUILD.bazel b/pkg/geo/geopb/BUILD.bazel deleted file mode 100644 index 193819a6dff..00000000000 --- a/pkg/geo/geopb/BUILD.bazel +++ /dev/null @@ -1,38 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "geopb", - srcs = [ - "geopb.go", - "types.go", - ], - embed = [":geopb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geopb", - visibility = ["//visibility:public"], -) - -proto_library( - name = "geopb_proto", - srcs = ["geopb.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "geopb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geopb", - proto = ":geopb_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) - -go_test( - name = "geopb_test", - srcs = ["types_test.go"], - embed = [":geopb"], - deps = ["@com_github_stretchr_testify//require"], -) diff --git a/pkg/geo/geoproj/BUILD.bazel b/pkg/geo/geoproj/BUILD.bazel deleted file mode 100644 index 0502c26d592..00000000000 --- a/pkg/geo/geoproj/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "geoproj", - srcs = [ - "geoproj.go", - "proj.cc", - "proj.h", - ], - # Depend on libproj. All the necessary linker+include directive are - # automatically generated through usage of go_library, so we pin - # clinkopts/cppopts to not let gazelle look towards the cgo directives when - # autogenerating them. - # - # keep - cdeps = ["@cockroach//c-deps:libproj"], - cgo = True, - # keep - clinkopts = select({ - "@io_bazel_rules_go//go/platform:android": [ - "-lrt -lm -lpthread", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "-lm", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "-lm", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "-lrt -lm -lpthread", - ], - "@io_bazel_rules_go//go/platform:windows": [ - "-lshlwapi -lrpcrt4", - ], - "//conditions:default": [], - }), - # keep - cppopts = [], - cxxopts = ["-std=c++14"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geoproj", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo/geographiclib", - "//pkg/geo/geoprojbase", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - ], -) - -go_test( - name = "geoproj_test", - size = "small", - srcs = ["geoproj_test.go"], - embed = [":geoproj"], - deps = [ - "//pkg/geo/geoprojbase", - "//pkg/util/leaktest", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/geo/geoprojbase/BUILD.bazel b/pkg/geo/geoprojbase/BUILD.bazel deleted file mode 100644 index 8aa98676962..00000000000 --- a/pkg/geo/geoprojbase/BUILD.bazel +++ /dev/null @@ -1,28 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "geoprojbase", - srcs = [ - "geoprojbase.go", - "projections.go", - ], - embedsrcs = ["data/proj.json.gz"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geoprojbase", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo/geographiclib", - "//pkg/geo/geopb", - "//pkg/geo/geoprojbase/embeddedproj", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "geoprojbase_test", - size = "small", - srcs = ["projections_test.go"], - embed = [":geoprojbase"], - deps = ["@com_github_stretchr_testify//require"], -) diff --git a/pkg/geo/geoprojbase/embeddedproj/BUILD.bazel b/pkg/geo/geoprojbase/embeddedproj/BUILD.bazel deleted file mode 100644 index 217770e7e03..00000000000 --- a/pkg/geo/geoprojbase/embeddedproj/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "embeddedproj", - srcs = ["embedded_proj.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geoprojbase/embeddedproj", - visibility = ["//visibility:public"], -) diff --git a/pkg/geo/geos/BUILD.bazel b/pkg/geo/geos/BUILD.bazel deleted file mode 100644 index 28e5ab39935..00000000000 --- a/pkg/geo/geos/BUILD.bazel +++ /dev/null @@ -1,76 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "geos", - srcs = [ - "geos.cc", - "geos.go", - "geos.h", - ], - cgo = True, - clinkopts = select({ - "@io_bazel_rules_go//go/platform:aix": [ - "-ldl -lm", - ], - "@io_bazel_rules_go//go/platform:android": [ - "-ldl -lm", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "-ldl -lm", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "-ldl -lm", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "-ldl -lm", - ], - "@io_bazel_rules_go//go/platform:illumos": [ - "-ldl -lm", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "-ldl -lm", - ], - "@io_bazel_rules_go//go/platform:js": [ - "-ldl -lm", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "-ldl -lm", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "-ldl -lm", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "-ldl -lm", - ], - "@io_bazel_rules_go//go/platform:plan9": [ - "-ldl -lm", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "-ldl -lm", - ], - "//conditions:default": [], - }), - cxxopts = ["-std=c++14"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geos", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build/bazel", - "//pkg/docs", - "//pkg/geo/geopb", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "geos_test", - size = "small", - srcs = ["geos_test.go"], - data = ["@cockroach//c-deps:libgeos"], - embed = [":geos"], - deps = [ - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/geo/geosegmentize/BUILD.bazel b/pkg/geo/geosegmentize/BUILD.bazel deleted file mode 100644 index 5b72bd20426..00000000000 --- a/pkg/geo/geosegmentize/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "geosegmentize", - srcs = ["geosegmentize.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geosegmentize", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "@com_github_twpayne_go_geom//:go-geom", - ], -) diff --git a/pkg/geo/geotransform/BUILD.bazel b/pkg/geo/geotransform/BUILD.bazel deleted file mode 100644 index 464ff73a87f..00000000000 --- a/pkg/geo/geotransform/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "geotransform", - srcs = ["geotransform.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/geotransform", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo", - "//pkg/geo/geopb", - "//pkg/geo/geoproj", - "//pkg/geo/geoprojbase", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "@com_github_twpayne_go_geom//:go-geom", - ], -) - -go_test( - name = "geotransform_test", - size = "small", - srcs = ["geotransform_test.go"], - embed = [":geotransform"], - deps = [ - "//pkg/geo/geopb", - "//pkg/geo/geoprojbase", - "@com_github_stretchr_testify//require", - "@com_github_twpayne_go_geom//:go-geom", - ], -) diff --git a/pkg/geo/twkb/BUILD.bazel b/pkg/geo/twkb/BUILD.bazel deleted file mode 100644 index 93f4416452d..00000000000 --- a/pkg/geo/twkb/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "twkb", - srcs = ["twkb.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/geo/twkb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "@com_github_twpayne_go_geom//:go-geom", - ], -) - -go_test( - name = "twkb_test", - srcs = ["twkb_test.go"], - embed = [":twkb"], - deps = [ - "@com_github_stretchr_testify//require", - "@com_github_twpayne_go_geom//:go-geom", - ], -) diff --git a/pkg/gossip/BUILD.bazel b/pkg/gossip/BUILD.bazel deleted file mode 100644 index e5294dab5ba..00000000000 --- a/pkg/gossip/BUILD.bazel +++ /dev/null @@ -1,119 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "gossip", - srcs = [ - "client.go", - "doc.go", - "gossip.go", - "info.go", - "infostore.go", - "keys.go", - "node_set.go", - "server.go", - "status.go", - "util.go", - ], - embed = [":gossip_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/gossip", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/util", - "//pkg/util/errorutil", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/protoutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_circuitbreaker//:circuitbreaker", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@org_golang_google_grpc//:go_default_library", - ], -) - -go_test( - name = "gossip_test", - size = "small", - srcs = [ - "client_test.go", - "convergence_test.go", - "gossip_test.go", - "info_test.go", - "infostore_test.go", - "keys_test.go", - "main_test.go", - "node_set_test.go", - "status_test.go", - "storage_test.go", - "util_test.go", - ], - embed = [":gossip"], - deps = [ - "//pkg/base", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/gossip/simulation", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/testutils", - "//pkg/testutils/skip", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/netutil", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@org_golang_google_grpc//:go_default_library", - ], -) - -proto_library( - name = "gossip_proto", - srcs = ["gossip.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb:roachpb_proto", - "//pkg/util:util_proto", - "//pkg/util/hlc:hlc_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "gossip_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/gossip", - proto = ":gossip_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util", - "//pkg/util/hlc", - "@com_github_gogo_protobuf//gogoproto", - ], -) diff --git a/pkg/gossip/simulation/BUILD.bazel b/pkg/gossip/simulation/BUILD.bazel deleted file mode 100644 index 2d37411de4c..00000000000 --- a/pkg/gossip/simulation/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "simulation", - srcs = ["network.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/gossip/simulation", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/config/zonepb", - "//pkg/gossip", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/settings/cluster", - "//pkg/util", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/netutil", - "//pkg/util/stop", - "//pkg/util/uuid", - "@org_golang_google_grpc//:go_default_library", - ], -) diff --git a/pkg/internal/client/requestbatcher/BUILD.bazel b/pkg/internal/client/requestbatcher/BUILD.bazel deleted file mode 100644 index 39499f395c6..00000000000 --- a/pkg/internal/client/requestbatcher/BUILD.bazel +++ /dev/null @@ -1,32 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "requestbatcher", - srcs = ["batcher.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/internal/client/requestbatcher", - visibility = ["//pkg:__subpackages__"], - deps = [ - "//pkg/kv", - "//pkg/roachpb", - "//pkg/util/contextutil", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/timeutil", - ], -) - -go_test( - name = "requestbatcher_test", - size = "small", - srcs = ["batcher_test.go"], - embed = [":requestbatcher"], - deps = [ - "//pkg/roachpb", - "//pkg/testutils", - "//pkg/util/leaktest", - "//pkg/util/stop", - "//pkg/util/timeutil", - "@com_github_stretchr_testify//assert", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/internal/reporoot/BUILD.bazel b/pkg/internal/reporoot/BUILD.bazel deleted file mode 100644 index 2b01d73db0e..00000000000 --- a/pkg/internal/reporoot/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "reporoot", - srcs = ["reporoot.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/internal/reporoot", - visibility = ["//pkg:__subpackages__"], - deps = ["@com_github_cockroachdb_errors//oserror"], -) diff --git a/pkg/internal/rsg/BUILD.bazel b/pkg/internal/rsg/BUILD.bazel deleted file mode 100644 index b7f2ab18c3d..00000000000 --- a/pkg/internal/rsg/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rsg", - srcs = ["rsg.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/internal/rsg", - visibility = ["//pkg:__subpackages__"], - deps = [ - "//pkg/internal/rsg/yacc", - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/syncutil", - ], -) - -go_test( - name = "rsg_test", - size = "small", - srcs = ["rsg_test.go"], - embed = [":rsg"], -) diff --git a/pkg/internal/rsg/yacc/BUILD.bazel b/pkg/internal/rsg/yacc/BUILD.bazel deleted file mode 100644 index e3cdbc0572a..00000000000 --- a/pkg/internal/rsg/yacc/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "yacc", - srcs = [ - "lex.go", - "node.go", - "parse.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/internal/rsg/yacc", - visibility = ["//pkg:__subpackages__"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) - -go_test( - name = "yacc_test", - size = "small", - srcs = ["parse_test.go"], - data = ["//pkg/sql/parser:sql.y"], - embed = [":yacc"], - deps = [ - "//pkg/build/bazel", - "//pkg/util/log", - ], -) diff --git a/pkg/internal/sqlsmith/BUILD.bazel b/pkg/internal/sqlsmith/BUILD.bazel deleted file mode 100644 index 766d36a1780..00000000000 --- a/pkg/internal/sqlsmith/BUILD.bazel +++ /dev/null @@ -1,64 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "sqlsmith", - srcs = [ - "alter.go", - "bulkio.go", - "random.go", - "relational.go", - "sampler.go", - "scalar.go", - "schema.go", - "scope.go", - "setup.go", - "sqlsmith.go", - "tlp.go", - "type.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/internal/sqlsmith", - visibility = ["//pkg:__subpackages__"], - deps = [ - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/parser", - "//pkg/sql/randgen", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/sem/tree/treewindow", - "//pkg/sql/types", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - ], -) - -go_test( - name = "sqlsmith_test", - size = "medium", - srcs = [ - "main_test.go", - "sqlsmith_test.go", - ], - data = ["@cockroach//c-deps:libgeos"], - embed = [":sqlsmith"], - deps = [ - "//pkg/base", - "//pkg/ccl", - "//pkg/ccl/utilccl", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/parser", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - ], -) diff --git a/pkg/internal/team/BUILD.bazel b/pkg/internal/team/BUILD.bazel deleted file mode 100644 index 77cb05de706..00000000000 --- a/pkg/internal/team/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "team", - srcs = ["team.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/internal/team", - visibility = ["//pkg:__subpackages__"], - deps = [ - "//pkg/internal/reporoot", - "@com_github_cockroachdb_errors//:errors", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) - -go_test( - name = "team_test", - size = "small", - srcs = ["team_test.go"], - data = [ - "//:TEAMS.yaml", - ], - embed = [":team"], - deps = ["@com_github_stretchr_testify//require"], -) diff --git a/pkg/jobs/BUILD.bazel b/pkg/jobs/BUILD.bazel deleted file mode 100644 index 9f65f8f9315..00000000000 --- a/pkg/jobs/BUILD.bazel +++ /dev/null @@ -1,152 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "jobs", - srcs = [ - "adopt.go", - "config.go", - "errors.go", - "executor_impl.go", - "helpers.go", - "job_scheduler.go", - "jobs.go", - "metrics.go", - "progress.go", - "registry.go", - "resultcols.go", - "schedule_metrics.go", - "scheduled_job.go", - "scheduled_job_executor.go", - "test_helpers.go", - "testing_knobs.go", - "update.go", - "utils.go", - "validate.go", - "wait.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/jobs", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/jobs/jobspb", - "//pkg/kv", - "//pkg/multitenant", - "//pkg/roachpb", - "//pkg/scheduledjobs", - "//pkg/security", - "//pkg/server/telemetry", - "//pkg/server/tracedumper", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/protoreflect", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlliveness", - "//pkg/sql/sqlutil", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/contextutil", - "//pkg/util/envutil", - "//pkg/util/hlc", - "//pkg/util/json", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/protoutil", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//jsonpb", - "@com_github_gogo_protobuf//types", - "@com_github_prometheus_client_model//go", - "@com_github_robfig_cron_v3//:cron", - "@io_opentelemetry_go_otel//attribute", - ], -) - -go_test( - name = "jobs_test", - size = "medium", - srcs = [ - "delegate_control_test.go", - "executor_impl_test.go", - "helpers_test.go", - "job_scheduler_test.go", - "jobs_test.go", - "lease_test.go", - "main_test.go", - "registry_external_test.go", - "registry_test.go", - "scheduled_job_executor_test.go", - "scheduled_job_test.go", - "testutils_test.go", - ], - embed = [":jobs"], - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/jobs/jobspb", - "//pkg/jobs/jobstest", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/scheduledjobs", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/sql", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descbuilder", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlliveness", - "//pkg/sql/sqlutil", - "//pkg/sql/tests", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/ctxgroup", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//types", - "@com_github_google_go_cmp//cmp", - "@com_github_kr_pretty//:pretty", - "@com_github_robfig_cron_v3//:cron", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/jobs/joberror/BUILD.bazel b/pkg/jobs/joberror/BUILD.bazel deleted file mode 100644 index 2f617cb7ac2..00000000000 --- a/pkg/jobs/joberror/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "joberror", - srcs = ["errors.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/jobs/joberror", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvclient/kvcoord", - "//pkg/sql/flowinfra", - "//pkg/util/circuit", - "//pkg/util/grpcutil", - "//pkg/util/sysutil", - "@com_github_cockroachdb_circuitbreaker//:circuitbreaker", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "joberror_test", - srcs = ["errors_test.go"], - embed = [":joberror"], - deps = [ - "//pkg/util/circuit", - "@com_github_cockroachdb_circuitbreaker//:circuitbreaker", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/jobs/jobspb/BUILD.bazel b/pkg/jobs/jobspb/BUILD.bazel deleted file mode 100644 index d585fd29964..00000000000 --- a/pkg/jobs/jobspb/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "jobspb", - srcs = ["wrap.go"], - embed = [":jobspb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/jobs/jobspb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/cloud", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/protoreflect", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//jsonpb", - ], -) - -proto_library( - name = "jobspb_proto", - srcs = [ - "jobs.proto", - "schedule.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion:clusterversion_proto", - "//pkg/roachpb:roachpb_proto", - "//pkg/sql/catalog/descpb:descpb_proto", - "//pkg/util/hlc:hlc_proto", - "@com_github_cockroachdb_errors//errorspb:errorspb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -go_proto_library( - name = "jobspb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/jobs/jobspb", - proto = ":jobspb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/roachpb", - "//pkg/security", # keep - "//pkg/sql/catalog/catpb", # keep - "//pkg/sql/catalog/descpb", - "//pkg/sql/sem/tree", # keep - "//pkg/util/hlc", - "//pkg/util/tracing/tracingpb", # keep - "//pkg/util/uuid", # keep - "@com_github_cockroachdb_errors//errorspb", - "@com_github_gogo_protobuf//gogoproto", - ], -) diff --git a/pkg/jobs/jobsprotectedts/BUILD.bazel b/pkg/jobs/jobsprotectedts/BUILD.bazel deleted file mode 100644 index 5d3bed4d706..00000000000 --- a/pkg/jobs/jobsprotectedts/BUILD.bazel +++ /dev/null @@ -1,38 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "jobsprotectedts", - srcs = ["jobs_protected_ts.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/jobs/jobsprotectedts", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/kv", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/kv/kvserver/protectedts/ptreconcile", - "//pkg/roachpb", - "//pkg/scheduledjobs", - "//pkg/sql/sqlutil", - "//pkg/util/hlc", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "jobsprotectedts_test", - size = "medium", - srcs = [ - "jobs_protected_ts_test.go", - "main_test.go", - ], - deps = [ - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/randutil", - ], -) diff --git a/pkg/jobs/jobstest/BUILD.bazel b/pkg/jobs/jobstest/BUILD.bazel deleted file mode 100644 index 5851bd595e9..00000000000 --- a/pkg/jobs/jobstest/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "jobstest", - srcs = [ - "logutils.go", - "utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/jobs/jobstest", - visibility = ["//visibility:public"], - deps = [ - "//pkg/scheduledjobs", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/sem/tree", - "//pkg/testutils", - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/keys/BUILD.bazel b/pkg/keys/BUILD.bazel deleted file mode 100644 index a52ecd517ee..00000000000 --- a/pkg/keys/BUILD.bazel +++ /dev/null @@ -1,54 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "keys", - srcs = [ - "constants.go", - "doc.go", - "errors.go", - "keys.go", - "printer.go", - "spans.go", - "sql.go", - ":gen-comment-type-stringer", #keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/keys", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util/encoding", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "keys_test", - size = "small", - srcs = [ - "keys_test.go", - "printer_test.go", - "sql_test.go", - ], - embed = [":keys"], - deps = [ - "//pkg/roachpb", - "//pkg/testutils", - "//pkg/util/bitarray", - "//pkg/util/duration", - "//pkg/util/encoding", - "//pkg/util/keysutil", - "//pkg/util/leaktest", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) - -stringer( - name = "gen-comment-type-stringer", - src = "constants.go", - typ = "CommentType", -) diff --git a/pkg/keysbase/BUILD.bazel b/pkg/keysbase/BUILD.bazel deleted file mode 100644 index 8577d05c146..00000000000 --- a/pkg/keysbase/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "keysbase", - srcs = ["data.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/keysbase", - visibility = ["//visibility:public"], -) diff --git a/pkg/kv/BUILD.bazel b/pkg/kv/BUILD.bazel deleted file mode 100644 index 42b876806c9..00000000000 --- a/pkg/kv/BUILD.bazel +++ /dev/null @@ -1,94 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "kv", - srcs = [ - "batch.go", - "db.go", - "doc.go", - "mock_transactional_sender.go", - "range_lookup.go", - "sender.go", - "test_utils.go", - "txn.go", - "util.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv/kvbase", - "//pkg/kv/kvserver/closedts", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/sql/sessiondatapb", - "//pkg/storage/enginepb", - "//pkg/testutils", - "//pkg/util/admission", - "//pkg/util/contextutil", - "//pkg/util/duration", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "kv_test", - size = "medium", - srcs = [ - "client_test.go", - "db_test.go", - "main_test.go", - "range_lookup_test.go", - "txn_external_test.go", - "txn_test.go", - ], - data = glob(["testdata/**"]), - embed = [":kv"], - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/sessiondatapb", - "//pkg/storage/enginepb", - "//pkg/testutils", - "//pkg/testutils/kvclientutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//proto", - "@com_github_stretchr_testify//require", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//status", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/kv/bulk/BUILD.bazel b/pkg/kv/bulk/BUILD.bazel deleted file mode 100644 index 64c6c258dd9..00000000000 --- a/pkg/kv/bulk/BUILD.bazel +++ /dev/null @@ -1,72 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "bulk", - srcs = [ - "buffering_adder.go", - "bulk_metrics.go", - "kv_buf.go", - "setting.go", - "sst_batcher.go", - "stats.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/bulk", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/rangecache", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util/admission", - "//pkg/util/ctxgroup", - "//pkg/util/hlc", - "//pkg/util/humanizeutil", - "//pkg/util/limit", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "bulk_test", - size = "medium", - srcs = [ - "kv_buf_test.go", - "main_test.go", - "sst_batcher_test.go", - ], - embed = [":bulk"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/kvcoord", - "//pkg/kv/kvclient/rangecache", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/limit", - "//pkg/util/mon", - "//pkg/util/randutil", - "//pkg/util/tracing", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvbase/BUILD.bazel b/pkg/kv/kvbase/BUILD.bazel deleted file mode 100644 index a450e9ef9af..00000000000 --- a/pkg/kv/kvbase/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "kvbase", - srcs = ["constants.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvbase", - visibility = ["//visibility:public"], -) diff --git a/pkg/kv/kvclient/BUILD.bazel b/pkg/kv/kvclient/BUILD.bazel deleted file mode 100644 index 599356d173e..00000000000 --- a/pkg/kv/kvclient/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "kvclient", - srcs = [ - "placeholder.go", - "revision_reader.go", - "scan_meta.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvclient", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/storage", - "//pkg/util/hlc", - ], -) diff --git a/pkg/kv/kvclient/kvcoord/BUILD.bazel b/pkg/kv/kvclient/kvcoord/BUILD.bazel deleted file mode 100644 index 56a5b19f4ba..00000000000 --- a/pkg/kv/kvclient/kvcoord/BUILD.bazel +++ /dev/null @@ -1,221 +0,0 @@ -load("@bazel_gomock//:gomock.bzl", "gomock") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "kvcoord", - srcs = [ - "batch.go", - "condensable_span_set.go", - "dist_sender.go", - "dist_sender_rangefeed.go", - "dist_sender_rangefeed_canceler.go", - "doc.go", - "local_test_cluster_util.go", - "lock_spans_over_budget_error.go", - "node_store.go", - "range_iter.go", - "replica_slice.go", - "testing_knobs.go", - "transport.go", - "transport_race.go", - "transport_regular.go", - "txn_coord_sender.go", - "txn_coord_sender_factory.go", - "txn_coord_sender_savepoints.go", - "txn_interceptor_committer.go", - "txn_interceptor_heartbeater.go", - "txn_interceptor_metric_recorder.go", - "txn_interceptor_pipeliner.go", - "txn_interceptor_seq_num_allocator.go", - "txn_interceptor_span_refresher.go", - "txn_lock_gatekeeper.go", - "txn_metrics.go", - ":gen-txnstate-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/gossip", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvbase", - "//pkg/kv/kvclient/rangecache", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/txnwait", - "//pkg/multitenant", - "//pkg/multitenant/tenantcostmodel", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/storage/enginepb", - "//pkg/util", - "//pkg/util/contextutil", - "//pkg/util/ctxgroup", - "//pkg/util/envutil", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/iterutil", - "//pkg/util/limit", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/pprofutil", - "//pkg/util/quotapool", - "//pkg/util/retry", - "//pkg/util/shuffle", - "//pkg/util/startup", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//errorspb", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//proto", - "@com_github_google_btree//:btree", - "@io_opentelemetry_go_otel//attribute", - ], -) - -gomock( - name = "mock_kvcoord", - out = "mocks_generated_test.go", - interfaces = [ - "Transport", - ], - library = ":kvcoord", - package = "kvcoord", - self_package = "github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord", - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -# This noop target is a workaround for https://github.com/bazelbuild/bazel-gazelle/issues/1078. -# -# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord //build/bazelutil:noop - -go_test( - name = "kvcoord_test", - size = "medium", - srcs = [ - "batch_test.go", - "condensable_span_set_test.go", - "dist_sender_rangefeed_canceler_test.go", - "dist_sender_rangefeed_test.go", - "dist_sender_server_test.go", - "dist_sender_stuck_rangefeed_test.go", - "dist_sender_test.go", - "helpers_test.go", - "integration_test.go", - "main_test.go", - "range_iter_test.go", - "replayed_commit_test.go", - "replica_slice_test.go", - "send_test.go", - "split_test.go", - "transport_test.go", - "truncate_test.go", - "txn_coord_sender_savepoints_test.go", - "txn_coord_sender_server_test.go", - "txn_coord_sender_test.go", - "txn_correctness_test.go", - "txn_intercepter_pipeliner_client_test.go", - "txn_interceptor_committer_test.go", - "txn_interceptor_heartbeater_test.go", - "txn_interceptor_pipeliner_test.go", - "txn_interceptor_seq_num_allocator_test.go", - "txn_interceptor_span_refresher_test.go", - "txn_test.go", - ":mock_kvcoord", # keep - ], - data = glob(["testdata/**"]), - embed = [":kvcoord"], - shard_count = 16, - tags = ["no-remote"], - deps = [ - "//build/bazelutil:noop", - "//pkg/base", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/gossip", - "//pkg/gossip/simulation", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvbase", - "//pkg/kv/kvclient/rangecache", - "//pkg/kv/kvclient/rangecache/rangecachemock", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/closedts", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/kv/kvserver/tscache", - "//pkg/kv/kvserver/txnwait", - "//pkg/roachpb", - "//pkg/roachpb/roachpbmock", # keep - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/testutils", - "//pkg/testutils/buildutil", - "//pkg/testutils/kvclientutils", - "//pkg/testutils/localtestcluster", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/caller", - "//pkg/util/ctxgroup", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/netutil", - "//pkg/util/randutil", - "//pkg/util/retry", - "//pkg/util/shuffle", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_circuitbreaker//:circuitbreaker", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//errutil", - "@com_github_cockroachdb_redact//:redact", - "@com_github_golang_mock//gomock", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//metadata", - "@org_golang_google_grpc//status", - "@org_golang_x_sync//errgroup", - ], -) - -stringer( - name = "gen-txnstate-stringer", - src = "txn_coord_sender.go", - typ = "txnState", -) diff --git a/pkg/kv/kvclient/kvtenant/BUILD.bazel b/pkg/kv/kvclient/kvtenant/BUILD.bazel deleted file mode 100644 index 21b7fa61630..00000000000 --- a/pkg/kv/kvclient/kvtenant/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "kvtenant", - srcs = ["connector.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvtenant", - visibility = ["//visibility:public"], - deps = [ - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/kv/kvclient/kvcoord", - "//pkg/kv/kvclient/rangecache", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/server/serverpb", - "//pkg/server/settingswatcher", - "//pkg/spanconfig", - "//pkg/util/log", - "//pkg/util/retry", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/kv/kvclient/rangecache/BUILD.bazel b/pkg/kv/kvclient/rangecache/BUILD.bazel deleted file mode 100644 index bd5997b1cd2..00000000000 --- a/pkg/kv/kvclient/rangecache/BUILD.bazel +++ /dev/null @@ -1,45 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rangecache", - srcs = ["range_cache.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangecache", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/util", - "//pkg/util/cache", - "//pkg/util/contextutil", - "//pkg/util/grpcutil", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/syncutil/singleflight", - "//pkg/util/tracing", - "@com_github_biogo_store//llrb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - ], -) - -go_test( - name = "rangecache_test", - size = "small", - srcs = ["range_cache_test.go"], - embed = [":rangecache"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/tracing", - "@com_github_biogo_store//llrb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvclient/rangecache/rangecachemock/BUILD.bazel b/pkg/kv/kvclient/rangecache/rangecachemock/BUILD.bazel deleted file mode 100644 index 675ce0fcdbb..00000000000 --- a/pkg/kv/kvclient/rangecache/rangecachemock/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@bazel_gomock//:gomock.bzl", "gomock") - -gomock( - name = "mock_rangecache", - out = "mocks_generated.go", - interfaces = [ - "RangeDescriptorDB", - ], - library = "//pkg/kv/kvclient/rangecache", - package = "rangecachemock", - self_package = "github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangecache/rangecachemock", - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -go_library( - name = "rangecachemock", - srcs = [ - ":mock_rangecache", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangecache/rangecachemock", # keep - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", # keep - "@com_github_golang_mock//gomock", # keep - ], -) diff --git a/pkg/kv/kvclient/rangefeed/BUILD.bazel b/pkg/kv/kvclient/rangefeed/BUILD.bazel deleted file mode 100644 index 8fe4bf50ded..00000000000 --- a/pkg/kv/kvclient/rangefeed/BUILD.bazel +++ /dev/null @@ -1,95 +0,0 @@ -load("@bazel_gomock//:gomock.bzl", "gomock") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rangefeed", - srcs = [ - "config.go", - "db_adapter.go", - "doc.go", - "rangefeed.go", - "scanner.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangefeed", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/kvcoord", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/util/ctxgroup", - "//pkg/util/hlc", - "//pkg/util/limit", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/retry", - "//pkg/util/span", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - ], -) - -gomock( - name = "mock_rangefeed", - out = "mocks_generated_test.go", - interfaces = ["DB"], - library = ":rangefeed", - package = "rangefeed", - self_package = "github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangefeed", - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -go_test( - name = "rangefeed_test", - srcs = [ - "db_adapter_external_test.go", - "helpers_test.go", - "main_test.go", - "rangefeed_external_test.go", - "rangefeed_mock_test.go", - ":mock_rangefeed", # keep - ], - embed = [":rangefeed"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/spanconfig/spanconfigptsreader", - "//pkg/sql/catalog/desctestutils", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/sstutil", - "//pkg/testutils/testcluster", - "//pkg/util/ctxgroup", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/mon", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_golang_mock//gomock", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvclient/rangefeed/rangefeedbuffer/BUILD.bazel b/pkg/kv/kvclient/rangefeed/rangefeedbuffer/BUILD.bazel deleted file mode 100644 index 2e2c7686f9b..00000000000 --- a/pkg/kv/kvclient/rangefeed/rangefeedbuffer/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rangefeedbuffer", - srcs = [ - "buffer.go", - "kvs.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangefeed/rangefeedbuffer", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "rangefeedbuffer_test", - srcs = [ - "buffer_test.go", - "kvs_test.go", - ], - embed = [":rangefeedbuffer"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvclient/rangefeed/rangefeedcache/BUILD.bazel b/pkg/kv/kvclient/rangefeed/rangefeedcache/BUILD.bazel deleted file mode 100644 index 4c105ddf68d..00000000000 --- a/pkg/kv/kvclient/rangefeed/rangefeedcache/BUILD.bazel +++ /dev/null @@ -1,57 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rangefeedcache", - srcs = ["watcher.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangefeed/rangefeedcache", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvclient/rangefeed/rangefeedbuffer", - "//pkg/roachpb", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "rangefeedcache_test", - srcs = [ - "cache_impl_test.go", - "cache_test.go", - "main_test.go", - ], - embed = [":rangefeedcache"], - deps = [ - "//pkg/base", - "//pkg/kv", - "//pkg/kv/kvclient/rangecache", # keep - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvclient/rangefeed/rangefeedbuffer", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvnemesis/BUILD.bazel b/pkg/kv/kvnemesis/BUILD.bazel deleted file mode 100644 index dee272d68e0..00000000000 --- a/pkg/kv/kvnemesis/BUILD.bazel +++ /dev/null @@ -1,116 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "kvnemesis", - srcs = [ - "applier.go", - "doc.go", - "engine.go", - "env.go", - "generator.go", - "kvnemesis.go", - "operations.go", - "validator.go", - "watcher.go", - ], - embed = [":kvnemesis_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvnemesis", - visibility = ["//visibility:public"], - deps = [ - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/kvcoord", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/liveness", - "//pkg/roachpb", - "//pkg/sql/catalog/bootstrap", - "//pkg/storage", - "//pkg/util/bufalloc", - "//pkg/util/ctxgroup", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/retry", - "//pkg/util/span", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_pebble//:pebble", - "@com_github_cockroachdb_pebble//vfs", - "@org_golang_google_protobuf//proto", - ], -) - -go_test( - name = "kvnemesis_test", - size = "small", - srcs = [ - "applier_test.go", - "engine_test.go", - "generator_test.go", - "kvnemesis_test.go", - "main_test.go", - "operations_test.go", - "validator_test.go", - ], - embed = [":kvnemesis"], - deps = [ - "//pkg/base", - "//pkg/config/zonepb", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/storage", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/envutil", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@org_golang_google_protobuf//proto", - ], -) - -proto_library( - name = "kvnemesis_proto", - srcs = ["operations.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb:roachpb_proto", - "//pkg/util/hlc:hlc_proto", - "@com_github_cockroachdb_errors//errorspb:errorspb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "kvnemesis_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvnemesis", - proto = ":kvnemesis_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util/hlc", - "@com_github_cockroachdb_errors//errorspb", - "@com_github_gogo_protobuf//gogoproto", - ], -) diff --git a/pkg/kv/kvprober/BUILD.bazel b/pkg/kv/kvprober/BUILD.bazel deleted file mode 100644 index 709f3e350a9..00000000000 --- a/pkg/kv/kvprober/BUILD.bazel +++ /dev/null @@ -1,67 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "kvprober", - srcs = [ - "kvprober.go", - "planner.go", - "quarantine_pool.go", - "settings.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvprober", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/util/contextutil", - "//pkg/util/log", - "//pkg/util/log/logcrash", - "//pkg/util/metric", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - ], -) - -go_test( - name = "kvprober_test", - srcs = [ - "helpers_test.go", - "kvprober_integration_test.go", - "kvprober_test.go", - "main_test.go", - "planner_test.go", - "quarantine_pool_test.go", - ], - embed = [":kvprober"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/BUILD.bazel b/pkg/kv/kvserver/BUILD.bazel deleted file mode 100644 index a00b484b023..00000000000 --- a/pkg/kv/kvserver/BUILD.bazel +++ /dev/null @@ -1,479 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "kvserver", - srcs = [ - "addressing.go", - "allocator.go", - "allocator_scorer.go", - "compact_span_client.go", - "consistency_queue.go", - "debug_print.go", - "deprecated_store_rebalancer.go", - "doc.go", - "lease_history.go", - "log.go", - "markers.go", - "merge_queue.go", - "metric_rules.go", - "metrics.go", - "mvcc_gc_queue.go", - "queue.go", - "queue_helpers_testutil.go", - "raft.go", - "raft_log_queue.go", - "raft_log_truncator.go", - "raft_snapshot_queue.go", - "raft_transport.go", - "raft_truncator_replica.go", - "replica.go", - "replica_application_cmd.go", - "replica_application_cmd_buf.go", - "replica_application_decoder.go", - "replica_application_result.go", - "replica_application_state_machine.go", - "replica_backpressure.go", - "replica_batch_updates.go", - "replica_circuit_breaker.go", - "replica_closedts.go", - "replica_command.go", - "replica_consistency.go", - "replica_consistency_diff.go", - "replica_corruption.go", - "replica_destroy.go", - "replica_eval_context.go", - "replica_eval_context_span.go", - "replica_evaluate.go", - "replica_follower_read.go", - "replica_gc_queue.go", - "replica_gossip.go", - "replica_init.go", - "replica_metrics.go", - "replica_placeholder.go", - "replica_proposal.go", - "replica_proposal_buf.go", - "replica_proposal_quota.go", - "replica_protected_timestamp.go", - "replica_raft.go", - "replica_raft_quiesce.go", - "replica_raftstorage.go", - "replica_range_lease.go", - "replica_rangefeed.go", - "replica_rankings.go", - "replica_rate_limit.go", - "replica_read.go", - "replica_send.go", - "replica_sideload.go", - "replica_sideload_disk.go", - "replica_split_load.go", - "replica_sst_snapshot_storage.go", - "replica_stats.go", - "replica_tscache.go", - "replica_write.go", - "replicate_queue.go", - "scanner.go", - "scheduler.go", - "split_delay_helper.go", - "split_queue.go", - "split_trigger_helper.go", - "store.go", - "store_create_replica.go", - "store_init.go", - "store_merge.go", - "store_pool.go", - "store_raft.go", - "store_rebalancer.go", - "store_remove_replica.go", - "store_replica_btree.go", - "store_replicas_by_rangeid.go", - "store_send.go", - "store_snapshot.go", - "store_split.go", - "stores.go", - "stores_base.go", - "stores_server.go", - "syncing_write.go", - "testing_knobs.go", - "track_raft_protos.go", - "ts_maintenance_queue.go", - ":gen-refreshraftreason-stringer", # keep - ], - embed = [":kvserver_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/cloud", - "//pkg/clusterversion", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/docs", - "//pkg/gossip", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvbase", - "//pkg/kv/kvclient/rangecache", - "//pkg/kv/kvserver/abortspan", - "//pkg/kv/kvserver/apply", - "//pkg/kv/kvserver/batcheval", - "//pkg/kv/kvserver/batcheval/result", - "//pkg/kv/kvserver/closedts", - "//pkg/kv/kvserver/closedts/ctpb", - "//pkg/kv/kvserver/closedts/sidetransport", - "//pkg/kv/kvserver/closedts/tracker", - "//pkg/kv/kvserver/concurrency", - "//pkg/kv/kvserver/concurrency/poison", - "//pkg/kv/kvserver/constraint", - "//pkg/kv/kvserver/gc", - "//pkg/kv/kvserver/idalloc", - "//pkg/kv/kvserver/intentresolver", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/kv/kvserver/kvserverpb", - "//pkg/kv/kvserver/liveness", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/kv/kvserver/raftentry", - "//pkg/kv/kvserver/rangefeed", - "//pkg/kv/kvserver/rditer", - "//pkg/kv/kvserver/readsummary", - "//pkg/kv/kvserver/readsummary/rspb", - "//pkg/kv/kvserver/spanset", - "//pkg/kv/kvserver/split", - "//pkg/kv/kvserver/stateloader", - "//pkg/kv/kvserver/tenantrate", - "//pkg/kv/kvserver/tscache", - "//pkg/kv/kvserver/txnrecovery", - "//pkg/kv/kvserver/txnwait", - "//pkg/kv/kvserver/uncertainty", - "//pkg/multitenant", - "//pkg/multitenant/tenantcostmodel", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/security", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/spanconfig/spanconfigstore", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlutil", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/storage/fs", - "//pkg/util", - "//pkg/util/admission", - "//pkg/util/bufalloc", - "//pkg/util/buildutil", - "//pkg/util/circuit", - "//pkg/util/contextutil", - "//pkg/util/ctxgroup", - "//pkg/util/encoding", - "//pkg/util/envutil", - "//pkg/util/errorutil", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/humanizeutil", - "//pkg/util/iterutil", - "//pkg/util/limit", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/metric/aggmetric", - "//pkg/util/mon", - "//pkg/util/pprofutil", - "//pkg/util/protoutil", - "//pkg/util/quotapool", - "//pkg/util/retry", - "//pkg/util/shuffle", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//proto", - "@com_github_google_btree//:btree", - "@com_github_kr_pretty//:pretty", - "@io_etcd_go_etcd_raft_v3//:raft", - "@io_etcd_go_etcd_raft_v3//raftpb", - "@io_etcd_go_etcd_raft_v3//tracker", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_x_time//rate", - ], -) - -go_test( - name = "kvserver_test", - size = "enormous", - srcs = [ - "addressing_test.go", - "allocator_scorer_test.go", - "allocator_test.go", - "batch_spanset_test.go", - "below_raft_protos_test.go", - "client_atomic_membership_change_test.go", - "client_lease_test.go", - "client_merge_test.go", - "client_metrics_test.go", - "client_migration_test.go", - "client_protectedts_test.go", - "client_raft_helpers_test.go", - "client_raft_log_queue_test.go", - "client_raft_test.go", - "client_rangefeed_test.go", - "client_relocate_range_test.go", - "client_replica_backpressure_test.go", - "client_replica_circuit_breaker_test.go", - "client_replica_gc_test.go", - "client_replica_test.go", - "client_spanconfigs_test.go", - "client_split_burst_test.go", - "client_split_test.go", - "client_status_test.go", - "client_store_test.go", - "client_tenant_test.go", - "client_test.go", - "closed_timestamp_test.go", - "consistency_queue_test.go", - "debug_print_test.go", - "deprecated_store_rebalancer_test.go", - "gossip_test.go", - "helpers_test.go", - "intent_resolver_integration_test.go", - "lease_history_test.go", - "log_test.go", - "main_test.go", - "merge_queue_test.go", - "metric_rules_test.go", - "metrics_test.go", - "mvcc_gc_queue_test.go", - "node_liveness_test.go", - "queue_concurrency_test.go", - "queue_test.go", - "raft_log_queue_test.go", - "raft_log_truncator_test.go", - "raft_test.go", - "raft_transport_test.go", - "raft_transport_unit_test.go", - "replica_application_cmd_buf_test.go", - "replica_application_state_machine_test.go", - "replica_batch_updates_test.go", - "replica_circuit_breaker_test.go", - "replica_closedts_internal_test.go", - "replica_closedts_test.go", - "replica_command_test.go", - "replica_consistency_test.go", - "replica_evaluate_test.go", - "replica_follower_read_test.go", - "replica_gc_queue_test.go", - "replica_init_test.go", - "replica_learner_test.go", - "replica_lease_renewal_test.go", - "replica_metrics_test.go", - "replica_probe_test.go", - "replica_proposal_buf_test.go", - "replica_protected_timestamp_test.go", - "replica_raft_test.go", - "replica_raft_truncation_test.go", - "replica_range_lease_test.go", - "replica_rangefeed_test.go", - "replica_rankings_test.go", - "replica_sideload_test.go", - "replica_sst_snapshot_storage_test.go", - "replica_stats_test.go", - "replica_test.go", - "replica_tscache_test.go", - "replicate_queue_test.go", - "replicate_test.go", - "reset_quorum_test.go", - "scanner_test.go", - "scatter_test.go", - "scheduler_test.go", - "single_key_test.go", - "split_delay_helper_test.go", - "split_queue_test.go", - "split_trigger_helper_test.go", - "stats_test.go", - "store_pool_test.go", - "store_rebalancer_test.go", - "store_replica_btree_test.go", - "store_test.go", - "stores_test.go", - "ts_maintenance_queue_test.go", - "txn_recovery_integration_test.go", - "txn_wait_queue_test.go", - ], - data = glob(["testdata/**"]), - embed = [":kvserver"], - shard_count = 8, - tags = ["cpu:2"], - deps = [ - "//pkg/base", - "//pkg/cli/exit", - "//pkg/clusterversion", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/gossip", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient", - "//pkg/kv/kvclient/kvcoord", - "//pkg/kv/kvclient/rangefeed/rangefeedcache", - "//pkg/kv/kvserver/abortspan", - "//pkg/kv/kvserver/apply", - "//pkg/kv/kvserver/batcheval", - "//pkg/kv/kvserver/batcheval/result", - "//pkg/kv/kvserver/closedts", - "//pkg/kv/kvserver/closedts/ctpb", - "//pkg/kv/kvserver/closedts/tracker", - "//pkg/kv/kvserver/concurrency", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/constraint", - "//pkg/kv/kvserver/gc", - "//pkg/kv/kvserver/intentresolver", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/kv/kvserver/kvserverpb", - "//pkg/kv/kvserver/liveness", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/kv/kvserver/protectedts", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/kv/kvserver/protectedts/ptstorage", - "//pkg/kv/kvserver/protectedts/ptutil", - "//pkg/kv/kvserver/raftentry", - "//pkg/kv/kvserver/rditer", - "//pkg/kv/kvserver/readsummary/rspb", - "//pkg/kv/kvserver/spanset", - "//pkg/kv/kvserver/split", - "//pkg/kv/kvserver/stateloader", - "//pkg/kv/kvserver/tenantrate", - "//pkg/kv/kvserver/tscache", - "//pkg/kv/kvserver/txnwait", - "//pkg/kv/kvserver/uncertainty", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/server/serverpb", - "//pkg/server/telemetry", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/spanconfig/spanconfigptsreader", - "//pkg/spanconfig/spanconfigstore", - "//pkg/sql", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlutil", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/storage/fs", - "//pkg/testutils", - "//pkg/testutils/echotest", - "//pkg/testutils/gossiputil", - "//pkg/testutils/kvclientutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/sstutil", - "//pkg/testutils/testcluster", - "//pkg/ts", - "//pkg/ts/tspb", - "//pkg/util", - "//pkg/util/caller", - "//pkg/util/circuit", - "//pkg/util/contextutil", - "//pkg/util/ctxgroup", - "//pkg/util/encoding", - "//pkg/util/envutil", - "//pkg/util/hlc", - "//pkg/util/humanizeutil", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/netutil", - "//pkg/util/protoutil", - "//pkg/util/quotapool", - "//pkg/util/randutil", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_circuitbreaker//:circuitbreaker", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_pebble//:pebble", - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//proto", - "@com_github_google_btree//:btree", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_kr_pretty//:pretty", - "@com_github_lib_pq//:pq", - "@com_github_olekukonko_tablewriter//:tablewriter", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@io_etcd_go_etcd_raft_v3//:raft", - "@io_etcd_go_etcd_raft_v3//confchange", - "@io_etcd_go_etcd_raft_v3//raftpb", - "@io_etcd_go_etcd_raft_v3//tracker", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_google_grpc//metadata", - "@org_golang_x_net//trace", - "@org_golang_x_sync//errgroup", - "@org_golang_x_sync//syncmap", - "@org_golang_x_time//rate", - ], -) - -proto_library( - name = "kvserver_proto", - srcs = [ - "api.proto", - "storage_services.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvserver/kvserverpb:kvserverpb_proto", - "//pkg/roachpb:roachpb_proto", - "//pkg/storage/enginepb:enginepb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "kvserver_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver", - proto = ":kvserver_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvserver/kvserverpb", - "//pkg/roachpb", - "//pkg/storage/enginepb", - "@com_github_gogo_protobuf//gogoproto", - ], -) - -stringer( - name = "gen-refreshraftreason-stringer", - src = "replica_raft.go", - typ = "refreshRaftReason", -) diff --git a/pkg/kv/kvserver/abortspan/BUILD.bazel b/pkg/kv/kvserver/abortspan/BUILD.bazel deleted file mode 100644 index 8878b4c647e..00000000000 --- a/pkg/kv/kvserver/abortspan/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "abortspan", - srcs = ["abortspan.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/abortspan", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "abortspan_test", - size = "small", - srcs = ["abortspan_test.go"], - embed = [":abortspan"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/stop", - "//pkg/util/uuid", - ], -) diff --git a/pkg/kv/kvserver/apply/BUILD.bazel b/pkg/kv/kvserver/apply/BUILD.bazel deleted file mode 100644 index a6972a4767a..00000000000 --- a/pkg/kv/kvserver/apply/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "apply", - srcs = [ - "cmd.go", - "doc.go", - "task.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/apply", - visibility = ["//visibility:public"], - deps = [ - "@com_github_cockroachdb_errors//:errors", - "@io_etcd_go_etcd_raft_v3//raftpb", - ], -) - -go_test( - name = "apply_test", - size = "small", - srcs = [ - "doc_test.go", - "task_test.go", - ], - deps = [ - ":apply", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - "@io_etcd_go_etcd_raft_v3//raftpb", - ], -) diff --git a/pkg/kv/kvserver/batcheval/BUILD.bazel b/pkg/kv/kvserver/batcheval/BUILD.bazel deleted file mode 100644 index 9939a60c407..00000000000 --- a/pkg/kv/kvserver/batcheval/BUILD.bazel +++ /dev/null @@ -1,171 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "batcheval", - srcs = [ - "cmd_add_sstable.go", - "cmd_barrier.go", - "cmd_clear_range.go", - "cmd_compute_checksum.go", - "cmd_conditional_put.go", - "cmd_delete.go", - "cmd_delete_range.go", - "cmd_end_transaction.go", - "cmd_export.go", - "cmd_gc.go", - "cmd_get.go", - "cmd_heartbeat_txn.go", - "cmd_increment.go", - "cmd_init_put.go", - "cmd_lease.go", - "cmd_lease_info.go", - "cmd_lease_request.go", - "cmd_lease_transfer.go", - "cmd_merge.go", - "cmd_migrate.go", - "cmd_probe.go", - "cmd_push_txn.go", - "cmd_put.go", - "cmd_query_intent.go", - "cmd_query_locks.go", - "cmd_query_resolved_timestamp.go", - "cmd_query_txn.go", - "cmd_range_stats.go", - "cmd_recompute_stats.go", - "cmd_recover_txn.go", - "cmd_refresh.go", - "cmd_refresh_range.go", - "cmd_resolve_intent.go", - "cmd_resolve_intent_range.go", - "cmd_reverse_scan.go", - "cmd_revert_range.go", - "cmd_scan.go", - "cmd_scan_interleaved_intents.go", - "cmd_subsume.go", - "cmd_truncate_log.go", - "command.go", - "declare.go", - "eval_context.go", - "intent.go", - "split_stats_helper.go", - "stateloader.go", - "transaction.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/batcheval", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cloud", - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/kv/kvserver/abortspan", - "//pkg/kv/kvserver/batcheval/result", - "//pkg/kv/kvserver/concurrency", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/gc", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/kv/kvserver/kvserverpb", - "//pkg/kv/kvserver/rditer", - "//pkg/kv/kvserver/readsummary", - "//pkg/kv/kvserver/readsummary/rspb", - "//pkg/kv/kvserver/spanset", - "//pkg/kv/kvserver/stateloader", - "//pkg/kv/kvserver/txnwait", - "//pkg/kv/kvserver/uncertainty", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/limit", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//types", - "@com_github_kr_pretty//:pretty", - "@org_golang_x_time//rate", - ], -) - -go_test( - name = "batcheval_test", - size = "medium", - srcs = [ - "cmd_add_sstable_test.go", - "cmd_clear_range_test.go", - "cmd_end_transaction_test.go", - "cmd_export_test.go", - "cmd_get_test.go", - "cmd_lease_test.go", - "cmd_query_resolved_timestamp_test.go", - "cmd_recover_txn_test.go", - "cmd_refresh_range_bench_test.go", - "cmd_refresh_range_test.go", - "cmd_refresh_test.go", - "cmd_resolve_intent_test.go", - "cmd_revert_range_test.go", - "cmd_scan_test.go", - "cmd_truncate_log_test.go", - "declare_test.go", - "intent_test.go", - "main_test.go", - "transaction_test.go", - ], - embed = [":batcheval"], - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/abortspan", - "//pkg/kv/kvserver/batcheval/result", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/gc", - "//pkg/kv/kvserver/kvserverpb", - "//pkg/kv/kvserver/readsummary", - "//pkg/kv/kvserver/readsummary/rspb", - "//pkg/kv/kvserver/spanset", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/descpb", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/sstutil", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/tracing", - "//pkg/util/uint128", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_pebble//:pebble", - "@com_github_cockroachdb_pebble//vfs", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/batcheval/result/BUILD.bazel b/pkg/kv/kvserver/batcheval/result/BUILD.bazel deleted file mode 100644 index 30a4d681d89..00000000000 --- a/pkg/kv/kvserver/batcheval/result/BUILD.bazel +++ /dev/null @@ -1,32 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "result", - srcs = [ - "intent.go", - "metrics.go", - "result.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/batcheval/result", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/kvserverpb", - "//pkg/kv/kvserver/stateloader", - "//pkg/roachpb", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - "@com_github_kr_pretty//:pretty", - ], -) - -go_test( - name = "result_test", - size = "small", - srcs = ["result_test.go"], - embed = [":result"], - deps = [ - "//pkg/kv/kvserver/kvserverpb", - "//pkg/util/leaktest", - ], -) diff --git a/pkg/kv/kvserver/closedts/BUILD.bazel b/pkg/kv/kvserver/closedts/BUILD.bazel deleted file mode 100644 index a4a08e727c2..00000000000 --- a/pkg/kv/kvserver/closedts/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "closedts", - srcs = [ - "policy.go", - "setting.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/closedts", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/settings", - "//pkg/util/hlc", - ], -) - -go_test( - name = "closedts_test", - srcs = ["policy_test.go"], - embed = [":closedts"], - deps = [ - "//pkg/roachpb", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/closedts/container/BUILD.bazel b/pkg/kv/kvserver/closedts/container/BUILD.bazel deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/pkg/kv/kvserver/closedts/ctpb/BUILD.bazel b/pkg/kv/kvserver/closedts/ctpb/BUILD.bazel deleted file mode 100644 index 36dc48937d4..00000000000 --- a/pkg/kv/kvserver/closedts/ctpb/BUILD.bazel +++ /dev/null @@ -1,42 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ctpb", - srcs = ["service.go"], - embed = [":ctpb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/closedts/ctpb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util/timeutil", - ], -) - -proto_library( - name = "ctpb_proto", - srcs = ["service.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb:roachpb_proto", - "//pkg/util/hlc:hlc_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@go_googleapis//google/api:annotations_proto", - ], -) - -go_proto_library( - name = "ctpb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/closedts/ctpb", - proto = ":ctpb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util/hlc", - "@com_github_gogo_protobuf//gogoproto", - "@org_golang_google_genproto//googleapis/api/annotations:go_default_library", - ], -) diff --git a/pkg/kv/kvserver/closedts/minprop/BUILD.bazel b/pkg/kv/kvserver/closedts/minprop/BUILD.bazel deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/pkg/kv/kvserver/closedts/provider/BUILD.bazel b/pkg/kv/kvserver/closedts/provider/BUILD.bazel deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/pkg/kv/kvserver/closedts/provider/testutils/BUILD.bazel b/pkg/kv/kvserver/closedts/provider/testutils/BUILD.bazel deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/pkg/kv/kvserver/closedts/sidetransport/BUILD.bazel b/pkg/kv/kvserver/closedts/sidetransport/BUILD.bazel deleted file mode 100644 index b619b3d1383..00000000000 --- a/pkg/kv/kvserver/closedts/sidetransport/BUILD.bazel +++ /dev/null @@ -1,63 +0,0 @@ -load("//build:STRINGER.bzl", "stringer") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "sidetransport", - srcs = [ - "debug.go", - "receiver.go", - "sender.go", - ":gen-cantclosereason-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/closedts/sidetransport", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/kv/kvserver/closedts", - "//pkg/kv/kvserver/closedts/ctpb", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/settings/cluster", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@org_golang_google_grpc//:go_default_library", - ], -) - -go_test( - name = "sidetransport_test", - srcs = [ - "receiver_test.go", - "sender_test.go", - ], - embed = [":sidetransport"], - deps = [ - "//pkg/base", - "//pkg/kv/kvserver/closedts", - "//pkg/kv/kvserver/closedts/ctpb", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/settings/cluster", - "//pkg/testutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - "@org_golang_google_grpc//:go_default_library", - ], -) - -stringer( - name = "gen-cantclosereason-stringer", - src = "sender.go", - typ = "CantCloseReason", -) diff --git a/pkg/kv/kvserver/closedts/storage/BUILD.bazel b/pkg/kv/kvserver/closedts/storage/BUILD.bazel deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/pkg/kv/kvserver/closedts/tracker/BUILD.bazel b/pkg/kv/kvserver/closedts/tracker/BUILD.bazel deleted file mode 100644 index 1d9836b8263..00000000000 --- a/pkg/kv/kvserver/closedts/tracker/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "tracker", - srcs = [ - "heap_tracker.go", - "lockfree_tracker.go", - "tracker.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/closedts/tracker", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - ], -) - -go_test( - name = "tracker_test", - size = "small", - srcs = ["tracker_test.go"], - embed = [":tracker"], - deps = [ - "//pkg/testutils/skip", - "//pkg/util/ctxgroup", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/closedts/transport/BUILD.bazel b/pkg/kv/kvserver/closedts/transport/BUILD.bazel deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/pkg/kv/kvserver/closedts/transport/testutils/BUILD.bazel b/pkg/kv/kvserver/closedts/transport/testutils/BUILD.bazel deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/pkg/kv/kvserver/concurrency/BUILD.bazel b/pkg/kv/kvserver/concurrency/BUILD.bazel deleted file mode 100644 index 682d3252b17..00000000000 --- a/pkg/kv/kvserver/concurrency/BUILD.bazel +++ /dev/null @@ -1,98 +0,0 @@ -load("//pkg/util/interval/generic:gen.bzl", "gen_interval_btree") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "concurrency", - srcs = [ - "concurrency_control.go", - "concurrency_manager.go", - "latch_manager.go", - "lock_table.go", - "lock_table_waiter.go", - "metrics.go", - ":lockstate_interval_btree.go", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/concurrency", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/concurrency/poison", - "//pkg/kv/kvserver/intentresolver", - "//pkg/kv/kvserver/spanlatch", - "//pkg/kv/kvserver/spanset", - "//pkg/kv/kvserver/txnwait", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/storage/enginepb", - "//pkg/util/buildutil", - "//pkg/util/hlc", - "//pkg/util/humanizeutil", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@io_opentelemetry_go_otel//attribute", - ], -) - -go_test( - name = "concurrency_test", - size = "large", - srcs = [ - "concurrency_manager_test.go", - "datadriven_util_test.go", - "lock_table_test.go", - "lock_table_waiter_test.go", - ":lockstate_interval_btree_test.go", # keep - ], - data = glob(["testdata/**"]), - embed = [":concurrency"], - shard_count = 16, - deps = [ - "//pkg/keys", - "//pkg/kv/kvserver/batcheval", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/concurrency/poison", - "//pkg/kv/kvserver/intentresolver", - "//pkg/kv/kvserver/spanlatch", - "//pkg/kv/kvserver/spanset", - "//pkg/kv/kvserver/txnwait", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/storage/enginepb", - "//pkg/testutils", - "//pkg/testutils/skip", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uint128", - "//pkg/util/uuid", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_maruel_panicparse_v2//stack", - "@com_github_petermattis_goid//:goid", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - "@org_golang_x_exp//rand", - "@org_golang_x_sync//errgroup", - ], -) - -gen_interval_btree( - name = "lockstate_interval_btree", - package = "concurrency", - type = "*lockState", -) diff --git a/pkg/kv/kvserver/concurrency/lock/BUILD.bazel b/pkg/kv/kvserver/concurrency/lock/BUILD.bazel deleted file mode 100644 index 0c44ef2c009..00000000000 --- a/pkg/kv/kvserver/concurrency/lock/BUILD.bazel +++ /dev/null @@ -1,56 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "lock", - srcs = [ - "lock_waiter.go", - "locking.go", - ], - embed = [":lock_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/concurrency/lock", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_redact//:redact"], -) - -proto_library( - name = "lock_proto", - srcs = [ - "lock_waiter.proto", - "locking.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/storage/enginepb:enginepb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_google_protobuf//:duration_proto", - ], -) - -go_proto_library( - name = "lock_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/concurrency/lock", - proto = ":lock_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/storage/enginepb", - "@com_github_gogo_protobuf//gogoproto", - ], -) - -go_test( - name = "lock_test", - srcs = ["lock_waiter_test.go"], - deps = [ - ":lock", - "//pkg/roachpb", - "//pkg/storage/enginepb", - "//pkg/util/hlc", - "//pkg/util/uuid", - "@com_github_cockroachdb_redact//:redact", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/concurrency/poison/BUILD.bazel b/pkg/kv/kvserver/concurrency/poison/BUILD.bazel deleted file mode 100644 index cf282b9e15d..00000000000 --- a/pkg/kv/kvserver/concurrency/poison/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -proto_library( - name = "poison_proto", - srcs = [ - "error.proto", - "policy.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb:roachpb_proto", - "//pkg/util/hlc:hlc_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "poison_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/concurrency/poison", - proto = ":poison_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util/hlc", - "@com_github_gogo_protobuf//gogoproto", - ], -) - -go_library( - name = "poison", - srcs = ["error.go"], - embed = [":poison_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/concurrency/poison", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util/hlc", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "poison_test", - srcs = ["error_test.go"], - data = glob(["testdata/**"]), - deps = [ - ":poison", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/testutils/echotest", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/constraint/BUILD.bazel b/pkg/kv/kvserver/constraint/BUILD.bazel deleted file mode 100644 index 28bde552de3..00000000000 --- a/pkg/kv/kvserver/constraint/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "constraint", - srcs = ["analyzer.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/constraint", - visibility = ["//visibility:public"], - deps = ["//pkg/roachpb"], -) diff --git a/pkg/kv/kvserver/diskmap/BUILD.bazel b/pkg/kv/kvserver/diskmap/BUILD.bazel deleted file mode 100644 index 146871cc423..00000000000 --- a/pkg/kv/kvserver/diskmap/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "diskmap", - srcs = ["disk_map.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/diskmap", - visibility = ["//visibility:public"], -) diff --git a/pkg/kv/kvserver/gc/BUILD.bazel b/pkg/kv/kvserver/gc/BUILD.bazel deleted file mode 100644 index b7d7243b7f8..00000000000 --- a/pkg/kv/kvserver/gc/BUILD.bazel +++ /dev/null @@ -1,59 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "gc", - srcs = [ - "gc.go", - "gc_iterator.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/gc", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv/kvserver/abortspan", - "//pkg/kv/kvserver/rditer", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util/admission", - "//pkg/util/bufalloc", - "//pkg/util/contextutil", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "gc_test", - size = "medium", - srcs = [ - "data_distribution_test.go", - "gc_iterator_test.go", - "gc_old_test.go", - "gc_random_test.go", - "gc_test.go", - ], - embed = [":gc"], - deps = [ - "//pkg/keys", - "//pkg/kv/kvserver/rditer", - "//pkg/roachpb", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/idalloc/BUILD.bazel b/pkg/kv/kvserver/idalloc/BUILD.bazel deleted file mode 100644 index ba29fae63b7..00000000000 --- a/pkg/kv/kvserver/idalloc/BUILD.bazel +++ /dev/null @@ -1,43 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "idalloc", - srcs = ["id_alloc.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/idalloc", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/util/log", - "//pkg/util/retry", - "//pkg/util/stop", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "idalloc_test", - size = "small", - srcs = [ - "helpers_test.go", - "id_alloc_test.go", - "main_test.go", - ], - embed = [":idalloc"], - deps = [ - "//pkg/keys", - "//pkg/kv/kvclient/kvcoord", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/sql", - "//pkg/testutils", - "//pkg/testutils/localtestcluster", - "//pkg/util/leaktest", - "//pkg/util/stop", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/intentresolver/BUILD.bazel b/pkg/kv/kvserver/intentresolver/BUILD.bazel deleted file mode 100644 index e299528e019..00000000000 --- a/pkg/kv/kvserver/intentresolver/BUILD.bazel +++ /dev/null @@ -1,54 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "intentresolver", - srcs = [ - "intent_resolver.go", - "metrics.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/intentresolver", - visibility = ["//visibility:public"], - deps = [ - "//pkg/internal/client/requestbatcher", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/rangecache", - "//pkg/kv/kvserver/batcheval/result", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/kv/kvserver/txnwait", - "//pkg/roachpb", - "//pkg/storage/enginepb", - "//pkg/util/contextutil", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/quotapool", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "intentresolver_test", - size = "small", - srcs = ["intent_resolver_test.go"], - embed = [":intentresolver"], - deps = [ - "//pkg/kv", - "//pkg/kv/kvserver/batcheval/result", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/storage/enginepb", - "//pkg/testutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - ], -) diff --git a/pkg/kv/kvserver/kvserverbase/BUILD.bazel b/pkg/kv/kvserver/kvserverbase/BUILD.bazel deleted file mode 100644 index 8034ab9268b..00000000000 --- a/pkg/kv/kvserver/kvserverbase/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "kvserverbase", - srcs = [ - "base.go", - "bulk_adder.go", - "knobs.go", - "raftversion.go", - "stores.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/kvserverbase", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/kvserverpb", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/util/errorutil", - "//pkg/util/hlc", - "//pkg/util/quotapool", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) diff --git a/pkg/kv/kvserver/kvserverpb/BUILD.bazel b/pkg/kv/kvserver/kvserverpb/BUILD.bazel deleted file mode 100644 index 51fb08fa05e..00000000000 --- a/pkg/kv/kvserver/kvserverpb/BUILD.bazel +++ /dev/null @@ -1,62 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "kvserverpb", - srcs = [ - "lease_status.go", - "log.go", - "proposer_kv.go", - "raft.go", - ], - embed = [":kvserverpb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/kvserverpb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util/hlc", - ], -) - -proto_library( - name = "kvserverpb_proto", - srcs = [ - "lease_status.proto", - "proposer_kv.proto", - "raft.proto", - "range_log.proto", - "state.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvserver/liveness/livenesspb:livenesspb_proto", - "//pkg/kv/kvserver/readsummary/rspb:rspb_proto", - "//pkg/roachpb:roachpb_proto", - "//pkg/storage/enginepb:enginepb_proto", - "//pkg/util/hlc:hlc_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_google_protobuf//:timestamp_proto", - "@io_etcd_go_etcd_raft_v3//raftpb:raftpb_proto", - ], -) - -go_proto_library( - name = "kvserverpb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/kvserverpb", - proto = ":kvserverpb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvserver/closedts/ctpb", # keep - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/kv/kvserver/readsummary/rspb", - "//pkg/roachpb", - "//pkg/storage/enginepb", - "//pkg/util/hlc", - "//pkg/util/uuid", # keep - "@com_github_gogo_protobuf//gogoproto", - "@io_etcd_go_etcd_raft_v3//raftpb", - ], -) diff --git a/pkg/kv/kvserver/liveness/BUILD.bazel b/pkg/kv/kvserver/liveness/BUILD.bazel deleted file mode 100644 index 1c35fb122be..00000000000 --- a/pkg/kv/kvserver/liveness/BUILD.bazel +++ /dev/null @@ -1,68 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "liveness", - srcs = ["liveness.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/liveness", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/gossip", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/roachpb", - "//pkg/server/telemetry", - "//pkg/settings/cluster", - "//pkg/storage", - "//pkg/util/contextutil", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/syncutil/singleflight", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "liveness_test", - size = "medium", - srcs = [ - "client_test.go", - "liveness_test.go", - "main_test.go", - ], - embed = [":liveness"], - deps = [ - "//pkg/base", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/server/serverpb", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_kr_pretty//:pretty", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/liveness/livenesspb/BUILD.bazel b/pkg/kv/kvserver/liveness/livenesspb/BUILD.bazel deleted file mode 100644 index 86f89f47872..00000000000 --- a/pkg/kv/kvserver/liveness/livenesspb/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "livenesspb", - srcs = ["liveness.go"], - embed = [":livenesspb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/liveness/livenesspb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/timeutil", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//status", - ], -) - -proto_library( - name = "livenesspb_proto", - srcs = ["liveness.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/hlc:hlc_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "livenesspb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/liveness/livenesspb", - proto = ":livenesspb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", # keep - "//pkg/util/hlc", - "@com_github_gogo_protobuf//gogoproto", - ], -) diff --git a/pkg/kv/kvserver/loqrecovery/BUILD.bazel b/pkg/kv/kvserver/loqrecovery/BUILD.bazel deleted file mode 100644 index 815f1e55d8d..00000000000 --- a/pkg/kv/kvserver/loqrecovery/BUILD.bazel +++ /dev/null @@ -1,76 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "loqrecovery", - srcs = [ - "apply.go", - "collect.go", - "plan.go", - "record.go", - "utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/loqrecovery", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/kv/kvserver/kvserverpb", - "//pkg/kv/kvserver/loqrecovery/loqrecoverypb", - "//pkg/kv/kvserver/stateloader", - "//pkg/roachpb", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@io_etcd_go_etcd_raft_v3//raftpb", - ], -) - -go_test( - name = "loqrecovery_test", - srcs = [ - "collect_raft_log_test.go", - "main_test.go", - "record_test.go", - "recovery_env_test.go", - "recovery_test.go", - ], - data = glob(["testdata/**"]), - embed = [":loqrecovery"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/kv/kvserver/kvserverpb", - "//pkg/kv/kvserver/loqrecovery/loqrecoverypb", - "//pkg/kv/kvserver/stateloader", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/keysutil", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - "@io_etcd_go_etcd_raft_v3//raftpb", - ], -) diff --git a/pkg/kv/kvserver/loqrecovery/loqrecoverypb/BUILD.bazel b/pkg/kv/kvserver/loqrecovery/loqrecoverypb/BUILD.bazel deleted file mode 100644 index 7007bc1f40d..00000000000 --- a/pkg/kv/kvserver/loqrecovery/loqrecoverypb/BUILD.bazel +++ /dev/null @@ -1,46 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -# gazelle:go_grpc_compilers //pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler, @com_github_grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway:go_gen_grpc_gateway - -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -proto_library( - name = "loqrecoverypb_proto", - srcs = [ - "recovery.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb:roachpb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "loqrecoverypb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/loqrecovery/loqrecoverypb", - proto = ":loqrecoverypb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "@com_github_gogo_protobuf//gogoproto", - ], -) - -go_library( - name = "loqrecoverypb", - srcs = ["recovery.go"], - embed = [":loqrecoverypb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/loqrecovery/loqrecoverypb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util/keysutil", - "//pkg/util/log/eventpb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//proto", - ], -) diff --git a/pkg/kv/kvserver/protectedts/BUILD.bazel b/pkg/kv/kvserver/protectedts/BUILD.bazel deleted file mode 100644 index 85d31485cc4..00000000000 --- a/pkg/kv/kvserver/protectedts/BUILD.bazel +++ /dev/null @@ -1,32 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "protectedts", - srcs = [ - "protectedts.go", - "settings.go", - "testing_knobs.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/protectedts", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/kv", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/spanconfig", - "//pkg/util/hlc", - "//pkg/util/metric", - "//pkg/util/stop", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "protectedts_test", - size = "small", - srcs = ["protectedts_test.go"], - embed = [":protectedts"], -) diff --git a/pkg/kv/kvserver/protectedts/ptcache/BUILD.bazel b/pkg/kv/kvserver/protectedts/ptcache/BUILD.bazel deleted file mode 100644 index f5e266ff2d3..00000000000 --- a/pkg/kv/kvserver/protectedts/ptcache/BUILD.bazel +++ /dev/null @@ -1,60 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "ptcache", - srcs = ["cache.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/protectedts/ptcache", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/kv/kvserver/protectedts", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/syncutil/singleflight", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "ptcache_test", - size = "medium", - srcs = [ - "cache_test.go", - "main_test.go", - ], - deps = [ - ":ptcache", - "//pkg/base", - "//pkg/keys", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/protectedts", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/kv/kvserver/protectedts/ptstorage", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/sqlutil", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/protectedts/ptpb/BUILD.bazel b/pkg/kv/kvserver/protectedts/ptpb/BUILD.bazel deleted file mode 100644 index 689c8507fd2..00000000000 --- a/pkg/kv/kvserver/protectedts/ptpb/BUILD.bazel +++ /dev/null @@ -1,44 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -proto_library( - name = "ptpb_proto", - srcs = ["protectedts.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb:roachpb_proto", - "//pkg/util/hlc:hlc_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@go_googleapis//google/api:annotations_proto", - ], -) - -go_proto_library( - name = "ptpb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/protectedts/ptpb", - proto = ":ptpb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/sql/catalog/descpb", # keep - "//pkg/util/hlc", - "//pkg/util/uuid", # keep - "@com_github_gogo_protobuf//gogoproto", - "@org_golang_google_genproto//googleapis/api/annotations:go_default_library", - ], -) - -go_library( - name = "ptpb", - srcs = ["protectedts.go"], - embed = [":ptpb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/protectedts/ptpb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/sql/catalog/descpb", - ], -) diff --git a/pkg/kv/kvserver/protectedts/ptprovider/BUILD.bazel b/pkg/kv/kvserver/protectedts/ptprovider/BUILD.bazel deleted file mode 100644 index cd021496f27..00000000000 --- a/pkg/kv/kvserver/protectedts/ptprovider/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ptprovider", - srcs = ["provider.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/protectedts/ptprovider", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/protectedts", - "//pkg/kv/kvserver/protectedts/ptcache", - "//pkg/kv/kvserver/protectedts/ptreconcile", - "//pkg/kv/kvserver/protectedts/ptstorage", - "//pkg/settings/cluster", - "//pkg/sql/sqlutil", - "//pkg/util/metric", - "//pkg/util/stop", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/kv/kvserver/protectedts/ptreconcile/BUILD.bazel b/pkg/kv/kvserver/protectedts/ptreconcile/BUILD.bazel deleted file mode 100644 index 24123d10d57..00000000000 --- a/pkg/kv/kvserver/protectedts/ptreconcile/BUILD.bazel +++ /dev/null @@ -1,56 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "ptreconcile", - srcs = [ - "metrics.go", - "reconciler.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/protectedts/ptreconcile", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/kv/kvserver/protectedts", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/stop", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_prometheus_client_model//go", - ], -) - -go_test( - name = "ptreconcile_test", - size = "small", - srcs = [ - "main_test.go", - "reconciler_test.go", - ], - deps = [ - ":ptreconcile", - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/protectedts", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "//pkg/util/syncutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/protectedts/ptstorage/BUILD.bazel b/pkg/kv/kvserver/protectedts/ptstorage/BUILD.bazel deleted file mode 100644 index 205e73ec227..00000000000 --- a/pkg/kv/kvserver/protectedts/ptstorage/BUILD.bazel +++ /dev/null @@ -1,105 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "ptstorage", - srcs = [ - "sql.go", - "storage.go", - "storage_with_database.go", - ], - embed = [":ptstorage_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/protectedts/ptstorage", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/kv", - "//pkg/kv/kvserver/protectedts", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlutil", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "ptstorage_test", - size = "medium", - srcs = [ - "main_test.go", - "storage_test.go", - "validate_test.go", - ], - embed = [":ptstorage"], - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/jobs/jobsprotectedts", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/protectedts", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlutil", - "//pkg/sql/tests", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/log/severity", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "ptstorage_proto", - srcs = ["storage.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb:roachpb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@go_googleapis//google/api:annotations_proto", - ], -) - -go_proto_library( - name = "ptstorage_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/protectedts/ptstorage", - proto = ":ptstorage_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "@com_github_gogo_protobuf//gogoproto", - "@org_golang_google_genproto//googleapis/api/annotations:go_default_library", - ], -) diff --git a/pkg/kv/kvserver/protectedts/ptutil/BUILD.bazel b/pkg/kv/kvserver/protectedts/ptutil/BUILD.bazel deleted file mode 100644 index d7b8fc42e87..00000000000 --- a/pkg/kv/kvserver/protectedts/ptutil/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ptutil", - srcs = ["testutils.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/protectedts/ptutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/spanconfig", - "//pkg/spanconfig/spanconfigptsreader", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/util/hlc", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/kv/kvserver/raftentry/BUILD.bazel b/pkg/kv/kvserver/raftentry/BUILD.bazel deleted file mode 100644 index e353ca94a4d..00000000000 --- a/pkg/kv/kvserver/raftentry/BUILD.bazel +++ /dev/null @@ -1,36 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "raftentry", - srcs = [ - "cache.go", - "metrics.go", - "ring_buffer.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/raftentry", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util", - "//pkg/util/metric", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@io_etcd_go_etcd_raft_v3//raftpb", - ], -) - -go_test( - name = "raftentry_test", - size = "small", - srcs = [ - "cache_test.go", - "ring_buffer_test.go", - ], - embed = [":raftentry"], - deps = [ - "//pkg/roachpb", - "//pkg/util/leaktest", - "@com_github_stretchr_testify//require", - "@io_etcd_go_etcd_raft_v3//raftpb", - ], -) diff --git a/pkg/kv/kvserver/rangefeed/BUILD.bazel b/pkg/kv/kvserver/rangefeed/BUILD.bazel deleted file mode 100644 index 973f45f6a1b..00000000000 --- a/pkg/kv/kvserver/rangefeed/BUILD.bazel +++ /dev/null @@ -1,79 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rangefeed", - srcs = [ - "budget.go", - "catchup_scan.go", - "filter.go", - "metrics.go", - "processor.go", - "registry.go", - "resolved_timestamp.go", - "task.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/rangefeed", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util/bufalloc", - "//pkg/util/envutil", - "//pkg/util/hlc", - "//pkg/util/interval", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/syncutil/singleflight", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "rangefeed_test", - size = "medium", - srcs = [ - "budget_test.go", - "catchup_scan_bench_test.go", - "catchup_scan_test.go", - "processor_test.go", - "registry_test.go", - "resolved_timestamp_test.go", - "task_test.go", - ], - embed = [":rangefeed"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/testutils", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_pebble//:pebble", - "@com_github_cockroachdb_pebble//vfs", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/rditer/BUILD.bazel b/pkg/kv/kvserver/rditer/BUILD.bazel deleted file mode 100644 index 2f5275c1424..00000000000 --- a/pkg/kv/kvserver/rditer/BUILD.bazel +++ /dev/null @@ -1,34 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rditer", - srcs = [ - "replica_data_iter.go", - "stats.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/rditer", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/storage", - "//pkg/storage/enginepb", - ], -) - -go_test( - name = "rditer_test", - size = "small", - srcs = ["replica_data_iter_test.go"], - embed = [":rditer"], - deps = [ - "//pkg/keys", - "//pkg/kv/kvserver/spanset", - "//pkg/roachpb", - "//pkg/storage", - "//pkg/testutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/uuid", - ], -) diff --git a/pkg/kv/kvserver/readsummary/BUILD.bazel b/pkg/kv/kvserver/readsummary/BUILD.bazel deleted file mode 100644 index 1cf25b09faf..00000000000 --- a/pkg/kv/kvserver/readsummary/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "readsummary", - srcs = ["persist.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/readsummary", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv/kvserver/readsummary/rspb", - "//pkg/roachpb", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util/hlc", - ], -) diff --git a/pkg/kv/kvserver/readsummary/rspb/BUILD.bazel b/pkg/kv/kvserver/readsummary/rspb/BUILD.bazel deleted file mode 100644 index acc363d5d27..00000000000 --- a/pkg/kv/kvserver/readsummary/rspb/BUILD.bazel +++ /dev/null @@ -1,38 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -proto_library( - name = "rspb_proto", - srcs = ["summary.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/hlc:hlc_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "rspb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/readsummary/rspb", - proto = ":rspb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/hlc", - "@com_github_gogo_protobuf//gogoproto", - ], -) - -go_library( - name = "rspb", - srcs = ["summary.go"], - embed = [":rspb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/readsummary/rspb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/hlc", - "//pkg/util/log", - ], -) diff --git a/pkg/kv/kvserver/reports/BUILD.bazel b/pkg/kv/kvserver/reports/BUILD.bazel deleted file mode 100644 index d959e20ecfa..00000000000 --- a/pkg/kv/kvserver/reports/BUILD.bazel +++ /dev/null @@ -1,92 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "reports", - srcs = [ - "constraint_stats_report.go", - "critical_localities_report.go", - "replication_stats_report.go", - "reporter.go", - "zone_key.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/reports", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/liveness", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/descpb", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlutil", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - ], -) - -go_test( - name = "reports_test", - size = "medium", - srcs = [ - "constraint_stats_report_test.go", - "critical_localities_report_test.go", - "helpers_test.go", - "main_test.go", - "replication_stats_report_test.go", - "reporter_test.go", - ], - embed = [":reports"], - deps = [ - "//pkg/base", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/sqlutil", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/keysutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/keysutil", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//proto", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) diff --git a/pkg/kv/kvserver/spanlatch/BUILD.bazel b/pkg/kv/kvserver/spanlatch/BUILD.bazel deleted file mode 100644 index 81c0e18a3e4..00000000000 --- a/pkg/kv/kvserver/spanlatch/BUILD.bazel +++ /dev/null @@ -1,58 +0,0 @@ -load("//pkg/util/interval/generic:gen.bzl", "gen_interval_btree") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "spanlatch", - srcs = [ - "doc.go", - "list.go", - "manager.go", - "signal.go", - ":latch_interval_btree.go", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/spanlatch", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/kv/kvserver/concurrency/poison", - "//pkg/kv/kvserver/spanset", - "//pkg/roachpb", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "spanlatch_test", - size = "large", - srcs = [ - "manager_test.go", - "signal_test.go", - ":latch_interval_btree_test.go", # keep - ], - embed = [":spanlatch"], - shard_count = 16, - deps = [ - "//pkg/keys", - "//pkg/kv/kvserver/concurrency/poison", - "//pkg/kv/kvserver/spanset", - "//pkg/roachpb", - "//pkg/testutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/timeutil", # keep - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) - -gen_interval_btree( - name = "spanlatch_interval_btree", - package = "spanlatch", - type = "*latch", -) diff --git a/pkg/kv/kvserver/spanset/BUILD.bazel b/pkg/kv/kvserver/spanset/BUILD.bazel deleted file mode 100644 index 1d12d60d278..00000000000 --- a/pkg/kv/kvserver/spanset/BUILD.bazel +++ /dev/null @@ -1,43 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "spanset", - srcs = [ - "batch.go", - "merge.go", - "spanset.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/spanset", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_pebble//:pebble", - ], -) - -go_test( - name = "spanset_test", - size = "small", - srcs = [ - "batch_test.go", - "spanset_test.go", - ], - embed = [":spanset"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/storage", - "//pkg/testutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/split/BUILD.bazel b/pkg/kv/kvserver/split/BUILD.bazel deleted file mode 100644 index 2bffaee6a3a..00000000000 --- a/pkg/kv/kvserver/split/BUILD.bazel +++ /dev/null @@ -1,36 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "split", - srcs = [ - "decider.go", - "finder.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/split", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/util/syncutil", - ], -) - -go_test( - name = "split_test", - size = "small", - srcs = [ - "decider_test.go", - "finder_test.go", - ], - embed = [":split"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/util/encoding", - "//pkg/util/leaktest", - "//pkg/util/stop", - "//pkg/util/timeutil", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/stateloader/BUILD.bazel b/pkg/kv/kvserver/stateloader/BUILD.bazel deleted file mode 100644 index 56f558fb6af..00000000000 --- a/pkg/kv/kvserver/stateloader/BUILD.bazel +++ /dev/null @@ -1,41 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "stateloader", - srcs = [ - "initial.go", - "stateloader.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/stateloader", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/kv/kvserver/kvserverpb", - "//pkg/roachpb", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@io_etcd_go_etcd_raft_v3//raftpb", - ], -) - -go_test( - name = "stateloader_test", - size = "small", - srcs = ["initial_test.go"], - embed = [":stateloader"], - deps = [ - "//pkg/roachpb", - "//pkg/storage", - "//pkg/testutils", - "//pkg/util/leaktest", - "//pkg/util/stop", - "@io_etcd_go_etcd_raft_v3//raftpb", - ], -) diff --git a/pkg/kv/kvserver/tenantrate/BUILD.bazel b/pkg/kv/kvserver/tenantrate/BUILD.bazel deleted file mode 100644 index b4944e19b32..00000000000 --- a/pkg/kv/kvserver/tenantrate/BUILD.bazel +++ /dev/null @@ -1,51 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "tenantrate", - srcs = [ - "doc.go", - "factory.go", - "limiter.go", - "metrics.go", - "settings.go", - "system_limiter.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/tenantrate", - visibility = ["//visibility:public"], - deps = [ - "//pkg/multitenant", - "//pkg/multitenant/tenantcostmodel", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/metric/aggmetric", - "//pkg/util/quotapool", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "tenantrate_test", - size = "small", - srcs = ["limiter_test.go"], - data = glob(["testdata/**"]), - deps = [ - ":tenantrate", - "//pkg/multitenant/tenantcostmodel", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/testutils", - "//pkg/testutils/metrictestutils", - "//pkg/util/leaktest", - "//pkg/util/metric", - "//pkg/util/timeutil", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_dustin_go_humanize//:go-humanize", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) diff --git a/pkg/kv/kvserver/tscache/BUILD.bazel b/pkg/kv/kvserver/tscache/BUILD.bazel deleted file mode 100644 index 8823f5e6b7b..00000000000 --- a/pkg/kv/kvserver/tscache/BUILD.bazel +++ /dev/null @@ -1,53 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "tscache", - srcs = [ - "cache.go", - "interval_skl.go", - "metrics.go", - "skl_impl.go", - "tree_impl.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/tscache", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util", - "//pkg/util/cache", - "//pkg/util/envutil", - "//pkg/util/hlc", - "//pkg/util/interval", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/syncutil", - "//pkg/util/uuid", - "@com_github_andy_kimball_arenaskl//:arenaskl", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "tscache_test", - size = "medium", - srcs = [ - "cache_test.go", - "interval_skl_test.go", - "tree_impl_test.go", - ], - embed = [":tscache"], - deps = [ - "//pkg/roachpb", - "//pkg/testutils", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_andy_kimball_arenaskl//:arenaskl", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/kv/kvserver/txnrecovery/BUILD.bazel b/pkg/kv/kvserver/txnrecovery/BUILD.bazel deleted file mode 100644 index d408852f70e..00000000000 --- a/pkg/kv/kvserver/txnrecovery/BUILD.bazel +++ /dev/null @@ -1,38 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "txnrecovery", - srcs = [ - "manager.go", - "metrics.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/txnrecovery", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/roachpb", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/stop", - "//pkg/util/syncutil/singleflight", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "txnrecovery_test", - size = "small", - srcs = ["manager_test.go"], - embed = [":txnrecovery"], - deps = [ - "//pkg/kv", - "//pkg/roachpb", - "//pkg/testutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "@com_github_stretchr_testify//assert", - ], -) diff --git a/pkg/kv/kvserver/txnwait/BUILD.bazel b/pkg/kv/kvserver/txnwait/BUILD.bazel deleted file mode 100644 index 8c13f257579..00000000000 --- a/pkg/kv/kvserver/txnwait/BUILD.bazel +++ /dev/null @@ -1,44 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "txnwait", - srcs = [ - "metrics.go", - "queue.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/txnwait", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/kv", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/storage/enginepb", - "//pkg/util/envutil", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - ], -) - -go_test( - name = "txnwait_test", - size = "small", - srcs = ["queue_test.go"], - embed = [":txnwait"], - deps = [ - "//pkg/kv", - "//pkg/roachpb", - "//pkg/storage/enginepb", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/kv/kvserver/uncertainty/BUILD.bazel b/pkg/kv/kvserver/uncertainty/BUILD.bazel deleted file mode 100644 index 70a5d6f7384..00000000000 --- a/pkg/kv/kvserver/uncertainty/BUILD.bazel +++ /dev/null @@ -1,33 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "uncertainty", - srcs = [ - "compute.go", - "doc.go", - "interval.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/uncertainty", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvserver/kvserverpb", - "//pkg/roachpb", - "//pkg/util/hlc", - ], -) - -go_test( - name = "uncertainty_test", - srcs = [ - "compute_test.go", - "interval_test.go", - ], - embed = [":uncertainty"], - deps = [ - "//pkg/kv/kvserver/kvserverpb", - "//pkg/roachpb", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/migration/BUILD.bazel b/pkg/migration/BUILD.bazel deleted file mode 100644 index 910c7527c0e..00000000000 --- a/pkg/migration/BUILD.bazel +++ /dev/null @@ -1,32 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "migration", - srcs = [ - "helpers.go", - "migration.go", - "system_migration.go", - "tenant_migration.go", - "testing_knobs.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/migration", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/jobs", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/kvcoord", - "//pkg/roachpb", - "//pkg/server/serverpb", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/lease", - "//pkg/sql/sqlutil", - "//pkg/util/log", - "//pkg/util/stop", - "@com_github_cockroachdb_logtags//:logtags", - ], -) diff --git a/pkg/migration/migrationcluster/BUILD.bazel b/pkg/migration/migrationcluster/BUILD.bazel deleted file mode 100644 index 71e51d5e48a..00000000000 --- a/pkg/migration/migrationcluster/BUILD.bazel +++ /dev/null @@ -1,56 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "migrationcluster", - srcs = [ - "cluster.go", - "nodes.go", - "tenant_cluster.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/migration/migrationcluster", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/server/serverpb", - "//pkg/util/ctxgroup", - "//pkg/util/log", - "//pkg/util/quotapool", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@org_golang_google_grpc//:go_default_library", - ], -) - -go_test( - name = "migrationcluster_test", - size = "small", - srcs = [ - "client_test.go", - "helper_test.go", - "main_test.go", - "nodes_test.go", - ], - embed = [":migrationcluster"], - deps = [ - "//pkg/keys", - "//pkg/kv/kvserver", - "//pkg/migration/nodelivenesstest", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/server/serverpb", - "//pkg/sql/tests", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/syncutil", - "@org_golang_google_grpc//:go_default_library", - ], -) diff --git a/pkg/migration/migrationjob/BUILD.bazel b/pkg/migration/migrationjob/BUILD.bazel deleted file mode 100644 index 8b7717c32ba..00000000000 --- a/pkg/migration/migrationjob/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "migrationjob", - srcs = ["migration_job.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/migration/migrationjob", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/kv", - "//pkg/migration", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/migration/migrationmanager/BUILD.bazel b/pkg/migration/migrationmanager/BUILD.bazel deleted file mode 100644 index 8e79d8713a3..00000000000 --- a/pkg/migration/migrationmanager/BUILD.bazel +++ /dev/null @@ -1,66 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "migrationmanager", - srcs = ["manager.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/migration/migrationmanager", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/migration", - "//pkg/migration/migrationjob", - "//pkg/migration/migrations", - "//pkg/security", - "//pkg/server/serverpb", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog/lease", - "//pkg/sql/protoreflect", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlutil", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "migrationmanager_test", - size = "medium", - srcs = [ - "main_test.go", - "manager_external_test.go", - ], - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/kv/kvserver/batcheval", - "//pkg/kv/kvserver/liveness", - "//pkg/migration", - "//pkg/migration/migrations", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql/sqlutil", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/migration/migrations/BUILD.bazel b/pkg/migration/migrations/BUILD.bazel deleted file mode 100644 index dfc2fc9c388..00000000000 --- a/pkg/migration/migrations/BUILD.bazel +++ /dev/null @@ -1,139 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "migrations", - srcs = [ - "alter_statement_diagnostics_requests.go", - "alter_table_protected_timestamp_records.go", - "alter_table_statistics_avg_size.go", - "comment_on_index_migration.go", - "descriptor_utils.go", - "ensure_no_draining_names.go", - "fix_cast_for_style_migration.go", - "grant_option_migration.go", - "insert_missing_public_schema_namespace_entry.go", - "migrate_span_configs.go", - "migrations.go", - "precondition_before_starting_an_upgrade.go", - "public_schema_migration.go", - "raft_applied_index_term.go", - "remove_invalid_database_privileges.go", - "schema_changes.go", - "seed_tenant_span_configs.go", - "span_count_table.go", - "tenant_settings.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/migration/migrations", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/migration", - "//pkg/roachpb", - "//pkg/security", - "//pkg/server/serverpb", - "//pkg/spanconfig", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descidgen", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/privilege", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/retry", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_kr_pretty//:pretty", - ], -) - -go_test( - name = "migrations_test", - size = "large", - srcs = [ - "alter_statement_diagnostics_requests_test.go", - "alter_table_protected_timestamp_records_test.go", - "alter_table_statistics_avg_size_test.go", - "builtins_test.go", - "comment_on_index_migration_external_test.go", - "descriptor_utils_test.go", - "ensure_constraint_id_test.go", - "ensure_no_draining_names_external_test.go", - "fix_cast_for_style_migration_test.go", - "grant_option_migration_external_test.go", - "helpers_test.go", - "main_test.go", - "migrate_span_configs_test.go", - "precondition_before_starting_an_upgrade_external_test.go", - "public_schema_migration_external_test.go", - "raft_applied_index_term_external_test.go", - "remove_invalid_database_privileges_external_test.go", - "schema_changes_external_test.go", - "schema_changes_helpers_test.go", - ], - data = glob(["testdata/**"]), - embed = [":migrations"], - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvclient/rangefeed/rangefeedcache", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/stateloader", - "//pkg/migration", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/spanconfig/spanconfigsqlwatcher", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descbuilder", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/privilege", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlutil", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/migration/nodelivenesstest/BUILD.bazel b/pkg/migration/nodelivenesstest/BUILD.bazel deleted file mode 100644 index 027901493e8..00000000000 --- a/pkg/migration/nodelivenesstest/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "nodelivenesstest", - srcs = ["test_node_liveness.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/migration/nodelivenesstest", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/roachpb", - ], -) diff --git a/pkg/multitenant/BUILD.bazel b/pkg/multitenant/BUILD.bazel deleted file mode 100644 index 1610d4f1d6c..00000000000 --- a/pkg/multitenant/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "multitenant", - srcs = [ - "constants.go", - "cost_controller.go", - "cost_controlling_io.go", - "doc.go", - "tenant_usage.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/multitenant", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/cloud", - "//pkg/kv", - "//pkg/multitenant/tenantcostmodel", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/sql/sqlliveness", - "//pkg/util/ioctx", - "//pkg/util/metric", - "//pkg/util/stop", - ], -) diff --git a/pkg/multitenant/tenantcostmodel/BUILD.bazel b/pkg/multitenant/tenantcostmodel/BUILD.bazel deleted file mode 100644 index dad5c75e245..00000000000 --- a/pkg/multitenant/tenantcostmodel/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "tenantcostmodel", - srcs = [ - "model.go", - "settings.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/multitenant/tenantcostmodel", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/settings", - ], -) diff --git a/pkg/release/BUILD.bazel b/pkg/release/BUILD.bazel deleted file mode 100644 index d9156b881cd..00000000000 --- a/pkg/release/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "release", - srcs = [ - "build.go", - "gcs.go", - "release.go", - "upload.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/release", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build/util", - "@com_github_cockroachdb_errors//:errors", - "@com_google_cloud_go_storage//:storage", - ], -) diff --git a/pkg/roachpb/BUILD.bazel b/pkg/roachpb/BUILD.bazel deleted file mode 100644 index 4861ad6ba41..00000000000 --- a/pkg/roachpb/BUILD.bazel +++ /dev/null @@ -1,212 +0,0 @@ -# gazelle:exclude string_test.go - -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") -load(":gen.bzl", "batch_gen") - -go_library( - name = "roachpb", - srcs = [ - "ambiguous_result_error.go", - "api.go", - "app_stats.go", - "batch.go", - "data.go", - "errors.go", - "index_usage_stats.go", - "internal.go", - "merge_spans.go", - "metadata.go", - "metadata_replicas.go", - "method.go", - "replica_unavailable_error.go", - "span_config.go", - "span_group.go", - "tenant.go", - "version.go", - ":gen-batch-generated", # keep - ":gen-errordetailtype-stringer", # keep - ":gen-method-stringer", # keep - ], - embed = [":roachpb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/roachpb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo/geopb", - "//pkg/keysbase", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/storage/enginepb", - "//pkg/util", - "//pkg/util/bitarray", - "//pkg/util/caller", - "//pkg/util/duration", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/humanizeutil", - "//pkg/util/interval", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/timetz", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//errorspb", - "@com_github_cockroachdb_errors//extgrpc", - "@com_github_cockroachdb_redact//:redact", - "@com_github_dustin_go_humanize//:go-humanize", - "@com_github_gogo_protobuf//proto", - "@com_github_golang_mock//gomock", # keep - "@io_etcd_go_etcd_raft_v3//raftpb", - "@org_golang_google_grpc//metadata", # keep - ], -) - -go_test( - name = "roachpb_test", - size = "small", - srcs = [ - "api_test.go", - "app_stats_test.go", - "batch_test.go", - "data_test.go", - "dep_test.go", - "errors_test.go", - "index_usage_stats_test.go", - "main_test.go", - "merge_spans_test.go", - "metadata_replicas_test.go", - "metadata_test.go", - "replica_unavailable_error_test.go", - "span_group_test.go", - "tenant_test.go", - "version_test.go", - ], - data = glob(["testdata/**"]), - embed = [":roachpb"], - tags = ["no-remote"], - deps = [ - "//pkg/cli/exit", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/storage/enginepb", - "//pkg/testutils/buildutil", - "//pkg/testutils/zerofields", - "//pkg/util", - "//pkg/util/bitarray", - "//pkg/util/duration", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//proto", - "@com_github_golang_protobuf//proto:go_default_library", - "@com_github_kr_pretty//:pretty", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@io_etcd_go_etcd_raft_v3//:raft", - "@io_etcd_go_etcd_raft_v3//confchange", - "@io_etcd_go_etcd_raft_v3//quorum", - "@io_etcd_go_etcd_raft_v3//raftpb", - "@io_etcd_go_etcd_raft_v3//tracker", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//status", - ], -) - -# keep -go_test( - name = "string_test", - size = "small", - srcs = ["string_test.go"], - data = glob(["testdata/**"]), - deps = [ - ":roachpb", # keep - "//pkg/cli/exit", - "//pkg/keys", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/storage/enginepb", - "//pkg/testutils/echotest", - "//pkg/util/hlc", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "roachpb_proto", - srcs = [ - "api.proto", - "app_stats.proto", - "data.proto", - "errors.proto", - "index_usage_stats.proto", - "internal.proto", - "internal_raft.proto", - "io-formats.proto", - "metadata.proto", - "span_config.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvserver/concurrency/lock:lock_proto", - "//pkg/kv/kvserver/readsummary/rspb:rspb_proto", - "//pkg/settings:settings_proto", - "//pkg/storage/enginepb:enginepb_proto", - "//pkg/util:util_proto", - "//pkg/util/hlc:hlc_proto", - "//pkg/util/tracing/tracingpb:tracingpb_proto", - "@com_github_cockroachdb_errors//errorspb:errorspb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -# keep -go_proto_library( - name = "roachpb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/roachpb", - proto = ":roachpb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/readsummary/rspb", - "//pkg/settings", - "//pkg/storage/enginepb", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/tracing/tracingpb", - "@com_github_cockroachdb_errors//errorspb", - "@com_github_gogo_protobuf//gogoproto", - ], -) - -stringer( - name = "gen-method-stringer", - src = "method.go", - typ = "Method", -) - -stringer( - name = "gen-errordetailtype-stringer", - src = "errors.go", - typ = "ErrorDetailType", -) - -batch_gen( - name = "gen-batch-generated", - src = ":roachpb_go_proto", - out = "batch_generated-gen.go", -) diff --git a/pkg/roachpb/gen/BUILD.bazel b/pkg/roachpb/gen/BUILD.bazel deleted file mode 100644 index 3879ca9bed2..00000000000 --- a/pkg/roachpb/gen/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "gen_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/roachpb/gen", - visibility = ["//visibility:private"], - deps = ["@org_golang_x_tools//go/ast/inspector"], -) - -go_binary( - name = "gen", - embed = [":gen_lib"], - gotags = ["metamorphic_disable"], - visibility = ["//visibility:public"], -) diff --git a/pkg/roachpb/roachpbmock/BUILD.bazel b/pkg/roachpb/roachpbmock/BUILD.bazel deleted file mode 100644 index 335743aca43..00000000000 --- a/pkg/roachpb/roachpbmock/BUILD.bazel +++ /dev/null @@ -1,33 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@bazel_gomock//:gomock.bzl", "gomock") - -gomock( - name = "mock_roachpb", - out = "mocks_generated.go", - interfaces = [ - "InternalClient", - "Internal_RangeFeedClient", - ], - library = "//pkg/roachpb", - package = "roachpbmock", - self_package = "github.com/cockroachdb/cockroach/pkg/roachpb/roachpbmock", - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -go_library( - name = "roachpbmock", - srcs = [ - ":mock_roachpb", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/roachpb/roachpbmock", # keep - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", # keep - "@com_github_golang_mock//gomock", # keep - "@org_golang_google_grpc//:go_default_library", # keep - "@org_golang_google_grpc//metadata", # keep - ], -) diff --git a/pkg/roachprod/BUILD.bazel b/pkg/roachprod/BUILD.bazel deleted file mode 100644 index 853ac9f5377..00000000000 --- a/pkg/roachprod/BUILD.bazel +++ /dev/null @@ -1,33 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "roachprod", - srcs = [ - "clusters_cache.go", - "multitenant.go", - "roachprod.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build", - "//pkg/cli/exit", - "//pkg/roachprod/cloud", - "//pkg/roachprod/config", - "//pkg/roachprod/install", - "//pkg/roachprod/logger", - "//pkg/roachprod/vm", - "//pkg/roachprod/vm/aws", - "//pkg/roachprod/vm/azure", - "//pkg/roachprod/vm/gce", - "//pkg/roachprod/vm/local", - "//pkg/util/ctxgroup", - "//pkg/util/httputil", - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@org_golang_x_sys//unix", - ], -) diff --git a/pkg/roachprod/cloud/BUILD.bazel b/pkg/roachprod/cloud/BUILD.bazel deleted file mode 100644 index 64353ead769..00000000000 --- a/pkg/roachprod/cloud/BUILD.bazel +++ /dev/null @@ -1,38 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "cloud", - srcs = [ - "cluster_cloud.go", - "gc.go", - "gc_aws_keypairs.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/cloud", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachprod/config", - "//pkg/roachprod/logger", - "//pkg/roachprod/vm", - "//pkg/util/log", - "//pkg/util/timeutil", - "@com_github_aws_aws_sdk_go_v2_config//:config", - "@com_github_aws_aws_sdk_go_v2_service_ec2//:ec2", - "@com_github_aws_aws_sdk_go_v2_service_ec2//types", - "@com_github_aws_aws_sdk_go_v2_service_iam//:iam", - "@com_github_aws_aws_sdk_go_v2_service_iam//types", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_slack_go_slack//:slack", - "@org_golang_x_sync//errgroup", - ], -) - -go_test( - name = "cloud_test", - srcs = ["cloud_test.go"], - embed = [":cloud"], - deps = [ - "@com_github_aws_aws_sdk_go_v2_service_ec2//types", - "@com_github_stretchr_testify//assert", - ], -) diff --git a/pkg/roachprod/config/BUILD.bazel b/pkg/roachprod/config/BUILD.bazel deleted file mode 100644 index 881ff734e21..00000000000 --- a/pkg/roachprod/config/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "config", - srcs = ["config.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/config", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/envutil", - "//pkg/util/log", - ], -) - -go_test( - name = "config_test", - srcs = ["config_test.go"], - embed = [":config"], -) diff --git a/pkg/roachprod/errors/BUILD.bazel b/pkg/roachprod/errors/BUILD.bazel deleted file mode 100644 index 9f65cb3d247..00000000000 --- a/pkg/roachprod/errors/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "errors", - srcs = ["errors.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/errors", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) diff --git a/pkg/roachprod/install/BUILD.bazel b/pkg/roachprod/install/BUILD.bazel deleted file mode 100644 index 6e515ef8626..00000000000 --- a/pkg/roachprod/install/BUILD.bazel +++ /dev/null @@ -1,62 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "install", - srcs = [ - "cluster_settings.go", - "cluster_synced.go", - "cockroach.go", - "download.go", - "expander.go", - "install.go", - "iterm2.go", - "nodes.go", - "session.go", - "staging.go", - ], - embedsrcs = [ - "scripts/download.sh", - "scripts/start.sh", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/install", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cli/exit", - "//pkg/roachprod/cloud", - "//pkg/roachprod/config", - "//pkg/roachprod/errors", - "//pkg/roachprod/logger", - "//pkg/roachprod/ssh", - "//pkg/roachprod/ui", - "//pkg/roachprod/vm/aws", - "//pkg/roachprod/vm/local", - "//pkg/util", - "//pkg/util/log", - "//pkg/util/retry", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/version", - "@com_github_alessio_shellescape//:shellescape", - "@com_github_cockroachdb_errors//:errors", - "@org_golang_x_sync//errgroup", - ], -) - -go_test( - name = "install_test", - srcs = [ - "cluster_synced_test.go", - "staging_test.go", - "start_template_test.go", - ], - data = glob(["testdata/**"]), - embed = [":install"], - deps = [ - "//pkg/roachprod/logger", - "//pkg/testutils", - "//pkg/util/retry", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/roachprod/logger/BUILD.bazel b/pkg/roachprod/logger/BUILD.bazel deleted file mode 100644 index aeb6e5a350d..00000000000 --- a/pkg/roachprod/logger/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "logger", - srcs = ["log.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/logger", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/log", - "//pkg/util/syncutil", - ], -) diff --git a/pkg/roachprod/ssh/BUILD.bazel b/pkg/roachprod/ssh/BUILD.bazel deleted file mode 100644 index 98211d85038..00000000000 --- a/pkg/roachprod/ssh/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "ssh", - srcs = [ - "io.go", - "shell.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/ssh", - visibility = ["//visibility:public"], -) - -go_test( - name = "ssh_test", - srcs = ["io_test.go"], - embed = [":ssh"], -) diff --git a/pkg/roachprod/ui/BUILD.bazel b/pkg/roachprod/ui/BUILD.bazel deleted file mode 100644 index a6d169a88a4..00000000000 --- a/pkg/roachprod/ui/BUILD.bazel +++ /dev/null @@ -1,11 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ui", - srcs = [ - "collate_errors.go", - "writer.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/ui", - visibility = ["//visibility:public"], -) diff --git a/pkg/roachprod/vm/BUILD.bazel b/pkg/roachprod/vm/BUILD.bazel deleted file mode 100644 index 38ef44d8b4f..00000000000 --- a/pkg/roachprod/vm/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "vm", - srcs = ["vm.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/vm", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachprod/config", - "//pkg/roachprod/logger", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - "@org_golang_x_sync//errgroup", - ], -) - -go_test( - name = "vm_test", - size = "small", - srcs = ["vm_test.go"], - embed = [":vm"], - deps = ["@com_github_stretchr_testify//assert"], -) diff --git a/pkg/roachprod/vm/aws/BUILD.bazel b/pkg/roachprod/vm/aws/BUILD.bazel deleted file mode 100644 index 73b347c7256..00000000000 --- a/pkg/roachprod/vm/aws/BUILD.bazel +++ /dev/null @@ -1,60 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//extras:bindata.bzl", "bindata") - -go_library( - name = "aws", - srcs = [ - "aws.go", - "config.go", - "keys.go", - "support.go", - ":embedded", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/vm/aws", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachprod/config", - "//pkg/roachprod/logger", - "//pkg/roachprod/vm", - "//pkg/roachprod/vm/flagstub", - "//pkg/util/log", - "//pkg/util/retry", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_spf13_pflag//:pflag", - "@org_golang_x_sync//errgroup", - "@org_golang_x_time//rate", - ], -) - -genrule( - name = "gen-main-tf", - outs = ["terraform/main.tf"], - cmd = """ - $(location //pkg/roachprod/vm/aws/terraformgen) -o $@ - """, - exec_tools = ["//pkg/roachprod/vm/aws/terraformgen"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -bindata( - name = "embedded", - srcs = [ - "config.json", - "old.json", - ], - extra_args = [ - "-mode", - "0600", - "-modtime", - "1400000000", - ], - metadata = True, - package = "aws", - visibility = ["//pkg/gen:__pkg__"], -) diff --git a/pkg/roachprod/vm/aws/terraformgen/BUILD.bazel b/pkg/roachprod/vm/aws/terraformgen/BUILD.bazel deleted file mode 100644 index 36a608d8087..00000000000 --- a/pkg/roachprod/vm/aws/terraformgen/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "terraformgen_lib", - srcs = ["terraformgen.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/vm/aws/terraformgen", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cli/exit", - "@com_github_spf13_cobra//:cobra", - ], -) - -go_binary( - name = "terraformgen", - embed = [":terraformgen_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/roachprod/vm/azure/BUILD.bazel b/pkg/roachprod/vm/azure/BUILD.bazel deleted file mode 100644 index f512f92a105..00000000000 --- a/pkg/roachprod/vm/azure/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "azure", - srcs = [ - "auth.go", - "azure.go", - "doc.go", - "flags.go", - "ids.go", - "utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/vm/azure", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachprod/config", - "//pkg/roachprod/logger", - "//pkg/roachprod/vm", - "//pkg/roachprod/vm/flagstub", - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_azure_azure_sdk_for_go//profiles/latest/compute/mgmt/compute", - "@com_github_azure_azure_sdk_for_go//profiles/latest/network/mgmt/network", - "@com_github_azure_azure_sdk_for_go//profiles/latest/resources/mgmt/resources", - "@com_github_azure_azure_sdk_for_go//profiles/latest/resources/mgmt/subscriptions", - "@com_github_azure_azure_sdk_for_go//services/compute/mgmt/2019-07-01/compute", - "@com_github_azure_go_autorest_autorest//:autorest", - "@com_github_azure_go_autorest_autorest_azure_auth//:auth", - "@com_github_azure_go_autorest_autorest_to//:to", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/roachprod/vm/flagstub/BUILD.bazel b/pkg/roachprod/vm/flagstub/BUILD.bazel deleted file mode 100644 index b123b806cd9..00000000000 --- a/pkg/roachprod/vm/flagstub/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "flagstub", - srcs = ["flagstub.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/vm/flagstub", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachprod/logger", - "//pkg/roachprod/vm", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/roachprod/vm/gce/BUILD.bazel b/pkg/roachprod/vm/gce/BUILD.bazel deleted file mode 100644 index f56982dc0f2..00000000000 --- a/pkg/roachprod/vm/gce/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "gce", - srcs = [ - "gcloud.go", - "utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/vm/gce", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachprod/config", - "//pkg/roachprod/logger", - "//pkg/roachprod/vm", - "//pkg/roachprod/vm/flagstub", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/roachprod/vm/local/BUILD.bazel b/pkg/roachprod/vm/local/BUILD.bazel deleted file mode 100644 index 772be2af3a5..00000000000 --- a/pkg/roachprod/vm/local/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "local", - srcs = ["local.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/vm/local", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachprod/cloud", - "//pkg/roachprod/config", - "//pkg/roachprod/logger", - "//pkg/roachprod/vm", - "//pkg/util", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/rpc/BUILD.bazel b/pkg/rpc/BUILD.bazel deleted file mode 100644 index 670bd670f6e..00000000000 --- a/pkg/rpc/BUILD.bazel +++ /dev/null @@ -1,153 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rpc", - srcs = [ - "addjoin.go", - "auth.go", - "auth_tenant.go", - "breaker.go", - "clock_offset.go", - "codec.go", - "connection_class.go", - "context.go", - "context_testutils.go", - "heartbeat.go", - "keepalive.go", - "metrics.go", - "pg.go", - "snappy.go", - "stats_handler.go", - "tls.go", - ], - embed = [":rpc_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/rpc", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/security", - "//pkg/server/pgurl", - "//pkg/settings/cluster", - "//pkg/sql/catalog/catalogkeys", - "//pkg/util/contextutil", - "//pkg/util/envutil", - "//pkg/util/growstack", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/log/severity", - "//pkg/util/metric", - "//pkg/util/netutil", - "//pkg/util/netutil/addr", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cenkalti_backoff//:backoff", - "@com_github_cockroachdb_circuitbreaker//:circuitbreaker", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_facebookgo_clock//:clock", - "@com_github_gogo_protobuf//proto", - "@com_github_golang_protobuf//proto:go_default_library", - "@com_github_golang_snappy//:snappy", - "@com_github_montanaflynn_stats//:stats", - "@com_github_vividcortex_ewma//:ewma", - "@io_opentelemetry_go_otel//attribute", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_google_grpc//backoff", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//credentials", - "@org_golang_google_grpc//encoding", - "@org_golang_google_grpc//keepalive", - "@org_golang_google_grpc//metadata", - "@org_golang_google_grpc//peer", - "@org_golang_google_grpc//stats", - "@org_golang_google_grpc//status", - "@org_golang_x_sync//syncmap", - ], -) - -go_test( - name = "rpc_test", - size = "small", - srcs = [ - "auth_test.go", - "clock_offset_test.go", - "codec_test.go", - "context_test.go", - "heartbeat_test.go", - "main_test.go", - "stats_handler_test.go", - "tls_test.go", - ], - embed = [":rpc"], - deps = [ - "//pkg/base", - "//pkg/cli/exit", - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/testutils", - "//pkg/testutils/skip", - "//pkg/util", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/netutil", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_stretchr_testify//require", - "@io_etcd_go_etcd_raft_v3//raftpb", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//credentials", - "@org_golang_google_grpc//health/grpc_health_v1", - "@org_golang_google_grpc//keepalive", - "@org_golang_google_grpc//metadata", - "@org_golang_google_grpc//peer", - "@org_golang_google_grpc//stats", - "@org_golang_google_grpc//status", - "@org_golang_x_sync//errgroup", - ], -) - -proto_library( - name = "rpc_proto", - srcs = ["heartbeat.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb:roachpb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "rpc_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/rpc", - proto = ":rpc_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "@com_github_gogo_protobuf//gogoproto", - ], -) diff --git a/pkg/rpc/nodedialer/BUILD.bazel b/pkg/rpc/nodedialer/BUILD.bazel deleted file mode 100644 index 7f10e01c2cb..00000000000 --- a/pkg/rpc/nodedialer/BUILD.bazel +++ /dev/null @@ -1,46 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "nodedialer", - srcs = ["nodedialer.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/rpc/nodedialer", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvbase", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/util/grpcutil", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_circuitbreaker//:circuitbreaker", - "@com_github_cockroachdb_errors//:errors", - "@org_golang_google_grpc//:go_default_library", - ], -) - -go_test( - name = "nodedialer_test", - size = "small", - srcs = ["nodedialer_test.go"], - embed = [":nodedialer"], - deps = [ - "//pkg/clusterversion", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/settings/cluster", - "//pkg/testutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_circuitbreaker//:circuitbreaker", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@org_golang_google_grpc//:go_default_library", - ], -) diff --git a/pkg/scheduledjobs/BUILD.bazel b/pkg/scheduledjobs/BUILD.bazel deleted file mode 100644 index 71f3268baea..00000000000 --- a/pkg/scheduledjobs/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "scheduledjobs", - srcs = ["env.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/scheduledjobs", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/kv", - "//pkg/kv/kvserver/protectedts", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/sql/sqlutil", - "//pkg/util/hlc", - "//pkg/util/timeutil", - ], -) diff --git a/pkg/security/BUILD.bazel b/pkg/security/BUILD.bazel deleted file mode 100644 index 911d2bcaec2..00000000000 --- a/pkg/security/BUILD.bazel +++ /dev/null @@ -1,150 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "security", - srcs = [ - "auth.go", - "auto_tls_init.go", - "certificate_loader.go", - "certificate_manager.go", - "certs.go", - "join_token.go", - "ocsp.go", - "password.go", - "pem.go", - "permission_check.go", - "tls.go", - "tls_settings.go", - "username.go", - "utils.go", - "x509.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/security", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/roachpb", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/lexbase", - "//pkg/util/contextutil", - "//pkg/util/encoding", - "//pkg/util/envutil", - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/metric", - "//pkg/util/quotapool", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/sysutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_redact//:redact", - "@com_github_xdg_go_scram//:scram", - "@com_github_xdg_go_stringprep//:stringprep", - "@org_golang_x_crypto//bcrypt", - "@org_golang_x_crypto//ocsp", - "@org_golang_x_crypto//pbkdf2", - "@org_golang_x_sync//errgroup", - ], -) - -go_test( - name = "security_test", - size = "medium", - srcs = [ - "auth_test.go", - "auto_tls_init_test.go", - "certificate_loader_test.go", - "certificate_manager_test.go", - "certs_rotation_test.go", - "certs_tenant_test.go", - "certs_test.go", - "join_token_test.go", - "main_test.go", - "password_test.go", - "permission_check_test.go", - "tls_test.go", - "username_test.go", - "x509_test.go", - ], - embed = [":security"], - deps = [ - "//pkg/base", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/util/envutil", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - "@org_golang_x_crypto//bcrypt", - "@org_golang_x_exp//rand", - ] + select({ - "@io_bazel_rules_go//go/platform:aix": [ - "//pkg/util/log/eventpb", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:android": [ - "//pkg/util/log/eventpb", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "//pkg/util/log/eventpb", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "//pkg/util/log/eventpb", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "//pkg/util/log/eventpb", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:illumos": [ - "//pkg/util/log/eventpb", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "//pkg/util/log/eventpb", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:js": [ - "//pkg/util/log/eventpb", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "//pkg/util/log/eventpb", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "//pkg/util/log/eventpb", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "//pkg/util/log/eventpb", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:plan9": [ - "//pkg/util/log/eventpb", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "//pkg/util/log/eventpb", - "@org_golang_x_sys//unix", - ], - "//conditions:default": [], - }), -) diff --git a/pkg/security/certmgr/BUILD.bazel b/pkg/security/certmgr/BUILD.bazel deleted file mode 100644 index f2d35a6dd27..00000000000 --- a/pkg/security/certmgr/BUILD.bazel +++ /dev/null @@ -1,56 +0,0 @@ -load("@bazel_gomock//:gomock.bzl", "gomock") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "certmgr", - srcs = [ - "cert.go", - "cert_manager.go", - "file_cert.go", - "self_signed_cert.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/security/certmgr", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/syncutil", - "//pkg/util/sysutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "certmgr_test", - srcs = [ - "cert_manager_test.go", - "file_cert_test.go", - "self_signed_cert_test.go", - ":mocks_certmgr", # keep - ], - embed = [":certmgr"], - deps = [ - "//pkg/testutils", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/timeutil", - "@com_github_golang_mock//gomock", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@org_golang_x_sys//unix", - ], -) - -gomock( - name = "mocks_certmgr", - out = "mocks_generated_test.go", - interfaces = ["Cert"], - library = ":certmgr", - package = "certmgr", - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/security/pprompt/BUILD.bazel b/pkg/security/pprompt/BUILD.bazel deleted file mode 100644 index 68b81998b3f..00000000000 --- a/pkg/security/pprompt/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "pprompt", - srcs = ["password.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/security/pprompt", - visibility = ["//visibility:public"], - deps = ["@org_golang_x_term//:term"], -) diff --git a/pkg/security/securitytest/BUILD.bazel b/pkg/security/securitytest/BUILD.bazel deleted file mode 100644 index 71344d8359c..00000000000 --- a/pkg/security/securitytest/BUILD.bazel +++ /dev/null @@ -1,37 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//extras:bindata.bzl", "bindata") - -go_library( - name = "securitytest", - srcs = [ - "securitytest.go", - "testcerts.go", - ":embedded", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/security/securitytest", - visibility = ["//visibility:public"], - deps = [ - "//pkg/security", - "@com_github_cockroachdb_errors//:errors", - ], -) - -bindata( - name = "embedded", - srcs = glob( - ["test_certs/*"], - exclude = [ - "test_certs/README.md", - "test_certs/regenerate.sh", - ], - ), - extra_args = [ - "-mode", - "0600", - "-modtime", - "1400000000", - ], - metadata = True, - package = "securitytest", - visibility = ["//pkg/gen:__pkg__"], -) diff --git a/pkg/security/sessionrevival/BUILD.bazel b/pkg/security/sessionrevival/BUILD.bazel deleted file mode 100644 index 9c8e54f9b13..00000000000 --- a/pkg/security/sessionrevival/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "sessionrevival", - srcs = ["token.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/security/sessionrevival", - visibility = ["//visibility:public"], - deps = [ - "//pkg/security", - "//pkg/sql/sessiondatapb", - "//pkg/util/protoutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//types", - ], -) - -go_test( - name = "sessionrevival_test", - srcs = ["token_test.go"], - embed = [":sessionrevival"], - deps = [ - "//pkg/security", - "//pkg/sql/sessiondatapb", - "//pkg/util/timeutil", - "@com_github_gogo_protobuf//types", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/server/BUILD.bazel b/pkg/server/BUILD.bazel deleted file mode 100644 index 71ab1f0c68b..00000000000 --- a/pkg/server/BUILD.bazel +++ /dev/null @@ -1,464 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "server", - srcs = [ - "addjoin.go", - "admin.go", - "api_v2.go", - "api_v2_auth.go", - "api_v2_error.go", - "api_v2_ranges.go", - "api_v2_sql.go", - "api_v2_sql_schema.go", - "authentication.go", - "auto_tls_init.go", - "auto_upgrade.go", - "clock_monotonicity.go", - "cluster_settings.go", - "combined_statement_stats.go", - "config.go", - "config_unix.go", - "config_windows.go", - "decommission.go", - "doc.go", - "drain.go", - "env_sampler.go", - "external_storage_builder.go", - "grpc_gateway.go", - "grpc_server.go", - "import_ts.go", - "index_usage_stats.go", - "init.go", - "init_handshake.go", - "listen_and_update_addrs.go", - "load_endpoint.go", - "loopback.go", - "loss_of_quorum.go", - "migration.go", - "node.go", - "node_http_router.go", - "node_tenant.go", - "node_tombstone_storage.go", - "pagination.go", - "problem_ranges.go", - "purge_auth_session.go", - "rlimit_bsd.go", - "rlimit_darwin.go", - "rlimit_unix.go", - "server.go", - "server_http.go", - "server_sql.go", - "server_systemlog_gc.go", - "settings_cache.go", - "sql_stats.go", - "start_listen.go", - "statement_diagnostics_requests.go", - "statements.go", - "status.go", - "status_local_file_retrieval.go", - "sticky_engine.go", - "tcp_keepalive_manager.go", - "tenant.go", - "tenant_admin.go", - "tenant_status.go", - "testing_knobs.go", - "testserver.go", - "testserver_http.go", - "user.go", - ], - cgo = True, - importpath = "github.com/cockroachdb/cockroach/pkg/server", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/blobs", - "//pkg/blobs/blobspb", - "//pkg/build", - "//pkg/cloud", - "//pkg/clusterversion", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/docs", - "//pkg/featureflag", - "//pkg/gossip", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/jobs/jobsprotectedts", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/bulk", - "//pkg/kv/kvclient", - "//pkg/kv/kvclient/kvcoord", - "//pkg/kv/kvclient/kvtenant", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvprober", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/closedts/ctpb", - "//pkg/kv/kvserver/closedts/sidetransport", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/kv/kvserver/kvserverpb", - "//pkg/kv/kvserver/liveness", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/kv/kvserver/loqrecovery", - "//pkg/kv/kvserver/loqrecovery/loqrecoverypb", - "//pkg/kv/kvserver/protectedts", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/kv/kvserver/protectedts/ptprovider", - "//pkg/kv/kvserver/protectedts/ptreconcile", - "//pkg/kv/kvserver/rangefeed", - "//pkg/kv/kvserver/reports", - "//pkg/migration", - "//pkg/migration/migrationcluster", - "//pkg/migration/migrationmanager", - "//pkg/multitenant", - "//pkg/multitenant/tenantcostmodel", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/scheduledjobs", - "//pkg/security", - "//pkg/server/debug", - "//pkg/server/diagnostics", - "//pkg/server/diagnostics/diagnosticspb", - "//pkg/server/goroutinedumper", - "//pkg/server/heapprofiler", - "//pkg/server/serverpb", - "//pkg/server/settingswatcher", - "//pkg/server/status", - "//pkg/server/status/statuspb", - "//pkg/server/systemconfigwatcher", - "//pkg/server/telemetry", - "//pkg/server/tenantsettingswatcher", - "//pkg/server/tracedumper", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/spanconfig/spanconfigjob", - "//pkg/spanconfig/spanconfigkvaccessor", - "//pkg/spanconfig/spanconfigkvsubscriber", - "//pkg/spanconfig/spanconfiglimiter", - "//pkg/spanconfig/spanconfigmanager", - "//pkg/spanconfig/spanconfigptsreader", - "//pkg/spanconfig/spanconfigreconciler", - "//pkg/spanconfig/spanconfigsplitter", - "//pkg/spanconfig/spanconfigsqltranslator", - "//pkg/spanconfig/spanconfigsqlwatcher", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/hydratedtables", - "//pkg/sql/catalog/lease", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/colexec", - "//pkg/sql/contention", - "//pkg/sql/contentionpb", - "//pkg/sql/descmetadata", - "//pkg/sql/distsql", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/flowinfra", - "//pkg/sql/gcjob", - "//pkg/sql/gcjob/gcjobnotifier", - "//pkg/sql/idxusage", - "//pkg/sql/importer", - "//pkg/sql/optionalnodeliveness", - "//pkg/sql/parser", - "//pkg/sql/pgwire", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/pgwire/pgwirecancel", - "//pkg/sql/physicalplan", - "//pkg/sql/querycache", - "//pkg/sql/roleoption", - "//pkg/sql/scheduledlogging", - "//pkg/sql/schemachanger/scdeps", - "//pkg/sql/schemachanger/scjob", - "//pkg/sql/schemachanger/scrun", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sessioninit", - "//pkg/sql/sqlinstance", - "//pkg/sql/sqlinstance/instanceprovider", - "//pkg/sql/sqlliveness", - "//pkg/sql/sqlliveness/slprovider", - "//pkg/sql/sqlstats", - "//pkg/sql/sqlstats/persistedsqlstats", - "//pkg/sql/sqlstats/persistedsqlstats/sqlstatsutil", - "//pkg/sql/sqlutil", - "//pkg/sql/stats", - "//pkg/sql/stmtdiagnostics", - "//pkg/sql/ttl/ttljob", - "//pkg/sql/ttl/ttlschedule", - "//pkg/sql/types", - "//pkg/startupmigrations", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/storage/fs", - "//pkg/testutils/serverutils", - "//pkg/ts", - "//pkg/ts/catalog", - "//pkg/ui", - "//pkg/util", - "//pkg/util/admission", - "//pkg/util/buildutil", - "//pkg/util/contextutil", - "//pkg/util/envutil", - "//pkg/util/errorutil", - "//pkg/util/goschedstats", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/httputil", - "//pkg/util/humanizeutil", - "//pkg/util/iterutil", - "//pkg/util/json", - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/log/logcrash", - "//pkg/util/log/logpb", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/netutil", - "//pkg/util/netutil/addr", - "//pkg/util/protoutil", - "//pkg/util/quotapool", - "//pkg/util/retry", - "//pkg/util/startup", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/tracing/collector", - "//pkg/util/tracing/service", - "//pkg/util/tracing/tracingpb", - "//pkg/util/tracing/tracingservicepb", - "//pkg/util/tracing/tracingui", - "//pkg/util/uuid", - "@com_github_cenkalti_backoff//:backoff", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_circuitbreaker//:circuitbreaker", - "@com_github_cockroachdb_cmux//:cmux", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_pebble//:pebble", - "@com_github_cockroachdb_pebble//bloom", - "@com_github_cockroachdb_pebble//vfs", - "@com_github_cockroachdb_redact//:redact", - "@com_github_getsentry_sentry_go//:sentry-go", - "@com_github_gogo_protobuf//proto", - "@com_github_gorilla_mux//:mux", - "@com_github_grpc_ecosystem_grpc_gateway//runtime:go_default_library", - "@com_github_grpc_ecosystem_grpc_gateway//utilities:go_default_library", - "@com_github_marusama_semaphore//:semaphore", - "@com_github_nytimes_gziphandler//:gziphandler", - "@in_gopkg_yaml_v2//:yaml_v2", - "@io_etcd_go_etcd_raft_v3//:raft", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//metadata", - "@org_golang_google_grpc//status", - ] + select({ - "@io_bazel_rules_go//go/platform:aix": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:android": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:illumos": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:js": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:plan9": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "@org_golang_x_sys//unix", - ], - "//conditions:default": [], - }), -) - -go_test( - name = "server_test", - size = "enormous", - srcs = [ - "addjoin_test.go", - "admin_cluster_test.go", - "admin_test.go", - "api_v2_ranges_test.go", - "api_v2_sql_schema_test.go", - "api_v2_sql_test.go", - "api_v2_test.go", - "authentication_test.go", - "auto_tls_init_test.go", - "bench_test.go", - "config_test.go", - "connectivity_test.go", - "drain_test.go", - "graphite_test.go", - "index_usage_stats_test.go", - "init_handshake_test.go", - "intent_test.go", - "main_test.go", - "migration_test.go", - "multi_store_test.go", - "node_http_router_test.go", - "node_tenant_test.go", - "node_test.go", - "node_tombstone_storage_test.go", - "pagination_test.go", - "purge_auth_session_test.go", - "server_http_test.go", - "server_import_ts_test.go", - "server_internal_executor_factory_test.go", - "server_startup_test.go", - "server_systemlog_gc_test.go", - "server_test.go", - "settings_cache_test.go", - "settings_test.go", - "statements_test.go", - "stats_test.go", - "status_ext_test.go", - "status_test.go", - "sticky_engine_test.go", - "testserver_test.go", - "user_test.go", - "version_cluster_test.go", - ], - data = glob(["testdata/**"]), - embed = [":server"], - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/build", - "//pkg/cli/exit", - "//pkg/clusterversion", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/gossip", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/closedts", - "//pkg/kv/kvserver/closedts/ctpb", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/kv/kvserver/kvserverpb", - "//pkg/kv/kvserver/liveness", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/migration", - "//pkg/migration/migrations", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server/debug", - "//pkg/server/diagnostics", - "//pkg/server/diagnostics/diagnosticspb", - "//pkg/server/serverpb", - "//pkg/server/status/statuspb", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/sql", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/execinfrapb", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/roleoption", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlstats", - "//pkg/sql/sqlstats/persistedsqlstats", - "//pkg/sql/tests", - "//pkg/startupmigrations", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/testutils", - "//pkg/testutils/diagutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/ts", - "//pkg/ts/catalog", - "//pkg/ts/tspb", - "//pkg/ui", - "//pkg/util", - "//pkg/util/envutil", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/httputil", - "//pkg/util/humanizeutil", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/log/logpb", - "//pkg/util/metric", - "//pkg/util/netutil", - "//pkg/util/netutil/addr", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/tracing/tracingpb", - "//pkg/util/uuid", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_dustin_go_humanize//:go-humanize", - "@com_github_gogo_protobuf//jsonpb", - "@com_github_gogo_protobuf//proto", - "@com_github_grpc_ecosystem_grpc_gateway//runtime:go_default_library", - "@com_github_kr_pretty//:pretty", - "@com_github_lib_pq//:pq", - "@com_github_prometheus_client_model//go", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - "@io_opentelemetry_go_otel//attribute", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//credentials", - "@org_golang_google_grpc//metadata", - "@org_golang_google_grpc//status", - "@org_golang_x_crypto//bcrypt", - ], -) diff --git a/pkg/server/debug/BUILD.bazel b/pkg/server/debug/BUILD.bazel deleted file mode 100644 index a5badcd4e06..00000000000 --- a/pkg/server/debug/BUILD.bazel +++ /dev/null @@ -1,58 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "debug", - srcs = [ - "cpuprofile.go", - "logspy.go", - "queries_writer.go", - "server.go", - "vmodule.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/server/debug", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/closedts/sidetransport", - "//pkg/roachpb", - "//pkg/server/debug/goroutineui", - "//pkg/server/debug/pprofui", - "//pkg/server/serverpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/storage", - "//pkg/util/encoding/csv", - "//pkg/util/log", - "//pkg/util/log/channel", - "//pkg/util/log/logpb", - "//pkg/util/log/severity", - "//pkg/util/stop", - "//pkg/util/timeutil", - "//pkg/util/uint128", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_pebble//:pebble", - "@com_github_cockroachdb_pebble//tool", - "@com_github_cockroachdb_pebble//vfs", - "@com_github_cockroachdb_redact//:redact", - "@com_github_rcrowley_go_metrics//:go-metrics", - "@com_github_rcrowley_go_metrics//exp", - "@com_github_spf13_cobra//:cobra", - "@org_golang_x_net//trace", - ], -) - -go_test( - name = "debug_test", - size = "small", - srcs = ["logspy_test.go"], - embed = [":debug"], - deps = [ - "//pkg/testutils", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/log/logpb", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/server/debug/goroutineui/BUILD.bazel b/pkg/server/debug/goroutineui/BUILD.bazel deleted file mode 100644 index ce473946b8a..00000000000 --- a/pkg/server/debug/goroutineui/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "goroutineui", - srcs = ["dump.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/server/debug/goroutineui", - visibility = ["//visibility:public"], - deps = ["@com_github_maruel_panicparse_v2//stack"], -) - -go_test( - name = "goroutineui_test", - size = "small", - srcs = ["dump_test.go"], - data = ["@go_sdk//:files"], - embed = [":goroutineui"], - deps = [ - "//pkg/build/bazel", - "//pkg/util/leaktest", - "@com_github_maruel_panicparse_v2//stack", - "@com_github_stretchr_testify//assert", - ], -) diff --git a/pkg/server/debug/pprofui/BUILD.bazel b/pkg/server/debug/pprofui/BUILD.bazel deleted file mode 100644 index 0e81935122c..00000000000 --- a/pkg/server/debug/pprofui/BUILD.bazel +++ /dev/null @@ -1,41 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "pprofui", - srcs = [ - "fakeflags.go", - "response_writer.go", - "server.go", - "storage.go", - "storage_mem.go", - "ui.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/server/debug/pprofui", - visibility = ["//visibility:public"], - deps = [ - "//pkg/server/serverpb", - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_google_pprof//driver", - "@com_github_google_pprof//profile", - "@com_github_spf13_pflag//:pflag", - ], -) - -go_test( - name = "pprofui_test", - size = "small", - srcs = ["server_test.go"], - data = glob(["testdata/**"]), - embed = [":pprofui"], - deps = [ - "//pkg/build/bazel", - "//pkg/server/serverpb", - "//pkg/testutils", - "//pkg/testutils/skip", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/server/diagnostics/BUILD.bazel b/pkg/server/diagnostics/BUILD.bazel deleted file mode 100644 index 74fcbd0c34c..00000000000 --- a/pkg/server/diagnostics/BUILD.bazel +++ /dev/null @@ -1,74 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "diagnostics", - srcs = [ - "diagnostics.go", - "reporter.go", - "update_checker.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/server/diagnostics", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/build", - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/server/diagnostics/diagnosticspb", - "//pkg/server/status/statuspb", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog/descpb", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/util/cloudinfo", - "//pkg/util/envutil", - "//pkg/util/httputil", - "//pkg/util/log", - "//pkg/util/log/logcrash", - "//pkg/util/protoutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/system", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_mitchellh_reflectwalk//:reflectwalk", - "@com_github_shirou_gopsutil_v3//cpu", - "@com_github_shirou_gopsutil_v3//host", - "@com_github_shirou_gopsutil_v3//load", - "@com_github_shirou_gopsutil_v3//mem", - "@org_golang_google_protobuf//proto", - ], -) - -go_test( - name = "diagnostics_test", - size = "medium", - srcs = [ - "dep_test.go", - "main_test.go", - "update_checker_test.go", - ], - embed = [":diagnostics"], - tags = ["no-remote"], - deps = [ - "//pkg/base", - "//pkg/build", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/testutils/buildutil", - "//pkg/testutils/diagutils", - "//pkg/testutils/serverutils", - "//pkg/util/cloudinfo", - "//pkg/util/leaktest", - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/server/diagnostics/diagnosticspb/BUILD.bazel b/pkg/server/diagnostics/diagnosticspb/BUILD.bazel deleted file mode 100644 index 05d3ebcb40d..00000000000 --- a/pkg/server/diagnostics/diagnosticspb/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -proto_library( - name = "diagnosticspb_proto", - srcs = ["diagnostics.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build:build_proto", - "//pkg/config/zonepb:zonepb_proto", - "//pkg/roachpb:roachpb_proto", - "//pkg/sql/catalog/descpb:descpb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "diagnosticspb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/server/diagnostics/diagnosticspb", - proto = ":diagnosticspb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", # keep - "//pkg/build", - "//pkg/config/zonepb", - "//pkg/roachpb", - "//pkg/sql/catalog/descpb", - "@com_github_gogo_protobuf//gogoproto", - ], -) - -go_library( - name = "diagnosticspb", - embed = [":diagnosticspb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/server/diagnostics/diagnosticspb", - visibility = ["//visibility:public"], -) diff --git a/pkg/server/dumpstore/BUILD.bazel b/pkg/server/dumpstore/BUILD.bazel deleted file mode 100644 index a77962fafc9..00000000000 --- a/pkg/server/dumpstore/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "dumpstore", - srcs = ["dumpstore.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/server/dumpstore", - visibility = ["//visibility:public"], - deps = [ - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/util/log", - ], -) - -go_test( - name = "dumpstore_test", - size = "small", - srcs = ["dumpstore_test.go"], - embed = [":dumpstore"], - deps = [ - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/server/goroutinedumper/BUILD.bazel b/pkg/server/goroutinedumper/BUILD.bazel deleted file mode 100644 index ccb6824eb34..00000000000 --- a/pkg/server/goroutinedumper/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "goroutinedumper", - srcs = ["goroutinedumper.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/server/goroutinedumper", - visibility = ["//visibility:public"], - deps = [ - "//pkg/server/dumpstore", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/util/log", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "goroutinedumper_test", - size = "small", - srcs = ["goroutinedumper_test.go"], - embed = [":goroutinedumper"], - deps = [ - "//pkg/server/dumpstore", - "//pkg/settings/cluster", - "//pkg/testutils", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - ], -) diff --git a/pkg/server/heapprofiler/BUILD.bazel b/pkg/server/heapprofiler/BUILD.bazel deleted file mode 100644 index 6fe30b1a7ff..00000000000 --- a/pkg/server/heapprofiler/BUILD.bazel +++ /dev/null @@ -1,49 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "heapprofiler", - srcs = [ - "activequeryprofiler.go", - "cgoprofiler.go", - "cluster_settings.go", - "heapprofiler.go", - "profiler_common.go", - "profilestore.go", - "statsprofiler.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/server/heapprofiler", - visibility = ["//visibility:public"], - deps = [ - "//pkg/server/debug", - "//pkg/server/dumpstore", - "//pkg/server/status", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/util/cgroups", - "//pkg/util/envutil", - "//pkg/util/log", - "//pkg/util/log/logcrash", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "heapprofiler_test", - size = "small", - srcs = [ - "activequeryprofiler_test.go", - "profiler_common_test.go", - "profilestore_test.go", - ], - embed = [":heapprofiler"], - deps = [ - "//pkg/clusterversion", - "//pkg/server/dumpstore", - "//pkg/settings/cluster", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/server/pgurl/BUILD.bazel b/pkg/server/pgurl/BUILD.bazel deleted file mode 100644 index c00ce2df076..00000000000 --- a/pkg/server/pgurl/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "pgurl", - srcs = [ - "generate.go", - "parse.go", - "pgurl.go", - "validate.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/server/pgurl", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/netutil/addr", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "pgurl_test", - srcs = ["pgurl_test.go"], - data = glob(["testdata/**"]), - embed = [":pgurl"], - deps = [ - "//pkg/testutils", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/server/serverpb/BUILD.bazel b/pkg/server/serverpb/BUILD.bazel deleted file mode 100644 index 38a660c79f5..00000000000 --- a/pkg/server/serverpb/BUILD.bazel +++ /dev/null @@ -1,106 +0,0 @@ -# gazelle:go_grpc_compilers //pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler, @com_github_grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway:go_gen_grpc_gateway - -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -proto_library( - name = "serverpb_proto", - srcs = [ - "admin.proto", - "authentication.proto", - "init.proto", - "migration.proto", - "status.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build:build_proto", - "//pkg/clusterversion:clusterversion_proto", - "//pkg/config/zonepb:zonepb_proto", - "//pkg/gossip:gossip_proto", - "//pkg/jobs/jobspb:jobspb_proto", - "//pkg/kv/kvserver/kvserverpb:kvserverpb_proto", - "//pkg/kv/kvserver/liveness/livenesspb:livenesspb_proto", - "//pkg/roachpb:roachpb_proto", - "//pkg/server/diagnostics/diagnosticspb:diagnosticspb_proto", - "//pkg/server/status/statuspb:statuspb_proto", - "//pkg/sql/contentionpb:contentionpb_proto", - "//pkg/sql/execinfrapb:execinfrapb_proto", - "//pkg/storage/enginepb:enginepb_proto", - "//pkg/ts/catalog:catalog_proto", - "//pkg/util:util_proto", - "//pkg/util/hlc:hlc_proto", - "//pkg/util/log/logpb:logpb_proto", - "//pkg/util/metric:metric_proto", - "//pkg/util/tracing/tracingpb:tracingpb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", - "@go_googleapis//google/api:annotations_proto", - "@io_etcd_go_etcd_raft_v3//raftpb:raftpb_proto", - ], -) - -go_proto_library( - name = "serverpb_go_proto", - compilers = [ - "//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler", - "@com_github_grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway:go_gen_grpc_gateway", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/server/serverpb", - proto = ":serverpb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", # keep - "//pkg/build", - "//pkg/clusterversion", - "//pkg/config/zonepb", - "//pkg/gossip", - "//pkg/jobs/jobspb", - "//pkg/kv/kvserver/kvserverpb", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/roachpb", - "//pkg/server/diagnostics/diagnosticspb", - "//pkg/server/status/statuspb", - "//pkg/sql/catalog/descpb", # keep - "//pkg/sql/contentionpb", - "//pkg/sql/execinfrapb", - "//pkg/sql/pgwire/pgwirecancel", # keep - "//pkg/storage/enginepb", - "//pkg/ts/catalog", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/log/logpb", - "//pkg/util/metric", - "//pkg/util/tracing/tracingpb", - "//pkg/util/uuid", # keep - "@com_github_gogo_protobuf//gogoproto", - # NB: The grpc-gateway compiler injects a dependency on the descriptor - # package that Gazelle isn't prepared to deal with. - "@com_github_golang_protobuf//descriptor:go_default_library_gen", # keep - "@io_etcd_go_etcd_raft_v3//raftpb", - "@org_golang_google_genproto//googleapis/api/annotations:go_default_library", - ], -) - -go_library( - name = "serverpb", - srcs = [ - "admin.go", - "status.go", - ], - embed = [":serverpb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/server/serverpb", - visibility = ["//visibility:public"], - deps = ["//pkg/util/errorutil"], -) - -go_test( - name = "serverpb_test", - size = "medium", - srcs = ["admin_test.go"], - embed = [":serverpb"], - deps = ["@com_github_stretchr_testify//assert"], -) diff --git a/pkg/server/settingswatcher/BUILD.bazel b/pkg/server/settingswatcher/BUILD.bazel deleted file mode 100644 index f649a446c74..00000000000 --- a/pkg/server/settingswatcher/BUILD.bazel +++ /dev/null @@ -1,68 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "settingswatcher", - srcs = [ - "overrides.go", - "row_decoder.go", - "settings_watcher.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/server/settingswatcher", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvclient/rangefeed/rangefeedbuffer", - "//pkg/kv/kvclient/rangefeed/rangefeedcache", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "settingswatcher_test", - srcs = [ - "main_test.go", - "row_decoder_external_test.go", - "settings_watcher_external_test.go", - ], - deps = [ - ":settingswatcher", - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvclient/rangefeed/rangefeedcache", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/server/status/BUILD.bazel b/pkg/server/status/BUILD.bazel deleted file mode 100644 index 59dbbc6ed56..00000000000 --- a/pkg/server/status/BUILD.bazel +++ /dev/null @@ -1,152 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "status", - srcs = [ - "disk_counters.go", - "disk_counters_darwin.go", - "health_check.go", - "recorder.go", - "runtime.go", - "runtime_jemalloc.go", - "runtime_jemalloc_darwin.go", - "runtime_log.go", - ], - # keep - cdeps = [ - "@cockroach//c-deps:libjemalloc", - ], - cgo = True, - # keep - clinkopts = select({ - "@io_bazel_rules_go//go/platform:android": [ - "-lrt -lm -lpthread", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "-lm", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "-lm", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "-lrt -lm -lpthread", - ], - "//conditions:default": [], - }), - # keep - cppopts = [ - "-DJEMALLOC_NO_DEMANGLE", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/server/status", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build", - "//pkg/gossip", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/liveness", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/server/status/statuspb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/ts/tspb", - "//pkg/util/cgroups", - "//pkg/util/envutil", - "//pkg/util/goschedstats", - "//pkg/util/hlc", - "//pkg/util/humanizeutil", - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/metric", - "//pkg/util/syncutil", - "//pkg/util/system", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_codahale_hdrhistogram//:hdrhistogram", - "@com_github_dustin_go_humanize//:go-humanize", - "@com_github_elastic_gosigar//:gosigar", - "@com_github_shirou_gopsutil_v3//net", - ] + select({ - "@io_bazel_rules_go//go/platform:aix": [ - "@com_github_shirou_gopsutil_v3//disk", - ], - "@io_bazel_rules_go//go/platform:android": [ - "@com_github_shirou_gopsutil_v3//disk", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "@com_github_lufia_iostat//:iostat", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "@com_github_shirou_gopsutil_v3//disk", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "@com_github_shirou_gopsutil_v3//disk", - ], - "@io_bazel_rules_go//go/platform:illumos": [ - "@com_github_shirou_gopsutil_v3//disk", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "@com_github_lufia_iostat//:iostat", - ], - "@io_bazel_rules_go//go/platform:js": [ - "@com_github_shirou_gopsutil_v3//disk", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "@com_github_shirou_gopsutil_v3//disk", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "@com_github_shirou_gopsutil_v3//disk", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "@com_github_shirou_gopsutil_v3//disk", - ], - "@io_bazel_rules_go//go/platform:plan9": [ - "@com_github_shirou_gopsutil_v3//disk", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "@com_github_shirou_gopsutil_v3//disk", - ], - "@io_bazel_rules_go//go/platform:windows": [ - "@com_github_shirou_gopsutil_v3//disk", - ], - "//conditions:default": [], - }), -) - -go_test( - name = "status_test", - size = "small", - srcs = [ - "health_check_test.go", - "jemalloc_test.go", - "main_test.go", - "recorder_test.go", - "runtime_stats_test.go", - "runtime_test.go", - ], - embed = [":status"], - deps = [ - "//pkg/base", - "//pkg/build", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/server/status/statuspb", - "//pkg/settings/cluster", - "//pkg/testutils/serverutils", - "//pkg/ts/tspb", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/metric", - "//pkg/util/metric/aggmetric", - "//pkg/util/system", - "//pkg/util/timeutil", - "@com_github_kr_pretty//:pretty", - "@com_github_shirou_gopsutil_v3//net", - ], -) diff --git a/pkg/server/status/statuspb/BUILD.bazel b/pkg/server/status/statuspb/BUILD.bazel deleted file mode 100644 index efe13ec8256..00000000000 --- a/pkg/server/status/statuspb/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -proto_library( - name = "statuspb_proto", - srcs = ["status.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build:build_proto", - "//pkg/roachpb:roachpb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "statuspb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/server/status/statuspb", - proto = ":statuspb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build", - "//pkg/roachpb", - "@com_github_gogo_protobuf//gogoproto", - ], -) - -go_library( - name = "statuspb", - embed = [":statuspb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/server/status/statuspb", - visibility = ["//visibility:public"], -) diff --git a/pkg/server/systemconfigwatcher/BUILD.bazel b/pkg/server/systemconfigwatcher/BUILD.bazel deleted file mode 100644 index 7e427c7bf4a..00000000000 --- a/pkg/server/systemconfigwatcher/BUILD.bazel +++ /dev/null @@ -1,48 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "systemconfigwatcher", - srcs = ["cache.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/server/systemconfigwatcher", - visibility = ["//visibility:public"], - deps = [ - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvclient/rangefeed/rangefeedbuffer", - "//pkg/kv/kvclient/rangefeed/rangefeedcache", - "//pkg/roachpb", - "//pkg/util/hlc", - "//pkg/util/stop", - "//pkg/util/syncutil", - ], -) - -go_test( - name = "systemconfigwatcher_test", - srcs = [ - "cache_test.go", - "main_test.go", - ], - deps = [ - ":systemconfigwatcher", - "//pkg/base", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/kv/kvclient/rangefeed", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/server/systemconfigwatcher/systemconfigwatchertest", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/server/systemconfigwatcher/systemconfigwatchertest/BUILD.bazel b/pkg/server/systemconfigwatcher/systemconfigwatchertest/BUILD.bazel deleted file mode 100644 index 14314352411..00000000000 --- a/pkg/server/systemconfigwatcher/systemconfigwatchertest/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "systemconfigwatchertest", - srcs = ["test_system_config_watcher.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/server/systemconfigwatcher/systemconfigwatchertest", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/config", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/kvtenant", - "//pkg/roachpb", - "//pkg/sql", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/util/leaktest", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - "@com_github_kr_pretty//:pretty", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/server/telemetry/BUILD.bazel b/pkg/server/telemetry/BUILD.bazel deleted file mode 100644 index 77474e81219..00000000000 --- a/pkg/server/telemetry/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "telemetry", - srcs = [ - "doc.go", - "features.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/server/telemetry", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/util/metric", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "telemetry_test", - size = "small", - srcs = ["features_test.go"], - deps = [ - ":telemetry", - "//pkg/util/metric", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/server/tenantsettingswatcher/BUILD.bazel b/pkg/server/tenantsettingswatcher/BUILD.bazel deleted file mode 100644 index 9ea176e6bc2..00000000000 --- a/pkg/server/tenantsettingswatcher/BUILD.bazel +++ /dev/null @@ -1,66 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "tenantsettingswatcher", - srcs = [ - "doc.go", - "overrides_store.go", - "row_decoder.go", - "watcher.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/server/tenantsettingswatcher", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvclient/rangefeed/rangefeedbuffer", - "//pkg/kv/kvclient/rangefeed/rangefeedcache", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/startup", - "//pkg/util/stop", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "tenantsettingswatcher_test", - srcs = [ - "main_test.go", - "overrides_store_test.go", - "row_decoder_test.go", - "watcher_test.go", - ], - embed = [":tenantsettingswatcher"], - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/server/tracedumper/BUILD.bazel b/pkg/server/tracedumper/BUILD.bazel deleted file mode 100644 index 4b12c8761cf..00000000000 --- a/pkg/server/tracedumper/BUILD.bazel +++ /dev/null @@ -1,44 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "tracedumper", - srcs = [ - "test_helpers.go", - "tracedumper.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/server/tracedumper", - visibility = ["//visibility:public"], - deps = [ - "//pkg/server/dumpstore", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/sqlutil", - "//pkg/util/log", - "//pkg/util/timeutil", - "//pkg/util/tracing/zipper", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "tracedumper_test", - srcs = [ - "main_test.go", - "tracedumper_test.go", - ], - embed = [":tracedumper"], - deps = [ - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/server/dumpstore", - "//pkg/sql/sqlutil", - "//pkg/sql/tests", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/settings/BUILD.bazel b/pkg/settings/BUILD.bazel deleted file mode 100644 index e24609646fa..00000000000 --- a/pkg/settings/BUILD.bazel +++ /dev/null @@ -1,72 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "settings", - srcs = [ - "bool.go", - "byte_size.go", - "common.go", - "doc.go", - "duration.go", - "encoding.go", - "enum.go", - "float.go", - "int.go", - "masked.go", - "registry.go", - "setting.go", - "string.go", - "updater.go", - "values.go", - "version.go", - ], - embed = [":settings_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/settings", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/buildutil", - "//pkg/util/humanizeutil", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_cockroachdb_redact//interfaces", - ], -) - -go_test( - name = "settings_test", - size = "small", - srcs = [ - "encoding_test.go", - "settings_test.go", - ], - embed = [":settings"], - deps = [ - "//pkg/testutils", - "//pkg/testutils/skip", - "//pkg/util/leaktest", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "settings_proto", - srcs = ["encoding.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "settings_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/settings", - proto = ":settings_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) diff --git a/pkg/settings/cluster/BUILD.bazel b/pkg/settings/cluster/BUILD.bazel deleted file mode 100644 index 68b723e6447..00000000000 --- a/pkg/settings/cluster/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "cluster", - srcs = ["cluster_settings.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/settings/cluster", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/util/envutil", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/spanconfig/BUILD.bazel b/pkg/spanconfig/BUILD.bazel deleted file mode 100644 index eb087880f27..00000000000 --- a/pkg/spanconfig/BUILD.bazel +++ /dev/null @@ -1,57 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "spanconfig", - srcs = [ - "errors.go", - "protectedts_state_reader.go", - "record.go", - "spanconfig.go", - "systemtarget.go", - "target.go", - "testing_knobs.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/roachpb", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/sqlliveness", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/retry", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//proto", - "@com_github_stretchr_testify//require", - ], -) - -go_test( - name = "spanconfig_test", - srcs = [ - "protectedts_state_reader_test.go", - "record_test.go", - "target_test.go", - ], - embed = [":spanconfig"], - deps = [ - "//pkg/jobs/jobsprotectedts", - "//pkg/keys", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/roachpb", - "//pkg/sql/catalog/descpb", - "//pkg/testutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/uuid", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/spanconfig/spanconfigjob/BUILD.bazel b/pkg/spanconfig/spanconfigjob/BUILD.bazel deleted file mode 100644 index 2ddb4873fd4..00000000000 --- a/pkg/spanconfig/spanconfigjob/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "spanconfigjob", - srcs = ["job.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig/spanconfigjob", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/kv", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/sql", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/retry", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/spanconfig/spanconfigkvaccessor/BUILD.bazel b/pkg/spanconfig/spanconfigkvaccessor/BUILD.bazel deleted file mode 100644 index f2d9bb4f0b8..00000000000 --- a/pkg/spanconfig/spanconfigkvaccessor/BUILD.bazel +++ /dev/null @@ -1,58 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "spanconfigkvaccessor", - srcs = [ - "dummy.go", - "kvaccessor.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig/spanconfigkvaccessor", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/sql/parser", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlutil", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "spanconfigkvaccessor_test", - srcs = [ - "kvaccessor_test.go", - "main_test.go", - "validation_test.go", - ], - data = glob(["testdata/**"]), - embed = [":spanconfigkvaccessor"], - deps = [ - "//pkg/base", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/spanconfig", - "//pkg/spanconfig/spanconfigtestutils", - "//pkg/sql/sqlutil", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/timeutil", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/spanconfig/spanconfigkvsubscriber/BUILD.bazel b/pkg/spanconfig/spanconfigkvsubscriber/BUILD.bazel deleted file mode 100644 index 2f34f46e193..00000000000 --- a/pkg/spanconfig/spanconfigkvsubscriber/BUILD.bazel +++ /dev/null @@ -1,80 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "spanconfigkvsubscriber", - srcs = [ - "dummy.go", - "kvsubscriber.go", - "spanconfigdecoder.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig/spanconfigkvsubscriber", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvclient/rangefeed/rangefeedbuffer", - "//pkg/kv/kvclient/rangefeed/rangefeedcache", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/spanconfig/spanconfigstore", - "//pkg/sql/catalog", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/protoutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "spanconfigkvsubscriber_test", - srcs = [ - "datadriven_test.go", - "kvsubscriber_client_test.go", - "kvsubscriber_test.go", - "main_test.go", - "spanconfigdecoder_test.go", - ], - data = glob(["testdata/**"]), - embed = [":spanconfigkvsubscriber"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvclient/rangefeed/rangefeedbuffer", - "//pkg/kv/kvclient/rangefeed/rangefeedcache", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/spanconfig/spanconfigkvaccessor", - "//pkg/spanconfig/spanconfigtestutils", - "//pkg/sql/sqlutil", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/spanconfig/spanconfiglimiter/BUILD.bazel b/pkg/spanconfig/spanconfiglimiter/BUILD.bazel deleted file mode 100644 index db8f3f60d9a..00000000000 --- a/pkg/spanconfig/spanconfiglimiter/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "spanconfiglimiter", - srcs = [ - "limiter.go", - "noop.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig/spanconfiglimiter", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/kv", - "//pkg/security", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlutil", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/spanconfig/spanconfigmanager/BUILD.bazel b/pkg/spanconfig/spanconfigmanager/BUILD.bazel deleted file mode 100644 index 35f1e2617e5..00000000000 --- a/pkg/spanconfig/spanconfigmanager/BUILD.bazel +++ /dev/null @@ -1,57 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "spanconfigmanager", - srcs = [ - "manager.go", - "test_helpers.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig/spanconfigmanager", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/kv", - "//pkg/security", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/sql/sqlutil", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/timeutil", - ], -) - -go_test( - name = "spanconfigmanager_test", - srcs = [ - "main_test.go", - "manager_test.go", - ], - deps = [ - ":spanconfigmanager", - "//pkg/base", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/spanconfig", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/protoutil", - "//pkg/util/retry", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/spanconfig/spanconfigptsreader/BUILD.bazel b/pkg/spanconfig/spanconfigptsreader/BUILD.bazel deleted file mode 100644 index 2e5ebc44e02..00000000000 --- a/pkg/spanconfig/spanconfigptsreader/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "spanconfigptsreader", - srcs = ["adapter.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig/spanconfigptsreader", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv/kvserver/protectedts", - "//pkg/roachpb", - "//pkg/spanconfig", - "//pkg/testutils", - "//pkg/util/hlc", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) - -go_test( - name = "spanconfigptsreader_test", - srcs = ["adapter_test.go"], - embed = [":spanconfigptsreader"], - deps = [ - "//pkg/keys", - "//pkg/kv/kvserver/protectedts", - "//pkg/roachpb", - "//pkg/spanconfig", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/stop", - "//pkg/util/uuid", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/spanconfig/spanconfigreconciler/BUILD.bazel b/pkg/spanconfig/spanconfigreconciler/BUILD.bazel deleted file mode 100644 index 8eb020caaad..00000000000 --- a/pkg/spanconfig/spanconfigreconciler/BUILD.bazel +++ /dev/null @@ -1,34 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "spanconfigreconciler", - srcs = ["reconciler.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig/spanconfigreconciler", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/spanconfig/spanconfigsqltranslator", - "//pkg/spanconfig/spanconfigstore", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlliveness", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/retry", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "spanconfigreconciler_test", - srcs = ["reconciler_test.go"], - data = glob(["testdata/**"]), -) diff --git a/pkg/spanconfig/spanconfigsplitter/BUILD.bazel b/pkg/spanconfig/spanconfigsplitter/BUILD.bazel deleted file mode 100644 index 1473539fda3..00000000000 --- a/pkg/spanconfig/spanconfigsplitter/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "spanconfigsplitter", - srcs = [ - "noop.go", - "splitter.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig/spanconfigsplitter", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/spanconfig", - "//pkg/sql/catalog", - "@com_github_dustin_go_humanize//:go-humanize", - ], -) diff --git a/pkg/spanconfig/spanconfigsqltranslator/BUILD.bazel b/pkg/spanconfig/spanconfigsqltranslator/BUILD.bazel deleted file mode 100644 index 26638a82a7e..00000000000 --- a/pkg/spanconfig/spanconfigsqltranslator/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "spanconfigsqltranslator", - srcs = ["sqltranslator.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig/spanconfigsqltranslator", - visibility = ["//visibility:public"], - deps = [ - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/protectedts", - "//pkg/roachpb", - "//pkg/spanconfig", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/sem/tree", - "//pkg/util/hlc", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "spanconfigsqltranslator_test", - srcs = ["sqltranslator_test.go"], - data = glob(["testdata/**"]), -) diff --git a/pkg/spanconfig/spanconfigsqlwatcher/BUILD.bazel b/pkg/spanconfig/spanconfigsqlwatcher/BUILD.bazel deleted file mode 100644 index 772abbb478e..00000000000 --- a/pkg/spanconfig/spanconfigsqlwatcher/BUILD.bazel +++ /dev/null @@ -1,75 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "spanconfigsqlwatcher", - srcs = [ - "buffer.go", - "protectedtsdecoder.go", - "sqlwatcher.go", - "zonesdecoder.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig/spanconfigsqlwatcher", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvclient/rangefeed/rangefeedbuffer", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/log/logcrash", - "//pkg/util/protoutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "spanconfigsqlwatcher_test", - srcs = [ - "buffer_test.go", - "main_test.go", - "protectedtsdecoder_test.go", - "zonesdecoder_test.go", - ], - embed = [":spanconfigsqlwatcher"], - deps = [ - "//pkg/base", - "//pkg/config/zonepb", - "//pkg/jobs", - "//pkg/jobs/jobsprotectedts", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/spanconfig", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/distsql", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/protoutil", - "//pkg/util/uuid", - "@com_github_gogo_protobuf//proto", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/spanconfig/spanconfigstore/BUILD.bazel b/pkg/spanconfig/spanconfigstore/BUILD.bazel deleted file mode 100644 index 58767e96dc4..00000000000 --- a/pkg/spanconfig/spanconfigstore/BUILD.bazel +++ /dev/null @@ -1,59 +0,0 @@ -load("//pkg/util/interval/generic:gen.bzl", "gen_interval_btree") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "spanconfigstore", - srcs = [ - "interner.go", - "span_store.go", - "store.go", - "system_store.go", - ":entry_interval_btree.go", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig/spanconfigstore", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/util/iterutil", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/syncutil", - "//pkg/util/timeutil", # keep - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "spanconfigstore_test", - srcs = [ - "span_store_test.go", - "store_test.go", - "system_store_test.go", - ":entry_interval_btree_test.go", # keep - ], - data = glob(["testdata/**"]), - embed = [":spanconfigstore"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/spanconfig/spanconfigtestutils", - "//pkg/testutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_stretchr_testify//require", - ], -) - -gen_interval_btree( - name = "spanconfig_interval_btree", - package = "spanconfigstore", - type = "*entry", -) diff --git a/pkg/spanconfig/spanconfigtestutils/BUILD.bazel b/pkg/spanconfig/spanconfigtestutils/BUILD.bazel deleted file mode 100644 index a0b785e30ce..00000000000 --- a/pkg/spanconfig/spanconfigtestutils/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "spanconfigtestutils", - srcs = [ - "recorder.go", - "utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig/spanconfigtestutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/roachpb", - "//pkg/spanconfig", - "//pkg/sql/catalog/descpb", - "//pkg/util/hlc", - "//pkg/util/syncutil", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_stretchr_testify//require", - ], -) - -go_test( - name = "spanconfigtestutils_test", - srcs = ["utils_test.go"], - embed = [":spanconfigtestutils"], - deps = ["@com_github_stretchr_testify//require"], -) diff --git a/pkg/spanconfig/spanconfigtestutils/spanconfigtestcluster/BUILD.bazel b/pkg/spanconfig/spanconfigtestutils/spanconfigtestcluster/BUILD.bazel deleted file mode 100644 index b3d78324d0e..00000000000 --- a/pkg/spanconfig/spanconfigtestutils/spanconfigtestcluster/BUILD.bazel +++ /dev/null @@ -1,41 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "spanconfigtestcluster", - srcs = [ - "cluster.go", - "tenant_state.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/spanconfig/spanconfigtestutils/spanconfigtestcluster", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/jobs", - "//pkg/jobs/jobsprotectedts", - "//pkg/kv", - "//pkg/kv/kvserver/protectedts", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/roachpb", - "//pkg/security", - "//pkg/spanconfig", - "//pkg/spanconfig/spanconfigreconciler", - "//pkg/spanconfig/spanconfigsqltranslator", - "//pkg/spanconfig/spanconfigtestutils", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/distsql", - "//pkg/sql/sem/tree", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/syncutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/BUILD.bazel b/pkg/sql/BUILD.bazel deleted file mode 100644 index 47ca2aff722..00000000000 --- a/pkg/sql/BUILD.bazel +++ /dev/null @@ -1,768 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") -load("//pkg/util/fsm/gen:REPORTS.bzl", "gen_reports") - -go_library( - name = "sql", - srcs = [ - "add_column.go", - "alter_column_type.go", - "alter_database.go", - "alter_default_privileges.go", - "alter_index.go", - "alter_primary_key.go", - "alter_role.go", - "alter_schema.go", - "alter_sequence.go", - "alter_table.go", - "alter_table_locality.go", - "alter_table_owner.go", - "alter_table_set_schema.go", - "alter_type.go", - "analyze_expr.go", - "apply_join.go", - "authorization.go", - "backfill.go", - "buffer.go", - "buffer_util.go", - "cancel_queries.go", - "cancel_sessions.go", - "check.go", - "cluster_wide_id.go", - "comment_on_column.go", - "comment_on_constraint.go", - "comment_on_database.go", - "comment_on_index.go", - "comment_on_schema.go", - "comment_on_table.go", - "compact_sql_stats.go", - "conn_executor.go", - "conn_executor_exec.go", - "conn_executor_prepare.go", - "conn_executor_savepoints.go", - "conn_fsm.go", - "conn_io.go", - "control_jobs.go", - "control_schedules.go", - "copy.go", - "copy_file_upload.go", - "crdb_internal.go", - "create_database.go", - "create_extension.go", - "create_index.go", - "create_role.go", - "create_schema.go", - "create_sequence.go", - "create_stats.go", - "create_table.go", - "create_type.go", - "create_view.go", - "created_sequence.go", - "data_source.go", - "database.go", - "database_region_change_finalizer.go", - "deallocate.go", - "delayed.go", - "delete.go", - "delete_range.go", - "descriptor.go", - "discard.go", - "distinct.go", - "distsql_physical_planner.go", - "distsql_plan_backfill.go", - "distsql_plan_bulk.go", - "distsql_plan_ctas.go", - "distsql_plan_join.go", - "distsql_plan_set_op.go", - "distsql_plan_stats.go", - "distsql_plan_window.go", - "distsql_running.go", - "distsql_spec_exec_factory.go", - "doc.go", - "drop_cascade.go", - "drop_database.go", - "drop_index.go", - "drop_owned_by.go", - "drop_role.go", - "drop_schema.go", - "drop_sequence.go", - "drop_table.go", - "drop_type.go", - "drop_view.go", - "error_if_rows.go", - "event_log.go", - "exec_factory_util.go", - "exec_log.go", - "exec_util.go", - "execute.go", - "executor_statement_metrics.go", - "explain_bundle.go", - "explain_ddl.go", - "explain_plan.go", - "explain_vec.go", - "export.go", - "filter.go", - "gossip.go", - "grant_revoke.go", - "grant_role.go", - "group.go", - "index_backfiller.go", - "index_join.go", - "information_schema.go", - "insert.go", - "insert_fast_path.go", - "instrumentation.go", - "internal.go", - "internal_result_channel.go", - "inverted_filter.go", - "inverted_join.go", - "job_exec_context.go", - "job_exec_context_test_util.go", - "join.go", - "join_predicate.go", - "join_token.go", - "limit.go", - "lookup_join.go", - "max_one_row.go", - "mem_metrics.go", - "mvcc_backfiller.go", - "name_util.go", - "notice.go", - "opaque.go", - "opt_catalog.go", - "opt_exec_factory.go", - "ordinality.go", - "partition.go", - "partition_utils.go", - "pg_catalog.go", - "pg_extension.go", - "pg_metadata_diff.go", - "plan.go", - "plan_batch.go", - "plan_columns.go", - "plan_node_to_row_source.go", - "plan_opt.go", - "plan_ordering.go", - "planhook.go", - "planner.go", - "prepared_stmt.go", - "privileged_accessor.go", - "project_set.go", - "reassign_owned_by.go", - "recursive_cte.go", - "refresh_materialized_view.go", - "region_util.go", - "relocate.go", - "relocate_range.go", - "rename_column.go", - "rename_database.go", - "rename_index.go", - "rename_table.go", - "render.go", - "repair.go", - "reparent_database.go", - "resolve_oid.go", - "resolver.go", - "revert.go", - "revoke_role.go", - "row_source_to_plan_node.go", - "save_table.go", - "scan.go", - "scatter.go", - "schema.go", - "schema_change_cluster_setting.go", - "schema_change_plan_node.go", - "schema_changer.go", - "schema_changer_metrics.go", - "schema_changer_state.go", - "scrub.go", - "scrub_constraint.go", - "scrub_fk.go", - "scrub_index.go", - "select_name_resolution.go", - "sequence.go", - "sequence_select.go", - "serial.go", - "session_revival_token.go", - "session_state.go", - "set_cluster_setting.go", - "set_default_isolation.go", - "set_schema.go", - "set_session_authorization.go", - "set_transaction.go", - "set_var.go", - "set_zone_config.go", - "show_cluster_setting.go", - "show_create.go", - "show_create_clauses.go", - "show_create_schedule.go", - "show_fingerprints.go", - "show_histogram.go", - "show_stats.go", - "show_trace.go", - "show_trace_replica.go", - "show_var.go", - "show_zone_config.go", - "sort.go", - "split.go", - "spool.go", - "sql_cursor.go", - "statement.go", - "subquery.go", - "table.go", - "tablewriter.go", - "tablewriter_delete.go", - "tablewriter_insert.go", - "tablewriter_update.go", - "tablewriter_upsert_opt.go", - "telemetry_logging.go", - "temporary_schema.go", - "tenant.go", - "tenant_settings.go", - "testutils.go", - "topk.go", - "truncate.go", - "txn_state.go", - "type_change.go", - "unary.go", - "union.go", - "unsplit.go", - "unsupported_vars.go", - "update.go", - "upsert.go", - "user.go", - "values.go", - "vars.go", - "views.go", - "virtual_schema.go", - "virtual_table.go", - "walk.go", - "window.go", - "zero.go", - "zigzag_join.go", - "zone_config.go", - ":gen-advancecode-stringer", # keep - ":gen-nodestatus-stringer", # keep - ":gen-txneventtype-stringer", # keep - ":gen-txntype-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/build", - "//pkg/cloud", - "//pkg/clusterversion", - "//pkg/col/coldata", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/docs", - "//pkg/featureflag", - "//pkg/geo/geoindex", - "//pkg/geo/geopb", - "//pkg/geo/geoprojbase", - "//pkg/gossip", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient", - "//pkg/kv/kvclient/kvcoord", - "//pkg/kv/kvclient/kvtenant", - "//pkg/kv/kvclient/rangecache", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/kv/kvserver/protectedts", - "//pkg/migration", - "//pkg/multitenant", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/scheduledjobs", - "//pkg/security", - "//pkg/security/sessionrevival", - "//pkg/server/pgurl", - "//pkg/server/serverpb", - "//pkg/server/status/statuspb", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/sql/backfill", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/catformat", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/catprivilege", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descbuilder", - "//pkg/sql/catalog/descidgen", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/lease", - "//pkg/sql/catalog/multiregion", - "//pkg/sql/catalog/nstree", - "//pkg/sql/catalog/resolver", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/schemaexpr", - "//pkg/sql/catalog/seqexpr", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/colexec", - "//pkg/sql/colflow", - "//pkg/sql/contention", - "//pkg/sql/contention/txnidcache", - "//pkg/sql/contentionpb", - "//pkg/sql/covering", - "//pkg/sql/delegate", - "//pkg/sql/distsql", - "//pkg/sql/enum", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/execstats", - "//pkg/sql/faketreeeval", - "//pkg/sql/flowinfra", - "//pkg/sql/gcjob/gcjobnotifier", - "//pkg/sql/idxusage", - "//pkg/sql/inverted", - "//pkg/sql/lex", - "//pkg/sql/lexbase", - "//pkg/sql/memsize", - "//pkg/sql/mutations", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/constraint", - "//pkg/sql/opt/exec", - "//pkg/sql/opt/exec/execbuilder", - "//pkg/sql/opt/exec/explain", - "//pkg/sql/opt/indexrec", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/optbuilder", - "//pkg/sql/opt/xform", - "//pkg/sql/optionalnodeliveness", - "//pkg/sql/paramparse", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/pgwire/pgnotice", - "//pkg/sql/pgwire/pgwirebase", - "//pkg/sql/pgwire/pgwirecancel", - "//pkg/sql/physicalplan", - "//pkg/sql/physicalplan/replicaoracle", - "//pkg/sql/privilege", - "//pkg/sql/querycache", - "//pkg/sql/roleoption", - "//pkg/sql/row", - "//pkg/sql/rowcontainer", - "//pkg/sql/rowenc", - "//pkg/sql/rowexec", - "//pkg/sql/rowinfra", - "//pkg/sql/scheduledlogging", - "//pkg/sql/schemachange", - "//pkg/sql/schemachanger/scbuild", - "//pkg/sql/schemachanger/scdeps", - "//pkg/sql/schemachanger/scerrors", - "//pkg/sql/schemachanger/scexec", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/scplan", - "//pkg/sql/schemachanger/scrun", - "//pkg/sql/scrub", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/catid", - "//pkg/sql/sem/transform", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/sem/tree/treewindow", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sessioninit", - "//pkg/sql/sessionphase", - "//pkg/sql/span", - "//pkg/sql/sqlerrors", - "//pkg/sql/sqlfsm", - "//pkg/sql/sqlinstance", - "//pkg/sql/sqlliveness", - "//pkg/sql/sqlstats", - "//pkg/sql/sqlstats/persistedsqlstats", - "//pkg/sql/sqlstats/persistedsqlstats/sqlstatsutil", - "//pkg/sql/sqlstats/sslocal", - "//pkg/sql/sqltelemetry", - "//pkg/sql/sqlutil", - "//pkg/sql/stats", - "//pkg/sql/stmtdiagnostics", - "//pkg/sql/storageparam", - "//pkg/sql/storageparam/indexstorageparam", - "//pkg/sql/storageparam/tablestorageparam", - "//pkg/sql/types", - "//pkg/sql/vtable", - "//pkg/storage/enginepb", - "//pkg/testutils/serverutils", - "//pkg/util", - "//pkg/util/admission", - "//pkg/util/bitarray", - "//pkg/util/buildutil", - "//pkg/util/cancelchecker", - "//pkg/util/contextutil", - "//pkg/util/ctxgroup", - "//pkg/util/duration", - "//pkg/util/encoding", - "//pkg/util/encoding/csv", - "//pkg/util/envutil", - "//pkg/util/errorutil", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/fsm", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/humanizeutil", - "//pkg/util/interval", - "//pkg/util/ioctx", - "//pkg/util/iterutil", - "//pkg/util/json", - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/log/logcrash", - "//pkg/util/log/severity", - "//pkg/util/memzipper", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/quotapool", - "//pkg/util/retry", - "//pkg/util/ring", - "//pkg/util/startup", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/syncutil/singleflight", - "//pkg/util/timeutil", - "//pkg/util/timeutil/pgdate", - "//pkg/util/tracing", - "//pkg/util/tracing/collector", - "//pkg/util/tracing/tracingpb", - "//pkg/util/uint128", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//hintdetail", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//proto", - "@com_github_gogo_protobuf//types", - "@com_github_lib_pq//:pq", - "@com_github_lib_pq//oid", - "@com_github_prometheus_client_model//go", - "@in_gopkg_yaml_v2//:yaml_v2", - "@io_opentelemetry_go_otel//attribute", - "@org_golang_x_net//trace", - "@org_golang_x_text//collate", - ], -) - -go_test( - name = "sql_test", - size = "enormous", - srcs = [ - "admin_audit_log_test.go", - "alter_column_type_test.go", - "ambiguous_commit_test.go", - "as_of_test.go", - "authorization_test.go", - "backfill_num_ranges_in_span_test.go", - "backfill_test.go", - "builtin_mem_usage_test.go", - "builtin_test.go", - "check_test.go", - "comment_on_column_test.go", - "comment_on_constraint_test.go", - "comment_on_database_test.go", - "comment_on_index_test.go", - "comment_on_table_test.go", - "conn_executor_internal_test.go", - "conn_executor_savepoints_test.go", - "conn_executor_test.go", - "conn_io_test.go", - "copy_file_upload_test.go", - "copy_in_test.go", - "copy_test.go", - "crdb_internal_test.go", - "create_stats_test.go", - "create_test.go", - "database_test.go", - "delete_preserving_index_test.go", - "dep_test.go", - "descriptor_mutation_test.go", - "distsql_physical_planner_test.go", - "distsql_plan_backfill_test.go", - "distsql_plan_set_op_test.go", - "distsql_running_test.go", - "drop_helpers_test.go", - "drop_test.go", - "err_count_test.go", - "event_log_test.go", - "exec_util_test.go", - "explain_bundle_test.go", - "explain_test.go", - "explain_tree_test.go", - "index_mutation_test.go", - "indexbackfiller_test.go", - "instrumentation_test.go", - "internal_test.go", - "join_token_test.go", - "main_test.go", - "materialized_view_test.go", - "mem_limit_test.go", - "metric_test.go", - "metric_util_test.go", - "mutation_test.go", - "mvcc_backfiller_test.go", - "normalization_test.go", - "partition_test.go", - "pg_metadata_test.go", - "pg_oid_test.go", - "pgwire_internal_test.go", - "plan_opt_test.go", - "planner_test.go", - "privileged_accessor_test.go", - "rand_test.go", - "region_util_test.go", - "rename_test.go", - "revert_test.go", - "run_control_test.go", - "scan_test.go", - "scatter_test.go", - "schema_changer_helpers_test.go", - "schema_changer_test.go", - "scrub_test.go", - "sequence_test.go", - "session_migration_test.go", - "set_zone_config_test.go", - "show_create_all_tables_builtin_test.go", - "show_fingerprints_test.go", - "show_ranges_test.go", - "show_stats_test.go", - "show_test.go", - "show_trace_replica_test.go", - "sort_test.go", - "split_test.go", - "sql_cursor_test.go", - "sql_prepare_test.go", - "statement_mark_redaction_test.go", - "table_ref_test.go", - "table_test.go", - "telemetry_logging_test.go", - "telemetry_test.go", - "temporary_schema_test.go", - "tenant_test.go", - "trace_test.go", - "txn_restart_test.go", - "txn_state_test.go", - "type_change_test.go", - "unsplit_range_test.go", - "unsplit_test.go", - "upsert_test.go", - "user_test.go", - "values_test.go", - "virtual_schema_test.go", - "virtual_table_test.go", - "zone_config_test.go", - "zone_test.go", - ], - data = glob(["testdata/**"]) + [ - "@cockroach//c-deps:libgeos", - "//pkg/sql:information_schema.go", - "//pkg/sql:pg_catalog.go", - "//pkg/sql/vtable:information_schema.go", - "//pkg/sql/vtable:pg_catalog.go", - ], - embed = [":sql"], - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/build/bazel", - "//pkg/ccl/kvccl/kvtenantccl", - "//pkg/cloud/impl:cloudimpl", - "//pkg/clusterversion", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/gossip", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/jobs/jobstest", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient", - "//pkg/kv/kvclient/kvcoord", - "//pkg/kv/kvclient/rangecache", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/server/serverpb", - "//pkg/server/status/statuspb", - "//pkg/server/telemetry", - "//pkg/settings/cluster", - "//pkg/sql/backfill", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descbuilder", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/catalog/lease", - "//pkg/sql/catalog/multiregion", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/distsql", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/execstats", - "//pkg/sql/flowinfra", - "//pkg/sql/gcjob", - "//pkg/sql/lexbase", - "//pkg/sql/mutations", - "//pkg/sql/opt/exec/explain", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/pgwire/pgwirebase", - "//pkg/sql/physicalplan", - "//pkg/sql/querycache", - "//pkg/sql/randgen", - "//pkg/sql/roleoption", - "//pkg/sql/row", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/rowencpb", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/rowexec", - "//pkg/sql/rowinfra", - "//pkg/sql/scrub", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/catid", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sessionphase", - "//pkg/sql/sqlliveness", - "//pkg/sql/sqlstats", - "//pkg/sql/sqltestutils", - "//pkg/sql/sqlutil", - "//pkg/sql/stats", - "//pkg/sql/stmtdiagnostics", - "//pkg/sql/tests", - "//pkg/sql/types", - "//pkg/startupmigrations", - "//pkg/storage", - "//pkg/testutils", - "//pkg/testutils/buildutil", - "//pkg/testutils/jobutils", - "//pkg/testutils/pgtest", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/admission", - "//pkg/util/bitarray", - "//pkg/util/buildutil", - "//pkg/util/caller", - "//pkg/util/cancelchecker", - "//pkg/util/ctxgroup", - "//pkg/util/duration", - "//pkg/util/encoding", - "//pkg/util/fsm", - "//pkg/util/hlc", - "//pkg/util/httputil", - "//pkg/util/ioctx", - "//pkg/util/json", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/log/channel", - "//pkg/util/log/eventpb", - "//pkg/util/log/logconfig", - "//pkg/util/log/logpb", - "//pkg/util/log/logtestutils", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/retry", - "//pkg/util/shuffle", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeofday", - "//pkg/util/timetz", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/tracing/tracingpb", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//proto", - "@com_github_gogo_protobuf//types", - "@com_github_jackc_pgconn//:pgconn", - "@com_github_jackc_pgtype//:pgtype", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_lib_pq//:pq", - "@com_github_lib_pq//oid", - "@com_github_pmezard_go_difflib//difflib", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - "@org_golang_google_protobuf//proto", - "@org_golang_x_sync//errgroup", - ], -) - -stringer( - name = "gen-txneventtype-stringer", - src = "txn_state.go", - typ = "txnEventType", -) - -stringer( - name = "gen-txntype-stringer", - src = "txn_state.go", - typ = "txnType", -) - -stringer( - name = "gen-advancecode-stringer", - src = "txn_state.go", - typ = "advanceCode", -) - -stringer( - name = "gen-nodestatus-stringer", - src = "distsql_physical_planner.go", - typ = "NodeStatus", -) - -gen_reports( - name = "txnstatetransitions_report", - dep = "//pkg/sql", - starting_state_name = "stateNoTxn", - transitions_variable = "TxnStateTransitions", -) diff --git a/pkg/sql/backfill/BUILD.bazel b/pkg/sql/backfill/BUILD.bazel deleted file mode 100644 index e007ead92b9..00000000000 --- a/pkg/sql/backfill/BUILD.bazel +++ /dev/null @@ -1,55 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "backfill", - srcs = [ - "backfill.go", - "index_backfiller_cols.go", - "mvcc_index_merger.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/backfill", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/schemaexpr", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/row", - "//pkg/sql/rowenc", - "//pkg/sql/rowinfra", - "//pkg/sql/sem/transform", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlerrors", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/admission", - "//pkg/util/ctxgroup", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - ], -) - -go_test( - name = "backfill_test", - srcs = ["index_backfiller_cols_test.go"], - embed = [":backfill"], - deps = [ - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/catalog/BUILD.bazel b/pkg/sql/catalog/BUILD.bazel deleted file mode 100644 index 39f48e97a97..00000000000 --- a/pkg/sql/catalog/BUILD.bazel +++ /dev/null @@ -1,68 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "catalog", - srcs = [ - "accessor.go", - "catalog.go", - "descriptor.go", - "descriptor_id_set.go", - "errors.go", - "post_derserialization_changes.go", - "schema.go", - "system_table.go", - "table_col_map.go", - "table_col_set.go", - "table_elements.go", - "validate.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/geo/geoindex", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/server/telemetry", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/iterutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "catalog_test", - size = "small", - srcs = [ - "dep_test.go", - "descriptor_test.go", - "table_col_map_test.go", - "table_col_set_test.go", - ], - embed = [":catalog"], - tags = ["no-remote"], - deps = [ - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/tabledesc", - "//pkg/testutils/buildutil", - "//pkg/util", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "@com_github_cockroachdb_redact//:redact", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) diff --git a/pkg/sql/catalog/bootstrap/BUILD.bazel b/pkg/sql/catalog/bootstrap/BUILD.bazel deleted file mode 100644 index cdea15ed491..00000000000 --- a/pkg/sql/catalog/bootstrap/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "bootstrap", - srcs = ["metadata.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/bootstrap", - visibility = ["//visibility:public"], - deps = [ - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/sem/tree", - "//pkg/util/iterutil", - "//pkg/util/log", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "bootstrap_test", - srcs = ["bootstrap_test.go"], - args = ["-test.timeout=295s"], - data = glob(["testdata/**"]), - embed = [":bootstrap"], - deps = [ - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/testutils", - "//pkg/util/leaktest", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/catalog/catalogkeys/BUILD.bazel b/pkg/sql/catalog/catalogkeys/BUILD.bazel deleted file mode 100644 index 1a91f3aec1c..00000000000 --- a/pkg/sql/catalog/catalogkeys/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "catalogkeys", - srcs = ["keys.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/catalogkeys", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/descpb", - "//pkg/util/encoding", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "catalogkeys_test", - size = "small", - srcs = ["keys_test.go"], - embed = [":catalogkeys"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/util/leaktest", - ], -) diff --git a/pkg/sql/catalog/catconstants/BUILD.bazel b/pkg/sql/catalog/catconstants/BUILD.bazel deleted file mode 100644 index 7926091cf44..00000000000 --- a/pkg/sql/catalog/catconstants/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "catconstants", - srcs = [ - "constants.go", - "namespace.go", - "schemas.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/catconstants", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/settings", - ], -) diff --git a/pkg/sql/catalog/catformat/BUILD.bazel b/pkg/sql/catalog/catformat/BUILD.bazel deleted file mode 100644 index 191390ca0e7..00000000000 --- a/pkg/sql/catalog/catformat/BUILD.bazel +++ /dev/null @@ -1,32 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "catformat", - srcs = ["index.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/catformat", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo/geoindex", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/schemaexpr", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "catformat_test", - size = "small", - srcs = ["index_test.go"], - embed = [":catformat"], - deps = [ - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/types", - ], -) diff --git a/pkg/sql/catalog/catpb/BUILD.bazel b/pkg/sql/catalog/catpb/BUILD.bazel deleted file mode 100644 index 75e84729611..00000000000 --- a/pkg/sql/catalog/catpb/BUILD.bazel +++ /dev/null @@ -1,77 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("//build:STRINGER.bzl", "stringer") - -proto_library( - name = "catpb_proto", - srcs = [ - "catalog.proto", - "privilege.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "catpb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/catpb", - proto = ":catpb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/sem/catid", # keep - "@com_github_gogo_protobuf//gogoproto", - ], -) - -go_library( - name = "catpb", - srcs = [ - "catalog.go", - "constraint.go", - "default_privilege.go", - "doc.go", - "expression.go", - "job_id.go", - "multiregion.go", - "privilege.go", - "ttl.go", - ":gen-privilegedescversion-stringer", # keep - ], - embed = [":catpb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/catpb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/security", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/privilege", - "//pkg/sql/sem/catid", - "//pkg/sql/sem/tree", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "catpb_test", - srcs = ["privilege_test.go"], - deps = [ - ":catpb", - "//pkg/keys", - "//pkg/security", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/privilege", - "//pkg/sql/sem/catid", - "//pkg/testutils", - "//pkg/util/leaktest", - ], -) - -stringer( - name = "gen-privilegedescversion-stringer", - src = "privilege.go", - typ = "PrivilegeDescVersion", -) diff --git a/pkg/sql/catalog/catprivilege/BUILD.bazel b/pkg/sql/catalog/catprivilege/BUILD.bazel deleted file mode 100644 index 10e209210cf..00000000000 --- a/pkg/sql/catalog/catprivilege/BUILD.bazel +++ /dev/null @@ -1,43 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "catprivilege", - srcs = [ - "default_privilege.go", - "fix.go", - "system.go", - "validate.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/catprivilege", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/security", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/privilege", - "//pkg/sql/sem/tree", - ], -) - -go_test( - name = "catprivilege_test", - srcs = [ - "default_privilege_test.go", - "fix_test.go", - ], - embed = [":catprivilege"], - deps = [ - "//pkg/keys", - "//pkg/security", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/privilege", - "//pkg/sql/sem/tree", - "//pkg/util/leaktest", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/catalog/colinfo/BUILD.bazel b/pkg/sql/catalog/colinfo/BUILD.bazel deleted file mode 100644 index 05fbbddd867..00000000000 --- a/pkg/sql/catalog/colinfo/BUILD.bazel +++ /dev/null @@ -1,52 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "colinfo", - srcs = [ - "col_type_info.go", - "column_item_resolver.go", - "column_resolver.go", - "column_type_properties.go", - "data_source.go", - "doc.go", - "ordering.go", - "result_columns.go", - "system_columns.go", - "ttl.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/colinfo", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/catalog", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/encoding", - "//pkg/util/errorutil/unimplemented", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - "@org_golang_x_text//language", - ], -) - -go_test( - name = "colinfo_test", - size = "small", - srcs = [ - "column_item_resolver_test.go", - "column_type_properties_test.go", - "result_columns_test.go", - ], - embed = [":colinfo"], - deps = [ - "//pkg/sql/catalog/colinfo/colinfotestutils", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/leaktest", - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/catalog/colinfo/colinfotestutils/BUILD.bazel b/pkg/sql/catalog/colinfo/colinfotestutils/BUILD.bazel deleted file mode 100644 index 6466722807f..00000000000 --- a/pkg/sql/catalog/colinfo/colinfotestutils/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "colinfotestutils", - srcs = ["name_resolution_testutils.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/colinfo/colinfotestutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/catalog/colinfo", - "//pkg/sql/parser", - "//pkg/sql/sem/tree", - "//pkg/testutils", - ], -) diff --git a/pkg/sql/catalog/database/BUILD.bazel b/pkg/sql/catalog/database/BUILD.bazel deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/pkg/sql/catalog/dbdesc/BUILD.bazel b/pkg/sql/catalog/dbdesc/BUILD.bazel deleted file mode 100644 index af6800902d0..00000000000 --- a/pkg/sql/catalog/dbdesc/BUILD.bazel +++ /dev/null @@ -1,54 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "dbdesc", - srcs = [ - "database_desc.go", - "database_desc_builder.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/dbdesc", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/security", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/catprivilege", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/multiregion", - "//pkg/sql/privilege", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/sem/tree", - "//pkg/util/hlc", - "//pkg/util/iterutil", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "dbdesc_test", - size = "small", - srcs = ["database_test.go"], - embed = [":dbdesc"], - deps = [ - "//pkg/clusterversion", - "//pkg/security", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/internal/validate", - "//pkg/sql/catalog/nstree", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/parser", - "//pkg/sql/privilege", - "//pkg/sql/sem/tree", - "//pkg/util/leaktest", - "//pkg/util/log", - "@com_github_cockroachdb_redact//:redact", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) diff --git a/pkg/sql/catalog/defaultprivilegedesc/BUILD.bazel b/pkg/sql/catalog/defaultprivilegedesc/BUILD.bazel deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/pkg/sql/catalog/descbuilder/BUILD.bazel b/pkg/sql/catalog/descbuilder/BUILD.bazel deleted file mode 100644 index 2133bc39cbe..00000000000 --- a/pkg/sql/catalog/descbuilder/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "descbuilder", - srcs = ["desc_builder.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/descbuilder", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/sql/catalog", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/internal/validate", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/util/hlc", - ], -) diff --git a/pkg/sql/catalog/descidgen/BUILD.bazel b/pkg/sql/catalog/descidgen/BUILD.bazel deleted file mode 100644 index 013213bb648..00000000000 --- a/pkg/sql/catalog/descidgen/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "descidgen", - srcs = ["generate_id.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/descidgen", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/sql/catalog/descpb", - ], -) diff --git a/pkg/sql/catalog/descpb/BUILD.bazel b/pkg/sql/catalog/descpb/BUILD.bazel deleted file mode 100644 index 98fcb97797c..00000000000 --- a/pkg/sql/catalog/descpb/BUILD.bazel +++ /dev/null @@ -1,94 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "descpb", - srcs = [ - "column.go", - "constraint.go", - "descriptor.go", - "index.go", - "index_fetch.go", - "join_type.go", - "locking.go", - "structured.go", - ":gen-formatversion-stringer", # keep - ], - embed = [":descpb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/descpb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/catpb", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/protoreflect", - "//pkg/sql/sem/catid", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/encoding", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/hlc", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "descpb_test", - size = "small", - srcs = ["structured_test.go"], - embed = [":descpb"], -) - -proto_library( - name = "descpb_proto", - srcs = [ - "encoded_datum.proto", - "index_fetch.proto", - "join_type.proto", - "locking.proto", - "structured.proto", - "tenant.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/config/zonepb:zonepb_proto", - "//pkg/geo/geoindex:geoindex_proto", - "//pkg/roachpb:roachpb_proto", - "//pkg/sql/catalog/catpb:catpb_proto", - "//pkg/sql/schemachanger/scpb:scpb_proto", - "//pkg/sql/types:types_proto", - "//pkg/util/hlc:hlc_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "descpb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/descpb", - proto = ":descpb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/config/zonepb", - "//pkg/geo/geoindex", - "//pkg/roachpb", # keep - "//pkg/sql/catalog/catpb", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/types", - "//pkg/util/hlc", - "@com_github_gogo_protobuf//gogoproto", - ], -) - -stringer( - name = "gen-formatversion-stringer", - src = "structured.go", - typ = "FormatVersion", -) diff --git a/pkg/sql/catalog/descs/BUILD.bazel b/pkg/sql/catalog/descs/BUILD.bazel deleted file mode 100644 index 121a7a35a8a..00000000000 --- a/pkg/sql/catalog/descs/BUILD.bazel +++ /dev/null @@ -1,116 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "descs", - srcs = [ - "collection.go", - "database.go", - "descriptor.go", - "direct.go", - "dist_sql_type_resolver.go", - "factory.go", - "hydrate.go", - "kv_descriptors.go", - "leased_descriptors.go", - "object.go", - "schema.go", - "synthetic_descriptors.go", - "system_database_namespace_cache.go", - "system_table.go", - "table.go", - "table_name.go", - "temporary_descriptors.go", - "txn.go", - "type.go", - "uncommitted_descriptors.go", - "validate.go", - "virtual_descriptors.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/descs", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/kv", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/hydratedtables", - "//pkg/sql/catalog/internal/catkv", - "//pkg/sql/catalog/internal/validate", - "//pkg/sql/catalog/lease", - "//pkg/sql/catalog/nstree", - "//pkg/sql/catalog/resolver", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlerrors", - "//pkg/sql/sqlliveness", - "//pkg/sql/sqlutil", - "//pkg/sql/types", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/iterutil", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/retry", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - ], -) - -go_test( - name = "descs_test", - size = "small", - srcs = [ - "collection_test.go", - "main_test.go", - ], - data = glob(["testdata/**"]), - deps = [ - ":descs", - "//pkg/base", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/lease", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/privilege", - "//pkg/sql/sem/tree", - "//pkg/sql/tests", - "//pkg/sql/types", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - "@com_github_lib_pq//oid", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/catalog/desctestutils/BUILD.bazel b/pkg/sql/catalog/desctestutils/BUILD.bazel deleted file mode 100644 index ebbaa52525f..00000000000 --- a/pkg/sql/catalog/desctestutils/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "desctestutils", - srcs = ["descriptor_test_utils.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/desctestutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/kv", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/internal/catkv", - "//pkg/sql/catalog/tabledesc", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/catalog/hydratedtables/BUILD.bazel b/pkg/sql/catalog/hydratedtables/BUILD.bazel deleted file mode 100644 index 1b8e4a3aeb6..00000000000 --- a/pkg/sql/catalog/hydratedtables/BUILD.bazel +++ /dev/null @@ -1,47 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "hydratedtables", - srcs = ["hydratedcache.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/hydratedtables", - visibility = ["//visibility:public"], - deps = [ - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/lease", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/sem/tree", - "//pkg/util/cache", - "//pkg/util/metric", - "//pkg/util/protoutil", - "//pkg/util/syncutil", - "//pkg/util/syncutil/singleflight", - "@com_github_biogo_store//llrb", - "@com_github_prometheus_client_model//go", - ], -) - -go_test( - name = "hydratedtables_test", - size = "small", - srcs = ["hydratedcache_test.go"], - embed = [":hydratedtables"], - deps = [ - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/nstree", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/leaktest", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/catalog/ingesting/BUILD.bazel b/pkg/sql/catalog/ingesting/BUILD.bazel deleted file mode 100644 index 6432a70eab1..00000000000 --- a/pkg/sql/catalog/ingesting/BUILD.bazel +++ /dev/null @@ -1,34 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ingesting", - srcs = [ - "privileges.go", - "write_descs.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/ingesting", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/catprivilege", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/privilege", - "//pkg/sql/sem/tree", - "//pkg/util/log", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/catalog/internal/catkv/BUILD.bazel b/pkg/sql/catalog/internal/catkv/BUILD.bazel deleted file mode 100644 index c83b0893dee..00000000000 --- a/pkg/sql/catalog/internal/catkv/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "catkv", - srcs = [ - "catalog_query.go", - "descriptors.go", - "namespace.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/internal/catkv", - visibility = ["//pkg/sql/catalog:__subpackages__"], - deps = [ - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/descbuilder", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/internal/validate", - "//pkg/sql/catalog/nstree", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlerrors", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/catalog/internal/validate/BUILD.bazel b/pkg/sql/catalog/internal/validate/BUILD.bazel deleted file mode 100644 index 1ae987251e3..00000000000 --- a/pkg/sql/catalog/internal/validate/BUILD.bazel +++ /dev/null @@ -1,43 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "validate", - srcs = [ - "schema_changer_state.go", - "validate.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/internal/validate", - visibility = ["//pkg/sql/catalog:__subpackages__"], - deps = [ - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/server/telemetry", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/screl", - "//pkg/util", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "validate_test", - srcs = [ - "helpers_test.go", - "schema_changer_state_test.go", - ], - embed = [":validate"], - deps = [ - "//pkg/clusterversion", - "//pkg/sql/catalog", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/schemachanger/scpb", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/catalog/lease/BUILD.bazel b/pkg/sql/catalog/lease/BUILD.bazel deleted file mode 100644 index 535f76ce62b..00000000000 --- a/pkg/sql/catalog/lease/BUILD.bazel +++ /dev/null @@ -1,117 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "lease", - srcs = [ - "count.go", - "descriptor_set.go", - "descriptor_state.go", - "descriptor_version_state.go", - "lease.go", - "lease_test_utils.go", - "name_cache.go", - "storage.go", - "testutils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/lease", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/rangefeed", - "//pkg/multitenant", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/descbuilder", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/internal/catkv", - "//pkg/sql/catalog/nstree", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlutil", - "//pkg/storage", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/log/logcrash", - "//pkg/util/metric", - "//pkg/util/quotapool", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/syncutil/singleflight", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "lease_test", - size = "medium", - srcs = [ - "helpers_test.go", - "lease_internal_test.go", - "lease_test.go", - "main_test.go", - ], - embed = [":lease"], - deps = [ - "//pkg/base", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/catalog/internal/catkv", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqltestutils", - "//pkg/sql/sqlutil", - "//pkg/sql/tests", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_lib_pq//:pq", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/catalog/multiregion/BUILD.bazel b/pkg/sql/catalog/multiregion/BUILD.bazel deleted file mode 100644 index 70c4b417f64..00000000000 --- a/pkg/sql/catalog/multiregion/BUILD.bazel +++ /dev/null @@ -1,36 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "multiregion", - srcs = [ - "region_config.go", - "validate_table.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/multiregion", - visibility = ["//visibility:public"], - deps = [ - "//pkg/config/zonepb", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "multiregion_test", - srcs = ["region_config_test.go"], - deps = [ - ":multiregion", - "//pkg/config/zonepb", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/testutils", - "//pkg/util/leaktest", - "@com_github_stretchr_testify//require", - "@org_golang_google_protobuf//proto", - ], -) diff --git a/pkg/sql/catalog/nstree/BUILD.bazel b/pkg/sql/catalog/nstree/BUILD.bazel deleted file mode 100644 index 99b7da5a47b..00000000000 --- a/pkg/sql/catalog/nstree/BUILD.bazel +++ /dev/null @@ -1,45 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "nstree", - srcs = [ - "by_id.go", - "by_id_map.go", - "by_name.go", - "by_name_map.go", - "catalog.go", - "map.go", - "set.go", - "tree.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/nstree", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/internal/validate", - "//pkg/util/iterutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_google_btree//:btree", - ], -) - -go_test( - name = "nstree_test", - srcs = [ - "datadriven_test.go", - "map_test.go", - "set_test.go", - ], - data = glob(["testdata/**"]), - embed = [":nstree"], - deps = [ - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/testutils", - "//pkg/util/iterutil", - "@com_github_cockroachdb_datadriven//:datadriven", - ], -) diff --git a/pkg/sql/catalog/resolver/BUILD.bazel b/pkg/sql/catalog/resolver/BUILD.bazel deleted file mode 100644 index 071fb8c8cea..00000000000 --- a/pkg/sql/catalog/resolver/BUILD.bazel +++ /dev/null @@ -1,62 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "resolver", - srcs = ["resolver.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/resolver", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlerrors", - "//pkg/util/hlc", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "resolver_test", - srcs = [ - "main_test.go", - "resolver_bench_test.go", - "resolver_test.go", - ], - deps = [ - ":resolver", - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/parser", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/catalog/rewrite/BUILD.bazel b/pkg/sql/catalog/rewrite/BUILD.bazel deleted file mode 100644 index 37b481e4443..00000000000 --- a/pkg/sql/catalog/rewrite/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "rewrite", - srcs = ["rewrite.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/rewrite", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs/jobspb", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/schemaexpr", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/screl", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/hlc", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - ], -) diff --git a/pkg/sql/catalog/schemadesc/BUILD.bazel b/pkg/sql/catalog/schemadesc/BUILD.bazel deleted file mode 100644 index 5e28d7b1145..00000000000 --- a/pkg/sql/catalog/schemadesc/BUILD.bazel +++ /dev/null @@ -1,53 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "schemadesc", - srcs = [ - "public_schema_desc.go", - "schema_desc.go", - "schema_desc_builder.go", - "synthetic_schema_desc.go", - "temporary_schema_desc.go", - "virtual_schema_desc.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/schemadesc", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/catprivilege", - "//pkg/sql/catalog/descpb", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/privilege", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/sem/tree", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "schemadesc_test", - size = "small", - srcs = ["schema_desc_test.go"], - deps = [ - ":schemadesc", - "//pkg/clusterversion", - "//pkg/security", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/nstree", - "//pkg/util/leaktest", - "@com_github_cockroachdb_redact//:redact", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) diff --git a/pkg/sql/catalog/schemaexpr/BUILD.bazel b/pkg/sql/catalog/schemaexpr/BUILD.bazel deleted file mode 100644 index 22152777e1b..00000000000 --- a/pkg/sql/catalog/schemaexpr/BUILD.bazel +++ /dev/null @@ -1,66 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "schemaexpr", - srcs = [ - "check_constraint.go", - "column.go", - "computed_column.go", - "computed_column_rewrites.go", - "computed_exprs.go", - "default_exprs.go", - "doc.go", - "expr.go", - "hash_sharded_compute_expr.go", - "partial_index.go", - "select_name_resolution.go", - "unique_contraint.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/schemaexpr", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/catalog", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/catid", - "//pkg/sql/sem/transform", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sessiondata", - "//pkg/sql/types", - "//pkg/util/errorutil/unimplemented", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "schemaexpr_test", - size = "small", - srcs = [ - "check_constraint_test.go", - "column_test.go", - "computed_column_rewrites_test.go", - "expr_test.go", - "partial_index_test.go", - "testutils_test.go", - ], - data = glob(["testdata/**"]), - embed = [":schemaexpr"], - deps = [ - "//pkg/sql/catalog", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/parser", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/util/leaktest", - "//pkg/util/log", - "@com_github_cockroachdb_datadriven//:datadriven", - ], -) diff --git a/pkg/sql/catalog/seqexpr/BUILD.bazel b/pkg/sql/catalog/seqexpr/BUILD.bazel deleted file mode 100644 index fc031404f11..00000000000 --- a/pkg/sql/catalog/seqexpr/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "seqexpr", - srcs = ["sequence.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/seqexpr", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/types", - ], -) - -go_test( - name = "seqexpr_test", - srcs = ["sequence_test.go"], - embed = [":seqexpr"], - deps = [ - "//pkg/sql/parser", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - ], -) diff --git a/pkg/sql/catalog/systemschema/BUILD.bazel b/pkg/sql/catalog/systemschema/BUILD.bazel deleted file mode 100644 index e7f1fb54217..00000000000 --- a/pkg/sql/catalog/systemschema/BUILD.bazel +++ /dev/null @@ -1,43 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "systemschema", - srcs = ["system.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/systemschema", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/security", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/catprivilege", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/privilege", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "systemschema_test", - size = "small", - srcs = ["system_test.go"], - embed = [":systemschema"], - deps = [ - "//pkg/roachpb", - "//pkg/security", - "//pkg/sql/catalog", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/catalog/tabledesc/BUILD.bazel b/pkg/sql/catalog/tabledesc/BUILD.bazel deleted file mode 100644 index 9552a57b24b..00000000000 --- a/pkg/sql/catalog/tabledesc/BUILD.bazel +++ /dev/null @@ -1,119 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "tabledesc", - srcs = [ - "column.go", - "fix_cast_for_style_visitor.go", - "index.go", - "mutation.go", - "safe_format.go", - "structured.go", - "table.go", - "table_desc.go", - "table_desc_builder.go", - "ttl.go", - "validate.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/tabledesc", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/docs", - "//pkg/geo/geoindex", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/catprivilege", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/internal/validate", - "//pkg/sql/catalog/multiregion", - "//pkg/sql/catalog/schemaexpr", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/privilege", - "//pkg/sql/rowenc", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/hlc", - "//pkg/util/interval", - "//pkg/util/iterutil", - "//pkg/util/protoutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_lib_pq//oid", - "@com_github_robfig_cron_v3//:cron", - ], -) - -go_test( - name = "tabledesc_test", - size = "small", - srcs = [ - "fix_cast_for_style_visitor_test.go", - "helpers_test.go", - "index_test.go", - "main_test.go", - "safe_format_test.go", - "structured_test.go", - "table_desc_test.go", - "validate_test.go", - ], - embed = [":tabledesc"], - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/geo/geoindex", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descbuilder", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/catalog/internal/validate", - "//pkg/sql/catalog/nstree", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/parser", - "//pkg/sql/privilege", - "//pkg/sql/sem/tree", - "//pkg/sql/tests", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_kr_pretty//:pretty", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - "@org_golang_google_protobuf//proto", - ], -) diff --git a/pkg/sql/catalog/typedesc/BUILD.bazel b/pkg/sql/catalog/typedesc/BUILD.bazel deleted file mode 100644 index d9a5f64e240..00000000000 --- a/pkg/sql/catalog/typedesc/BUILD.bazel +++ /dev/null @@ -1,71 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "typedesc", - srcs = [ - "safe_format.go", - "table_implicit_record_type.go", - "type_desc.go", - "type_desc_builder.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/catalog/typedesc", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/catprivilege", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/multiregion", - "//pkg/sql/enum", - "//pkg/sql/oidext", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/privilege", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/hlc", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_lib_pq//oid", - ], -) - -go_test( - name = "typedesc_test", - size = "small", - srcs = [ - "main_test.go", - "safe_format_test.go", - "type_desc_test.go", - ], - deps = [ - ":typedesc", - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/internal/validate", - "//pkg/sql/catalog/nstree", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/oidext", - "//pkg/sql/privilege", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "@com_github_cockroachdb_redact//:redact", - "@com_github_lib_pq//oid", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) diff --git a/pkg/sql/colcontainer/BUILD.bazel b/pkg/sql/colcontainer/BUILD.bazel deleted file mode 100644 index 212e7d39b4c..00000000000 --- a/pkg/sql/colcontainer/BUILD.bazel +++ /dev/null @@ -1,58 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "colcontainer", - srcs = [ - "diskqueue.go", - "partitionedqueue.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colcontainer", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/colserde", - "//pkg/sql/colexecerror", - "//pkg/sql/types", - "//pkg/storage/fs", - "//pkg/util/cancelchecker", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_golang_snappy//:snappy", - "@com_github_marusama_semaphore//:semaphore", - ], -) - -go_test( - name = "colcontainer_test", - size = "small", - srcs = [ - "diskqueue_test.go", - "main_test.go", - "partitionedqueue_test.go", - ], - deps = [ - ":colcontainer", - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/coldatatestutils", - "//pkg/settings/cluster", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/types", - "//pkg/storage/fs", - "//pkg/testutils/colcontainerutils", - "//pkg/testutils/skip", - "//pkg/util/humanizeutil", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - "@com_github_marusama_semaphore//:semaphore", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/colconv/BUILD.bazel b/pkg/sql/colconv/BUILD.bazel deleted file mode 100644 index 85aa495b62c..00000000000 --- a/pkg/sql/colconv/BUILD.bazel +++ /dev/null @@ -1,54 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//pkg/sql/colexecop:EXECGEN.bzl", "eg_go_filegroup", "gen_eg_go_rules") - -go_library( - name = "colconv", - srcs = [ - "batch.go", - ":gen-exec", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colconv", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/typeconv", # keep - "//pkg/sql/colexecerror", # keep - "//pkg/sql/execinfra", # keep - "//pkg/sql/rowenc", # keep - "//pkg/sql/sem/tree", # keep - "//pkg/sql/types", # keep - "//pkg/util/encoding", # keep - "//pkg/util/json", # keep - "//pkg/util/timeutil/pgdate", # keep - "//pkg/util/uuid", # keep - "@com_github_cockroachdb_errors//:errors", # keep - "@com_github_lib_pq//oid", # keep - ], -) - -go_test( - name = "colconv_test", - srcs = ["batch_test.go"], - embed = [":colconv"], - deps = [ - "//pkg/col/coldata", - "//pkg/sql/types", - "//pkg/util/leaktest", - "@com_github_stretchr_testify//require", - ], -) - -# Map between target name and relevant template. -targets = [ - ("datum_to_vec.eg.go", "datum_to_vec_tmpl.go"), - ("vec_to_datum.eg.go", "vec_to_datum_tmpl.go"), -] - -# Define a file group for all the .eg.go targets. -eg_go_filegroup( - name = "gen-exec", - targets = targets, -) - -# Define gen rules for individual eg.go files. -gen_eg_go_rules(targets) diff --git a/pkg/sql/colencoding/BUILD.bazel b/pkg/sql/colencoding/BUILD.bazel deleted file mode 100644 index bce27f797ea..00000000000 --- a/pkg/sql/colencoding/BUILD.bazel +++ /dev/null @@ -1,44 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "colencoding", - srcs = [ - "key_encoding.go", - "value_encoding.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colencoding", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/roachpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/duration", - "//pkg/util/encoding", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "colencoding_test", - size = "small", - srcs = ["value_encoding_test.go"], - embed = [":colencoding"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/sql/randgen", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/encoding", - "//pkg/util/randutil", - ], -) diff --git a/pkg/sql/colexec/BUILD.bazel b/pkg/sql/colexec/BUILD.bazel deleted file mode 100644 index 9e144df0e59..00000000000 --- a/pkg/sql/colexec/BUILD.bazel +++ /dev/null @@ -1,222 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//pkg/sql/colexecop:EXECGEN.bzl", "eg_go_filegroup", "gen_eg_go_rules") -load(":COLEXEC.bzl", "gen_sort_partitioner_rule") - -go_library( - name = "colexec", - srcs = [ - "aggregators_util.go", - "buffer.go", - "builtin_funcs.go", - "case.go", - "columnarizer.go", - "constants.go", - "count.go", - "disk_spiller.go", - "external_distinct.go", - "external_hash_aggregator.go", - "external_hash_joiner.go", - "external_sort.go", - "hash_aggregator.go", - "hash_based_partitioner.go", - "invariants_checker.go", - "limit.go", - "materializer.go", - "not_expr_ops.go", - "offset.go", - "ordered_aggregator.go", - "parallel_unordered_synchronizer.go", - "partially_ordered_distinct.go", - "serial_unordered_synchronizer.go", - "sort.go", - "sort_chunks.go", - "sort_utils.go", - "sorttopk.go", - "tuple_proj_op.go", - "unordered_distinct.go", - "utils.go", - "values.go", - ":gen-exec", # keep - ":gen-sort-partitioner", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec", - visibility = ["//visibility:public"], - # Pin the dependencies used in auto-generated code. - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", # keep - "//pkg/col/typeconv", # keep - "//pkg/server/telemetry", # keep - "//pkg/settings", - "//pkg/sql/catalog/colinfo", # keep - "//pkg/sql/catalog/descpb", - "//pkg/sql/colcontainer", - "//pkg/sql/colconv", - "//pkg/sql/colexec/colexecagg", # keep - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/colexec/colexecbase", - "//pkg/sql/colexec/colexeccmp", # keep - "//pkg/sql/colexec/colexechash", # keep - "//pkg/sql/colexec/colexecjoin", - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colexec/execgen", # keep - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/memsize", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlerrors", - "//pkg/sql/sqltelemetry", # keep - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/buildutil", - "//pkg/util/duration", # keep - "//pkg/util/encoding", # keep - "//pkg/util/humanizeutil", - "//pkg/util/json", # keep - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/stringarena", - "//pkg/util/tracing", - "@com_github_cockroachdb_apd_v3//:apd", # keep - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_marusama_semaphore//:semaphore", - ], -) - -go_test( - name = "colexec_test", - size = "large", - srcs = [ - "aggregators_test.go", - "and_or_projection_test.go", - "buffer_test.go", - "builtin_funcs_test.go", - "case_test.go", - "coalesce_test.go", - "columnarizer_test.go", - "count_test.go", - "crossjoiner_test.go", - "default_agg_test.go", - "dep_test.go", - "distinct_test.go", - "external_distinct_test.go", - "external_hash_aggregator_test.go", - "external_hash_joiner_test.go", - "external_sort_test.go", - "hash_aggregator_test.go", - "hashjoiner_test.go", - "if_expr_test.go", - "inject_setup_test.go", - "is_null_ops_test.go", - "joiner_utils_test.go", - "limit_test.go", - "main_test.go", - "materializer_test.go", - "mergejoiner_test.go", - "not_expr_ops_test.go", - "offset_test.go", - "ordered_synchronizer_test.go", - "parallel_unordered_synchronizer_test.go", - "proj_utils_test.go", - "rowtovec_test.go", - "select_in_test.go", - "serial_unordered_synchronizer_test.go", - "sort_chunks_test.go", - "sort_test.go", - "sort_utils_test.go", - "sorttopk_test.go", - "types_integration_test.go", - "utils_test.go", - "values_test.go", - ], - embed = [":colexec"], - shard_count = 16, - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/coldatatestutils", - "//pkg/col/colserde", - "//pkg/col/typeconv", - "//pkg/settings/cluster", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/colcontainer", - "//pkg/sql/colconv", - "//pkg/sql/colexec/colbuilder", - "//pkg/sql/colexec/colexecagg", - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/colexec/colexecbase", - "//pkg/sql/colexec/colexecjoin", - "//pkg/sql/colexec/colexectestutils", - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/memsize", - "//pkg/sql/parser", - "//pkg/sql/randgen", - "//pkg/sql/rowenc", - "//pkg/sql/rowexec", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/buildutil", - "//pkg/testutils/colcontainerutils", - "//pkg/testutils/distsqlutils", - "//pkg/testutils/skip", - "//pkg/util/duration", - "//pkg/util/encoding", - "//pkg/util/humanizeutil", - "//pkg/util/json", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - "//pkg/util/timeofday", - "//pkg/util/uuid", - "@com_github_apache_arrow_go_arrow//array", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_marusama_semaphore//:semaphore", - "@com_github_stretchr_testify//require", - ], -) - -# Map between target name and relevant template. -targets = [ - ("and_or_projection.eg.go", "and_or_projection_tmpl.go"), - ("hash_aggregator.eg.go", "hash_aggregator_tmpl.go"), - ("is_null_ops.eg.go", "is_null_ops_tmpl.go"), - ("ordered_synchronizer.eg.go", "ordered_synchronizer_tmpl.go"), - ("quicksort.eg.go", "quicksort_tmpl.go"), - ("rowtovec.eg.go", "rowtovec_tmpl.go"), - ("select_in.eg.go", "select_in_tmpl.go"), - ("sort.eg.go", "sort_tmpl.go"), - ("sorttopk.eg.go", "sorttopk_tmpl.go"), - ("substring.eg.go", "substring_tmpl.go"), - ("values_differ.eg.go", "values_differ_tmpl.go"), - ("vec_comparators.eg.go", "vec_comparators_tmpl.go"), -] - -# Define a file group for all the .eg.go targets. -eg_go_filegroup( - name = "gen-exec", - targets = targets, -) - -# Define gen rules for individual eg.go files. -gen_eg_go_rules(targets) - -# Special-case the gen rule for sort_partitioner.eg.go. -gen_sort_partitioner_rule( - name = "gen-sort-partitioner", - target = "sort_partitioner.eg.go", -) diff --git a/pkg/sql/colexec/colbuilder/BUILD.bazel b/pkg/sql/colexec/colbuilder/BUILD.bazel deleted file mode 100644 index 11bb5701b4c..00000000000 --- a/pkg/sql/colexec/colbuilder/BUILD.bazel +++ /dev/null @@ -1,79 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "colbuilder", - srcs = ["execplan.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/colbuilder", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/typeconv", - "//pkg/settings", - "//pkg/sql/catalog/descpb", - "//pkg/sql/colconv", - "//pkg/sql/colexec", - "//pkg/sql/colexec/colexecagg", - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/colexec/colexecbase", - "//pkg/sql/colexec/colexecjoin", - "//pkg/sql/colexec/colexecproj", - "//pkg/sql/colexec/colexecsel", - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colexec/colexecwindow", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colfetcher", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/sessiondatapb", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/buildutil", - "//pkg/util/log", - "//pkg/util/mon", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "colbuilder_test", - size = "small", - srcs = [ - "execplan_test.go", - "main_test.go", - ], - embed = [":colbuilder"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/colexec", - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/randgen", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/colexec/colexecagg/BUILD.bazel b/pkg/sql/colexec/colexecagg/BUILD.bazel deleted file mode 100644 index bfa781c5da3..00000000000 --- a/pkg/sql/colexec/colexecagg/BUILD.bazel +++ /dev/null @@ -1,79 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//pkg/sql/colexecop:EXECGEN.bzl", "eg_go_filegroup", "gen_eg_go_rules") - -go_library( - name = "colexecagg", - srcs = [ - "aggregate_funcs.go", - "aggregators_util.go", - ":gen-exec", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecagg", - visibility = ["//visibility:public"], - # Pin the dependencies used in auto-generated code. - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", # keep - "//pkg/col/typeconv", # keep - "//pkg/sql/colconv", - "//pkg/sql/colexec/execgen", # keep - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/duration", - "//pkg/util/json", # keep - "//pkg/util/mon", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "colexecagg_test", - srcs = ["dep_test.go"], - embed = [":colexecagg"], - tags = ["no-remote"], - deps = ["//pkg/testutils/buildutil"], -) - -# Map between target name and relevant template. -targets = [ - ("hash_any_not_null_agg.eg.go", "any_not_null_agg_tmpl.go"), - ("hash_avg_agg.eg.go", "avg_agg_tmpl.go"), - ("hash_bool_and_or_agg.eg.go", "bool_and_or_agg_tmpl.go"), - ("hash_concat_agg.eg.go", "concat_agg_tmpl.go"), - ("hash_count_agg.eg.go", "count_agg_tmpl.go"), - ("hash_default_agg.eg.go", "default_agg_tmpl.go"), - ("hash_min_max_agg.eg.go", "min_max_agg_tmpl.go"), - ("hash_sum_agg.eg.go", "sum_agg_tmpl.go"), - ("hash_sum_int_agg.eg.go", "sum_agg_tmpl.go"), - ("ordered_any_not_null_agg.eg.go", "any_not_null_agg_tmpl.go"), - ("ordered_avg_agg.eg.go", "avg_agg_tmpl.go"), - ("ordered_bool_and_or_agg.eg.go", "bool_and_or_agg_tmpl.go"), - ("ordered_concat_agg.eg.go", "concat_agg_tmpl.go"), - ("ordered_count_agg.eg.go", "count_agg_tmpl.go"), - ("ordered_default_agg.eg.go", "default_agg_tmpl.go"), - ("ordered_min_max_agg.eg.go", "min_max_agg_tmpl.go"), - ("ordered_sum_agg.eg.go", "sum_agg_tmpl.go"), - ("ordered_sum_int_agg.eg.go", "sum_agg_tmpl.go"), - ("window_avg_agg.eg.go", "avg_agg_tmpl.go"), - ("window_bool_and_or_agg.eg.go", "bool_and_or_agg_tmpl.go"), - ("window_concat_agg.eg.go", "concat_agg_tmpl.go"), - ("window_count_agg.eg.go", "count_agg_tmpl.go"), - ("window_min_max_agg.eg.go", "min_max_agg_tmpl.go"), - ("window_sum_agg.eg.go", "sum_agg_tmpl.go"), - ("window_sum_int_agg.eg.go", "sum_agg_tmpl.go"), -] - -# Define a file group for all the .eg.go targets. -eg_go_filegroup( - name = "gen-exec", - targets = targets, -) - -# Define gen rules for individual eg.go files. -gen_eg_go_rules(targets) diff --git a/pkg/sql/colexec/colexecargs/BUILD.bazel b/pkg/sql/colexec/colexecargs/BUILD.bazel deleted file mode 100644 index 595613a129a..00000000000 --- a/pkg/sql/colexec/colexecargs/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "colexecargs", - srcs = [ - "expr.go", - "monitor_registry.go", - "op_creation.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecargs", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/sql/colcontainer", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/mon", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_marusama_semaphore//:semaphore", - "@com_github_stretchr_testify//require", - ], -) - -go_test( - name = "colexecargs_test", - srcs = ["dep_test.go"], - embed = [":colexecargs"], - tags = ["no-remote"], - deps = ["//pkg/testutils/buildutil"], -) diff --git a/pkg/sql/colexec/colexecbase/BUILD.bazel b/pkg/sql/colexec/colexecbase/BUILD.bazel deleted file mode 100644 index 4904396a207..00000000000 --- a/pkg/sql/colexec/colexecbase/BUILD.bazel +++ /dev/null @@ -1,103 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//pkg/sql/colexecop:EXECGEN.bzl", "eg_go_filegroup", "gen_eg_go_rules") - -go_library( - name = "colexecbase", - srcs = [ - "distinct.go", - "fn_op.go", - "ordinality.go", - "overloads_bin_util.go", - "simple_project.go", - ":gen-exec", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecbase", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", # keep - "//pkg/col/typeconv", # keep - "//pkg/sql/colconv", # keep - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colexec/execgen", # keep - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", # keep - "//pkg/sql/lex", # keep - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/rowenc", # keep - "//pkg/sql/sem/tree", # keep - "//pkg/sql/types", - "//pkg/util", # keep - "//pkg/util/duration", # keep - "//pkg/util/json", # keep - "//pkg/util/log", - "//pkg/util/uuid", # keep - "@com_github_cockroachdb_apd_v3//:apd", # keep - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", # keep - "@com_github_lib_pq//oid", # keep - ], -) - -go_test( - name = "colexecbase_test", - srcs = [ - "cast_test.go", - "const_test.go", - "dep_test.go", - "inject_setup_test.go", - "main_test.go", - "ordinality_test.go", - "simple_project_test.go", - ], - tags = ["no-remote"], - deps = [ - ":colexecbase", - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/coldatatestutils", - "//pkg/settings/cluster", - "//pkg/sql/colconv", - "//pkg/sql/colexec", - "//pkg/sql/colexec/colbuilder", - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/colexec/colexectestutils", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/faketreeeval", - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils/buildutil", - "//pkg/testutils/skip", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - "@com_github_stretchr_testify//require", - ], -) - -# Export the template because it is used by another target in colexec package. -exports_files(["distinct_tmpl.go"]) - -# Map between target name and relevant template. -targets = [ - ("cast.eg.go", "cast_tmpl.go"), - ("const.eg.go", "const_tmpl.go"), - ("distinct.eg.go", "distinct_tmpl.go"), -] - -# Define a file group for all the .eg.go targets. -eg_go_filegroup( - name = "gen-exec", - targets = targets, -) - -# Define gen rules for individual eg.go files. -gen_eg_go_rules(targets) diff --git a/pkg/sql/colexec/colexeccmp/BUILD.bazel b/pkg/sql/colexec/colexeccmp/BUILD.bazel deleted file mode 100644 index a4bebd7a0d2..00000000000 --- a/pkg/sql/colexec/colexeccmp/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//pkg/sql/colexecop:EXECGEN.bzl", "eg_go_filegroup", "gen_eg_go_rules") - -go_library( - name = "colexeccmp", - srcs = [ - "default_cmp_expr.go", - "like_ops.go", - ":gen-exec", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/colexeccmp", - visibility = ["//visibility:public"], - # Pin the dependencies used in auto-generated code. - deps = [ - "//pkg/sql/sem/tree", # keep - "@com_github_cockroachdb_errors//:errors", # keep - ], -) - -go_test( - name = "colexeccmp_test", - srcs = ["dep_test.go"], - embed = [":colexeccmp"], - tags = ["no-remote"], - deps = ["//pkg/testutils/buildutil"], -) - -# Map between target name and relevant template. -targets = [ - ("default_cmp_expr.eg.go", "default_cmp_expr_tmpl.go"), -] - -# Define a file group for all the .eg.go targets. -eg_go_filegroup( - name = "gen-exec", - targets = targets, -) - -# Define gen rules for individual eg.go files. -gen_eg_go_rules(targets) diff --git a/pkg/sql/colexec/colexechash/BUILD.bazel b/pkg/sql/colexec/colexechash/BUILD.bazel deleted file mode 100644 index 7ce372d3b70..00000000000 --- a/pkg/sql/colexec/colexechash/BUILD.bazel +++ /dev/null @@ -1,74 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//pkg/sql/colexecop:EXECGEN.bzl", "eg_go_filegroup", "gen_eg_go_rules") - -go_library( - name = "colexechash", - srcs = [ - "hash.go", - "hash_utils.go", - "hashtable.go", - ":gen-exec", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/colexechash", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", # keep - "//pkg/col/typeconv", # keep - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/memsize", - "//pkg/sql/sem/tree", # keep - "//pkg/sql/types", - "//pkg/util/json", # keep - "//pkg/util/randutil", - "@com_github_cockroachdb_apd_v3//:apd", # keep - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "colexechash_test", - srcs = [ - "dep_test.go", - "hash_test.go", - "hash_utils_test.go", - "main_test.go", - ], - embed = [":colexechash"], - tags = ["no-remote"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/settings/cluster", - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils/buildutil", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - ], -) - -# Map between target name and relevant template. -targets = [ - ("hash_utils.eg.go", "hash_utils_tmpl.go"), - ("hashtable_distinct.eg.go", "hashtable_tmpl.go"), - ("hashtable_full_default.eg.go", "hashtable_tmpl.go"), - ("hashtable_full_deleting.eg.go", "hashtable_tmpl.go"), -] - -# Define a file group for all the .eg.go targets. -eg_go_filegroup( - name = "gen-exec", - targets = targets, -) - -# Define gen rules for individual eg.go files. -gen_eg_go_rules(targets) diff --git a/pkg/sql/colexec/colexecjoin/BUILD.bazel b/pkg/sql/colexec/colexecjoin/BUILD.bazel deleted file mode 100644 index a30538efa27..00000000000 --- a/pkg/sql/colexec/colexecjoin/BUILD.bazel +++ /dev/null @@ -1,101 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//pkg/sql/colexecop:EXECGEN.bzl", "eg_go_filegroup", "gen_eg_go_rules") - -go_library( - name = "colexecjoin", - srcs = [ - "crossjoiner.go", - "hashjoiner.go", - "joiner_utils.go", - "mergejoiner.go", - "mergejoiner_util.go", - ":gen-exec", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecjoin", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", # keep - "//pkg/col/typeconv", - "//pkg/sql/catalog/descpb", - "//pkg/sql/colcontainer", - "//pkg/sql/colexec/colexecbase", - "//pkg/sql/colexec/colexechash", - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/memsize", - "//pkg/sql/sem/tree", # keep - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/duration", # keep - "//pkg/util/json", # keep - "//pkg/util/mon", - "@com_github_cockroachdb_apd_v3//:apd", # keep - "@com_github_cockroachdb_errors//:errors", - "@com_github_marusama_semaphore//:semaphore", - ], -) - -go_test( - name = "colexecjoin_test", - srcs = [ - "dep_test.go", - "main_test.go", - "mergejoiner_test.go", - ], - embed = [":colexecjoin"], - tags = ["no-remote"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/coldatatestutils", - "//pkg/settings/cluster", - "//pkg/sql/catalog/descpb", - "//pkg/sql/colexec/colexectestutils", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils/buildutil", - "//pkg/testutils/colcontainerutils", - "//pkg/testutils/skip", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - "@com_github_stretchr_testify//require", - ], -) - -# Map between target name and relevant template. -targets = [ - ("crossjoiner.eg.go", "crossjoiner_tmpl.go"), - ("hashjoiner.eg.go", "hashjoiner_tmpl.go"), - ("mergejoinbase.eg.go", "mergejoinbase_tmpl.go"), - ("mergejoiner_exceptall.eg.go", "mergejoiner_tmpl.go"), - ("mergejoiner_fullouter.eg.go", "mergejoiner_tmpl.go"), - ("mergejoiner_inner.eg.go", "mergejoiner_tmpl.go"), - ("mergejoiner_intersectall.eg.go", "mergejoiner_tmpl.go"), - ("mergejoiner_leftanti.eg.go", "mergejoiner_tmpl.go"), - ("mergejoiner_leftouter.eg.go", "mergejoiner_tmpl.go"), - ("mergejoiner_leftsemi.eg.go", "mergejoiner_tmpl.go"), - ("mergejoiner_rightanti.eg.go", "mergejoiner_tmpl.go"), - ("mergejoiner_rightouter.eg.go", "mergejoiner_tmpl.go"), - ("mergejoiner_rightsemi.eg.go", "mergejoiner_tmpl.go"), -] - -# Define a file group for all the .eg.go targets. -eg_go_filegroup( - name = "gen-exec", - targets = targets, -) - -# Define gen rules for individual eg.go files. -gen_eg_go_rules(targets) diff --git a/pkg/sql/colexec/colexecproj/BUILD.bazel b/pkg/sql/colexec/colexecproj/BUILD.bazel deleted file mode 100644 index 693a14f9526..00000000000 --- a/pkg/sql/colexec/colexecproj/BUILD.bazel +++ /dev/null @@ -1,94 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//pkg/sql/colexecop:EXECGEN.bzl", "eg_go_filegroup", "gen_eg_go_rules") - -go_library( - name = "colexecproj", - srcs = [ - "like_ops.go", - ":gen-exec", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecproj", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", # keep - "//pkg/col/coldataext", # keep - "//pkg/col/typeconv", # keep - "//pkg/server/telemetry", # keep - "//pkg/sql/colconv", # keep - "//pkg/sql/colexec/colexecbase", # keep - "//pkg/sql/colexec/colexeccmp", - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colexec/execgen", # keep - "//pkg/sql/colexecerror", # keep - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", # keep - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", # keep - "//pkg/sql/sem/tree/treecmp", # keep - "//pkg/sql/sqltelemetry", # keep - "//pkg/sql/types", - "//pkg/util/duration", # keep - "//pkg/util/json", # keep - "@com_github_cockroachdb_apd_v3//:apd", # keep - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "colexecproj_test", - srcs = [ - "default_cmp_op_test.go", - "dep_test.go", - "inject_setup_test.go", - "main_test.go", - "projection_ops_test.go", - ], - embed = [":colexecproj"], - tags = ["no-remote"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/coldatatestutils", - "//pkg/settings/cluster", - "//pkg/sql/colconv", - "//pkg/sql/colexec/colbuilder", - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/colexec/colexectestutils", - "//pkg/sql/colexec/execgen", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/types", - "//pkg/testutils/buildutil", - "//pkg/testutils/skip", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) - -# Map between target name and relevant template. -targets = [ - ("default_cmp_proj_ops.eg.go", "default_cmp_proj_ops_tmpl.go"), - ("proj_const_left_ops.eg.go", "proj_const_ops_tmpl.go"), - ("proj_const_right_ops.eg.go", "proj_const_ops_tmpl.go"), - ("proj_like_ops.eg.go", "proj_const_ops_tmpl.go"), - ("proj_non_const_ops.eg.go", "proj_non_const_ops_tmpl.go"), -] - -# Define a file group for all the .eg.go targets. -eg_go_filegroup( - name = "gen-exec", - targets = targets, -) - -# Define gen rules for individual eg.go files. -gen_eg_go_rules(targets) diff --git a/pkg/sql/colexec/colexecsel/BUILD.bazel b/pkg/sql/colexec/colexecsel/BUILD.bazel deleted file mode 100644 index a0d8a35171f..00000000000 --- a/pkg/sql/colexec/colexecsel/BUILD.bazel +++ /dev/null @@ -1,79 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//pkg/sql/colexecop:EXECGEN.bzl", "eg_go_filegroup", "gen_eg_go_rules") - -go_library( - name = "colexecsel", - srcs = [ - "like_ops.go", - ":gen-exec", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecsel", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", # keep - "//pkg/col/coldataext", # keep - "//pkg/col/typeconv", # keep - "//pkg/sql/colconv", # keep - "//pkg/sql/colexec/colexeccmp", - "//pkg/sql/colexec/execgen", # keep - "//pkg/sql/colexecerror", # keep - "//pkg/sql/colexecop", - "//pkg/sql/execinfra", # keep - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treecmp", # keep - "//pkg/sql/types", # keep - "//pkg/util/duration", # keep - "//pkg/util/json", # keep - "@com_github_cockroachdb_apd_v3//:apd", # keep - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "colexecsel_test", - srcs = [ - "dep_test.go", - "like_ops_test.go", - "main_test.go", - "selection_ops_test.go", - ], - embed = [":colexecsel"], - tags = ["no-remote"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/coldatatestutils", - "//pkg/settings/cluster", - "//pkg/sql/colexec/colexectestutils", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/types", - "//pkg/testutils/buildutil", - "//pkg/testutils/skip", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/timeutil/pgdate", - "@com_github_stretchr_testify//require", - ], -) - -# Map between target name and relevant template. -targets = [ - ("default_cmp_sel_ops.eg.go", "default_cmp_sel_ops_tmpl.go"), - ("selection_ops.eg.go", "selection_ops_tmpl.go"), - ("sel_like_ops.eg.go", "selection_ops_tmpl.go"), -] - -# Define a file group for all the .eg.go targets. -eg_go_filegroup( - name = "gen-exec", - targets = targets, -) - -# Define gen rules for individual eg.go files. -gen_eg_go_rules(targets) diff --git a/pkg/sql/colexec/colexecspan/BUILD.bazel b/pkg/sql/colexec/colexecspan/BUILD.bazel deleted file mode 100644 index 7c206a39e00..00000000000 --- a/pkg/sql/colexec/colexecspan/BUILD.bazel +++ /dev/null @@ -1,87 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//pkg/sql/colexecop:EXECGEN.bzl", "eg_go_filegroup", "gen_eg_go_rules") - -go_library( - name = "colexecspan", - srcs = [ - "span_assembler.go", - ":gen-exec", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecspan", # keep - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", # keep - "//pkg/col/coldataext", # keep - "//pkg/col/typeconv", # keep - "//pkg/keys", # keep - "//pkg/roachpb", # keep - "//pkg/sql/catalog", # keep - "//pkg/sql/catalog/descpb", # keep - "//pkg/sql/colexecerror", # keep - "//pkg/sql/colmem", # keep - "//pkg/sql/execinfra", # keep - "//pkg/sql/rowenc", # keep - "//pkg/sql/rowenc/keyside", # keep - "//pkg/sql/sem/tree", # keep - "//pkg/sql/types", # keep - "//pkg/util", # keep - "//pkg/util/duration", # keep - "//pkg/util/encoding", # keep - "@com_github_cockroachdb_apd_v3//:apd", # keep - "@com_github_cockroachdb_errors//:errors", # keep - ], -) - -go_test( - name = "colexecspan_test", - srcs = [ - "dep_test.go", - "main_test.go", - "span_assembler_test.go", - ], - embed = [":colexecspan"], # keep - tags = ["no-remote"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/coldatatestutils", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/colconv", - "//pkg/sql/colexec/colexectestutils", - "//pkg/sql/colexecerror", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/span", - "//pkg/sql/types", - "//pkg/testutils/buildutil", - "//pkg/testutils/skip", - "//pkg/util", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - ], -) - -# Map between target name and relevant template. -targets = [ - ("span_encoder.eg.go", "span_encoder_tmpl.go"), -] - -# Define a file group for all the .eg.go targets. -eg_go_filegroup( - name = "gen-exec", - targets = targets, -) - -# Define gen rules for individual eg.go files. -gen_eg_go_rules(targets) diff --git a/pkg/sql/colexec/colexectestutils/BUILD.bazel b/pkg/sql/colexec/colexectestutils/BUILD.bazel deleted file mode 100644 index 97b8b2e9168..00000000000 --- a/pkg/sql/colexec/colexectestutils/BUILD.bazel +++ /dev/null @@ -1,65 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "colexectestutils", - srcs = [ - "args.go", - "proj_utils.go", - "utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/colexectestutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/typeconv", - "//pkg/settings/cluster", - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/parser", - "//pkg/sql/randgen", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/duration", - "//pkg/util/envutil", - "//pkg/util/json", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - "//pkg/util/timeofday", - "//pkg/util/timeutil", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_pmezard_go_difflib//difflib", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) - -go_test( - name = "colexectestutils_test", - srcs = [ - "main_test.go", - "utils_test.go", - ], - embed = [":colexectestutils"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/coldatatestutils", - "//pkg/settings/cluster", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - ], -) diff --git a/pkg/sql/colexec/colexecutils/BUILD.bazel b/pkg/sql/colexec/colexecutils/BUILD.bazel deleted file mode 100644 index 9fe4edc20e4..00000000000 --- a/pkg/sql/colexec/colexecutils/BUILD.bazel +++ /dev/null @@ -1,72 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "colexecutils", - srcs = [ - "bool_vec_to_sel.go", - "cancel_checker.go", - "deselector.go", - "operator.go", - "spilling_buffer.go", - "spilling_queue.go", - "utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/sql/colcontainer", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/sqlerrors", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/cancelchecker", - "//pkg/util/log", - "//pkg/util/mon", - "@com_github_cockroachdb_errors//:errors", - "@com_github_marusama_semaphore//:semaphore", - ], -) - -go_test( - name = "colexecutils_test", - srcs = [ - "bool_vec_to_sel_test.go", - "cancel_checker_test.go", - "dep_test.go", - "deselector_test.go", - "main_test.go", - "spilling_buffer_test.go", - "spilling_queue_test.go", - ], - embed = [":colexecutils"], - tags = ["no-remote"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/coldatatestutils", - "//pkg/settings/cluster", - "//pkg/sql/colcontainer", - "//pkg/sql/colexec/colexectestutils", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils/buildutil", - "//pkg/testutils/colcontainerutils", - "//pkg/testutils/skip", - "//pkg/util/cancelchecker", - "//pkg/util/humanizeutil", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/colexec/colexecwindow/BUILD.bazel b/pkg/sql/colexec/colexecwindow/BUILD.bazel deleted file mode 100644 index 080330c21b0..00000000000 --- a/pkg/sql/colexec/colexecwindow/BUILD.bazel +++ /dev/null @@ -1,118 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//pkg/sql/colexecop:EXECGEN.bzl", "eg_go_filegroup", "gen_eg_go_rules") - -go_library( - name = "colexecwindow", - srcs = [ - "buffered_window.go", - "count_rows_aggregator.go", - "min_max_queue.go", - "partitioner.go", - "window_functions_util.go", - ":gen-exec", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecwindow", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", # keep - "//pkg/col/coldataext", # keep - "//pkg/col/typeconv", # keep - "//pkg/sql/colcontainer", # keep - "//pkg/sql/colconv", # keep - "//pkg/sql/colexec/colexecagg", # keep - "//pkg/sql/colexec/colexecbase", - "//pkg/sql/colexec/colexecutils", # keep - "//pkg/sql/colexec/execgen", # keep - "//pkg/sql/colexecerror", # keep - "//pkg/sql/colexecop", # keep - "//pkg/sql/colmem", # keep - "//pkg/sql/execinfra", # keep - "//pkg/sql/execinfrapb", # keep - "//pkg/sql/memsize", # keep - "//pkg/sql/rowenc", # keep - "//pkg/sql/sem/builtins", # keep - "//pkg/sql/sem/tree", # keep - "//pkg/sql/types", # keep - "//pkg/util/duration", # keep - "//pkg/util/json", # keep - "//pkg/util/mon", # keep - "//pkg/util/timeutil/pgdate", # keep - "@com_github_cockroachdb_apd_v3//:apd", # keep - "@com_github_cockroachdb_errors//:errors", # keep - "@com_github_marusama_semaphore//:semaphore", # keep - ], -) - -go_test( - name = "colexecwindow_test", - srcs = [ - "dep_test.go", - "inject_setup_test.go", - "main_test.go", - "min_max_queue_test.go", - "window_framer_test.go", - "window_functions_test.go", - ], - embed = [":colexecwindow"], - tags = ["no-remote"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/settings/cluster", - "//pkg/sql/catalog/descpb", - "//pkg/sql/colcontainer", - "//pkg/sql/colexec/colbuilder", - "//pkg/sql/colexec/colexecagg", - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/colexec/colexectestutils", - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treewindow", - "//pkg/sql/types", - "//pkg/testutils/buildutil", - "//pkg/testutils/colcontainerutils", - "//pkg/testutils/skip", - "//pkg/util/encoding", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_marusama_semaphore//:semaphore", - "@com_github_stretchr_testify//require", - ], -) - -# Map between target name and relevant template. -targets = [ - ("first_value.eg.go", "first_last_nth_value_tmpl.go"), - ("lag.eg.go", "lead_lag_tmpl.go"), - ("last_value.eg.go", "first_last_nth_value_tmpl.go"), - ("lead.eg.go", "lead_lag_tmpl.go"), - ("min_max_removable_agg.eg.go", "min_max_removable_agg_tmpl.go"), - ("nth_value.eg.go", "first_last_nth_value_tmpl.go"), - ("ntile.eg.go", "ntile_tmpl.go"), - ("range_offset_handler.eg.go", "range_offset_handler_tmpl.go"), - ("rank.eg.go", "rank_tmpl.go"), - ("relative_rank.eg.go", "relative_rank_tmpl.go"), - ("row_number.eg.go", "row_number_tmpl.go"), - ("window_aggregator.eg.go", "window_aggregator_tmpl.go"), - ("window_framer.eg.go", "window_framer_tmpl.go"), - ("window_peer_grouper.eg.go", "window_peer_grouper_tmpl.go"), -] - -# Define a file group for all the .eg.go targets. -eg_go_filegroup( - name = "gen-exec", - targets = targets, -) - -# Define gen rules for individual eg.go files. -gen_eg_go_rules(targets) diff --git a/pkg/sql/colexec/execgen/BUILD.bazel b/pkg/sql/colexec/execgen/BUILD.bazel deleted file mode 100644 index fadf00659e4..00000000000 --- a/pkg/sql/colexec/execgen/BUILD.bazel +++ /dev/null @@ -1,44 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "execgen", - srcs = [ - "execgen.go", - "inline.go", - "placeholders.go", - "supported_bin_cmp_ops.go", - "template.go", - "util.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/execgen", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/colexecerror", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sem/tree/treecmp", - "@com_github_cockroachdb_errors//:errors", - "@com_github_dave_dst//:dst", - "@com_github_dave_dst//decorator", - "@com_github_dave_dst//dstutil", - ], -) - -go_test( - name = "execgen_test", - size = "small", - srcs = [ - "datadriven_test.go", - "inline_test.go", - "template_test.go", - "util_test.go", - ], - data = glob(["testdata/**"]), - embed = [":execgen"], - deps = [ - "//pkg/testutils", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_dave_dst//:dst", - "@com_github_dave_dst//decorator", - "@com_github_stretchr_testify//assert", - ], -) diff --git a/pkg/sql/colexec/execgen/cmd/execgen/BUILD.bazel b/pkg/sql/colexec/execgen/cmd/execgen/BUILD.bazel deleted file mode 100644 index 7cd8999b976..00000000000 --- a/pkg/sql/colexec/execgen/cmd/execgen/BUILD.bazel +++ /dev/null @@ -1,93 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "execgen_lib", - srcs = [ - "agg_gen_util.go", - "and_or_projection_gen.go", - "any_not_null_agg_gen.go", - "avg_agg_gen.go", - "bool_and_or_agg_gen.go", - "cast_gen.go", - "cast_gen_util.go", - "concat_agg_gen.go", - "const_gen.go", - "count_agg_gen.go", - "crossjoiner_gen.go", - "data_manipulation_gen.go", - "datum_to_vec_gen.go", - "default_agg_gen.go", - "default_cmp_expr_gen.go", - "default_cmp_proj_ops_gen.go", - "default_cmp_sel_ops_gen.go", - "distinct_gen.go", - "first_last_nth_value_gen.go", - "hash_aggregator_gen.go", - "hash_utils_gen.go", - "hashjoiner_gen.go", - "hashtable_gen.go", - "is_null_ops_gen.go", - "lead_lag_gen.go", - "like_ops_gen.go", - "main.go", - "mergejoinbase_gen.go", - "mergejoiner_gen.go", - "min_max_agg_gen.go", - "min_max_removable_agg_gen.go", - "ntile_gen.go", - "ordered_synchronizer_gen.go", - "overloads_abbr.go", - "overloads_base.go", - "overloads_bin.go", - "overloads_cmp.go", - "overloads_gen_util.go", - "overloads_hash.go", - "projection_ops_gen.go", - "range_offset_handler_gen.go", - "rank_gen.go", - "relative_rank_gen.go", - "row_number_gen.go", - "rowtovec_gen.go", - "select_in_gen.go", - "selection_ops_gen.go", - "sort_gen.go", - "sorttopk_gen.go", - "span_encoder_gen.go", - "substring_gen.go", - "sum_agg_gen.go", - "values_differ_gen.go", - "vec_comparators_gen.go", - "vec_gen.go", - "vec_to_datum_gen.go", - "window_aggregator_gen.go", - "window_framer_gen.go", - "window_peer_grouper_gen.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexec/execgen/cmd/execgen", - visibility = ["//visibility:private"], - deps = [ - "//pkg/col/typeconv", - "//pkg/sql/colexec/execgen", - "//pkg/sql/colexecerror", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/sem/tree/treewindow", - "//pkg/sql/types", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_gostdlib//x/tools/imports", - ], -) - -go_binary( - name = "execgen", - embed = [":execgen_lib"], - gotags = ["metamorphic_disable"], - visibility = ["//visibility:public"], -) - -go_test( - name = "execgen_test", - srcs = ["dep_test.go"], - embed = [":execgen_lib"], - deps = ["//pkg/testutils/buildutil"], -) diff --git a/pkg/sql/colexecerror/BUILD.bazel b/pkg/sql/colexecerror/BUILD.bazel deleted file mode 100644 index e0ff03f7879..00000000000 --- a/pkg/sql/colexecerror/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "colexecerror", - srcs = ["error.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexecerror", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//proto", - ], -) - -go_test( - name = "colexecerror_test", - srcs = ["error_test.go"], - deps = [ - ":colexecerror", - "//pkg/util/leaktest", - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/colexecop/BUILD.bazel b/pkg/sql/colexecop/BUILD.bazel deleted file mode 100644 index 784641baa6d..00000000000 --- a/pkg/sql/colexecop/BUILD.bazel +++ /dev/null @@ -1,34 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "colexecop", - srcs = [ - "constants.go", - "operator.go", - "testutils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colexecop", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/sql/colexecerror", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/types", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "colexecop_test", - size = "small", - srcs = ["dep_test.go"], - embed = [":colexecop"], - tags = ["no-remote"], - deps = [ - "//pkg/testutils/buildutil", - "//pkg/util/leaktest", - ], -) diff --git a/pkg/sql/colfetcher/BUILD.bazel b/pkg/sql/colfetcher/BUILD.bazel deleted file mode 100644 index 801b321d971..00000000000 --- a/pkg/sql/colfetcher/BUILD.bazel +++ /dev/null @@ -1,85 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "colfetcher", - srcs = [ - "cfetcher.go", - "cfetcher_setup.go", - "colbatch_scan.go", - "index_join.go", - ":gen-fetcherstate-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colfetcher", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/typeconv", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/colconv", - "//pkg/sql/colencoding", - "//pkg/sql/colexec/colexecspan", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/kvstreamer", - "//pkg/sql/memsize", - "//pkg/sql/row", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/rowinfra", - "//pkg/sql/scrub", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/syncutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - ], -) - -stringer( - name = "gen-fetcherstate-stringer", - src = "cfetcher.go", - typ = "fetcherState", -) - -go_test( - name = "colfetcher_test", - srcs = [ - "bytes_read_test.go", - "main_test.go", - "vectorized_batch_size_test.go", - ], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/colflow/BUILD.bazel b/pkg/sql/colflow/BUILD.bazel deleted file mode 100644 index 83b9cb980c7..00000000000 --- a/pkg/sql/colflow/BUILD.bazel +++ /dev/null @@ -1,142 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "colflow", - srcs = [ - "explain_vec.go", - "flow_coordinator.go", - "panic_injector.go", - "routers.go", - "stats.go", - "vectorized_flow.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colflow", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/roachpb", - "//pkg/rpc/nodedialer", - "//pkg/settings", - "//pkg/sql/catalog/descs", - "//pkg/sql/colcontainer", - "//pkg/sql/colexec", - "//pkg/sql/colexec/colbuilder", - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/colexec/colexechash", - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colflow/colrpc", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/flowinfra", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/rowenc", - "//pkg/sql/rowexec", - "//pkg/sql/sessiondatapb", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/admission", - "//pkg/util/buildutil", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/optional", - "//pkg/util/randutil", - "//pkg/util/retry", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/treeprinter", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_marusama_semaphore//:semaphore", - "@io_opentelemetry_go_otel//attribute", - ], -) - -go_test( - name = "colflow_test", - size = "medium", - srcs = [ - "colbatch_scan_test.go", - "dep_test.go", - "main_test.go", - "routers_test.go", - "stats_test.go", - "vectorized_flow_deadlock_test.go", - "vectorized_flow_planning_test.go", - "vectorized_flow_shutdown_test.go", - "vectorized_flow_space_test.go", - "vectorized_flow_test.go", - "vectorized_meta_propagation_test.go", - "vectorized_panic_propagation_test.go", - ], - embed = [":colflow"], - tags = ["no-remote"], - deps = [ - "//pkg/base", - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/coldatatestutils", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/colcontainer", - "//pkg/sql/colexec", - "//pkg/sql/colexec/colbuilder", - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/colexec/colexecjoin", - "//pkg/sql/colexec/colexectestutils", - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colflow/colrpc", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/flowinfra", - "//pkg/sql/randgen", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/storage", - "//pkg/testutils", - "//pkg/testutils/buildutil", - "//pkg/testutils/colcontainerutils", - "//pkg/testutils/distsqlutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/admission", - "//pkg/util/buildutil", - "//pkg/util/cancelchecker", - "//pkg/util/envutil", - "//pkg/util/hlc", - "//pkg/util/humanizeutil", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/colflow/colrpc/BUILD.bazel b/pkg/sql/colflow/colrpc/BUILD.bazel deleted file mode 100644 index d8305be7712..00000000000 --- a/pkg/sql/colflow/colrpc/BUILD.bazel +++ /dev/null @@ -1,78 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "colrpc", - srcs = [ - "inbox.go", - "outbox.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colflow/colrpc", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/col/coldata", - "//pkg/col/colserde", - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/types", - "//pkg/util/admission", - "//pkg/util/cancelchecker", - "//pkg/util/log", - "//pkg/util/log/logcrash", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_apache_arrow_go_arrow//array", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "colrpc_test", - size = "small", - srcs = [ - "colrpc_test.go", - "inbox_test.go", - "main_test.go", - "outbox_test.go", - ], - embed = [":colrpc"], - deps = [ - "//pkg/base", - "//pkg/col/coldata", - "//pkg/col/coldatatestutils", - "//pkg/col/colserde", - "//pkg/settings/cluster", - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/colexec/colexectestutils", - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colexecerror", - "//pkg/sql/colexecop", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/util/cancelchecker", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_stretchr_testify//require", - "@org_golang_google_grpc//:go_default_library", - ], -) diff --git a/pkg/sql/colmem/BUILD.bazel b/pkg/sql/colmem/BUILD.bazel deleted file mode 100644 index 8a552c7fad8..00000000000 --- a/pkg/sql/colmem/BUILD.bazel +++ /dev/null @@ -1,52 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "colmem", - srcs = ["allocator.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/colmem", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/typeconv", - "//pkg/sql/colexecerror", - "//pkg/sql/memsize", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/buildutil", - "//pkg/util/mon", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "colmem_test", - size = "small", - srcs = [ - "adjust_memory_usage_test.go", - "allocator_test.go", - "reset_maybe_reallocate_test.go", - ], - embed = [":colmem"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/typeconv", - "//pkg/settings/cluster", - "//pkg/sql/colconv", - "//pkg/sql/colexec/colexecutils", - "//pkg/sql/colexecerror", - "//pkg/sql/execinfra", - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils/skip", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/commenter/BUILD.bazel b/pkg/sql/commenter/BUILD.bazel deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/pkg/sql/contention/BUILD.bazel b/pkg/sql/contention/BUILD.bazel deleted file mode 100644 index 7580f08bfc7..00000000000 --- a/pkg/sql/contention/BUILD.bazel +++ /dev/null @@ -1,65 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "contention", - srcs = [ - "cluster_settings.go", - "event_store.go", - "metrics.go", - "registry.go", - "resolver.go", - "test_utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/contention", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/server/serverpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog/descpb", - "//pkg/sql/contention/contentionutils", - "//pkg/sql/contentionpb", - "//pkg/util/cache", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_biogo_store//llrb", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "contention_test", - size = "small", - srcs = [ - "event_store_test.go", - "registry_test.go", - "resolver_test.go", - "utils_test.go", - ], - data = glob(["testdata/**"]), - embed = [":contention"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/sql/contentionpb", - "//pkg/storage/enginepb", - "//pkg/testutils", - "//pkg/util/cache", - "//pkg/util/encoding", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/contention/contentionutils/BUILD.bazel b/pkg/sql/contention/contentionutils/BUILD.bazel deleted file mode 100644 index aef2d36c298..00000000000 --- a/pkg/sql/contention/contentionutils/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "contentionutils", - srcs = ["concurrent_buffer_guard.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/contention/contentionutils", - visibility = ["//visibility:public"], - deps = ["//pkg/util/syncutil"], -) - -go_test( - name = "contentionutils_test", - srcs = ["concurrent_buffer_guard_test.go"], - embed = [":contentionutils"], - deps = [ - "//pkg/util/syncutil", - "//pkg/util/uuid", - "@com_github_stretchr_testify//require", - "@org_golang_x_exp//rand", - ], -) diff --git a/pkg/sql/contention/txnidcache/BUILD.bazel b/pkg/sql/contention/txnidcache/BUILD.bazel deleted file mode 100644 index 9fcf328176d..00000000000 --- a/pkg/sql/contention/txnidcache/BUILD.bazel +++ /dev/null @@ -1,64 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "txnidcache", - srcs = [ - "cluster_settings.go", - "concurrent_write_buffer.go", - "fifo_cache.go", - "metrics.go", - "txn_id_cache.go", - "writer.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/contention/txnidcache", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/contention/contentionutils", - "//pkg/sql/contentionpb", - "//pkg/util/encoding", - "//pkg/util/metric", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/uuid", - ], -) - -go_test( - name = "txnidcache_test", - srcs = [ - "fifo_cache_test.go", - "main_test.go", - "txn_id_cache_test.go", - "writer_test.go", - ], - data = glob(["testdata/**"]), - embed = [":txnidcache"], - deps = [ - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/contentionpb", - "//pkg/sql/sessiondata", - "//pkg/sql/tests", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/contentionpb/BUILD.bazel b/pkg/sql/contentionpb/BUILD.bazel deleted file mode 100644 index 3383e0c5d0d..00000000000 --- a/pkg/sql/contentionpb/BUILD.bazel +++ /dev/null @@ -1,55 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "contentionpb", - srcs = ["contention.go"], - embed = [":contentionpb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/contentionpb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util", - "//pkg/util/encoding", - "//pkg/util/uuid", - ], -) - -proto_library( - name = "contentionpb_proto", - srcs = ["contention.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb:roachpb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -go_proto_library( - name = "contentionpb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/contentionpb", - proto = ":contentionpb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", # keep - "//pkg/sql/catalog/descpb", # keep - "//pkg/util/uuid", # keep - "@com_github_gogo_protobuf//gogoproto", - ], -) - -go_test( - name = "contentionpb_test", - srcs = ["contention_test.go"], - embed = [":contentionpb"], - deps = [ - "//pkg/util", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/covering/BUILD.bazel b/pkg/sql/covering/BUILD.bazel deleted file mode 100644 index ffa6f3e5669..00000000000 --- a/pkg/sql/covering/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "covering", - srcs = ["overlap_merge.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/covering", - visibility = ["//visibility:public"], -) - -go_test( - name = "covering_test", - size = "small", - srcs = [ - "bench_test.go", - "main_test.go", - "overlap_merge_test.go", - ], - embed = [":covering"], - deps = [ - "//pkg/util/leaktest", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/delegate/BUILD.bazel b/pkg/sql/delegate/BUILD.bazel deleted file mode 100644 index baf6c95c1ec..00000000000 --- a/pkg/sql/delegate/BUILD.bazel +++ /dev/null @@ -1,67 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "delegate", - srcs = [ - "delegate.go", - "job_control.go", - "show_all_cluster_settings.go", - "show_changefeed_jobs.go", - "show_completions.go", - "show_database_indexes.go", - "show_databases.go", - "show_default_privileges.go", - "show_enums.go", - "show_full_table_scans.go", - "show_grants.go", - "show_jobs.go", - "show_partitions.go", - "show_queries.go", - "show_range_for_row.go", - "show_ranges.go", - "show_regions.go", - "show_role_grants.go", - "show_roles.go", - "show_schedules.go", - "show_schemas.go", - "show_sequences.go", - "show_sessions.go", - "show_survival_goal.go", - "show_syntax.go", - "show_table.go", - "show_tables.go", - "show_transactions.go", - "show_types.go", - "show_var.go", - "show_zone_config.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/delegate", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/security", - "//pkg/settings", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/lexbase", - "//pkg/sql/opt/cat", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/privilege", - "//pkg/sql/roleoption", - "//pkg/sql/sem/tree", - "//pkg/sql/sqltelemetry", - "//pkg/util/errorutil/unimplemented", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "delegate_test", - srcs = ["show_completions_test.go"], - embed = [":delegate"], -) diff --git a/pkg/sql/descmetadata/BUILD.bazel b/pkg/sql/descmetadata/BUILD.bazel deleted file mode 100644 index 94b047de47f..00000000000 --- a/pkg/sql/descmetadata/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "descmetadata", - srcs = [ - "metadata_updater.go", - "metadata_updater_factory.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/descmetadata", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/security", - "//pkg/settings", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/schemachanger/scexec", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sessioninit", - "//pkg/sql/sqlutil", - ], -) diff --git a/pkg/sql/distsql/BUILD.bazel b/pkg/sql/distsql/BUILD.bazel deleted file mode 100644 index 6a5acb66b4d..00000000000 --- a/pkg/sql/distsql/BUILD.bazel +++ /dev/null @@ -1,98 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "distsql", - srcs = ["server.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/distsql", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/gossip", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/sql/catalog/descs", - "//pkg/sql/colflow", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/faketreeeval", - "//pkg/sql/flowinfra", - "//pkg/sql/row", - "//pkg/sql/rowflow", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sqltelemetry", - "//pkg/sql/sqlutil", - "//pkg/util/envutil", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/pprofutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "distsql_test", - size = "large", - srcs = [ - "columnar_operators_test.go", - "columnar_utils_test.go", - "inbound_test.go", - "main_test.go", - "setup_flow_after_drain_test.go", - "vectorized_panic_propagation_test.go", - ], - embed = [":distsql"], - deps = [ - "//pkg/base", - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/typeconv", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql/catalog/descpb", - "//pkg/sql/colcontainer", - "//pkg/sql/colexec", - "//pkg/sql/colexec/colbuilder", - "//pkg/sql/colexec/colexecagg", - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/colexec/colexectestutils", - "//pkg/sql/colexec/colexecwindow", - "//pkg/sql/colexecop", - "//pkg/sql/colflow", - "//pkg/sql/colmem", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/flowinfra", - "//pkg/sql/randgen", - "//pkg/sql/rowenc", - "//pkg/sql/rowexec", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/storage", - "//pkg/testutils", - "//pkg/testutils/distsqlutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/netutil", - "//pkg/util/randutil", - "//pkg/util/stop", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/doctor/BUILD.bazel b/pkg/sql/doctor/BUILD.bazel deleted file mode 100644 index a05ec125886..00000000000 --- a/pkg/sql/doctor/BUILD.bazel +++ /dev/null @@ -1,50 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "doctor", - srcs = ["doctor.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/doctor", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/config/zonepb", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/descbuilder", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/nstree", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "doctor_test", - size = "small", - srcs = ["doctor_test.go"], - deps = [ - ":doctor", - "//pkg/clusterversion", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/security", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/catprivilege", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/privilege", - "//pkg/sql/types", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/enum/BUILD.bazel b/pkg/sql/enum/BUILD.bazel deleted file mode 100644 index aa372ce6897..00000000000 --- a/pkg/sql/enum/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "enum", - srcs = ["enum.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/enum", - visibility = ["//visibility:public"], -) - -go_test( - name = "enum_test", - size = "small", - srcs = ["enum_test.go"], - embed = [":enum"], - deps = [ - "//pkg/util/leaktest", - "//pkg/util/randutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/execinfra/BUILD.bazel b/pkg/sql/execinfra/BUILD.bazel deleted file mode 100644 index dcbbeae6747..00000000000 --- a/pkg/sql/execinfra/BUILD.bazel +++ /dev/null @@ -1,122 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "execinfra", - srcs = [ - "aggregatorbase.go", - "base.go", - "flow_context.go", - "metadata_test_receiver.go", - "metadata_test_sender.go", - "metrics.go", - "operator.go", - "outboxbase.go", - "processorsbase.go", - "readerbase.go", - "server_config.go", - "stats.go", - "testutils.go", - "utils.go", - "version.go", - ":gen-consumerstatus-stringer", # keep - ":gen-procstate-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/execinfra", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/cloud", - "//pkg/col/coldata", - "//pkg/gossip", - "//pkg/jobs", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/kvcoord", - "//pkg/kv/kvclient/rangecache", - "//pkg/kv/kvserver/diskmap", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/kv/kvserver/protectedts", - "//pkg/multitenant", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/execinfrapb", - "//pkg/sql/row", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlliveness", - "//pkg/sql/sqlutil", - "//pkg/sql/types", - "//pkg/storage/fs", - "//pkg/util", - "//pkg/util/admission", - "//pkg/util/buildutil", - "//pkg/util/limit", - "//pkg/util/log", - "//pkg/util/log/logcrash", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/optional", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/tracing/tracingpb", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//types", - "@com_github_marusama_semaphore//:semaphore", - "@io_opentelemetry_go_otel//attribute", - "@org_golang_google_grpc//:go_default_library", - ], -) - -go_test( - name = "execinfra_test", - size = "small", - srcs = [ - "base_test.go", - "dep_test.go", - "main_test.go", - ], - embed = [":execinfra"], - tags = ["no-remote"], - deps = [ - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/execinfrapb", - "//pkg/sql/randgen", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils/buildutil", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/randutil", - ], -) - -stringer( - name = "gen-procstate-stringer", - src = "processorsbase.go", - typ = "procState", -) - -stringer( - name = "gen-consumerstatus-stringer", - src = "base.go", - typ = "ConsumerStatus", -) diff --git a/pkg/sql/execinfrapb/BUILD.bazel b/pkg/sql/execinfrapb/BUILD.bazel deleted file mode 100644 index 157f28c94fa..00000000000 --- a/pkg/sql/execinfrapb/BUILD.bazel +++ /dev/null @@ -1,144 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "execinfrapb", - srcs = [ - "aggregate_funcs.go", - "api.go", - "component_stats.go", - "data.go", - "expr.go", - "flow_diagram.go", - "processors.go", - "testutils.go", - ], - embed = [":execinfrapb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/execinfrapb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/rowenc", - "//pkg/sql/sem/transform", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treewindow", - "//pkg/sql/sessiondata", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/buildutil", - "//pkg/util/duration", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/humanizeutil", - "//pkg/util/netutil", - "//pkg/util/optional", - "//pkg/util/protoutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/tracing", - "//pkg/util/tracing/tracingpb", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_dustin_go_humanize//:go-humanize", - "@com_github_gogo_protobuf//types", - "@org_golang_google_grpc//:go_default_library", - ], -) - -go_test( - name = "execinfrapb_test", - size = "small", - srcs = [ - "component_stats_test.go", - "expr_test.go", - "flow_diagram_external_test.go", - "flow_diagram_test.go", - ], - embed = [":execinfrapb"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/leaktest", - "//pkg/util/optional", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "execinfrapb_proto", - srcs = [ - "api.proto", - "component_stats.proto", - "data.proto", - "processors.proto", - "processors_base.proto", - "processors_bulk_io.proto", - "processors_changefeeds.proto", - "processors_sql.proto", - "processors_table_stats.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs/jobspb:jobspb_proto", - "//pkg/roachpb:roachpb_proto", - "//pkg/sql/catalog/catpb:catpb_proto", - "//pkg/sql/catalog/descpb:descpb_proto", - "//pkg/sql/inverted:inverted_proto", - "//pkg/sql/pgwire/pgerror:pgerror_proto", - "//pkg/sql/sessiondatapb:sessiondatapb_proto", - "//pkg/sql/types:types_proto", - "//pkg/util/hlc:hlc_proto", - "//pkg/util/optional:optional_proto", - "//pkg/util/tracing/tracingpb:tracingpb_proto", - "@com_github_cockroachdb_errors//errorspb:errorspb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -go_proto_library( - name = "execinfrapb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/execinfrapb", - proto = ":execinfrapb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs/jobspb", - "//pkg/roachpb", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/inverted", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sessiondatapb", - "//pkg/sql/types", - "//pkg/util/hlc", - "//pkg/util/optional", - "//pkg/util/tracing/tracingpb", - "@com_github_cockroachdb_errors//errorspb", - "@com_github_gogo_protobuf//gogoproto", - ], -) diff --git a/pkg/sql/execstats/BUILD.bazel b/pkg/sql/execstats/BUILD.bazel deleted file mode 100644 index 324e20b5805..00000000000 --- a/pkg/sql/execstats/BUILD.bazel +++ /dev/null @@ -1,47 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "execstats", - srcs = ["traceanalyzer.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/execstats", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/sql/execinfrapb", - "//pkg/util/buildutil", - "//pkg/util/tracing/tracingpb", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "execstats_test", - size = "small", - srcs = [ - "main_test.go", - "traceanalyzer_test.go", - "utils_test.go", - ], - embed = [":execstats"], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/optional", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/faketreeeval/BUILD.bazel b/pkg/sql/faketreeeval/BUILD.bazel deleted file mode 100644 index c6fbb6c7209..00000000000 --- a/pkg/sql/faketreeeval/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "faketreeeval", - srcs = ["evalctx.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/faketreeeval", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/security", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/pgwire/pgnotice", - "//pkg/sql/privilege", - "//pkg/sql/roleoption", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/types", - "//pkg/util/errorutil/unimplemented", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - ], -) diff --git a/pkg/sql/flowinfra/BUILD.bazel b/pkg/sql/flowinfra/BUILD.bazel deleted file mode 100644 index 01e47711669..00000000000 --- a/pkg/sql/flowinfra/BUILD.bazel +++ /dev/null @@ -1,116 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "flowinfra", - srcs = [ - "flow.go", - "flow_registry.go", - "flow_scheduler.go", - "inbound.go", - "outbox.go", - "stream_decoder.go", - "stream_encoder.go", - "testing_knobs.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/flowinfra", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/sqltelemetry", - "//pkg/sql/types", - "//pkg/util/admission", - "//pkg/util/cancelchecker", - "//pkg/util/contextutil", - "//pkg/util/log", - "//pkg/util/optional", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//proto", - "@io_opentelemetry_go_otel//attribute", - ], -) - -go_test( - name = "flowinfra_test", - size = "medium", - srcs = [ - "cluster_test.go", - "dep_test.go", - "flow_registry_test.go", - "flow_scheduler_test.go", - "flow_test.go", - "main_test.go", - "outbox_test.go", - "server_test.go", - "stream_data_test.go", - "utils_test.go", - ], - embed = [":flowinfra"], - tags = ["no-remote"], - deps = [ - "//pkg/base", - "//pkg/ccl/kvccl/kvtenantccl", - "//pkg/gossip", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/distsql", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/randgen", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sqlstats", - "//pkg/sql/tests", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/buildutil", - "//pkg/testutils/distsqlutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/cancelchecker", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/gcjob/BUILD.bazel b/pkg/sql/gcjob/BUILD.bazel deleted file mode 100644 index 15b13a431c7..00000000000 --- a/pkg/sql/gcjob/BUILD.bazel +++ /dev/null @@ -1,82 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "gcjob", - srcs = [ - "descriptor_utils.go", - "gc_job.go", - "gc_job_utils.go", - "index_garbage_collection.go", - "refresh_statuses.go", - "table_garbage_collection.go", - "tenant_garbage_collection.go", - "testutils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/gcjob", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/kvcoord", - "//pkg/kv/kvserver/protectedts", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/spanconfig", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "gcjob_test", - size = "small", - srcs = [ - "gc_job_test.go", - "gc_protected_timestamp_test.go", - "main_test.go", - ], - embed = [":gcjob"], - deps = [ - "//pkg/base", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/protectedts", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/spanconfig", - "//pkg/sql", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/gcjob/gcjobnotifier/BUILD.bazel b/pkg/sql/gcjob/gcjobnotifier/BUILD.bazel deleted file mode 100644 index 70fdab26f8b..00000000000 --- a/pkg/sql/gcjob/gcjobnotifier/BUILD.bazel +++ /dev/null @@ -1,38 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "gcjobnotifier", - srcs = ["notifier.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/gcjob/gcjobnotifier", - visibility = ["//visibility:public"], - deps = [ - "//pkg/config", - "//pkg/gossip", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/util/log/logcrash", - "//pkg/util/stop", - "//pkg/util/syncutil", - ], -) - -go_test( - name = "gcjobnotifier_test", - size = "small", - srcs = ["notifier_test.go"], - embed = [":gcjobnotifier"], - deps = [ - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/sql/catalog/descpb", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/stop", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/gcjob_test/BUILD.bazel b/pkg/sql/gcjob_test/BUILD.bazel deleted file mode 100644 index 62cea74e203..00000000000 --- a/pkg/sql/gcjob_test/BUILD.bazel +++ /dev/null @@ -1,48 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_test") - -go_test( - name = "gcjob_test_test", - size = "medium", - srcs = [ - "gc_job_test.go", - "main_test.go", - ], - deps = [ - "//pkg/base", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/gcjob", - "//pkg/sql/gcjob/gcjobnotifier", - "//pkg/sql/tests", - "//pkg/testutils", - "//pkg/testutils/jobutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/idxusage/BUILD.bazel b/pkg/sql/idxusage/BUILD.bazel deleted file mode 100644 index 117c5a068b3..00000000000 --- a/pkg/sql/idxusage/BUILD.bazel +++ /dev/null @@ -1,36 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "idxusage", - srcs = [ - "cluster_settings.go", - "index_usage_stats_controller.go", - "local_idx_usage_stats.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/idxusage", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/server/serverpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "idxusage_test", - srcs = ["local_index_usage_stats_test.go"], - embed = [":idxusage"], - deps = [ - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/timeutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/importer/BUILD.bazel b/pkg/sql/importer/BUILD.bazel deleted file mode 100644 index ef3fe705e9d..00000000000 --- a/pkg/sql/importer/BUILD.bazel +++ /dev/null @@ -1,242 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -filegroup( - name = "testdata", - srcs = glob(["testdata/**"]), - visibility = ["//pkg/ccl/importerccl:__subpackages__"], -) - -go_library( - name = "importer", - srcs = [ - "exportcsv.go", - "exportparquet.go", - "import_job.go", - "import_planning.go", - "import_processor.go", - "import_processor_planning.go", - "import_table_creation.go", - "import_type_resolver.go", - "read_import_avro.go", - "read_import_base.go", - "read_import_csv.go", - "read_import_mysql.go", - "read_import_mysqlout.go", - "read_import_pgcopy.go", - "read_import_pgdump.go", - "read_import_workload.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/importer", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/cloud", - "//pkg/clusterversion", - "//pkg/col/coldata", - "//pkg/featureflag", - "//pkg/geo", - "//pkg/geo/geopb", - "//pkg/jobs", - "//pkg/jobs/joberror", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/kv/kvserver/protectedts", - "//pkg/roachpb", - "//pkg/security", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descidgen", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/ingesting", - "//pkg/sql/catalog/resolver", - "//pkg/sql/catalog/rewrite", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/schemaexpr", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/faketreeeval", - "//pkg/sql/gcjob", - "//pkg/sql/lexbase", - "//pkg/sql/opt/memo", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/pgwire/pgnotice", - "//pkg/sql/physicalplan", - "//pkg/sql/privilege", - "//pkg/sql/row", - "//pkg/sql/rowenc", - "//pkg/sql/rowexec", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/catid", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqltelemetry", - "//pkg/sql/stats", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/bitarray", - "//pkg/util/bufalloc", - "//pkg/util/ctxgroup", - "//pkg/util/duration", - "//pkg/util/encoding/csv", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/hlc", - "//pkg/util/humanizeutil", - "//pkg/util/ioctx", - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/protoutil", - "//pkg/util/retry", - "//pkg/util/syncutil", - "//pkg/util/timeofday", - "//pkg/util/timeutil", - "//pkg/util/timeutil/pgdate", - "//pkg/util/tracing", - "//pkg/util/uuid", - "//pkg/workload", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_fraugster_parquet_go//:parquet-go", - "@com_github_fraugster_parquet_go//parquet", - "@com_github_fraugster_parquet_go//parquetschema", - "@com_github_lib_pq//oid", - "@com_github_linkedin_goavro_v2//:goavro", - "@io_vitess_vitess//go/sqltypes", - "@io_vitess_vitess//go/vt/sqlparser", - ], -) - -go_test( - name = "importer_test", - size = "large", - srcs = [ - "bench_test.go", - "client_import_test.go", - "csv_internal_test.go", - "csv_testdata_helpers_test.go", - "exportcsv_test.go", - "exportparquet_test.go", - "import_csv_mark_redaction_test.go", - "import_into_test.go", - "import_processor_test.go", - "import_stmt_test.go", - "importer_upgrade_test.go", - "main_test.go", - "mysql_testdata_helpers_test.go", - "pg_testdata_helpers_test.go", - "read_import_avro_logical_test.go", - "read_import_avro_test.go", - "read_import_base_test.go", - "read_import_mysql_test.go", - "read_import_pgdump_test.go", - "testutils_test.go", - ], - data = glob(["testdata/**"]) + [ - "@cockroach//c-deps:libgeos", - ], - embed = [":importer"], - # It's a large test, so use 16 shards to run test cases. - # See https://docs.bazel.build/versions/master/be/common-definitions.html#test.shard_count - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/blobs", - "//pkg/cloud", - "//pkg/cloud/impl:cloudimpl", - "//pkg/cloud/nodelocal", - "//pkg/cloud/userfile", - "//pkg/clusterversion", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/jobs/jobstest", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catformat", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/distsql", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/gcjob", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/randgen", - "//pkg/sql/row", - "//pkg/sql/rowenc", - "//pkg/sql/rowexec", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/stats", - "//pkg/sql/tests", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/jobutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/ctxgroup", - "//pkg/util/encoding/csv", - "//pkg/util/envutil", - "//pkg/util/hlc", - "//pkg/util/ioctx", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/retry", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/timeutil/pgdate", - "//pkg/workload", - "//pkg/workload/bank", - "//pkg/workload/tpcc", - "//pkg/workload/workloadsql", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_fraugster_parquet_go//:parquet-go", - "@com_github_fraugster_parquet_go//parquet", - "@com_github_go_sql_driver_mysql//:mysql", - "@com_github_gogo_protobuf//proto", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_kr_pretty//:pretty", - "@com_github_lib_pq//:pq", - "@com_github_linkedin_goavro_v2//:goavro", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@io_vitess_vitess//go/vt/sqlparser", - ], -) diff --git a/pkg/sql/inverted/BUILD.bazel b/pkg/sql/inverted/BUILD.bazel deleted file mode 100644 index 82793278e4d..00000000000 --- a/pkg/sql/inverted/BUILD.bazel +++ /dev/null @@ -1,54 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "inverted", - srcs = ["expression.go"], - embed = [":inverted_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/inverted", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keysbase", - "//pkg/util/treeprinter", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "inverted_test", - size = "small", - srcs = [ - "dep_test.go", - "expression_test.go", - ], - data = glob(["testdata/**"]), - embed = [":inverted"], - deps = [ - "//pkg/testutils", - "//pkg/testutils/buildutil", - "//pkg/util/encoding", - "//pkg/util/leaktest", - "//pkg/util/treeprinter", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_gogo_protobuf//proto", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "inverted_proto", - srcs = ["span_expression.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "inverted_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/inverted", - proto = ":inverted_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) diff --git a/pkg/sql/kvstreamer/BUILD.bazel b/pkg/sql/kvstreamer/BUILD.bazel deleted file mode 100644 index e58d7bf9b8e..00000000000 --- a/pkg/sql/kvstreamer/BUILD.bazel +++ /dev/null @@ -1,75 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "kvstreamer", - srcs = [ - "avg_response_estimator.go", - "budget.go", - "requests_provider.go", - "results_buffer.go", - "streamer.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/kvstreamer", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/kvcoord", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/diskmap", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/rowcontainer", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/admission", - "//pkg/util/buildutil", - "//pkg/util/hlc", - "//pkg/util/mon", - "//pkg/util/quotapool", - "//pkg/util/stop", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "kvstreamer_test", - srcs = [ - "avg_response_estimator_test.go", - "large_keys_test.go", - "main_test.go", - "requests_provider_test.go", - "results_buffer_test.go", - "streamer_test.go", - ], - embed = [":kvstreamer"], - deps = [ - "//pkg/base", - "//pkg/kv", - "//pkg/kv/kvclient/kvcoord", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/storage", - "//pkg/testutils/serverutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/randutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_dustin_go_humanize//:go-humanize", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/lex/BUILD.bazel b/pkg/sql/lex/BUILD.bazel deleted file mode 100644 index 25b7b0463f4..00000000000 --- a/pkg/sql/lex/BUILD.bazel +++ /dev/null @@ -1,44 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "lex", - srcs = ["encode.go"], - embed = [":lex_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/lex", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "@com_github_cockroachdb_errors//:errors", - "@org_golang_x_text//language", - ], -) - -go_test( - name = "lex_test", - srcs = [ - "dep_test.go", - "encode_test.go", - ], - embed = [":lex"], - deps = ["//pkg/testutils/buildutil"], -) - -proto_library( - name = "lex_proto", - srcs = ["encode.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "lex_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/lex", - proto = ":lex_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) diff --git a/pkg/sql/lexbase/BUILD.bazel b/pkg/sql/lexbase/BUILD.bazel deleted file mode 100644 index c92a974f9f5..00000000000 --- a/pkg/sql/lexbase/BUILD.bazel +++ /dev/null @@ -1,88 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "lexbase", - srcs = [ - "encode.go", - "experimental_keywords.go", - "normalize.go", - "predicates.go", - ":gen-keywords", # keep - ":gen-reserved-keywords", # keep - ":gen-tokens", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/lexbase", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/stringencoding", - "@org_golang_x_text//unicode/norm", - ], -) - -go_test( - name = "lexbase_test", - size = "small", - srcs = ["encode_test.go"], - deps = [ - ":lexbase", - "//pkg/sql/parser", - ], -) - -# Define the target to auto-generate our list of keywords from the grammar file. -genrule( - name = "gen-keywords", - srcs = [ - "//pkg/sql/parser:sql.y", - ], - outs = ["keywords.go"], - cmd = """ - $(location //pkg/sql/lexbase/allkeywords) < $(location //pkg/sql/parser:sql.y) > $@ - """, - exec_tools = [ - "//pkg/sql/lexbase/allkeywords", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -# Define the target to auto-generate a list of tokens from the grammar file. -genrule( - name = "gen-tokens", - outs = ["tokens.go"], - cmd = """ - (echo "// Code generated by make. DO NOT EDIT."; \ - echo "// GENERATED FILE DO NOT EDIT"; \ - echo; \ - echo "package lexbase"; \ - echo; \ - grep '^const [A-Z][_A-Z0-9]* ' $(location //pkg/sql/parser:sql-goyacc)) > $@ - """, - exec_tools = [ - "//pkg/sql/parser:sql-goyacc", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -# Define the target to auto-generate the list of reserved keywords from the -# grammar file. -genrule( - name = "gen-reserved-keywords", - srcs = [ - "//pkg/sql/parser:sql.y", - "//pkg/sql/parser:reserved_keywords.awk", - ], - outs = ["reserved_keywords.go"], - cmd = """ - awk -f $(location //pkg/sql/parser:reserved_keywords.awk) < $(location //pkg/sql/parser:sql.y) > $@ - """, - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/sql/lexbase/allkeywords/BUILD.bazel b/pkg/sql/lexbase/allkeywords/BUILD.bazel deleted file mode 100644 index fbbb770d473..00000000000 --- a/pkg/sql/lexbase/allkeywords/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "allkeywords_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/lexbase/allkeywords", - visibility = ["//visibility:private"], -) - -go_binary( - name = "allkeywords", - embed = [":allkeywords_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/sql/logictest/BUILD.bazel b/pkg/sql/logictest/BUILD.bazel deleted file mode 100644 index 32e55015bf9..00000000000 --- a/pkg/sql/logictest/BUILD.bazel +++ /dev/null @@ -1,99 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -filegroup( - name = "testdata", - srcs = glob(["testdata/**"]), - visibility = ["//pkg/ccl/logictestccl:__subpackages__"], -) - -go_library( - name = "logictest", - srcs = ["logic.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/logictest", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/build", - "//pkg/build/bazel", - "//pkg/clusterversion", - "//pkg/kv/kvserver", - "//pkg/migration", - "//pkg/roachpb", - "//pkg/security", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/execinfra", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/randgen", - "//pkg/sql/schemachanger/corpus", - "//pkg/sql/schemachanger/scplan", - "//pkg/sql/schemachanger/scrun", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sqlstats", - "//pkg/sql/stats", - "//pkg/testutils", - "//pkg/testutils/floatcmp", - "//pkg/testutils/physicalplanutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/util", - "//pkg/util/envutil", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_kr_pretty//:pretty", - "@com_github_lib_pq//:pq", - "@com_github_pmezard_go_difflib//difflib", - "@com_github_stretchr_testify//require", - ], -) - -go_test( - name = "logictest_test", - size = "enormous", - srcs = [ - "logic_test.go", - "main_test.go", - "parallel_test.go", - ], - data = [ - ":testdata", - "@cockroach//c-deps:libgeos", - "@com_github_cockroachdb_sqllogictest//:testfiles", - ], - embed = [":logictest"], - tags = ["cpu:4"], - deps = [ - "//pkg/base", - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/sql/sessiondatapb", - "//pkg/sql/stats", - "//pkg/sql/tests", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/stop", - "@com_github_gogo_protobuf//proto", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) diff --git a/pkg/sql/memsize/BUILD.bazel b/pkg/sql/memsize/BUILD.bazel deleted file mode 100644 index 74b1ef54fc7..00000000000 --- a/pkg/sql/memsize/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "memsize", - srcs = ["constants.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/memsize", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/sem/tree", - "//pkg/util/duration", - "@com_github_cockroachdb_apd_v3//:apd", - ], -) diff --git a/pkg/sql/mutations/BUILD.bazel b/pkg/sql/mutations/BUILD.bazel deleted file mode 100644 index 8b21c010d41..00000000000 --- a/pkg/sql/mutations/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "mutations", - srcs = ["mutations_util.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/mutations", - visibility = ["//visibility:public"], - deps = ["//pkg/util"], -) diff --git a/pkg/sql/oidext/BUILD.bazel b/pkg/sql/oidext/BUILD.bazel deleted file mode 100644 index c33b9ecde09..00000000000 --- a/pkg/sql/oidext/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "oidext", - srcs = ["oidext.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/oidext", - visibility = ["//visibility:public"], - deps = ["@com_github_lib_pq//oid"], -) - -go_test( - name = "oidext_test", - size = "small", - srcs = ["oidext_test.go"], - embed = [":oidext"], - deps = [ - "@com_github_lib_pq//oid", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/opt/BUILD.bazel b/pkg/sql/opt/BUILD.bazel deleted file mode 100644 index 457ddf17779..00000000000 --- a/pkg/sql/opt/BUILD.bazel +++ /dev/null @@ -1,144 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "opt", - srcs = [ - "colset.go", - "column_meta.go", - "constants.go", - "doc.go", - "metadata.go", - "operator.go", - "ordering.go", - "rule_name.go", - "table_meta.go", - "telemetry.go", - "view_dependencies.go", - ":gen-operator", # keep - ":gen-rulenames", # keep - ":gen-rulenames-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt", - visibility = ["//visibility:public"], - deps = [ - "//pkg/server/telemetry", - "//pkg/sql/catalog", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/partition", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/privilege", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/sqltelemetry", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/buildutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_lib_pq//oid", - ], -) - -go_test( - name = "opt_test", - size = "small", - srcs = [ - "colset_test.go", - "metadata_test.go", - "operator_test.go", - "ordering_test.go", - ], - embed = [":opt"], - deps = [ - "//pkg/settings/cluster", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/privilege", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util", - ], -) - -# Define a file group for all the operator definitions. -ops = filegroup( - name = "ops", - srcs = glob(["ops/*.opt"]), - visibility = ["//visibility:public"], -) - -# Define the generator for the operator definitions and functions. -genrule( - name = "gen-operator", - srcs = [":ops"], - outs = ["operator.og.go"], - cmd = """ - $(location //pkg/sql/opt/optgen/cmd/optgen) -out $@ ops $(locations :ops) - """, - exec_tools = ["//pkg/sql/opt/optgen/cmd/optgen"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -# Define the generator for the enumeration of rulenames. -genrule( - name = "gen-rulenames", - srcs = [ - ":ops", - "//pkg/sql/opt/xform:rules", - "//pkg/sql/opt/norm:rules", - ], - outs = ["rule_name.og.go"], - cmd = """ - $(location //pkg/sql/opt/optgen/cmd/optgen) -out $@ rulenames \ - $(locations :ops) $(locations //pkg/sql/opt/norm:rules) $(locations //pkg/sql/opt/xform:rules) - """, - exec_tools = ["//pkg/sql/opt/optgen/cmd/optgen"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -# Define the generator for the stringification of rulenames. -# -# NB: Stringer doesn't support running stringer across files in multiple -# directories. To work around this, we manually copy one of the source files -# over into the location of the other, and run stringer there instead. Ew. -genrule( - name = "gen-rulenames-stringer", - srcs = [ - "rule_name.go", - ":gen-rulenames", - ], - outs = ["rule_name_string.go"], - # golang.org/x/tools executes commands via - # golang.org/x/sys/execabs which requires all PATH lookups to - # result in absolute paths. To account for this, we resolve the - # relative path returned by location to an absolute path. - cmd = """ - cp $(location rule_name.go) `dirname $(location :gen-rulenames)`/rule_name.go - GO_REL_PATH=`dirname $(location @go_sdk//:bin/go)` - GO_ABS_PATH=`cd $$GO_REL_PATH && pwd` - # Set GOPATH to something to workaround https://github.com/golang/go/issues/43938 - env PATH=$$GO_ABS_PATH HOME=$(GENDIR) GOPATH=/nonexist-gopath \ - $(location @com_github_cockroachdb_tools//cmd/stringer:stringer) -output=$@ \ - -type=RuleName `dirname $(location :gen-rulenames)`/rule_name.go $(location :gen-rulenames) - """, - exec_tools = [ - "@go_sdk//:bin/go", - "@com_github_cockroachdb_tools//cmd/stringer", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/sql/opt/bench/BUILD.bazel b/pkg/sql/opt/bench/BUILD.bazel deleted file mode 100644 index d9e615de5a9..00000000000 --- a/pkg/sql/opt/bench/BUILD.bazel +++ /dev/null @@ -1,39 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "bench", - srcs = ["doc.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/bench", - visibility = ["//visibility:public"], -) - -go_test( - name = "bench_test", - size = "medium", - srcs = [ - "bench_test.go", - "fk_test.go", - ], - embed = [":bench"], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql/catalog/schemaexpr", - "//pkg/sql/opt/exec", - "//pkg/sql/opt/exec/execbuilder", - "//pkg/sql/opt/exec/explain", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/optbuilder", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/opt/xform", - "//pkg/sql/parser", - "//pkg/sql/sem/tree", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/util/log", - "//pkg/util/randutil", - ], -) diff --git a/pkg/sql/opt/cat/BUILD.bazel b/pkg/sql/opt/cat/BUILD.bazel deleted file mode 100644 index fbd4f366d2b..00000000000 --- a/pkg/sql/opt/cat/BUILD.bazel +++ /dev/null @@ -1,51 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "cat", - srcs = [ - "catalog.go", - "column.go", - "data_source.go", - "family.go", - "index.go", - "object.go", - "schema.go", - "sequence.go", - "table.go", - "utils.go", - "view.go", - "zone.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/cat", - visibility = ["//visibility:public"], - deps = [ - "//pkg/config/zonepb", - "//pkg/geo/geoindex", - "//pkg/roachpb", - "//pkg/security", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/privilege", - "//pkg/sql/roleoption", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/types", - "//pkg/util/treeprinter", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - ], -) - -go_test( - name = "cat_test", - size = "small", - srcs = ["utils_test.go"], - deps = [ - ":cat", - "//pkg/sql/catalog/descpb", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/sem/tree", - ], -) diff --git a/pkg/sql/opt/constraint/BUILD.bazel b/pkg/sql/opt/constraint/BUILD.bazel deleted file mode 100644 index 28e3c5c419e..00000000000 --- a/pkg/sql/opt/constraint/BUILD.bazel +++ /dev/null @@ -1,52 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "constraint", - srcs = [ - "columns.go", - "constraint.go", - "constraint_set.go", - "key.go", - "key_extension.go", - "locality.go", - "span.go", - "spans.go", - "testutils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/constraint", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/opt", - "//pkg/sql/opt/partition", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "constraint_test", - size = "small", - srcs = [ - "columns_test.go", - "constraint_set_test.go", - "constraint_test.go", - "key_test.go", - "span_test.go", - "spans_test.go", - ], - embed = [":constraint"], - deps = [ - "//pkg/settings/cluster", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/opt", - "//pkg/sql/opt/partition", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/encoding", - "//pkg/util/leaktest", - "//pkg/util/randutil", - ], -) diff --git a/pkg/sql/opt/distribution/BUILD.bazel b/pkg/sql/opt/distribution/BUILD.bazel deleted file mode 100644 index d5a77fa9610..00000000000 --- a/pkg/sql/opt/distribution/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "distribution", - srcs = ["distribution.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/distribution", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/opt/memo", - "//pkg/sql/opt/props/physical", - "//pkg/sql/sem/tree", - "//pkg/util/buildutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "distribution_test", - srcs = ["distribution_test.go"], - embed = [":distribution"], - deps = [ - "//pkg/settings/cluster", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/props", - "//pkg/sql/opt/props/physical", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/opt/testutils/testexpr", - "//pkg/sql/sem/tree", - ], -) diff --git a/pkg/sql/opt/exec/BUILD.bazel b/pkg/sql/opt/exec/BUILD.bazel deleted file mode 100644 index 49377bfca86..00000000000 --- a/pkg/sql/opt/exec/BUILD.bazel +++ /dev/null @@ -1,50 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "exec", - srcs = [ - "factory.go", - ":gen-factory", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/exec", - visibility = ["//visibility:public"], - # Pin the dependencies required in the auto-generated code. - deps = [ - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", # keep - "//pkg/sql/inverted", - "//pkg/sql/opt", # keep - "//pkg/sql/opt/cat", - "//pkg/sql/opt/constraint", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/optional", - ], -) - -# Define a file group for all the factory definitions. -rules = filegroup( - name = "defs", - srcs = ["factory.opt"], - visibility = ["//visibility:public"], -) - -# Define the generator for the expression tree creation and normalization -# functions. -genrule( - name = "gen-factory", - srcs = [ - "//pkg/sql/opt:ops", - ":defs", - ], - outs = ["factory.og.go"], - cmd = """ - $(location //pkg/sql/opt/optgen/cmd/optgen) -out $@ execfactory $(locations :defs) - """, - exec_tools = ["//pkg/sql/opt/optgen/cmd/optgen"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/sql/opt/exec/execbuilder/BUILD.bazel b/pkg/sql/opt/exec/execbuilder/BUILD.bazel deleted file mode 100644 index dc06901baf1..00000000000 --- a/pkg/sql/opt/exec/execbuilder/BUILD.bazel +++ /dev/null @@ -1,85 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "execbuilder", - srcs = [ - "builder.go", - "cascades.go", - "format.go", - "mutation.go", - "relational.go", - "scalar.go", - "statement.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/exec/execbuilder", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/server/telemetry", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/lexbase", - "//pkg/sql/mutations", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/constraint", - "//pkg/sql/opt/exec", - "//pkg/sql/opt/exec/explain", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/ordering", - "//pkg/sql/opt/props", - "//pkg/sql/opt/props/physical", - "//pkg/sql/opt/xform", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/row", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/sem/tree/treewindow", - "//pkg/sql/sqltelemetry", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/buildutil", - "//pkg/util/encoding", - "//pkg/util/errorutil", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/log", - "//pkg/util/timeutil", - "//pkg/util/treeprinter", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "execbuilder_test", - size = "large", - srcs = [ - "builder_test.go", - "main_test.go", - "mutation_test.go", - ], - data = glob(["testdata/**"]) + [ - "@cockroach//c-deps:libgeos", - ], - embed = [":execbuilder"], - shard_count = 16, - deps = [ - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/sql/logictest", - "//pkg/sql/opt", - "//pkg/sql/sem/tree", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/randutil", - ], -) diff --git a/pkg/sql/opt/exec/explain/BUILD.bazel b/pkg/sql/opt/exec/explain/BUILD.bazel deleted file mode 100644 index cc1ec9d83be..00000000000 --- a/pkg/sql/opt/exec/explain/BUILD.bazel +++ /dev/null @@ -1,114 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "explain", - srcs = [ - "emit.go", - "explain_factory.go", - "flags.go", - "output.go", - "plan_gist_factory.go", - "result_columns.go", - ":gen-explain-factory", # keep - ":gen-gist-factory", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/exec/explain", - visibility = ["//visibility:public"], - # Pin the dependencies used in auto-generated code. - deps = [ - "//pkg/geo/geoindex", - "//pkg/roachpb", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/inverted", # keep - "//pkg/sql/opt", # keep - "//pkg/sql/opt/cat", - "//pkg/sql/opt/constraint", - "//pkg/sql/opt/exec", - "//pkg/sql/opt/invertedexpr", # keep - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/errorutil", - "//pkg/util/humanizeutil", - "//pkg/util/timeutil", - "//pkg/util/treeprinter", - "@com_github_cockroachdb_errors//:errors", - "@com_github_dustin_go_humanize//:go-humanize", - ], -) - -go_test( - name = "explain_test", - size = "small", - srcs = [ - "explain_factory_test.go", - "main_test.go", - "output_test.go", - "plan_gist_test.go", - ], - data = glob(["testdata/**"]) + [ - "//pkg/sql/opt/testutils/opttester:testfixtures", - ], - embed = [":explain"], - deps = [ - "//pkg/base", - "//pkg/server", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/execinfra", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/exec", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/testutils/opttester", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/encoding", - "//pkg/util/treeprinter", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) - -# Define a generator for factory explanation code. -genrule( - name = "gen-explain-factory", - srcs = [ - "//pkg/sql/opt:ops", - "//pkg/sql/opt/exec:defs", - ], - outs = ["explain_factory.og.go"], - cmd = """ - $(location //pkg/sql/opt/optgen/cmd/optgen) -out $@ execexplain $(locations //pkg/sql/opt/exec:defs) - """, - exec_tools = ["//pkg/sql/opt/optgen/cmd/optgen"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -# Define a generator for gist factory code. -genrule( - name = "gen-gist-factory", - srcs = [ - "//pkg/sql/opt:ops", - "//pkg/sql/opt/exec:defs", - ], - outs = ["plan_gist_factory.og.go"], - cmd = """ - $(location //pkg/sql/opt/optgen/cmd/optgen) -out $@ execplangist $(locations //pkg/sql/opt/exec:defs) - """, - exec_tools = ["//pkg/sql/opt/optgen/cmd/optgen"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/sql/opt/idxconstraint/BUILD.bazel b/pkg/sql/opt/idxconstraint/BUILD.bazel deleted file mode 100644 index 4febcd5ea1d..00000000000 --- a/pkg/sql/opt/idxconstraint/BUILD.bazel +++ /dev/null @@ -1,41 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "idxconstraint", - srcs = ["index_constraints.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/idxconstraint", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/opt", - "//pkg/sql/opt/constraint", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/partition", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "idxconstraint_test", - size = "small", - srcs = ["index_constraints_test.go"], - data = glob(["testdata/**"]), - deps = [ - ":idxconstraint", - "//pkg/settings/cluster", - "//pkg/sql/opt", - "//pkg/sql/opt/exec/execbuilder", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/optbuilder", - "//pkg/sql/opt/testutils", - "//pkg/sql/parser", - "//pkg/sql/sem/tree", - "//pkg/testutils", - "//pkg/util/leaktest", - "@com_github_cockroachdb_datadriven//:datadriven", - ], -) diff --git a/pkg/sql/opt/indexrec/BUILD.bazel b/pkg/sql/opt/indexrec/BUILD.bazel deleted file mode 100644 index 6c630cf53e5..00000000000 --- a/pkg/sql/opt/indexrec/BUILD.bazel +++ /dev/null @@ -1,48 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "indexrec", - srcs = [ - "hypothetical_index.go", - "hypothetical_table.go", - "index_candidate_set.go", - "index_recommendation_set.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/indexrec", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo/geoindex", - "//pkg/roachpb", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/memo", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "indexrec_test", - srcs = [ - "hypothetical_table_test.go", - "index_candidate_set_test.go", - "indexrec_test.go", - ], - data = glob(["testdata/**"]), - embed = [":indexrec"], - deps = [ - "//pkg/sql/opt/cat", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/testutils/opttester", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/util/leaktest", - "//pkg/util/log", - "@com_github_cockroachdb_datadriven//:datadriven", - ], -) diff --git a/pkg/sql/opt/invertedexpr/BUILD.bazel b/pkg/sql/opt/invertedexpr/BUILD.bazel deleted file mode 100644 index 4e16a7ccf61..00000000000 --- a/pkg/sql/opt/invertedexpr/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "invertedexpr", - srcs = [ - "expression.go", - "geo_expression.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/invertedexpr", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo/geoindex", - "//pkg/roachpb", - "//pkg/sql/inverted", - "//pkg/sql/opt", - "//pkg/sql/rowenc", - "//pkg/sql/types", - "//pkg/util/encoding", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "invertedexpr_test", - size = "small", - srcs = ["geo_expression_test.go"], - data = glob(["testdata/**"]), - embed = [":invertedexpr"], - deps = [ - "//pkg/geo/geoindex", - "//pkg/sql/inverted", - "//pkg/util/leaktest", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/opt/invertedidx/BUILD.bazel b/pkg/sql/opt/invertedidx/BUILD.bazel deleted file mode 100644 index 47d8fd5ad28..00000000000 --- a/pkg/sql/opt/invertedidx/BUILD.bazel +++ /dev/null @@ -1,65 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "invertedidx", - srcs = [ - "geo.go", - "inverted_index_expr.go", - "json_array.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/invertedidx", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo", - "//pkg/geo/geogfn", - "//pkg/geo/geoindex", - "//pkg/geo/geopb", - "//pkg/geo/geoprojbase", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/inverted", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/constraint", - "//pkg/sql/opt/idxconstraint", - "//pkg/sql/opt/invertedexpr", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/props", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/types", - "//pkg/util/encoding", - "//pkg/util/json", - "@com_github_cockroachdb_errors//:errors", - "@com_github_golang_geo//r1", - "@com_github_golang_geo//s1", - "@com_github_golang_geo//s2", - ], -) - -go_test( - name = "invertedidx_test", - size = "small", - srcs = [ - "geo_test.go", - "json_array_test.go", - ], - deps = [ - ":invertedidx", - "//pkg/geo", - "//pkg/geo/geoindex", - "//pkg/geo/geopb", - "//pkg/settings/cluster", - "//pkg/sql/inverted", - "//pkg/sql/opt", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/testutils", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/encoding", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/opt/memo/BUILD.bazel b/pkg/sql/opt/memo/BUILD.bazel deleted file mode 100644 index 307d5d232c7..00000000000 --- a/pkg/sql/opt/memo/BUILD.bazel +++ /dev/null @@ -1,114 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "memo", - srcs = [ - "check_expr.go", - "constraint_builder.go", - "cost.go", - "expr.go", - "expr_format.go", - "expr_name_gen.go", - "extract.go", - "filters_expr_mutate_checker.go", - "group.go", - "interner.go", - "logical_props_builder.go", - "memo.go", - "multiplicity_builder.go", - "statistics_builder.go", - "typing.go", - ":gen-expr", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/memo", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo/geoindex", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/inverted", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/constraint", - "//pkg/sql/opt/invertedexpr", # keep - "//pkg/sql/opt/props", - "//pkg/sql/opt/props/physical", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treewindow", - "//pkg/sql/stats", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/buildutil", - "//pkg/util/duration", - "//pkg/util/encoding", - "//pkg/util/json", - "//pkg/util/log", - "//pkg/util/timeutil/pgdate", - "//pkg/util/treeprinter", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "memo_test", - size = "medium", - srcs = [ - "cost_test.go", - "expr_test.go", - "interner_test.go", - "logical_props_builder_test.go", - "memo_test.go", - "multiplicity_builder_test.go", - "statistics_builder_test.go", - "typing_test.go", - ], - data = glob(["testdata/**"]) + [ - "@cockroach//c-deps:libgeos", - "//pkg/sql/opt/testutils/opttester:testfixtures", - ], - embed = [":memo"], - deps = [ - "//pkg/settings/cluster", - "//pkg/sql/inverted", - "//pkg/sql/opt", - "//pkg/sql/opt/constraint", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/optbuilder", - "//pkg/sql/opt/props", - "//pkg/sql/opt/props/physical", - "//pkg/sql/opt/testutils", - "//pkg/sql/opt/testutils/opttester", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/opt/xform", - "//pkg/sql/parser", - "//pkg/sql/randgen", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treewindow", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/util/duration", - "//pkg/util/leaktest", - "//pkg/util/timeofday", - "//pkg/util/timeutil/pgdate", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@org_golang_x_tools//container/intsets", - ], -) - -# Define a gerator for expression definitions and functions. -genrule( - name = "gen-expr", - srcs = ["//pkg/sql/opt:ops"], - outs = ["expr.og.go"], - cmd = """ - $(location //pkg/sql/opt/optgen/cmd/optgen) -out $@ exprs $(locations //pkg/sql/opt:ops) - """, - exec_tools = ["//pkg/sql/opt/optgen/cmd/optgen"], - visibility = ["//visibility:public"], -) diff --git a/pkg/sql/opt/norm/BUILD.bazel b/pkg/sql/opt/norm/BUILD.bazel deleted file mode 100644 index 9b388cd92e8..00000000000 --- a/pkg/sql/opt/norm/BUILD.bazel +++ /dev/null @@ -1,117 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "norm", - srcs = [ - "bool_funcs.go", - "comp_funcs.go", - "decorrelate_funcs.go", - "factory.go", - "fold_constants_funcs.go", - "general_funcs.go", - "groupby_funcs.go", - "inline_funcs.go", - "join_funcs.go", - "limit_funcs.go", - "list_sorter.go", - "mutation_funcs.go", - "ordering_funcs.go", - "project_builder.go", - "project_funcs.go", - "project_set_funcs.go", - "prune_cols_funcs.go", - "reject_nulls_funcs.go", - "scalar_funcs.go", - "select_funcs.go", - "set_funcs.go", - "window_funcs.go", - "with_funcs.go", - ":gen-factory", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/norm", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/constraint", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/props", - "//pkg/sql/opt/props/physical", - "//pkg/sql/parser", - "//pkg/sql/privilege", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treewindow", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/arith", - "//pkg/util/buildutil", - "//pkg/util/encoding", - "//pkg/util/errorutil", - "//pkg/util/json", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "norm_test", - size = "small", - srcs = [ - "decorrelate_funcs_test.go", - "factory_test.go", - "general_funcs_test.go", - "norm_test.go", - ], - data = glob(["testdata/**"]) + [ - "@cockroach//c-deps:libgeos", - "//pkg/sql/opt/testutils/opttester:testfixtures", - ], - embed = [":norm"], - deps = [ - "//pkg/settings/cluster", - "//pkg/sql/opt", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/testutils", - "//pkg/sql/opt/testutils/opttester", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/opt/xform", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/util/leaktest", - "//pkg/util/log", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -# Define a file group for all the normalization rules. -rules = filegroup( - name = "rules", - srcs = glob(["rules/*.opt"]), - visibility = ["//visibility:public"], -) - -# Define a generator for expression tree creation and normalization functions. -genrule( - name = "gen-factory", - srcs = [ - "//pkg/sql/opt:ops", - ":rules", - ], - outs = ["factory.og.go"], - cmd = """ - $(location //pkg/sql/opt/optgen/cmd/optgen) -out $@ factory $(locations //pkg/sql/opt:ops) $(locations :rules) - """, - exec_tools = ["//pkg/sql/opt/optgen/cmd/optgen"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/sql/opt/opbench/BUILD.bazel b/pkg/sql/opt/opbench/BUILD.bazel deleted file mode 100644 index 16d1bb75b08..00000000000 --- a/pkg/sql/opt/opbench/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "opbench", - srcs = [ - "cat.go", - "config.go", - "spec.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/opbench", - visibility = ["//visibility:public"], - deps = ["//pkg/sql/opt/testutils/testcat"], -) - -go_test( - name = "opbench_test", - size = "small", - srcs = [ - "config_test.go", - "opbench_test.go", - ], - data = glob(["testdata/**"]), - embed = [":opbench"], - deps = [ - "//pkg/sql/opt/memo", - "//pkg/sql/opt/testutils/opttester", - "//pkg/testutils", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/opt/optbuilder/BUILD.bazel b/pkg/sql/opt/optbuilder/BUILD.bazel deleted file mode 100644 index b804194d6b7..00000000000 --- a/pkg/sql/opt/optbuilder/BUILD.bazel +++ /dev/null @@ -1,116 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "optbuilder", - srcs = [ - "alter_range.go", - "alter_table.go", - "arbiter_set.go", - "builder.go", - "create_table.go", - "create_view.go", - "delete.go", - "distinct.go", - "explain.go", - "export.go", - "fk_cascade.go", - "groupby.go", - "insert.go", - "join.go", - "limit.go", - "locking.go", - "misc_statements.go", - "mutation_builder.go", - "mutation_builder_arbiter.go", - "mutation_builder_fk.go", - "mutation_builder_unique.go", - "opaque.go", - "orderby.go", - "partial_index.go", - "project.go", - "scalar.go", - "scope.go", - "scope_column.go", - "select.go", - "show_trace.go", - "sql_fn.go", - "srfs.go", - "subquery.go", - "union.go", - "update.go", - "util.go", - "values.go", - "window.go", - "with.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder", - visibility = ["//visibility:public"], - deps = [ - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/schemaexpr", - "//pkg/sql/catalog/seqexpr", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/delegate", - "//pkg/sql/lex", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/optgen/exprgen", - "//pkg/sql/opt/partialidx", - "//pkg/sql/opt/props", - "//pkg/sql/opt/props/physical", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/privilege", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/sem/tree/treewindow", - "//pkg/sql/sqlerrors", - "//pkg/sql/sqltelemetry", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/errorutil", - "//pkg/util/errorutil/unimplemented", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_lib_pq//oid", - ], -) - -go_test( - name = "optbuilder_test", - size = "small", - srcs = [ - "builder_test.go", - "name_resolution_test.go", - "union_test.go", - ], - data = glob(["testdata/**"]), - embed = [":optbuilder"], - deps = [ - "//pkg/settings/cluster", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/colinfo/colinfotestutils", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/testutils", - "//pkg/sql/opt/testutils/opttester", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/opt/xform", - "//pkg/sql/parser", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/util/leaktest", - "@com_github_cockroachdb_datadriven//:datadriven", - ], -) diff --git a/pkg/sql/opt/optgen/cmd/langgen/BUILD.bazel b/pkg/sql/opt/optgen/cmd/langgen/BUILD.bazel deleted file mode 100644 index 1fd9164b757..00000000000 --- a/pkg/sql/opt/optgen/cmd/langgen/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -# The Optgen language compiler uses itself to generate its AST expressions. -# This is a form of compiler bootstrapping[1], and needs some manual overrides -# to fit into how Bazel wants things to be. We define a second go_library -# target[2], that sources pre-generated og.go files that are already checked -# into the source tree. These files are used to compile langgen, which is then -# used to generate newer revisions of those same generated files. All -# dependents of [3] will need to depend on the og.go files generated in the -# Bazel sandbox, which is achieved by [4]. Conversely, to instruct -# gazelle/Bazel to resolve langgen's import of [3] appropriately, we add the -# resolve directive below. -# -# [1]: https://en.wikipedia.org/wiki/Bootstrapping_(compilers) -# [2]: //pkg/sql/opt/optgen/lang:bootstrap -# [3]: github.com/cockroachdb/cockroach/pkg/sql/opt/optgen/lang -# [4]: See the "gazelle:resolve" directive in the top-level BUILD.bazel file -# -# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/sql/opt/optgen/lang //pkg/sql/opt/optgen/lang:bootstrap - -go_library( - name = "langgen_lib", - srcs = [ - "exprs_gen.go", - "main.go", - "ops_gen.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/optgen/cmd/langgen", - visibility = ["//visibility:private"], - deps = [ - "//pkg/sql/opt/optgen/lang:bootstrap", # keep - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_binary( - name = "langgen", - embed = [":langgen_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/sql/opt/optgen/cmd/optfmt/BUILD.bazel b/pkg/sql/opt/optgen/cmd/optfmt/BUILD.bazel deleted file mode 100644 index 9d75dcfe0a3..00000000000 --- a/pkg/sql/opt/optgen/cmd/optfmt/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "optfmt_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/optgen/cmd/optfmt", - visibility = ["//visibility:private"], - deps = [ - "//pkg/sql/opt/optgen/lang", - "//pkg/util/pretty", - "@com_github_pmezard_go_difflib//difflib", - ], -) - -go_binary( - name = "optfmt", - embed = [":optfmt_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "optfmt_test", - size = "small", - srcs = ["main_test.go"], - data = glob(["testdata/**"]), - embed = [":optfmt_lib"], - deps = [ - "//pkg/testutils", - "@com_github_cockroachdb_datadriven//:datadriven", - ], -) diff --git a/pkg/sql/opt/optgen/cmd/optgen/BUILD.bazel b/pkg/sql/opt/optgen/cmd/optgen/BUILD.bazel deleted file mode 100644 index 2529ad980fb..00000000000 --- a/pkg/sql/opt/optgen/cmd/optgen/BUILD.bazel +++ /dev/null @@ -1,46 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -go_library( - name = "optgen_lib", - srcs = [ - "exec_explain_gen.go", - "exec_factory_gen.go", - "exec_plan_gist_gen.go", - "explorer_gen.go", - "exprs_gen.go", - "factory_gen.go", - "main.go", - "match_writer.go", - "metadata.go", - "ops_gen.go", - "rule_gen.go", - "rule_names_gen.go", - "uniquifier.go", - "utils.go", - "validator.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/optgen/cmd/optgen", - visibility = ["//visibility:private"], - deps = [ - "//pkg/sql/opt/optgen/lang", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_binary( - name = "optgen", - embed = [":optgen_lib"], - visibility = ["//visibility:public"], -) - -go_test( - name = "optgen_test", - size = "small", - srcs = ["main_test.go"], - data = glob(["testdata/**"]), - embed = [":optgen_lib"], - deps = [ - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/opt/optgen/exprgen/BUILD.bazel b/pkg/sql/opt/optgen/exprgen/BUILD.bazel deleted file mode 100644 index 2030ff0ddf8..00000000000 --- a/pkg/sql/opt/optgen/exprgen/BUILD.bazel +++ /dev/null @@ -1,42 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "exprgen", - srcs = [ - "custom_funcs.go", - "expr_gen.go", - "parse_type.go", - "private.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/optgen/exprgen", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/optgen/lang", - "//pkg/sql/opt/ordering", - "//pkg/sql/opt/props", - "//pkg/sql/opt/props/physical", - "//pkg/sql/opt/xform", - "//pkg/sql/parser", - "//pkg/sql/sem/tree", - "//pkg/sql/stats", - "//pkg/sql/types", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "exprgen_test", - size = "small", - srcs = ["expr_gen_test.go"], - data = glob(["testdata/**"]), - deps = [ - "//pkg/sql/opt/testutils/opttester", - "//pkg/sql/opt/testutils/testcat", - "//pkg/testutils", - "@com_github_cockroachdb_datadriven//:datadriven", - ], -) diff --git a/pkg/sql/opt/optgen/lang/BUILD.bazel b/pkg/sql/opt/optgen/lang/BUILD.bazel deleted file mode 100644 index 41b4c4beefc..00000000000 --- a/pkg/sql/opt/optgen/lang/BUILD.bazel +++ /dev/null @@ -1,95 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "lang", - srcs = [ - "compiler.go", - "data_type.go", - "doc.go", - "expr.go", - "parser.go", - "scanner.go", - ":gen-expr", # keep - ":gen-operator", # keep - ":gen-operator-stringer", # keep - ":gen-token-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/optgen/lang", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) - -# Langgen is a bootstrapping compiler. We need to partition the dependencies -# here to avoid cyclical structures. See the BUILD.bazel file for langgen for -# more details. -# -# keep -go_library( - name = "bootstrap", - srcs = [ - "compiler.go", - "data_type.go", - "doc.go", - "expr.go", - "expr.og.go", - "operator.og.go", - "operator_string.go", - "parser.go", - "scanner.go", - "token_string.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/optgen/lang", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) - -go_test( - name = "lang_test", - size = "small", - srcs = [ - "compiler_test.go", - "parser_test.go", - "scanner_test.go", - ], - data = glob(["testdata/**"]), - embed = [":lang"], - deps = [ - "//pkg/testutils", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - ], -) - -# Define the generator for the expression definitions and functions. -genrule( - name = "gen-expr", - srcs = ["lang.opt"], - outs = ["expr-gen.og.go"], - cmd = """ - $(location //pkg/sql/opt/optgen/cmd/langgen) -out $@ exprs $(location lang.opt) - """, - exec_tools = ["//pkg/sql/opt/optgen/cmd/langgen"], -) - -genrule( - name = "gen-operator", - srcs = ["lang.opt"], - outs = ["operator-gen.og.go"], - cmd = """ - $(location //pkg/sql/opt/optgen/cmd/langgen) -out $@ ops $(location lang.opt) - """, - exec_tools = ["//pkg/sql/opt/optgen/cmd/langgen"], -) - -stringer( - name = "gen-token-stringer", - src = "scanner.go", - typ = "Token", -) - -stringer( - name = "gen-operator-stringer", - src = "operator.og.go", - typ = "Operator", -) diff --git a/pkg/sql/opt/ordering/BUILD.bazel b/pkg/sql/opt/ordering/BUILD.bazel deleted file mode 100644 index 7f707706745..00000000000 --- a/pkg/sql/opt/ordering/BUILD.bazel +++ /dev/null @@ -1,68 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "ordering", - srcs = [ - "distribute.go", - "doc.go", - "group_by.go", - "interesting_orderings.go", - "inverted_join.go", - "limit.go", - "lookup_join.go", - "merge_join.go", - "mutation.go", - "ordering.go", - "project.go", - "row_number.go", - "scan.go", - "select.go", - "set.go", - "sort.go", - "statement.go", - "topk.go", - "with.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/ordering", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/props", - "//pkg/sql/sem/tree", - "//pkg/util/buildutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "ordering_test", - size = "small", - srcs = [ - "group_by_test.go", - "inverted_join_test.go", - "lookup_join_test.go", - "ordering_test.go", - "project_test.go", - "row_number_test.go", - "scan_test.go", - ], - embed = [":ordering"], - deps = [ - "//pkg/settings/cluster", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/constraint", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/props", - "//pkg/sql/opt/props/physical", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/opt/testutils/testexpr", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/opt/partialidx/BUILD.bazel b/pkg/sql/opt/partialidx/BUILD.bazel deleted file mode 100644 index d341e09194a..00000000000 --- a/pkg/sql/opt/partialidx/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "partialidx", - srcs = ["implicator.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/partialidx", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/opt", - "//pkg/sql/opt/constraint", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/sem/tree", - "//pkg/util", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "partialidx_test", - size = "small", - srcs = ["implicator_test.go"], - data = glob(["testdata/**"]), - deps = [ - ":partialidx", - "//pkg/settings/cluster", - "//pkg/sql/opt", - "//pkg/sql/opt/exec/execbuilder", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/optbuilder", - "//pkg/sql/opt/props", - "//pkg/sql/opt/testutils", - "//pkg/sql/parser", - "//pkg/sql/sem/tree", - "//pkg/testutils", - "//pkg/util/leaktest", - "@com_github_cockroachdb_datadriven//:datadriven", - ], -) diff --git a/pkg/sql/opt/partition/BUILD.bazel b/pkg/sql/opt/partition/BUILD.bazel deleted file mode 100644 index b0fa9f035a8..00000000000 --- a/pkg/sql/opt/partition/BUILD.bazel +++ /dev/null @@ -1,28 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "partition", - srcs = ["locality.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/partition", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/opt/cat", - "//pkg/sql/sem/tree", - "//pkg/util", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "partition_test", - srcs = ["locality_test.go"], - embed = [":partition"], - deps = [ - "//pkg/settings/cluster", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/leaktest", - ], -) diff --git a/pkg/sql/opt/props/BUILD.bazel b/pkg/sql/opt/props/BUILD.bazel deleted file mode 100644 index 0f46eeef072..00000000000 --- a/pkg/sql/opt/props/BUILD.bazel +++ /dev/null @@ -1,64 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "props", - srcs = [ - "cardinality.go", - "col_stats_map.go", - "func_dep.go", - "histogram.go", - "logical.go", - "multiplicity.go", - "ordering_choice.go", - "selectivity.go", - "statistics.go", - "verify.go", - "volatility.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/props", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/inverted", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/constraint", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/buildutil", - "//pkg/util/encoding", - "//pkg/util/timetz", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_olekukonko_tablewriter//:tablewriter", - ], -) - -go_test( - name = "props_test", - size = "small", - srcs = [ - "cardinality_test.go", - "col_stats_map_test.go", - "func_dep_rand_test.go", - "func_dep_test.go", - "histogram_test.go", - "multiplicity_test.go", - "ordering_choice_test.go", - "selectivity_test.go", - "statistics_test.go", - "volatility_test.go", - ], - embed = [":props"], - deps = [ - "//pkg/settings/cluster", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/constraint", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/randutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/opt/props/physical/BUILD.bazel b/pkg/sql/opt/props/physical/BUILD.bazel deleted file mode 100644 index 18a9199fccc..00000000000 --- a/pkg/sql/opt/props/physical/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "physical", - srcs = [ - "distribution.go", - "provided.go", - "required.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/props/physical", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/constraint", - "//pkg/sql/opt/props", - "//pkg/sql/sem/tree", - ], -) - -go_test( - name = "physical_test", - size = "small", - srcs = [ - "distribution_test.go", - "required_test.go", - ], - embed = [":physical"], - deps = [ - "//pkg/config/zonepb", - "//pkg/roachpb", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/props", - "//pkg/util/leaktest", - "//pkg/util/log", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) diff --git a/pkg/sql/opt/testutils/BUILD.bazel b/pkg/sql/opt/testutils/BUILD.bazel deleted file mode 100644 index 06d3251d966..00000000000 --- a/pkg/sql/opt/testutils/BUILD.bazel +++ /dev/null @@ -1,34 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "testutils", - srcs = [ - "build.go", - "scalar_vars.go", - "utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/testutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/optbuilder", - "//pkg/sql/opt/xform", - "//pkg/sql/parser", - "//pkg/sql/sem/tree", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "testutils_test", - size = "small", - srcs = ["scalar_vars_test.go"], - embed = [":testutils"], - deps = [ - "//pkg/sql/opt", - "@com_github_stretchr_testify//assert", - ], -) diff --git a/pkg/sql/opt/testutils/opttester/BUILD.bazel b/pkg/sql/opt/testutils/opttester/BUILD.bazel deleted file mode 100644 index 70f56f83090..00000000000 --- a/pkg/sql/opt/testutils/opttester/BUILD.bazel +++ /dev/null @@ -1,77 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "opttester", - srcs = [ - "explore_trace.go", - "forcing_opt.go", - "memo_groups.go", - "opt_steps.go", - "opt_tester.go", - "reorder_joins.go", - "stats_tester.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/testutils/opttester", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build/bazel", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/schemaexpr", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/exec", - "//pkg/sql/opt/exec/execbuilder", - "//pkg/sql/opt/indexrec", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/optbuilder", - "//pkg/sql/opt/optgen/exprgen", - "//pkg/sql/opt/ordering", - "//pkg/sql/opt/props/physical", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/opt/xform", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/sql/stats", - "//pkg/testutils/sqlutils", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/timeutil", - "//pkg/util/treeprinter", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_pmezard_go_difflib//difflib", - ], -) - -go_test( - name = "opttester_test", - size = "small", - srcs = ["opt_tester_test.go"], - data = glob(["testdata/**"]), - deps = [ - ":opttester", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/testutils/testcat", - "//pkg/testutils", - "@com_github_cockroachdb_datadriven//:datadriven", - ], -) - -filegroup( - name = "testfixtures", - srcs = glob(["testfixtures/**"]), - visibility = ["//pkg/sql/opt:__subpackages__"], -) diff --git a/pkg/sql/opt/testutils/testcat/BUILD.bazel b/pkg/sql/opt/testutils/testcat/BUILD.bazel deleted file mode 100644 index 5f919d7ad47..00000000000 --- a/pkg/sql/opt/testutils/testcat/BUILD.bazel +++ /dev/null @@ -1,65 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "testcat", - srcs = [ - "alter_table.go", - "create_index.go", - "create_sequence.go", - "create_table.go", - "create_view.go", - "drop_index.go", - "drop_table.go", - "set_zone_config.go", - "table_expr.go", - "test_catalog.go", - "types.go", - "vtable.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/testutils/testcat", - visibility = ["//visibility:public"], - deps = [ - "//pkg/config/zonepb", - "//pkg/geo/geoindex", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/enum", - "//pkg/sql/oidext", - "//pkg/sql/opt/cat", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/privilege", - "//pkg/sql/roleoption", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondatapb", - "//pkg/sql/stats", - "//pkg/sql/types", - "//pkg/sql/vtable", - "//pkg/util", - "//pkg/util/treeprinter", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) - -go_test( - name = "testcat_test", - size = "small", - srcs = ["test_catalog_test.go"], - data = glob(["testdata/**"]), - deps = [ - ":testcat", - "//pkg/sql/opt/testutils/opttester", - "//pkg/testutils", - "//pkg/util/leaktest", - "@com_github_cockroachdb_datadriven//:datadriven", - ], -) diff --git a/pkg/sql/opt/testutils/testexpr/BUILD.bazel b/pkg/sql/opt/testutils/testexpr/BUILD.bazel deleted file mode 100644 index 7c6f1d280a0..00000000000 --- a/pkg/sql/opt/testutils/testexpr/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "testexpr", - srcs = ["test_expr.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/testutils/testexpr", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/opt", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/props", - "//pkg/sql/opt/props/physical", - ], -) diff --git a/pkg/sql/opt/xform/BUILD.bazel b/pkg/sql/opt/xform/BUILD.bazel deleted file mode 100644 index 2e9d385a6c2..00000000000 --- a/pkg/sql/opt/xform/BUILD.bazel +++ /dev/null @@ -1,125 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "xform", - srcs = [ - "coster.go", - "explorer.go", - "general_funcs.go", - "groupby_funcs.go", - "index_scan_builder.go", - "join_funcs.go", - "join_order_builder.go", - "limit_funcs.go", - "memo_format.go", - "optimizer.go", - "physical_props.go", - "placeholder_fast_path.go", - "scan_funcs.go", - "scan_index_iter.go", - "select_funcs.go", - "set_funcs.go", - ":gen-explorer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/xform", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/inverted", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/constraint", - "//pkg/sql/opt/distribution", - "//pkg/sql/opt/idxconstraint", - "//pkg/sql/opt/invertedexpr", - "//pkg/sql/opt/invertedidx", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/ordering", - "//pkg/sql/opt/partialidx", - "//pkg/sql/opt/partition", - "//pkg/sql/opt/props", - "//pkg/sql/opt/props/physical", - "//pkg/sql/rowinfra", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/buildutil", - "//pkg/util/errorutil", - "//pkg/util/log", - "//pkg/util/treeprinter", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@org_golang_x_tools//container/intsets", - ], -) - -go_test( - name = "xform_test", - size = "small", - srcs = [ - "coster_test.go", - "general_funcs_test.go", - "join_funcs_export_test.go", - "join_funcs_test.go", - "join_order_builder_test.go", - "main_test.go", - "optimizer_test.go", - "physical_props_test.go", - ], - data = glob(["testdata/**"]) + [ - "@cockroach//c-deps:libgeos", - "//pkg/sql/opt/testutils/opttester:testfixtures", - ], - embed = [":xform"], - deps = [ - "//pkg/config/zonepb", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/settings/cluster", - "//pkg/sql/opt", - "//pkg/sql/opt/cat", - "//pkg/sql/opt/constraint", - "//pkg/sql/opt/memo", - "//pkg/sql/opt/norm", - "//pkg/sql/opt/partition", - "//pkg/sql/opt/testutils", - "//pkg/sql/opt/testutils/opttester", - "//pkg/sql/opt/testutils/testcat", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "@com_github_cockroachdb_datadriven//:datadriven", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) - -# Define a filegroup for all xform rules. -rules = filegroup( - name = "rules", - srcs = glob(["rules/*.opt"]), - visibility = ["//visibility:public"], -) - -# Define a generator for expression tree exploration rules. -genrule( - name = "gen-explorer", - srcs = [ - "//pkg/sql/opt:ops", - ":rules", - ], - outs = ["explorer.og.go"], - cmd = """ - $(location //pkg/sql/opt/optgen/cmd/optgen) -out $@ explorer $(locations //pkg/sql/opt:ops) $(locations :rules) - """, - exec_tools = ["//pkg/sql/opt/optgen/cmd/optgen"], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/sql/optionalnodeliveness/BUILD.bazel b/pkg/sql/optionalnodeliveness/BUILD.bazel deleted file mode 100644 index f617ea1347d..00000000000 --- a/pkg/sql/optionalnodeliveness/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "optionalnodeliveness", - srcs = ["node_liveness.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/optionalnodeliveness", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/roachpb", - "//pkg/util/errorutil", - ], -) diff --git a/pkg/sql/paramparse/BUILD.bazel b/pkg/sql/paramparse/BUILD.bazel deleted file mode 100644 index 808cea61352..00000000000 --- a/pkg/sql/paramparse/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "paramparse", - srcs = [ - "paramparse.go", - "validation.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/paramparse", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/util/duration", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/parser/BUILD.bazel b/pkg/sql/parser/BUILD.bazel deleted file mode 100644 index a4eb9a486c0..00000000000 --- a/pkg/sql/parser/BUILD.bazel +++ /dev/null @@ -1,152 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "parser", - # We intentionally elide sql.go here (that's done through an exclude - # directive in the top-level BUILD.bazel) and instead list the generation - # that constructs sql.go on the fly. We pin it lest gazelle removes it - # during BUILD file re-generation. - srcs = [ - "help.go", - "lexer.go", - "parse.go", - "scanner.go", - "show_syntax.go", - ":gen-help-messages", # keep - ":sql-goyacc", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/parser", - visibility = ["//visibility:public"], - # We pin some go dependencies that are present in auto-generated code, but - # are not visible to bazel/gazelle when generating BUILD files. - deps = [ - "//pkg/docs", - "//pkg/geo/geopb", # keep - "//pkg/roachpb", # keep - "//pkg/security", # keep - "//pkg/sql/lexbase", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/privilege", # keep - "//pkg/sql/scanner", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", # keep - "//pkg/sql/sem/tree/treecmp", # keep - "//pkg/sql/sem/tree/treewindow", # keep - "//pkg/sql/sessiondata", - "//pkg/sql/types", - "//pkg/util/errorutil/unimplemented", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", # keep - ], -) - -go_test( - name = "parser_test", - size = "small", - srcs = [ - "help_test.go", - "lexer_test.go", - "parse_internal_test.go", - "parse_test.go", - "scanner_test.go", - ":gen-helpmap-test", # keep - ], - data = glob(["testdata/**"]), - embed = [":parser"], - deps = [ - "//pkg/sql/lexbase", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/randgen", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sem/tree/treecmp", - "//pkg/testutils", - "//pkg/testutils/sqlutils", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) - -sh_binary( - name = "sql-gen", - srcs = ["sql-gen.sh"], -) - -# Define the target to auto-generate sql.go from the grammar file. -genrule( - name = "sql-goyacc", - srcs = [ - "sql.y", - "replace_help_rules.awk", - ], - outs = ["sql.go"], - cmd = """ - $(location :sql-gen) $(location sql.y) $(location replace_help_rules.awk) \ - $(location sql.go) $(location @org_golang_x_tools//cmd/goyacc) \ - $(location @com_github_cockroachdb_gostdlib//x/tools/cmd/goimports) - """, - exec_tools = [ - ":sql-gen", - "@com_github_cockroachdb_gostdlib//x/tools/cmd/goimports", - "@org_golang_x_tools//cmd/goyacc", - ], - visibility = ["//visibility:public"], -) - -sh_binary( - name = "help-gen-test", - srcs = ["help_gen_test.sh"], -) - -# Define the target to auto-generate a helpmap test helper file. -genrule( - name = "gen-helpmap-test", - srcs = [ - ":sql-goyacc", - ], - outs = ["helpmap_test.go"], - cmd = """ - $(location :help-gen-test) < $< >$@.tmp - mv -f $@.tmp $@ - """, - exec_tools = [ - ":help-gen-test", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -# Define the target to auto-generate help messages from the grammar file. -genrule( - name = "gen-help-messages", - srcs = [ - ":sql.y", - ":help.awk", - ], - outs = ["help_messages.go"], - cmd = """ - awk -f $(location :help.awk) < $(location :sql.y) > $@ - """, - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -exports_files( - [ - "reserved_keywords.awk", - "sql.y", - "help.awk", - ], - visibility = ["//visibility:public"], -) diff --git a/pkg/sql/parser/fuzz/BUILD.bazel b/pkg/sql/parser/fuzz/BUILD.bazel deleted file mode 100644 index 2a50e688b15..00000000000 --- a/pkg/sql/parser/fuzz/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "fuzz", - srcs = ["empty.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/parser/fuzz", - visibility = ["//visibility:public"], -) diff --git a/pkg/sql/pgwire/BUILD.bazel b/pkg/sql/pgwire/BUILD.bazel deleted file mode 100644 index cb6b46ed7e6..00000000000 --- a/pkg/sql/pgwire/BUILD.bazel +++ /dev/null @@ -1,156 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "pgwire", - srcs = [ - "auth.go", - "auth_behaviors.go", - "auth_methods.go", - "authenticator.go", - "command_result.go", - "conn.go", - "hba_conf.go", - "ident_map_conf.go", - "role_mapper.go", - "server.go", - "types.go", - "write_buffer.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/pgwire", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/col/coldata", - "//pkg/security", - "//pkg/security/sessionrevival", - "//pkg/server/serverpb", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/lex", - "//pkg/sql/parser", - "//pkg/sql/pgwire/hba", - "//pkg/sql/pgwire/identmap", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/pgwire/pgnotice", - "//pkg/sql/pgwire/pgwirebase", - "//pkg/sql/pgwire/pgwirecancel", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sqltelemetry", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/contextutil", - "//pkg/util/duration", - "//pkg/util/envutil", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/humanizeutil", - "//pkg/util/ipaddr", - "//pkg/util/json", - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/netutil", - "//pkg/util/ring", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeofday", - "//pkg/util/timetz", - "//pkg/util/timeutil", - "//pkg/util/timeutil/pgdate", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_lib_pq//oid", - "@com_github_xdg_go_scram//:scram", - "@io_opentelemetry_go_otel//attribute", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//status", - ], -) - -go_test( - name = "pgwire_test", - size = "medium", - srcs = [ - "auth_test.go", - "conn_test.go", - "encoding_test.go", - "helpers_test.go", - "main_test.go", - "pgtest_test.go", - "pgwire_test.go", - "types_test.go", - ], - data = glob(["testdata/**"]), - embed = [":pgwire"], - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/cloud/impl:cloudimpl", - "//pkg/col/coldata", - "//pkg/col/coldataext", - "//pkg/col/coldatatestutils", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/server/telemetry", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/colconv", - "//pkg/sql/lex", - "//pkg/sql/parser", - "//pkg/sql/pgwire/hba", - "//pkg/sql/pgwire/identmap", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/pgwire/pgwirebase", - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sqlutil", - "//pkg/sql/tests", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/pgtest", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/duration", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/log/channel", - "//pkg/util/log/logconfig", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//stdstrings", - "@com_github_cockroachdb_redact//:redact", - "@com_github_jackc_pgconn//:pgconn", - "@com_github_jackc_pgproto3_v2//:pgproto3", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_lib_pq//:pq", - "@com_github_lib_pq//oid", - "@com_github_stretchr_testify//require", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/sql/pgwire/hba/BUILD.bazel b/pkg/sql/pgwire/hba/BUILD.bazel deleted file mode 100644 index bfa0f397f02..00000000000 --- a/pkg/sql/pgwire/hba/BUILD.bazel +++ /dev/null @@ -1,37 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "hba", - srcs = [ - "hba.go", - "parser.go", - "scanner.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/pgwire/hba", - visibility = ["//visibility:public"], - deps = [ - "//pkg/security", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/util/errorutil/unimplemented", - "@com_github_cockroachdb_errors//:errors", - "@com_github_olekukonko_tablewriter//:tablewriter", - ], -) - -go_test( - name = "hba_test", - size = "small", - srcs = [ - "hba_test.go", - "scanner_test.go", - ], - data = glob(["testdata/**"]), - embed = [":hba"], - deps = [ - "//pkg/testutils", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_kr_pretty//:pretty", - ], -) diff --git a/pkg/sql/pgwire/identmap/BUILD.bazel b/pkg/sql/pgwire/identmap/BUILD.bazel deleted file mode 100644 index 248a7c55082..00000000000 --- a/pkg/sql/pgwire/identmap/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "identmap", - srcs = ["ident_map.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/pgwire/identmap", - visibility = ["//visibility:public"], - deps = [ - "//pkg/security", - "@com_github_cockroachdb_errors//:errors", - "@com_github_olekukonko_tablewriter//:tablewriter", - ], -) - -go_test( - name = "identmap_test", - srcs = ["ident_map_test.go"], - embed = [":identmap"], - deps = ["@com_github_stretchr_testify//assert"], -) diff --git a/pkg/sql/pgwire/pgcode/BUILD.bazel b/pkg/sql/pgwire/pgcode/BUILD.bazel deleted file mode 100644 index c778edc2b19..00000000000 --- a/pkg/sql/pgwire/pgcode/BUILD.bazel +++ /dev/null @@ -1,11 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "pgcode", - srcs = [ - "codes.go", - "doc.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/pgwire/pgcode", - visibility = ["//visibility:public"], -) diff --git a/pkg/sql/pgwire/pgerror/BUILD.bazel b/pkg/sql/pgwire/pgerror/BUILD.bazel deleted file mode 100644 index 4a2c689988d..00000000000 --- a/pkg/sql/pgwire/pgerror/BUILD.bazel +++ /dev/null @@ -1,71 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "pgerror", - srcs = [ - "constraint_name.go", - "errors.go", - "flatten.go", - "internal_errors.go", - "pgcode.go", - "severity.go", - "with_candidate_code.go", - "wrap.go", - ], - embed = [":pgerror_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/pgwire/pgerror", - visibility = ["//visibility:public"], - deps = [ - "//pkg/docs", - "//pkg/sql/pgwire/pgcode", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//errorspb", - "@com_github_gogo_protobuf//proto", - "@com_github_lib_pq//:pq", - ], -) - -go_test( - name = "pgerror_test", - size = "small", - srcs = [ - "constraint_name_test.go", - "errors_test.go", - "flatten_test.go", - "internal_errors_test.go", - "main_test.go", - "pgcode_test.go", - "severity_test.go", - "wrap_test.go", - ], - embed = [":pgerror"], - deps = [ - "//pkg/roachpb", - "//pkg/sql/pgwire/pgcode", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//testutils", - "@com_github_kr_pretty//:pretty", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "pgerror_proto", - srcs = ["errors.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], -) - -go_proto_library( - name = "pgerror_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/pgwire/pgerror", - proto = ":pgerror_proto", - visibility = ["//visibility:public"], -) diff --git a/pkg/sql/pgwire/pgnotice/BUILD.bazel b/pkg/sql/pgwire/pgnotice/BUILD.bazel deleted file mode 100644 index eb1a2223096..00000000000 --- a/pkg/sql/pgwire/pgnotice/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "pgnotice", - srcs = [ - "display_severity.go", - "pgnotice.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/pgwire/pgnotice", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/pgwire/pgwirebase/BUILD.bazel b/pkg/sql/pgwire/pgwirebase/BUILD.bazel deleted file mode 100644 index fefabee3d6f..00000000000 --- a/pkg/sql/pgwire/pgwirebase/BUILD.bazel +++ /dev/null @@ -1,79 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "pgwirebase", - srcs = [ - "conn.go", - "doc.go", - "encoding.go", - "msg.go", - "too_big_error.go", - ":gen-clientmessagetype-stringer", # keep - ":gen-formatcode-stringer", # keep - ":gen-pgnumericsign-stringer", # keep - ":gen-preparetype-stringer", # keep - ":gen-servererrfieldtype-stringer", # keep - ":gen-servermessagetype-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/pgwire/pgwirebase", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo", - "//pkg/settings", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/lex", - "//pkg/sql/oidext", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/bitarray", - "//pkg/util/duration", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/ipaddr", - "//pkg/util/timeofday", - "//pkg/util/timeutil/pgdate", - "//pkg/util/uint128", - "@com_github_cockroachdb_errors//:errors", - "@com_github_dustin_go_humanize//:go-humanize", - "@com_github_jackc_pgtype//:pgtype", - "@com_github_lib_pq//oid", - ], -) - -stringer( - name = "gen-pgnumericsign-stringer", - src = "encoding.go", - typ = "PGNumericSign", -) - -stringer( - name = "gen-formatcode-stringer", - src = "encoding.go", - typ = "FormatCode", -) - -stringer( - name = "gen-clientmessagetype-stringer", - src = "msg.go", - typ = "ClientMessageType", -) - -stringer( - name = "gen-servermessagetype-stringer", - src = "msg.go", - typ = "ServerMessageType", -) - -stringer( - name = "gen-servererrfieldtype-stringer", - src = "msg.go", - typ = "ServerErrFieldType", -) - -stringer( - name = "gen-preparetype-stringer", - src = "msg.go", - typ = "PrepareType", -) diff --git a/pkg/sql/pgwire/pgwirecancel/BUILD.bazel b/pkg/sql/pgwire/pgwirecancel/BUILD.bazel deleted file mode 100644 index 9cb589e2d53..00000000000 --- a/pkg/sql/pgwire/pgwirecancel/BUILD.bazel +++ /dev/null @@ -1,42 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "pgwirecancel", - srcs = [ - "backend_key_data.go", - "cancel_semaphore.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/pgwire/pgwirecancel", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/util/quotapool", - ], -) - -go_test( - name = "pgwirecancel_test", - srcs = [ - "backend_key_data_test.go", - "cancel_test.go", - "main_test.go", - ], - embed = [":pgwirecancel"], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/ctxgroup", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/physicalplan/BUILD.bazel b/pkg/sql/physicalplan/BUILD.bazel deleted file mode 100644 index b165871220a..00000000000 --- a/pkg/sql/physicalplan/BUILD.bazel +++ /dev/null @@ -1,86 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "physicalplan", - srcs = [ - "aggregator_funcs.go", - "expression.go", - "fake_span_resolver.go", - "physical_plan.go", - "span_resolver.go", - "specs.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/physicalplan", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/kvcoord", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/settings/cluster", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/physicalplan/replicaoracle", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/log", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "physicalplan_test", - size = "large", - srcs = [ - "aggregator_funcs_test.go", - "fake_span_resolver_test.go", - "main_test.go", - "physical_plan_test.go", - "span_resolver_internal_test.go", - "span_resolver_test.go", - ], - embed = [":physicalplan"], - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/gossip", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/kvcoord", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/distsql", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/physicalplan/replicaoracle", - "//pkg/sql/randgen", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/distsqlutils", - "//pkg/testutils/physicalplanutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/physicalplan/replicaoracle/BUILD.bazel b/pkg/sql/physicalplan/replicaoracle/BUILD.bazel deleted file mode 100644 index caca5aea85c..00000000000 --- a/pkg/sql/physicalplan/replicaoracle/BUILD.bazel +++ /dev/null @@ -1,36 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "replicaoracle", - srcs = ["oracle.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/physicalplan/replicaoracle", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/kv/kvclient/kvcoord", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/settings/cluster", - "//pkg/sql/sqlerrors", - "//pkg/util", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "replicaoracle_test", - size = "small", - srcs = ["oracle_test.go"], - embed = [":replicaoracle"], - deps = [ - "//pkg/config/zonepb", - "//pkg/gossip", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/metric", - "//pkg/util/stop", - ], -) diff --git a/pkg/sql/privilege/BUILD.bazel b/pkg/sql/privilege/BUILD.bazel deleted file mode 100644 index 95a1e6cd5e6..00000000000 --- a/pkg/sql/privilege/BUILD.bazel +++ /dev/null @@ -1,37 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "privilege", - srcs = [ - "privilege.go", - ":gen-kind-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/privilege", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "privilege_test", - size = "small", - srcs = [ - "main_test.go", - "privilege_test.go", - ], - deps = [ - ":privilege", - "//pkg/util/leaktest", - "//pkg/util/log", - ], -) - -stringer( - name = "gen-kind-stringer", - src = "privilege.go", - typ = "Kind", -) diff --git a/pkg/sql/protoreflect/BUILD.bazel b/pkg/sql/protoreflect/BUILD.bazel deleted file mode 100644 index 3b4a017980f..00000000000 --- a/pkg/sql/protoreflect/BUILD.bazel +++ /dev/null @@ -1,45 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "protoreflect", - srcs = [ - "redact.go", - "utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/protoreflect", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/json", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//jsonpb", - "@com_github_gogo_protobuf//proto", - ], -) - -go_test( - name = "protoreflect_test", - size = "small", - srcs = [ - "main_test.go", - "utils_test.go", - ], - embed = [":protoreflect"], - deps = [ - "//pkg/geo/geoindex", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/sql/catalog/descpb", - "//pkg/sql/protoreflect/test", - "//pkg/sql/types", - "//pkg/util/json", - "//pkg/util/leaktest", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "//pkg/util/tracing/tracingpb", - "@com_github_gogo_protobuf//jsonpb", - "@com_github_gogo_protobuf//types", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/protoreflect/test/BUILD.bazel b/pkg/sql/protoreflect/test/BUILD.bazel deleted file mode 100644 index a22a4cedf7a..00000000000 --- a/pkg/sql/protoreflect/test/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -proto_library( - name = "protoreflecttest_proto", - srcs = ["test.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], -) - -go_proto_library( - name = "protoreflecttest_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/protoreflect/test", - proto = ":protoreflecttest_proto", - visibility = ["//visibility:public"], -) - -go_library( - name = "test", - srcs = ["wrap.go"], - embed = [":protoreflecttest_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/protoreflect/test", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/protoreflect", - "@com_github_gogo_protobuf//jsonpb", - ], -) diff --git a/pkg/sql/querycache/BUILD.bazel b/pkg/sql/querycache/BUILD.bazel deleted file mode 100644 index 5de6cfd9170..00000000000 --- a/pkg/sql/querycache/BUILD.bazel +++ /dev/null @@ -1,33 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "querycache", - srcs = [ - "prepared_statement.go", - "query_cache.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/querycache", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/catalog/colinfo", - "//pkg/sql/opt/memo", - "//pkg/sql/parser", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - ], -) - -go_test( - name = "querycache_test", - size = "small", - srcs = ["query_cache_test.go"], - embed = [":querycache"], - deps = [ - "//pkg/sql/opt/memo", - "//pkg/util/randutil", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/randgen/BUILD.bazel b/pkg/sql/randgen/BUILD.bazel deleted file mode 100644 index 6af9af39891..00000000000 --- a/pkg/sql/randgen/BUILD.bazel +++ /dev/null @@ -1,76 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "randgen", - srcs = [ - "datum.go", - "doc.go", - "encdatum.go", - "expr.go", - "mutator.go", - "schema.go", - "string.go", - "type.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/randgen", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo", - "//pkg/geo/geogen", - "//pkg/geo/geoindex", - "//pkg/geo/geopb", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/sql/catalog", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/parser", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/stats", - "//pkg/sql/types", - "//pkg/util/bitarray", - "//pkg/util/duration", - "//pkg/util/encoding", - "//pkg/util/ipaddr", - "//pkg/util/json", - "//pkg/util/randutil", - "//pkg/util/timeofday", - "//pkg/util/timeutil", - "//pkg/util/timeutil/pgdate", - "//pkg/util/uint128", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - ], -) - -go_test( - name = "randgen_test", - srcs = [ - "main_test.go", - "mutator_test.go", - "schema_test.go", - "types_test.go", - ], - embed = [":randgen"], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/roleoption/BUILD.bazel b/pkg/sql/roleoption/BUILD.bazel deleted file mode 100644 index cb0a77ce603..00000000000 --- a/pkg/sql/roleoption/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "roleoption", - srcs = [ - "role_option.go", - ":gen-option-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/roleoption", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sqltelemetry", - "@com_github_cockroachdb_errors//:errors", - ], -) - -stringer( - name = "gen-option-stringer", - src = "role_option.go", - additional_args = ["-linecomment"], - typ = "Option", -) diff --git a/pkg/sql/row/BUILD.bazel b/pkg/sql/row/BUILD.bazel deleted file mode 100644 index ac2fff239ac..00000000000 --- a/pkg/sql/row/BUILD.bazel +++ /dev/null @@ -1,125 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "row", - srcs = [ - "deleter.go", - "errors.go", - "expr_walker.go", - "fetcher.go", - "fk_spans.go", - "helper.go", - "inserter.go", - "kv_batch_fetcher.go", - "kv_batch_streamer.go", - "kv_fetcher.go", - "locking.go", - "metrics.go", - "partial_index.go", - "row_converter.go", - "truncate.go", - "updater.go", - "writer.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/row", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/schemaexpr", - "//pkg/sql/catalog/seqexpr", - "//pkg/sql/kvstreamer", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/rowenc/rowencpb", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/rowinfra", - "//pkg/sql/scrub", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/transform", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondatapb", - "//pkg/sql/span", - "//pkg/sql/sqlerrors", - "//pkg/sql/types", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util", - "//pkg/util/admission", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/timeutil", - "//pkg/util/unique", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "row_test", - size = "small", - srcs = [ - "expr_walker_test.go", - "fetcher_mvcc_test.go", - "fetcher_test.go", - "main_test.go", - ], - embed = [":row"], - deps = [ - "//pkg/base", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/rowenc", - "//pkg/sql/rowinfra", - "//pkg/sql/sem/tree", - "//pkg/storage", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/util/encoding", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/rowcontainer/BUILD.bazel b/pkg/sql/rowcontainer/BUILD.bazel deleted file mode 100644 index fb7af5e53f9..00000000000 --- a/pkg/sql/rowcontainer/BUILD.bazel +++ /dev/null @@ -1,67 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rowcontainer", - srcs = [ - "datum_row_container.go", - "disk_row_container.go", - "hash_row_container.go", - "numbered_row_container.go", - "row_container.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/rowcontainer", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvserver/diskmap", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/memsize", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlerrors", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/cancelchecker", - "//pkg/util/encoding", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/ring", - "//pkg/util/sort", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "rowcontainer_test", - size = "small", - srcs = [ - "datum_row_container_test.go", - "disk_row_container_test.go", - "hash_row_container_test.go", - "numbered_row_container_test.go", - "row_container_test.go", - ], - embed = [":rowcontainer"], - deps = [ - "//pkg/base", - "//pkg/kv/kvserver/diskmap", - "//pkg/settings/cluster", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/randgen", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/storage", - "//pkg/util/encoding", - "//pkg/util/leaktest", - "//pkg/util/mon", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/rowenc/BUILD.bazel b/pkg/sql/rowenc/BUILD.bazel deleted file mode 100644 index 09a02be56c1..00000000000 --- a/pkg/sql/rowenc/BUILD.bazel +++ /dev/null @@ -1,85 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rowenc", - srcs = [ - "encoded_datum.go", - "index_encoding.go", - "index_fetch.go", - "partition.go", - "roundtrip_format.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/rowenc", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo/geoindex", - "//pkg/geo/geopb", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/sql/catalog", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/inverted", - "//pkg/sql/parser", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/rowenc/rowencpb", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlerrors", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/buildutil", - "//pkg/util/encoding", - "//pkg/util/json", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/unique", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "rowenc_test", - size = "medium", - srcs = [ - "encoded_datum_test.go", - "index_encoding_test.go", - "index_fetch_test.go", - "main_test.go", - "roundtrip_format_test.go", - ], - data = glob(["testdata/**"]), - deps = [ - ":rowenc", - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/inverted", - "//pkg/sql/randgen", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/util/encoding", - "//pkg/util/json", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) diff --git a/pkg/sql/rowenc/keyside/BUILD.bazel b/pkg/sql/rowenc/keyside/BUILD.bazel deleted file mode 100644 index a8232dc170a..00000000000 --- a/pkg/sql/rowenc/keyside/BUILD.bazel +++ /dev/null @@ -1,47 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "keyside", - srcs = [ - "array.go", - "decode.go", - "doc.go", - "encode.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/rowenc/keyside", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo", - "//pkg/geo/geopb", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/bitarray", - "//pkg/util/duration", - "//pkg/util/encoding", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/ipaddr", - "//pkg/util/timetz", - "//pkg/util/timeutil/pgdate", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - ], -) - -go_test( - name = "keyside_test", - srcs = ["keyside_test.go"], - deps = [ - ":keyside", - "//pkg/settings/cluster", - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/encoding", - "//pkg/util/timeutil", - "@com_github_leanovate_gopter//:gopter", - "@com_github_leanovate_gopter//prop", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/rowenc/rowencpb/BUILD.bazel b/pkg/sql/rowenc/rowencpb/BUILD.bazel deleted file mode 100644 index eda648d3d69..00000000000 --- a/pkg/sql/rowenc/rowencpb/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -proto_library( - name = "rowencpb_proto", - srcs = ["index_encoding.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "rowencpb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/rowenc/rowencpb", - proto = ":rowencpb_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) - -go_library( - name = "rowencpb", - embed = [":rowencpb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/rowenc/rowencpb", - visibility = ["//visibility:public"], -) diff --git a/pkg/sql/rowenc/valueside/BUILD.bazel b/pkg/sql/rowenc/valueside/BUILD.bazel deleted file mode 100644 index 888f8122d6f..00000000000 --- a/pkg/sql/rowenc/valueside/BUILD.bazel +++ /dev/null @@ -1,54 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "valueside", - srcs = [ - "array.go", - "decode.go", - "doc.go", - "encode.go", - "legacy.go", - "tuple.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/rowenc/valueside", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo", - "//pkg/roachpb", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/lex", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/encoding", - "//pkg/util/ipaddr", - "//pkg/util/json", - "//pkg/util/timeutil/pgdate", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - ], -) - -go_test( - name = "valueside_test", - srcs = [ - "array_test.go", - "valueside_test.go", - ], - embed = [":valueside"], - deps = [ - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/util/timeofday", - "//pkg/util/timeutil", - "//pkg/util/timeutil/pgdate", - "@com_github_leanovate_gopter//:gopter", - "@com_github_leanovate_gopter//prop", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/rowexec/BUILD.bazel b/pkg/sql/rowexec/BUILD.bazel deleted file mode 100644 index 3233bd43c98..00000000000 --- a/pkg/sql/rowexec/BUILD.bazel +++ /dev/null @@ -1,205 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rowexec", - srcs = [ - "aggregator.go", - "backfiller.go", - "bulk_row_writer.go", - "columnbackfiller.go", - "countrows.go", - "distinct.go", - "filterer.go", - "hashjoiner.go", - "indexbackfiller.go", - "inverted_expr_evaluator.go", - "inverted_filterer.go", - "inverted_joiner.go", - "joinerbase.go", - "joinreader.go", - "joinreader_span_generator.go", - "joinreader_strategies.go", - "mergejoiner.go", - "noop.go", - "ordinality.go", - "processors.go", - "project_set.go", - "rowfetcher.go", - "sample_aggregator.go", - "sampler.go", - "sorter.go", - "stats.go", - "stream_group_accumulator.go", - "stream_merger.go", - "subquery.go", - "tablereader.go", - "values.go", - "windower.go", - "zigzagjoiner.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/rowexec", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/sql/backfill", - "//pkg/sql/catalog", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/inverted", - "//pkg/sql/kvstreamer", - "//pkg/sql/memsize", - "//pkg/sql/opt/invertedexpr", - "//pkg/sql/opt/invertedidx", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/row", - "//pkg/sql/rowcontainer", - "//pkg/sql/rowenc", - "//pkg/sql/rowinfra", - "//pkg/sql/scrub", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/span", - "//pkg/sql/sqlerrors", - "//pkg/sql/sqltelemetry", - "//pkg/sql/stats", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/admission", - "//pkg/util/cancelchecker", - "//pkg/util/ctxgroup", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/optional", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/stringarena", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_axiomhq_hyperloglog//:hyperloglog", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "rowexec_test", - size = "medium", - srcs = [ - "aggregator_test.go", - "backfiller_test.go", - "dep_test.go", - "distinct_test.go", - "filterer_test.go", - "hashjoiner_test.go", - "inverted_expr_evaluator_test.go", - "inverted_filterer_test.go", - "inverted_joiner_test.go", - "joinerbase_test.go", - "joinreader_blackbox_test.go", - "joinreader_test.go", - "main_test.go", - "mergejoiner_test.go", - "noop_test.go", - "ordinality_test.go", - "processor_utils_test.go", - "processors_test.go", - "project_set_test.go", - "sample_aggregator_test.go", - "sampler_test.go", - "set_op_test.go", - "sorter_test.go", - "stats_test.go", - "tablereader_test.go", - "utils_test.go", - "values_test.go", - "windower_test.go", - "zigzagjoiner_test.go", - ], - embed = [":rowexec"], - tags = ["no-remote"], - deps = [ - "//pkg/base", - "//pkg/gossip", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/kvcoord", - "//pkg/kv/kvclient/rangecache", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/backfill", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/flowinfra", - "//pkg/sql/inverted", - "//pkg/sql/opt/invertedexpr", - "//pkg/sql/randgen", - "//pkg/sql/rowcontainer", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/sem/tree", - "//pkg/sql/span", - "//pkg/sql/sqlutil", - "//pkg/sql/stats", - "//pkg/sql/types", - "//pkg/startupmigrations", - "//pkg/storage", - "//pkg/testutils", - "//pkg/testutils/buildutil", - "//pkg/testutils/distsqlutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/json", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_axiomhq_hyperloglog//:hyperloglog", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//types", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/rowflow/BUILD.bazel b/pkg/sql/rowflow/BUILD.bazel deleted file mode 100644 index aff5c52aba7..00000000000 --- a/pkg/sql/rowflow/BUILD.bazel +++ /dev/null @@ -1,68 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rowflow", - srcs = [ - "input_sync.go", - "routers.go", - "row_based_flow.go", - "test_utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/rowflow", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/catalog/colinfo", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/flowinfra", - "//pkg/sql/rowcontainer", - "//pkg/sql/rowenc", - "//pkg/sql/rowexec", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/syncutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@io_opentelemetry_go_otel//attribute", - ], -) - -go_test( - name = "rowflow_test", - size = "small", - srcs = [ - "dep_test.go", - "input_sync_test.go", - "routers_test.go", - ], - embed = [":rowflow"], - tags = ["no-remote"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/settings/cluster", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/randgen", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/storage", - "//pkg/testutils", - "//pkg/testutils/buildutil", - "//pkg/testutils/distsqlutils", - "//pkg/util/encoding", - "//pkg/util/leaktest", - "//pkg/util/mon", - "//pkg/util/randutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//types", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/rowinfra/BUILD.bazel b/pkg/sql/rowinfra/BUILD.bazel deleted file mode 100644 index 7331df1e569..00000000000 --- a/pkg/sql/rowinfra/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "rowinfra", - srcs = ["base.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/rowinfra", - visibility = ["//visibility:public"], -) diff --git a/pkg/sql/scanner/BUILD.bazel b/pkg/sql/scanner/BUILD.bazel deleted file mode 100644 index c74c89a8952..00000000000 --- a/pkg/sql/scanner/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "scanner", - srcs = ["scan.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/scanner", - visibility = ["//visibility:public"], - deps = ["//pkg/sql/lexbase"], -) - -go_test( - name = "scanner_test", - srcs = ["scan_test.go"], - embed = [":scanner"], - deps = [ - "//pkg/sql/lexbase", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/scheduledlogging/BUILD.bazel b/pkg/sql/scheduledlogging/BUILD.bazel deleted file mode 100644 index 30e793cc10f..00000000000 --- a/pkg/sql/scheduledlogging/BUILD.bazel +++ /dev/null @@ -1,49 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "scheduledlogging", - srcs = ["captured_index_usage_stats.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/scheduledlogging", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlutil", - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/stop", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "scheduledlogging_test", - srcs = [ - "captured_index_usage_stats_test.go", - "main_test.go", - ], - embed = [":scheduledlogging"], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/log/logtestutils", - "//pkg/util/randutil", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/schemachange/BUILD.bazel b/pkg/sql/schemachange/BUILD.bazel deleted file mode 100644 index 96f3fd9b3a3..00000000000 --- a/pkg/sql/schemachange/BUILD.bazel +++ /dev/null @@ -1,55 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "schemachange", - srcs = [ - "alter_column_type.go", - ":gen-columnconversionkind-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachange", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - ], -) - -go_test( - name = "schemachange_test", - size = "medium", - srcs = [ - "alter_column_type_test.go", - "main_test.go", - ], - embed = [":schemachange"], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/uuid", - ], -) - -# Keep this genrule and not ussing common string function due to extra flags eg: trimprefix - -stringer( - name = "gen-columnconversionkind-stringer", - src = "alter_column_type.go", - additional_args = ["--trimprefix ColumnConversion"], - typ = "ColumnConversionKind", -) diff --git a/pkg/sql/schemachanger/BUILD.bazel b/pkg/sql/schemachanger/BUILD.bazel deleted file mode 100644 index 4c611041cb6..00000000000 --- a/pkg/sql/schemachanger/BUILD.bazel +++ /dev/null @@ -1,56 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_test") - -filegroup( - name = "testdata", - srcs = glob(["testdata/**"]), - visibility = ["//visibility:public"], -) - -go_test( - name = "schemachanger_test", - size = "medium", - srcs = [ - "end_to_end_test.go", - "main_test.go", - "schemachanger_test.go", - ], - data = [":testdata"], - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scplan", - "//pkg/sql/schemachanger/scrun", - "//pkg/sql/schemachanger/sctest", - "//pkg/sql/tests", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/ctxgroup", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//errorspb", - "@com_github_lib_pq//:pq", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/sql/schemachanger/corpus/BUILD.bazel b/pkg/sql/schemachanger/corpus/BUILD.bazel deleted file mode 100644 index 0fbaf09e921..00000000000 --- a/pkg/sql/schemachanger/corpus/BUILD.bazel +++ /dev/null @@ -1,32 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "corpus", - srcs = ["corpus.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/corpus", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/scplan", - "//pkg/util/protoutil", - "//pkg/util/retry", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - ], -) - -go_test( - name = "corpus_test", - srcs = ["corpus_test.go"], - tags = ["integration"], - deps = [ - ":corpus", - "//pkg/jobs/jobspb", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scplan", - "//pkg/testutils/skip", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/schemachanger/rel/BUILD.bazel b/pkg/sql/schemachanger/rel/BUILD.bazel deleted file mode 100644 index bd08c369749..00000000000 --- a/pkg/sql/schemachanger/rel/BUILD.bazel +++ /dev/null @@ -1,67 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "rel", - srcs = [ - "attribute.go", - "compare.go", - "database.go", - "database_items.go", - "doc.go", - "entity.go", - "ordinal_set.go", - "query.go", - "query_build.go", - "query_data.go", - "query_eval.go", - "query_lang.go", - "query_lang_clause.go", - "query_lang_clauses.go", - "query_lang_expr.go", - "query_lang_yaml.go", - "schema.go", - "schema_attribute.go", - "schema_mappings.go", - "schema_value.go", - "system_attributes.go", - "values.go", - ":gen-systemattribute-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/rel", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util", - "//pkg/util/iterutil", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_google_btree//:btree", - "@in_gopkg_yaml_v2//:yaml_v2", - "@in_gopkg_yaml_v3//:yaml_v3", - ], -) - -go_test( - name = "rel_test", - size = "small", - srcs = [ - "bench_test.go", - "rel_internal_test.go", - "rel_test.go", - ], - data = glob(["testdata/**"]), - embed = [":rel"], - deps = [ - "//pkg/sql/schemachanger/rel/internal/comparetest", - "//pkg/sql/schemachanger/rel/internal/cyclegraphtest", - "//pkg/sql/schemachanger/rel/internal/entitynodetest", - "//pkg/sql/schemachanger/rel/reltest", - "@com_github_stretchr_testify//require", - ], -) - -stringer( - name = "gen-systemattribute-stringer", - src = "system_attributes.go", - typ = "systemAttribute", -) diff --git a/pkg/sql/schemachanger/rel/internal/comparetest/BUILD.bazel b/pkg/sql/schemachanger/rel/internal/comparetest/BUILD.bazel deleted file mode 100644 index 845c1c509cf..00000000000 --- a/pkg/sql/schemachanger/rel/internal/comparetest/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "comparetest", - srcs = [ - "schema.go", - "tests.go", - ":gen-testattr-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/rel/internal/comparetest", - visibility = ["//pkg/sql/schemachanger/rel:__subpackages__"], - deps = [ - "//pkg/sql/schemachanger/rel", - "//pkg/sql/schemachanger/rel/reltest", - ], -) - -stringer( - name = "gen-testattr-stringer", - src = "schema.go", - typ = "testAttr", -) diff --git a/pkg/sql/schemachanger/rel/internal/cyclegraphtest/BUILD.bazel b/pkg/sql/schemachanger/rel/internal/cyclegraphtest/BUILD.bazel deleted file mode 100644 index b83d827a428..00000000000 --- a/pkg/sql/schemachanger/rel/internal/cyclegraphtest/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "cyclegraphtest", - srcs = [ - "schema.go", - "tests.go", - ":gen-testattr-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/rel/internal/cyclegraphtest", - visibility = ["//pkg/sql/schemachanger/rel:__subpackages__"], - deps = [ - "//pkg/sql/schemachanger/rel", - "//pkg/sql/schemachanger/rel/reltest", - "@in_gopkg_yaml_v3//:yaml_v3", - ], -) - -stringer( - name = "gen-testattr-stringer", - src = "schema.go", - typ = "testAttr", -) diff --git a/pkg/sql/schemachanger/rel/internal/entitynodetest/BUILD.bazel b/pkg/sql/schemachanger/rel/internal/entitynodetest/BUILD.bazel deleted file mode 100644 index 8f1abd08755..00000000000 --- a/pkg/sql/schemachanger/rel/internal/entitynodetest/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "entitynodetest", - srcs = [ - "schema.go", - "tests.go", - ":gen-testattr-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/rel/internal/entitynodetest", - visibility = ["//pkg/sql/schemachanger/rel:__subpackages__"], - deps = [ - "//pkg/sql/schemachanger/rel", - "//pkg/sql/schemachanger/rel/reltest", - "@in_gopkg_yaml_v3//:yaml_v3", - ], -) - -stringer( - name = "gen-testattr-stringer", - src = "schema.go", - typ = "testAttr", -) diff --git a/pkg/sql/schemachanger/rel/reltest/BUILD.bazel b/pkg/sql/schemachanger/rel/reltest/BUILD.bazel deleted file mode 100644 index cf1aa88360f..00000000000 --- a/pkg/sql/schemachanger/rel/reltest/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "reltest", - srcs = [ - "attribute.go", - "compare.go", - "database.go", - "registry.go", - "reltest.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/rel/reltest", - visibility = ["//pkg/sql/schemachanger/rel:__subpackages__"], - deps = [ - "//pkg/sql/schemachanger/rel", - "//pkg/testutils", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v3//:yaml_v3", - ], -) diff --git a/pkg/sql/schemachanger/scbackup/BUILD.bazel b/pkg/sql/schemachanger/scbackup/BUILD.bazel deleted file mode 100644 index b07134d20a6..00000000000 --- a/pkg/sql/schemachanger/scbackup/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "scbackup", - srcs = [ - "doc.go", - "job.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scbackup", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs", - "//pkg/kv", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/nstree", - "//pkg/sql/schemachanger/scexec", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/screl", - ], -) diff --git a/pkg/sql/schemachanger/scbuild/BUILD.bazel b/pkg/sql/schemachanger/scbuild/BUILD.bazel deleted file mode 100644 index 294055ad828..00000000000 --- a/pkg/sql/schemachanger/scbuild/BUILD.bazel +++ /dev/null @@ -1,86 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "scbuild", - srcs = [ - "ast_annotator.go", - "build.go", - "builder_state.go", - "dependencies.go", - "event_log_state.go", - "tree_context_builder.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scbuild", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/schemaexpr", - "//pkg/sql/catalog/seqexpr", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/faketreeeval", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/privilege", - "//pkg/sql/schemachanger/scbuild/internal/scbuildstmt", - "//pkg/sql/schemachanger/scdecomp", - "//pkg/sql/schemachanger/scerrors", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/screl", - "//pkg/sql/sem/catid", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sqlerrors", - "//pkg/sql/types", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_lib_pq//oid", - ], -) - -go_test( - name = "scbuild_test", - size = "small", - srcs = [ - "builder_test.go", - "main_test.go", - ], - data = glob(["testdata/**"]), - deps = [ - ":scbuild", - "//pkg/base", - "//pkg/ccl/utilccl", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/catalog/descpb", - "//pkg/sql/parser", - "//pkg/sql/schemachanger/scdeps/sctestdeps", - "//pkg/sql/schemachanger/scdeps/sctestutils", - "//pkg/sql/schemachanger/scerrors", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/screl", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/schemachanger/scbuild/internal/scbuildstmt/BUILD.bazel b/pkg/sql/schemachanger/scbuild/internal/scbuildstmt/BUILD.bazel deleted file mode 100644 index 92cb7a049fc..00000000000 --- a/pkg/sql/schemachanger/scbuild/internal/scbuildstmt/BUILD.bazel +++ /dev/null @@ -1,47 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "scbuildstmt", - srcs = [ - "alter_table.go", - "alter_table_add_column.go", - "create_index.go", - "dependencies.go", - "drop_database.go", - "drop_schema.go", - "drop_sequence.go", - "drop_table.go", - "drop_type.go", - "drop_view.go", - "helpers.go", - "process.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scbuild/internal/scbuildstmt", - visibility = ["//pkg/sql/schemachanger/scbuild:__subpackages__"], - deps = [ - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/schemaexpr", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/privilege", - "//pkg/sql/schemachanger/scerrors", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/screl", - "//pkg/sql/sem/catid", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sqlerrors", - "//pkg/sql/sqltelemetry", - "//pkg/sql/types", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/schemachanger/scdecomp/BUILD.bazel b/pkg/sql/schemachanger/scdecomp/BUILD.bazel deleted file mode 100644 index 200bc342fbb..00000000000 --- a/pkg/sql/schemachanger/scdecomp/BUILD.bazel +++ /dev/null @@ -1,51 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "scdecomp", - srcs = [ - "decomp.go", - "helpers.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scdecomp", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/catalog", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/seqexpr", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/parser", - "//pkg/sql/schemachanger/scerrors", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/sem/catid", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/iterutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - ], -) - -go_test( - name = "scdecomp_test", - srcs = [ - "decomp_test.go", - "main_test.go", - ], - data = glob(["testdata/**"]), - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/schemachanger/scrun", - "//pkg/sql/schemachanger/sctest", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - ], -) diff --git a/pkg/sql/schemachanger/scdeps/BUILD.bazel b/pkg/sql/schemachanger/scdeps/BUILD.bazel deleted file mode 100644 index f1bd1735d69..00000000000 --- a/pkg/sql/schemachanger/scdeps/BUILD.bazel +++ /dev/null @@ -1,75 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "scdeps", - srcs = [ - "backfill_tracker.go", - "build_deps.go", - "exec_deps.go", - "index_validator.go", - "periodic_progress_flusher.go", - "run_deps.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scdeps", - visibility = ["//visibility:public"], - deps = [ - "//pkg/config", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/backfill", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/resolver", - "//pkg/sql/schemachanger/scbuild", - "//pkg/sql/schemachanger/scexec", - "//pkg/sql/schemachanger/scexec/scmutationexec", - "//pkg/sql/schemachanger/scrun", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlerrors", - "//pkg/sql/sqltelemetry", - "//pkg/sql/sqlutil", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - "@org_golang_x_sync//errgroup", - ], -) - -go_test( - name = "scdeps_test", - srcs = [ - "backfill_tracker_test.go", - "periodic_progress_flusher_test.go", - ], - embed = [":scdeps"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/schemachanger/scexec", - "//pkg/testutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/schemachanger/scdeps/sctestdeps/BUILD.bazel b/pkg/sql/schemachanger/scdeps/sctestdeps/BUILD.bazel deleted file mode 100644 index faf0511e45d..00000000000 --- a/pkg/sql/schemachanger/scdeps/sctestdeps/BUILD.bazel +++ /dev/null @@ -1,53 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sctestdeps", - srcs = [ - "backfill.go", - "config.go", - "database_state.go", - "test_deps.go", - "test_state.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scdeps/sctestdeps", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descbuilder", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/nstree", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/privilege", - "//pkg/sql/schemachanger/scbuild", - "//pkg/sql/schemachanger/scdeps", - "//pkg/sql/schemachanger/scdeps/sctestutils", - "//pkg/sql/schemachanger/scexec", - "//pkg/sql/schemachanger/scexec/scmutationexec", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scrun", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sqltelemetry", - "//pkg/sql/types", - "//pkg/testutils/sqlutils", - "//pkg/util/hlc", - "//pkg/util/log/eventpb", - "//pkg/util/protoutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_lib_pq//oid", - ], -) diff --git a/pkg/sql/schemachanger/scdeps/sctestutils/BUILD.bazel b/pkg/sql/schemachanger/scdeps/sctestutils/BUILD.bazel deleted file mode 100644 index 523da432154..00000000000 --- a/pkg/sql/schemachanger/scdeps/sctestutils/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sctestutils", - srcs = ["sctestutils.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scdeps/sctestutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs/jobspb", - "//pkg/kv", - "//pkg/security", - "//pkg/sql", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/resolver", - "//pkg/sql/protoreflect", - "//pkg/sql/schemachanger/scbuild", - "//pkg/sql/schemachanger/scdeps", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/scplan", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/testutils/serverutils", - "//pkg/util/json", - "//pkg/util/protoutil", - "@com_github_kylelemons_godebug//diff", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) diff --git a/pkg/sql/schemachanger/scerrors/BUILD.bazel b/pkg/sql/schemachanger/scerrors/BUILD.bazel deleted file mode 100644 index 2ece210cf69..00000000000 --- a/pkg/sql/schemachanger/scerrors/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "scerrors", - srcs = ["errors.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scerrors", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/sem/tree", - "//pkg/util/log", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) diff --git a/pkg/sql/schemachanger/scexec/BUILD.bazel b/pkg/sql/schemachanger/scexec/BUILD.bazel deleted file mode 100644 index 3887938eace..00000000000 --- a/pkg/sql/schemachanger/scexec/BUILD.bazel +++ /dev/null @@ -1,118 +0,0 @@ -load("@bazel_gomock//:gomock.bzl", "gomock") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "scexec", - srcs = [ - "dependencies.go", - "exec_backfill.go", - "exec_mutation.go", - "exec_validation.go", - "executor.go", - "gc_jobs.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scexec", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/nstree", - "//pkg/sql/schemachanger/scexec/scmutationexec", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/sem/catid", - "//pkg/sql/sessiondata", - "//pkg/util", - "//pkg/util/ctxgroup", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "scexec_test", - size = "small", - srcs = [ - "exec_backfill_test.go", - "executor_external_test.go", - "main_test.go", - ":mock_scexec", # keep - ], - deps = [ - ":scexec", - "//pkg/base", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/lease", - "//pkg/sql/catalog/nstree", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/parser", - "//pkg/sql/schemachanger/scbuild", - "//pkg/sql/schemachanger/scdeps", - "//pkg/sql/schemachanger/scdeps/sctestdeps", - "//pkg/sql/schemachanger/scdeps/sctestutils", - # scmutationexec is required to build the generated output of mock_scexec - "//pkg/sql/schemachanger/scexec/scmutationexec", # keep - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/sem/catid", # keep - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlutil", - "//pkg/sql/types", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/iterutil", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/log/eventpb", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "@com_github_golang_mock//gomock", - "@com_github_stretchr_testify//require", - ], -) - -gomock( - name = "mock_scexec", - out = "mocks_generated_test.go", - imports = { - "scexec": "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scexec", - }, - interfaces = [ - "Catalog", - "Dependencies", - "Backfiller", - "BackfillTracker", - "IndexSpanSplitter", - "PeriodicProgressFlusher", - ], - library = ":scexec", - package = "scexec_test", - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/sql/schemachanger/scexec/scmutationexec/BUILD.bazel b/pkg/sql/schemachanger/scexec/scmutationexec/BUILD.bazel deleted file mode 100644 index d60e615ff02..00000000000 --- a/pkg/sql/schemachanger/scexec/scmutationexec/BUILD.bazel +++ /dev/null @@ -1,42 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "scmutationexec", - srcs = [ - "column.go", - "dependencies.go", - "drop.go", - "eventlog.go", - "helpers.go", - "index.go", - "references.go", - "schema_change_job.go", - "scmutationexec.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scexec/scmutationexec", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/sql/catalog", - "//pkg/sql/catalog/dbdesc", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/schemadesc", - "//pkg/sql/catalog/seqexpr", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/parser", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/screl", - "//pkg/sql/sem/catid", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/iterutil", - "//pkg/util/log/eventpb", - "//pkg/util/protoutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) diff --git a/pkg/sql/schemachanger/scjob/BUILD.bazel b/pkg/sql/schemachanger/scjob/BUILD.bazel deleted file mode 100644 index 643d30d54e5..00000000000 --- a/pkg/sql/schemachanger/scjob/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "scjob", - srcs = [ - "backfill_tracker_factory.go", - "job.go", - "range_counter.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scjob", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/schemachanger/scdeps", - "//pkg/sql/schemachanger/scexec", - "//pkg/sql/schemachanger/scrun", - ], -) diff --git a/pkg/sql/schemachanger/scop/BUILD.bazel b/pkg/sql/schemachanger/scop/BUILD.bazel deleted file mode 100644 index a9326331ede..00000000000 --- a/pkg/sql/schemachanger/scop/BUILD.bazel +++ /dev/null @@ -1,98 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "scop", - srcs = [ - "backfill.go", - "metadata.go", - "mutation.go", - "ops.go", - "phase.go", - "validation.go", - ":gen-backfill", # keep - ":gen-mutation", # keep - ":gen-phase-stringer", # keep - ":gen-type-stringer", # keep - ":gen-validation", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scop", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs/jobspb", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/schemachanger/scpb", - ], -) - -go_binary( - name = "gen-visitors", - srcs = ["generate_visitor.go"], - gotags = ["generator"], - deps = [ - "//pkg/cli/exit", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_gostdlib//go/format", - ], -) - -genrule( - name = "gen-mutation", - srcs = ["mutation.go"], - outs = ["mutation_visitor_generated.go"], - cmd = """ - $(location :gen-visitors) scop Mutation $(location mutation.go) $(location mutation_visitor_generated.go) - """, - exec_tools = [ - ":gen-visitors", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -genrule( - name = "gen-backfill", - srcs = ["backfill.go"], - outs = ["backfill_visitor_generated.go"], - cmd = """ - $(location :gen-visitors) scop Backfill $(location backfill.go) $(location backfill_visitor_generated.go) - """, - exec_tools = [ - ":gen-visitors", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -genrule( - name = "gen-validation", - srcs = ["validation.go"], - outs = ["validation_visitor_generated.go"], - cmd = """ - $(location :gen-visitors) scop Validation $(location validation.go) $(location validation_visitor_generated.go) - """, - exec_tools = [ - ":gen-visitors", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -stringer( - name = "gen-type-stringer", - src = "ops.go", - typ = "Type", -) - -stringer( - name = "gen-phase-stringer", - src = "phase.go", - typ = "Phase", -) diff --git a/pkg/sql/schemachanger/scpb/BUILD.bazel b/pkg/sql/schemachanger/scpb/BUILD.bazel deleted file mode 100644 index 18a9001d42b..00000000000 --- a/pkg/sql/schemachanger/scpb/BUILD.bazel +++ /dev/null @@ -1,100 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "scpb", - srcs = [ - "constants.go", - "state.go", - ":gen-elements-interface", # keep - ], - embed = [":scpb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scpb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/catalog/catpb", # keep - "//pkg/sql/sem/catid", # keep - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_proto_library( - name = "scpb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scpb", - proto = ":scpb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/catalog/catpb", - "//pkg/sql/sem/catid", # keep - "//pkg/sql/types", - "@com_github_gogo_protobuf//gogoproto", - ], -) - -proto_library( - name = "scpb_proto", - srcs = [ - "elements.proto", - "scpb.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/catalog/catpb:catpb_proto", - "//pkg/sql/types:types_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_binary( - name = "element-generator", - srcs = ["element_generator.go"], - gotags = ["generator"], - deps = ["//pkg/cli/exit"], -) - -genrule( - name = "gen-elements-interface", - srcs = [ - "elements.proto", - ], - outs = ["elements_generated.go"], - cmd = """ - $(location :element-generator) --in $< --out $(location elements_generated.go) - """, - exec_tools = [ - ":element-generator", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -go_binary( - name = "element-uml-generator", - srcs = ["element_uml_generator.go"], - gotags = ["generator"], - deps = [ - "//pkg/cli/exit", - "//pkg/sql/schemachanger/scpb", - ], -) - -genrule( - name = "gen-elements-uml", - outs = ["uml/table.puml"], - cmd = """ - $(location :element-uml-generator) --out $(location uml/table.puml) - """, - exec_tools = [ - ":element-uml-generator", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/sql/schemachanger/scplan/BUILD.bazel b/pkg/sql/schemachanger/scplan/BUILD.bazel deleted file mode 100644 index 7a5c7821ee5..00000000000 --- a/pkg/sql/schemachanger/scplan/BUILD.bazel +++ /dev/null @@ -1,71 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "scplan", - srcs = [ - "plan.go", - "plan_explain.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scplan", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs/jobspb", - "//pkg/sql/schemachanger/scerrors", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/scplan/internal/opgen", - "//pkg/sql/schemachanger/scplan/internal/rules", - "//pkg/sql/schemachanger/scplan/internal/scgraph", - "//pkg/sql/schemachanger/scplan/internal/scgraphviz", - "//pkg/sql/schemachanger/scplan/internal/scstage", - "//pkg/sql/schemachanger/screl", - "//pkg/util", - "//pkg/util/log", - "//pkg/util/timeutil", - "//pkg/util/treeprinter", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) - -go_test( - name = "scplan_test", - size = "small", - srcs = [ - "main_test.go", - "plan_test.go", - ], - data = glob(["testdata/**"]), - deps = [ - ":scplan", - "//pkg/base", - "//pkg/ccl/utilccl", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/catalog/descpb", - "//pkg/sql/parser", - "//pkg/sql/schemachanger/scbuild", - "//pkg/sql/schemachanger/scdeps/sctestutils", - "//pkg/sql/schemachanger/scerrors", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/scplan/internal/scgraph", - "//pkg/sql/schemachanger/scplan/internal/scgraphviz", - "//pkg/sql/schemachanger/scplan/internal/scstage", - "//pkg/sql/schemachanger/screl", - "//pkg/sql/sem/tree", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) diff --git a/pkg/sql/schemachanger/scplan/internal/opgen/BUILD.bazel b/pkg/sql/schemachanger/scplan/internal/opgen/BUILD.bazel deleted file mode 100644 index 9bc3f319149..00000000000 --- a/pkg/sql/schemachanger/scplan/internal/opgen/BUILD.bazel +++ /dev/null @@ -1,79 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "opgen", - srcs = [ - "op_funcs.go", - "op_gen.go", - "opgen_alias_type.go", - "opgen_check_constraint.go", - "opgen_column.go", - "opgen_column_comment.go", - "opgen_column_default_expression.go", - "opgen_column_family.go", - "opgen_column_name.go", - "opgen_column_on_update_expression.go", - "opgen_column_type.go", - "opgen_constraint_comment.go", - "opgen_constraint_name.go", - "opgen_database.go", - "opgen_database_comment.go", - "opgen_database_region_config.go", - "opgen_database_role_setting.go", - "opgen_enum_type.go", - "opgen_foreign_key_constraint.go", - "opgen_index_comment.go", - "opgen_index_name.go", - "opgen_index_partitioning.go", - "opgen_namespace.go", - "opgen_object_parent.go", - "opgen_owner.go", - "opgen_primary_index.go", - "opgen_row_level_ttl.go", - "opgen_schema.go", - "opgen_schema_comment.go", - "opgen_schema_parent.go", - "opgen_secondary_index.go", - "opgen_secondary_index_partial.go", - "opgen_sequence.go", - "opgen_sequence_owner.go", - "opgen_table.go", - "opgen_table_comment.go", - "opgen_table_locality_global.go", - "opgen_table_locality_primary_region.go", - "opgen_table_locality_regional_by_row.go", - "opgen_table_locality_secondary_region.go", - "opgen_temporary_index.go", - "opgen_unique_without_index_constraint.go", - "opgen_user_privileges.go", - "opgen_view.go", - "register.go", - "specs.go", - "target.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scplan/internal/opgen", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/catalog", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/schemachanger/rel", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/scplan/internal/scgraph", - "//pkg/sql/schemachanger/screl", - "//pkg/sql/sem/catid", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "opgen_test", - size = "small", - srcs = ["register_test.go"], - embed = [":opgen"], - deps = ["//pkg/sql/schemachanger/scpb"], -) diff --git a/pkg/sql/schemachanger/scplan/internal/rules/BUILD.bazel b/pkg/sql/schemachanger/scplan/internal/rules/BUILD.bazel deleted file mode 100644 index 2a212f08d2d..00000000000 --- a/pkg/sql/schemachanger/scplan/internal/rules/BUILD.bazel +++ /dev/null @@ -1,36 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "rules", - srcs = [ - "dep_drop.go", - "dep_index_and_column.go", - "helpers.go", - "op_drop.go", - "registry.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scplan/internal/rules", - visibility = ["//pkg/sql/schemachanger/scplan:__subpackages__"], - deps = [ - "//pkg/sql/catalog/descpb", - "//pkg/sql/schemachanger/rel", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/scplan/internal/scgraph", - "//pkg/sql/schemachanger/screl", - "//pkg/util/log", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "rules_test", - srcs = ["rules_test.go"], - data = glob(["testdata/**"]), - embed = [":rules"], - deps = [ - "//pkg/testutils", - "@com_github_cockroachdb_datadriven//:datadriven", - "@in_gopkg_yaml_v3//:yaml_v3", - ], -) diff --git a/pkg/sql/schemachanger/scplan/internal/scgraph/BUILD.bazel b/pkg/sql/schemachanger/scplan/internal/scgraph/BUILD.bazel deleted file mode 100644 index 7542d03c709..00000000000 --- a/pkg/sql/schemachanger/scplan/internal/scgraph/BUILD.bazel +++ /dev/null @@ -1,49 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "scgraph", - srcs = [ - "dep_edge_tree.go", - "edge.go", - "graph.go", - "iteration.go", - ":gen-depedgekind-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scplan/internal/scgraph", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/schemachanger/rel", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/screl", - "//pkg/util/iterutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_google_btree//:btree", - ], -) - -go_test( - name = "scgraph_test", - size = "small", - srcs = [ - "dep_edge_tree_test.go", - "graph_test.go", - ], - embed = [":scgraph"], - deps = [ - "//pkg/sql/catalog/descpb", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/screl", - "//pkg/util/iterutil", - "//pkg/util/leaktest", - "@com_github_stretchr_testify//require", - ], -) - -stringer( - name = "gen-depedgekind-stringer", - src = "edge.go", - typ = "DepEdgeKind", -) diff --git a/pkg/sql/schemachanger/scplan/internal/scgraphviz/BUILD.bazel b/pkg/sql/schemachanger/scplan/internal/scgraphviz/BUILD.bazel deleted file mode 100644 index 2a9722e07d1..00000000000 --- a/pkg/sql/schemachanger/scplan/internal/scgraphviz/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "scgraphviz", - srcs = ["graphviz.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scplan/internal/scgraphviz", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/scplan/internal/scgraph", - "//pkg/sql/schemachanger/scplan/internal/scstage", - "//pkg/sql/schemachanger/screl", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_emicklei_dot//:dot", - "@com_github_gogo_protobuf//jsonpb", - ], -) diff --git a/pkg/sql/schemachanger/scplan/internal/scstage/BUILD.bazel b/pkg/sql/schemachanger/scplan/internal/scstage/BUILD.bazel deleted file mode 100644 index de73b3d7250..00000000000 --- a/pkg/sql/schemachanger/scplan/internal/scstage/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "scstage", - srcs = [ - "build.go", - "stage.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scplan/internal/scstage", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs/jobspb", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/scplan/internal/scgraph", - "//pkg/sql/schemachanger/screl", - "//pkg/util/iterutil", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/schemachanger/screl/BUILD.bazel b/pkg/sql/schemachanger/screl/BUILD.bazel deleted file mode 100644 index c271ffaa45b..00000000000 --- a/pkg/sql/schemachanger/screl/BUILD.bazel +++ /dev/null @@ -1,59 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "screl", - srcs = [ - "attr.go", - "compare.go", - "doc.go", - "format.go", - "node.go", - "scalars.go", - "walk.go", - ":gen-attr-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/screl", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/catalog", - "//pkg/sql/catalog/catpb", - "//pkg/sql/schemachanger/rel", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/sem/catid", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/iterutil", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "screl_test", - size = "small", - srcs = [ - "attribute_test.go", - "query_test.go", - "scalars_test.go", - "walk_test.go", - ], - embed = [":screl"], - deps = [ - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/schemachanger/rel", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/sem/catid", - "//pkg/sql/types", - "//pkg/util/iterutil", - "@com_github_stretchr_testify//require", - ], -) - -stringer( - name = "gen-attr-stringer", - src = "attr.go", - typ = "Attr", -) diff --git a/pkg/sql/schemachanger/scrun/BUILD.bazel b/pkg/sql/schemachanger/scrun/BUILD.bazel deleted file mode 100644 index 5e31eebf982..00000000000 --- a/pkg/sql/schemachanger/scrun/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "scrun", - srcs = [ - "dependencies.go", - "scrun.go", - "testing_knobs.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scrun", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/sql/catalog/descpb", - "//pkg/sql/schemachanger/scerrors", - "//pkg/sql/schemachanger/scexec", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/scplan", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) diff --git a/pkg/sql/schemachanger/sctest/BUILD.bazel b/pkg/sql/schemachanger/sctest/BUILD.bazel deleted file mode 100644 index 368896b6acb..00000000000 --- a/pkg/sql/schemachanger/sctest/BUILD.bazel +++ /dev/null @@ -1,42 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sctest", - srcs = [ - "cumulative.go", - "decomp.go", - "end_to_end.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/schemachanger/sctest", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/sql/catalog", - "//pkg/sql/parser", - "//pkg/sql/schemachanger/corpus", - "//pkg/sql/schemachanger/scbuild", - "//pkg/sql/schemachanger/scdecomp", - "//pkg/sql/schemachanger/scdeps/sctestdeps", - "//pkg/sql/schemachanger/scdeps/sctestutils", - "//pkg/sql/schemachanger/scop", - "//pkg/sql/schemachanger/scpb", - "//pkg/sql/schemachanger/scplan", - "//pkg/sql/schemachanger/screl", - "//pkg/sql/schemachanger/scrun", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//:pq", - "@com_github_stretchr_testify//require", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/sql/scrub/BUILD.bazel b/pkg/sql/scrub/BUILD.bazel deleted file mode 100644 index bafd80af51d..00000000000 --- a/pkg/sql/scrub/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "scrub", - srcs = ["errors.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/scrub", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) diff --git a/pkg/sql/sem/builtins/BUILD.bazel b/pkg/sql/sem/builtins/BUILD.bazel deleted file mode 100644 index 101bde2a425..00000000000 --- a/pkg/sql/sem/builtins/BUILD.bazel +++ /dev/null @@ -1,164 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "builtins", - srcs = [ - "aggregate_builtins.go", - "all_builtins.go", - "builtins.go", - "generator_builtins.go", - "generator_probe_ranges.go", - "geo_builtins.go", - "math_builtins.go", - "notice.go", - "pg_builtins.go", - "replication_builtins.go", - "show_create_all_schemas_builtin.go", - "show_create_all_tables_builtin.go", - "show_create_all_types_builtin.go", - "window_builtins.go", - "window_frame_builtins.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sem/builtins", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/build", - "//pkg/clusterversion", - "//pkg/config/zonepb", - "//pkg/geo", - "//pkg/geo/geogfn", - "//pkg/geo/geoindex", - "//pkg/geo/geomfn", - "//pkg/geo/geopb", - "//pkg/geo/geoprojbase", - "//pkg/geo/geos", - "//pkg/geo/geotransform", - "//pkg/geo/twkb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient", - "//pkg/kv/kvprober", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/security", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/colexecerror", - "//pkg/sql/lex", - "//pkg/sql/lexbase", - "//pkg/sql/memsize", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/pgwire/pgnotice", - "//pkg/sql/privilege", - "//pkg/sql/protoreflect", - "//pkg/sql/roleoption", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sqlerrors", - "//pkg/sql/sqlliveness", - "//pkg/sql/sqlstats/persistedsqlstats/sqlstatsutil", - "//pkg/sql/sqltelemetry", - "//pkg/sql/storageparam", - "//pkg/sql/storageparam/indexstorageparam", - "//pkg/sql/types", - "//pkg/streaming", - "//pkg/util", - "//pkg/util/arith", - "//pkg/util/bitarray", - "//pkg/util/contextutil", - "//pkg/util/duration", - "//pkg/util/encoding", - "//pkg/util/errorutil", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/fuzzystrmatch", - "//pkg/util/hlc", - "//pkg/util/humanizeutil", - "//pkg/util/ipaddr", - "//pkg/util/json", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/ring", - "//pkg/util/syncutil", - "//pkg/util/timeofday", - "//pkg/util/timetz", - "//pkg/util/timeutil", - "//pkg/util/timeutil/pgdate", - "//pkg/util/tracing", - "//pkg/util/tracing/tracingpb", - "//pkg/util/ulid", - "//pkg/util/unaccent", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_golang_geo//s1", - "@com_github_knz_strtime//:strtime", - "@com_github_lib_pq//oid", - "@com_github_twpayne_go_geom//:go-geom", - "@com_github_twpayne_go_geom//encoding/ewkb", - ], -) - -go_test( - name = "builtins_test", - size = "medium", - srcs = [ - "aggregate_builtins_test.go", - "all_builtins_test.go", - "builtins_test.go", - "datums_to_bytes_builtin_test.go", - "generator_builtins_test.go", - "geo_builtins_test.go", - "help_test.go", - "main_test.go", - "math_builtins_test.go", - "show_create_all_tables_builtin_test.go", - "window_frame_builtins_test.go", - ], - data = glob(["testdata/**"]), - embed = [":builtins"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/sem/tree/treewindow", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/duration", - "//pkg/util/leaktest", - "//pkg/util/mon", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "@com_github_lib_pq//:pq", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/sem/catid/BUILD.bazel b/pkg/sql/sem/catid/BUILD.bazel deleted file mode 100644 index f45d54421ea..00000000000 --- a/pkg/sql/sem/catid/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "catid", - srcs = ["ids.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sem/catid", - visibility = ["//visibility:public"], -) diff --git a/pkg/sql/sem/transform/BUILD.bazel b/pkg/sql/sem/transform/BUILD.bazel deleted file mode 100644 index 60c5b86e2a8..00000000000 --- a/pkg/sql/sem/transform/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "transform", - srcs = [ - "aggregates.go", - "expr_transform.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sem/transform", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - ], -) diff --git a/pkg/sql/sem/tree/BUILD.bazel b/pkg/sql/sem/tree/BUILD.bazel deleted file mode 100644 index 3f46d1bbde8..00000000000 --- a/pkg/sql/sem/tree/BUILD.bazel +++ /dev/null @@ -1,301 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -filegroup( - name = "testdata", - srcs = glob(["testdata/**"]), - visibility = ["//pkg/sql/sem/tree/eval_test:__subpackages__"], -) - -go_library( - name = "tree", - srcs = [ - "aggregate_funcs.go", - "alter_backup.go", - "alter_changefeed.go", - "alter_database.go", - "alter_default_privileges.go", - "alter_index.go", - "alter_range.go", - "alter_role.go", - "alter_schema.go", - "alter_sequence.go", - "alter_table.go", - "alter_type.go", - "analyze.go", - "annotation.go", - "as_of.go", - "backup.go", - "cast.go", - "changefeed.go", - "col_name.go", - "collatedstring.go", - "comment_on_column.go", - "comment_on_constraint.go", - "comment_on_database.go", - "comment_on_index.go", - "comment_on_schema.go", - "comment_on_table.go", - "constant.go", - "constant_eval.go", - "constants.go", - "copy.go", - "create.go", - "cursor.go", - "data_placement.go", - "datum.go", - "datum_alloc.go", - "decimal.go", - "delete.go", - "discard.go", - "drop.go", - "drop_owned_by.go", - "eval.go", - "explain.go", - "export.go", - "expr.go", - "format.go", - "function_definition.go", - "function_name.go", - "generators.go", - "grant.go", - "hide_constants.go", - "import.go", - "indexed_vars.go", - "insert.go", - "interval.go", - "name_part.go", - "name_resolution.go", - "normalize.go", - "object_name.go", - "operators.go", - "overload.go", - "parse_array.go", - "parse_string.go", # keep - "parse_tuple.go", - "persistence.go", - "pgwire_encode.go", - "placeholders.go", - "prepare.go", - "pretty.go", - "reassign_owned_by.go", - "regexp_cache.go", - "region.go", - "rename.go", - "replication_stream.go", - "returning.go", - "revoke.go", - "role_spec.go", - "run_control.go", - "schedule.go", - "schema_feature_name.go", - "scrub.go", - "select.go", - "set.go", - "show.go", - "split.go", - "stmt.go", - "stream_ingestion.go", - "survival_goal.go", - "table_name.go", - "table_pattern.go", - "table_ref.go", - "tenant.go", - "tenant_settings.go", - "testutils.go", - "time.go", - "truncate.go", - "txn.go", - "type_check.go", - "type_name.go", - "union.go", - "unsupported_error.go", - "update.go", - "values.go", - "var_name.go", - "volatility.go", - "walk.go", - "window_funcs.go", - "window_funcs_util.go", - "with.go", - "zone.go", - ":gen-createtypevariety-stringer", # keep - ":gen-statementreturntype-stringer", # keep - ":gen-statementtype-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sem/tree", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/geo", - "//pkg/geo/geopb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/security", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/lex", - "//pkg/sql/lexbase", - "//pkg/sql/oidext", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/pgwire/pgnotice", - "//pkg/sql/pgwire/pgwirecancel", - "//pkg/sql/privilege", - "//pkg/sql/roleoption", - "//pkg/sql/sem/catid", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/sem/tree/treewindow", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sqlliveness", - "//pkg/sql/sqltelemetry", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/arith", - "//pkg/util/bitarray", - "//pkg/util/cache", - "//pkg/util/duration", - "//pkg/util/encoding", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/hlc", - "//pkg/util/ipaddr", - "//pkg/util/json", - "//pkg/util/mon", - "//pkg/util/pretty", - "//pkg/util/ring", - "//pkg/util/stringencoding", - "//pkg/util/syncutil", - "//pkg/util/timeofday", - "//pkg/util/timetz", - "//pkg/util/timeutil", - "//pkg/util/timeutil/pgdate", - "//pkg/util/tracing", - "//pkg/util/uint128", - "//pkg/util/uuid", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_google_go_cmp//cmp", - "@com_github_lib_pq//oid", - "@org_golang_x_text//collate", - "@org_golang_x_text//language", - ], -) - -go_test( - name = "tree_test", - size = "small", - srcs = [ - "as_of_test.go", - "cast_map_test.go", - "cast_test.go", - "col_types_test.go", - "collatedstring_test.go", - "compare_test.go", - "constant_eval_test.go", - "constant_test.go", - "datum_integration_test.go", - "datum_invariants_test.go", - "datum_prev_next_test.go", - "datum_test.go", - "eval_internal_test.go", - "eval_test.go", - "expr_test.go", - "format_test.go", - "function_name_test.go", - "indexed_vars_test.go", - "interval_test.go", - "like_test.go", - "main_test.go", - "name_part_test.go", - "name_resolution_test.go", - "normalize_test.go", - "operators_test.go", - "overload_test.go", - "parse_array_test.go", - "parse_tuple_test.go", - "placeholders_test.go", - "pretty_test.go", - "role_spec_test.go", - "table_name_test.go", - "time_test.go", - "timeconv_test.go", - "type_check_internal_test.go", - "type_check_test.go", - "type_name_test.go", - "window_funcs_test.go", - ], - data = glob(["testdata/**"]) + ["//pkg/sql/parser:sql.y"], - embed = [":tree"], - deps = [ - "//pkg/build/bazel", - "//pkg/internal/rsg", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/settings/cluster", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/faketreeeval", - "//pkg/sql/oidext", - "//pkg/sql/opt/exec/execbuilder", - "//pkg/sql/opt/optbuilder", - "//pkg/sql/opt/xform", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/randgen", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree/treebin", - "//pkg/sql/sem/tree/treecmp", - "//pkg/sql/sem/tree/treewindow", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/sqlutils", - "//pkg/util/duration", - "//pkg/util/hlc", - "//pkg/util/json", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/pretty", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/timeofday", - "//pkg/util/timetz", - "//pkg/util/timeutil", - "//pkg/util/timeutil/pgdate", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@org_golang_x_sync//errgroup", - ], -) - -stringer( - name = "gen-createtypevariety-stringer", - src = "create.go", - typ = "CreateTypeVariety", -) - -stringer( - name = "gen-statementreturntype-stringer", - src = "stmt.go", - typ = "StatementReturnType", -) - -stringer( - name = "gen-statementtype-stringer", - src = "stmt.go", - typ = "StatementType", -) diff --git a/pkg/sql/sem/tree/eval_test/BUILD.bazel b/pkg/sql/sem/tree/eval_test/BUILD.bazel deleted file mode 100644 index 1c864af5a5d..00000000000 --- a/pkg/sql/sem/tree/eval_test/BUILD.bazel +++ /dev/null @@ -1,38 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_test") - -go_test( - name = "eval_test_test", - size = "small", - srcs = [ - "eval_test.go", - "main_test.go", - ], - data = ["//pkg/sql/sem/tree:testdata"], - deps = [ - "//pkg/base", - "//pkg/build/bazel", - "//pkg/col/coldata", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql/colexec", - "//pkg/sql/colexec/colbuilder", - "//pkg/sql/colexec/colexecargs", - "//pkg/sql/colexecop", - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/parser", - "//pkg/sql/rowenc", - "//pkg/sql/rowexec", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/sem/tree/treebin/BUILD.bazel b/pkg/sql/sem/tree/treebin/BUILD.bazel deleted file mode 100644 index 06d2b11e983..00000000000 --- a/pkg/sql/sem/tree/treebin/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "treebin", - srcs = [ - "binary_operator.go", - "doc.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sem/tree/treebin", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) diff --git a/pkg/sql/sem/tree/treecmp/BUILD.bazel b/pkg/sql/sem/tree/treecmp/BUILD.bazel deleted file mode 100644 index 4cc6a3f80a4..00000000000 --- a/pkg/sql/sem/tree/treecmp/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "treecmp", - srcs = [ - "comparison_operator.go", - "doc.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sem/tree/treecmp", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) diff --git a/pkg/sql/sem/tree/treewindow/BUILD.bazel b/pkg/sql/sem/tree/treewindow/BUILD.bazel deleted file mode 100644 index 516ecf27c17..00000000000 --- a/pkg/sql/sem/tree/treewindow/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "treewindow", - srcs = [ - "constants.go", - "doc.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sem/tree/treewindow", - visibility = ["//visibility:public"], - deps = [ - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) diff --git a/pkg/sql/sessiondata/BUILD.bazel b/pkg/sql/sessiondata/BUILD.bazel deleted file mode 100644 index 72466b8bccc..00000000000 --- a/pkg/sql/sessiondata/BUILD.bazel +++ /dev/null @@ -1,41 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "sessiondata", - srcs = [ - "internal.go", - "search_path.go", - "sequence_state.go", - "session_data.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sessiondata", - visibility = ["//visibility:public"], - deps = [ - "//pkg/security", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/lexbase", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sessiondatapb", - "//pkg/util/duration", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/timeutil/pgdate", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "sessiondata_test", - size = "small", - srcs = [ - "search_path_test.go", - "session_data_test.go", - ], - embed = [":sessiondata"], - deps = [ - "//pkg/sql/sessiondatapb", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/sessiondatapb/BUILD.bazel b/pkg/sql/sessiondatapb/BUILD.bazel deleted file mode 100644 index e27929266ef..00000000000 --- a/pkg/sql/sessiondatapb/BUILD.bazel +++ /dev/null @@ -1,55 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sessiondatapb", - srcs = [ - "local_only_session_data.go", - "sequence_cache.go", - "session_data.go", - ], - embed = [":sessiondatapb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sessiondatapb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/security", - "//pkg/util/admission", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//oid", # keep - ], -) - -proto_library( - name = "sessiondatapb_proto", - srcs = [ - "local_only_session_data.proto", - "session_data.proto", - "session_migration.proto", - "session_revival_token.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/lex:lex_proto", - "//pkg/util/duration:duration_proto", - "//pkg/util/timeutil/pgdate:pgdate_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -go_proto_library( - name = "sessiondatapb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sessiondatapb", - proto = ":sessiondatapb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/lex", - "//pkg/util/duration", - "//pkg/util/timeutil/pgdate", - "@com_github_gogo_protobuf//gogoproto", - ], -) diff --git a/pkg/sql/sessioninit/BUILD.bazel b/pkg/sql/sessioninit/BUILD.bazel deleted file mode 100644 index 20c0cfc71ca..00000000000 --- a/pkg/sql/sessioninit/BUILD.bazel +++ /dev/null @@ -1,54 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "sessioninit", - srcs = [ - "cache.go", - "constants.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sessioninit", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/security", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlutil", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/syncutil/singleflight", - "@com_github_cockroachdb_logtags//:logtags", - ], -) - -go_test( - name = "sessioninit_test", - srcs = [ - "cache_test.go", - "main_test.go", - ], - deps = [ - ":sessioninit", - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/sqlutil", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/sessionphase/BUILD.bazel b/pkg/sql/sessionphase/BUILD.bazel deleted file mode 100644 index 25d0f65d8ca..00000000000 --- a/pkg/sql/sessionphase/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sessionphase", - srcs = ["session_phase.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sessionphase", - visibility = ["//visibility:public"], -) diff --git a/pkg/sql/span/BUILD.bazel b/pkg/sql/span/BUILD.bazel deleted file mode 100644 index 990021ab7f3..00000000000 --- a/pkg/sql/span/BUILD.bazel +++ /dev/null @@ -1,49 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "span", - srcs = [ - "span_builder.go", - "span_splitter.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/span", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/inverted", - "//pkg/sql/opt/constraint", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/sem/tree", - "//pkg/util", - "//pkg/util/encoding", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "span_test", - size = "small", - srcs = [ - "main_test.go", - "span_splitter_test.go", - ], - deps = [ - ":span", - "//pkg/keys", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/tests", - "//pkg/testutils/serverutils", - "//pkg/util", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - ], -) diff --git a/pkg/sql/sqlerrors/BUILD.bazel b/pkg/sql/sqlerrors/BUILD.bazel deleted file mode 100644 index 2521496bd91..00000000000 --- a/pkg/sql/sqlerrors/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sqlerrors", - srcs = ["errors.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlerrors", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/sqlfsm/BUILD.bazel b/pkg/sql/sqlfsm/BUILD.bazel deleted file mode 100644 index af85226b956..00000000000 --- a/pkg/sql/sqlfsm/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sqlfsm", - srcs = ["fsm.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlfsm", - visibility = ["//visibility:public"], -) diff --git a/pkg/sql/sqlinstance/BUILD.bazel b/pkg/sql/sqlinstance/BUILD.bazel deleted file mode 100644 index b709a74310b..00000000000 --- a/pkg/sql/sqlinstance/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sqlinstance", - srcs = ["sqlinstance.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlinstance", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/sql/sqlliveness", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/sqlinstance/instanceprovider/BUILD.bazel b/pkg/sql/sqlinstance/instanceprovider/BUILD.bazel deleted file mode 100644 index 62dcff3e161..00000000000 --- a/pkg/sql/sqlinstance/instanceprovider/BUILD.bazel +++ /dev/null @@ -1,48 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "instanceprovider", - srcs = [ - "instanceprovider.go", - "test_helpers.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlinstance/instanceprovider", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/rangefeed", - "//pkg/sql/sqlinstance", - "//pkg/sql/sqlinstance/instancestorage", - "//pkg/sql/sqlliveness", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - ], -) - -go_test( - name = "instanceprovider_test", - srcs = ["instanceprovider_test.go"], - deps = [ - ":instanceprovider", - "//pkg/base", - "//pkg/clusterversion", - "//pkg/settings/cluster", - "//pkg/sql/sqlliveness", - "//pkg/sql/sqlliveness/slinstance", - "//pkg/sql/sqlliveness/slstorage", - "//pkg/testutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/sqlinstance/instancestorage/BUILD.bazel b/pkg/sql/sqlinstance/instancestorage/BUILD.bazel deleted file mode 100644 index ccf8b42bf47..00000000000 --- a/pkg/sql/sqlinstance/instancestorage/BUILD.bazel +++ /dev/null @@ -1,73 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "instancestorage", - srcs = [ - "instancereader.go", - "instancestorage.go", - "row_codec.go", - "test_helpers.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlinstance/instancestorage", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/rangefeed", - "//pkg/multitenant", - "//pkg/roachpb", - "//pkg/sql/catalog", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/valueside", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlinstance", - "//pkg/sql/sqlliveness", - "//pkg/sql/types", - "//pkg/util/encoding", - "//pkg/util/grpcutil", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "instancestorage_test", - srcs = [ - "instancereader_test.go", - "instancestorage_test.go", - "main_test.go", - ], - deps = [ - ":instancestorage", - "//pkg/base", - "//pkg/keys", - "//pkg/kv/kvclient/rangefeed", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/sqlinstance", - "//pkg/sql/sqlliveness", - "//pkg/sql/sqlliveness/slstorage", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/sqlliveness/BUILD.bazel b/pkg/sql/sqlliveness/BUILD.bazel deleted file mode 100644 index 344c47adb97..00000000000 --- a/pkg/sql/sqlliveness/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sqlliveness", - srcs = ["sqlliveness.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlliveness", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/metric", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/sqlliveness/slinstance/BUILD.bazel b/pkg/sql/sqlliveness/slinstance/BUILD.bazel deleted file mode 100644 index 00fcfb8aa5d..00000000000 --- a/pkg/sql/sqlliveness/slinstance/BUILD.bazel +++ /dev/null @@ -1,41 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "slinstance", - srcs = ["slinstance.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlliveness/slinstance", - visibility = ["//visibility:public"], - deps = [ - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/sqlliveness", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - ], -) - -go_test( - name = "slinstance_test", - size = "small", - srcs = [ - "helpers_test.go", - "slinstance_test.go", - ], - embed = [":slinstance"], - deps = [ - "//pkg/clusterversion", - "//pkg/settings/cluster", - "//pkg/sql/sqlliveness", - "//pkg/sql/sqlliveness/slstorage", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/sqlliveness/slprovider/BUILD.bazel b/pkg/sql/sqlliveness/slprovider/BUILD.bazel deleted file mode 100644 index f8e2f222b23..00000000000 --- a/pkg/sql/sqlliveness/slprovider/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "slprovider", - srcs = ["slprovider.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlliveness/slprovider", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/settings/cluster", - "//pkg/sql/sqlliveness", - "//pkg/sql/sqlliveness/slinstance", - "//pkg/sql/sqlliveness/slstorage", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/stop", - ], -) diff --git a/pkg/sql/sqlliveness/slstorage/BUILD.bazel b/pkg/sql/sqlliveness/slstorage/BUILD.bazel deleted file mode 100644 index 8fbee773cbe..00000000000 --- a/pkg/sql/sqlliveness/slstorage/BUILD.bazel +++ /dev/null @@ -1,76 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "slstorage", - srcs = [ - "metrics.go", - "slstorage.go", - "test_helpers.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlliveness/slstorage", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/multitenant", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog/descpb", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlliveness", - "//pkg/util/cache", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/syncutil/singleflight", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_prometheus_client_model//go", - ], -) - -go_test( - name = "slstorage_test", - size = "small", - srcs = [ - "main_test.go", - "slstorage_test.go", - ], - deps = [ - ":slstorage", - "//pkg/base", - "//pkg/keys", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/sqlliveness", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/sql/sqlliveness/sqllivenesstestutils/BUILD.bazel b/pkg/sql/sqlliveness/sqllivenesstestutils/BUILD.bazel deleted file mode 100644 index 8eacf65a544..00000000000 --- a/pkg/sql/sqlliveness/sqllivenesstestutils/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sqllivenesstestutils", - srcs = ["alwaysalivesession.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlliveness/sqllivenesstestutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/sqlliveness", - "//pkg/util/hlc", - ], -) diff --git a/pkg/sql/sqlstats/BUILD.bazel b/pkg/sql/sqlstats/BUILD.bazel deleted file mode 100644 index 33f2db17ce4..00000000000 --- a/pkg/sql/sqlstats/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sqlstats", - srcs = [ - "cluster_settings.go", - "ssprovider.go", - "test_utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlstats", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/settings", - "//pkg/sql/execstats", - "//pkg/sql/sem/tree", - "//pkg/sql/sessionphase", - "//pkg/util/stop", - ], -) diff --git a/pkg/sql/sqlstats/persistedsqlstats/BUILD.bazel b/pkg/sql/sqlstats/persistedsqlstats/BUILD.bazel deleted file mode 100644 index de002774abc..00000000000 --- a/pkg/sql/sqlstats/persistedsqlstats/BUILD.bazel +++ /dev/null @@ -1,120 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "persistedsqlstats", - srcs = [ - "appStats.go", - "cluster_settings.go", - "combined_iterator.go", - "compaction_exec.go", - "compaction_scheduling.go", - "controller.go", - "flush.go", - "mem_iterator.go", - "provider.go", - "scheduled_job_monitor.go", - "stmt_reader.go", - "txn_reader.go", - ], - embed = [":persistedsqlstats_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlstats/persistedsqlstats", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/scheduledjobs", - "//pkg/security", - "//pkg/server/serverpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlstats", - "//pkg/sql/sqlstats/persistedsqlstats/sqlstatsutil", - "//pkg/sql/sqlstats/sslocal", - "//pkg/sql/sqlstats/ssmemstorage", - "//pkg/sql/sqlutil", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//types", - "@com_github_robfig_cron_v3//:cron", - ], -) - -go_test( - name = "persistedsqlstats_test", - srcs = [ - "bench_test.go", - "compaction_test.go", - "controller_test.go", - "datadriven_test.go", - "flush_test.go", - "main_test.go", - "reader_test.go", - "scheduled_sql_stats_compaction_test.go", - ], - data = glob(["testdata/**"]), - shard_count = 16, - deps = [ - ":persistedsqlstats", - "//pkg/base", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/jobs/jobstest", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/scheduledjobs", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlstats", - "//pkg/sql/sqlutil", - "//pkg/sql/tests", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/encoding", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "persistedsqlstats_proto", - srcs = ["sql_stats_compact.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], -) - -go_proto_library( - name = "persistedsqlstats_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlstats/persistedsqlstats", - proto = ":persistedsqlstats_proto", - visibility = ["//visibility:public"], -) diff --git a/pkg/sql/sqlstats/persistedsqlstats/sqlstatsutil/BUILD.bazel b/pkg/sql/sqlstats/persistedsqlstats/sqlstatsutil/BUILD.bazel deleted file mode 100644 index 2bde331f4da..00000000000 --- a/pkg/sql/sqlstats/persistedsqlstats/sqlstatsutil/BUILD.bazel +++ /dev/null @@ -1,37 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "sqlstatsutil", - srcs = [ - "json_decoding.go", - "json_encoding.go", - "json_impl.go", - "testutils.go", - "utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlstats/persistedsqlstats/sqlstatsutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/sql/sem/tree", - "//pkg/util/encoding", - "//pkg/util/json", - "//pkg/util/timeutil", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) - -go_test( - name = "sqlstatsutil_test", - srcs = ["json_encoding_test.go"], - embed = [":sqlstatsutil"], - deps = [ - "//pkg/roachpb", - "//pkg/util/json", - "//pkg/util/leaktest", - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/sqlstats/sslocal/BUILD.bazel b/pkg/sql/sqlstats/sslocal/BUILD.bazel deleted file mode 100644 index 37ba450364d..00000000000 --- a/pkg/sql/sqlstats/sslocal/BUILD.bazel +++ /dev/null @@ -1,72 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "sslocal", - srcs = [ - "cluster_settings.go", - "sql_stats.go", - "sql_stats_controller.go", - "sslocal_iterator.go", - "sslocal_provider.go", - "sslocal_sink.go", - "sslocal_stats_collector.go", - "temp_sql_stats.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlstats/sslocal", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/roachpb", - "//pkg/server/serverpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/sessionphase", - "//pkg/sql/sqlstats", - "//pkg/sql/sqlstats/ssmemstorage", - "//pkg/sql/sqlutil", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "sslocal_test", - srcs = [ - "iterator_test.go", - "main_test.go", - "sql_stats_test.go", - ], - deps = [ - ":sslocal", - "//pkg/base", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/server/serverpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/sessiondata", - "//pkg/sql/sessionphase", - "//pkg/sql/sqlstats", - "//pkg/sql/sqlstats/persistedsqlstats", - "//pkg/sql/sqlstats/persistedsqlstats/sqlstatsutil", - "//pkg/sql/tests", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/sqlstats/ssmemstorage/BUILD.bazel b/pkg/sql/sqlstats/ssmemstorage/BUILD.bazel deleted file mode 100644 index e652b85936e..00000000000 --- a/pkg/sql/sqlstats/ssmemstorage/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ssmemstorage", - srcs = [ - "ss_mem_iterator.go", - "ss_mem_storage.go", - "ss_mem_writer.go", - "utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlstats/ssmemstorage", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/server/serverpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/execstats", - "//pkg/sql/sqlstats", - "//pkg/util", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/sqltelemetry/BUILD.bazel b/pkg/sql/sqltelemetry/BUILD.bazel deleted file mode 100644 index 1e6d4ab0d47..00000000000 --- a/pkg/sql/sqltelemetry/BUILD.bazel +++ /dev/null @@ -1,41 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sqltelemetry", - srcs = [ - "diagnostics.go", - "doc.go", - "drop_owned_by.go", - "enum.go", - "exec.go", - "extension.go", - "feature_flags.go", - "follower_reads.go", - "iam.go", - "multiregion.go", - "partitioning.go", - "pgwire.go", - "planning.go", - "reassign_owned_by.go", - "report.go", - "scalar.go", - "scheduled_backups.go", - "schema.go", - "session.go", - "show.go", - "ttl.go", - "user_defined_schema.go", - "virtual_schema.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqltelemetry", - visibility = ["//visibility:public"], - deps = [ - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/util/log", - "//pkg/util/log/logcrash", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/sqltestutils/BUILD.bazel b/pkg/sql/sqltestutils/BUILD.bazel deleted file mode 100644 index e4a3cd7fd08..00000000000 --- a/pkg/sql/sqltestutils/BUILD.bazel +++ /dev/null @@ -1,41 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sqltestutils", - srcs = [ - "show_create_table.go", - "sql_test_utils.go", - "telemetry.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqltestutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/server", - "//pkg/server/diagnostics", - "//pkg/sql", - "//pkg/sql/catalog/catconstants", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/tests", - "//pkg/testutils", - "//pkg/testutils/diagutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/util", - "//pkg/util/cloudinfo", - "//pkg/util/protoutil", - "//pkg/util/treeprinter", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//:pq", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/sqlutil/BUILD.bazel b/pkg/sql/sqlutil/BUILD.bazel deleted file mode 100644 index 234ce51cb48..00000000000 --- a/pkg/sql/sqlutil/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sqlutil", - srcs = ["internal_executor.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqlutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/sql/catalog", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - ], -) diff --git a/pkg/sql/stats/BUILD.bazel b/pkg/sql/stats/BUILD.bazel deleted file mode 100644 index 1f830e0f426..00000000000 --- a/pkg/sql/stats/BUILD.bazel +++ /dev/null @@ -1,147 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "stats", - srcs = [ - "automatic_stats.go", - "delete_stats.go", - "histogram.go", - "json.go", - "new_stat.go", - "row_sampling.go", - "stats_cache.go", - ], - embed = [":stats_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/stats", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/rangefeed", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/memsize", - "//pkg/sql/opt/cat", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/rowenc", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlerrors", - "//pkg/sql/sqlutil", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/cache", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "stats_test", - size = "medium", - srcs = [ - "automatic_stats_manual_test.go", - "automatic_stats_test.go", - "create_stats_job_test.go", - "delete_stats_test.go", - "histogram_test.go", - "main_test.go", - "row_sampling_test.go", - "stats_cache_test.go", - ], - embed = [":stats"], - deps = [ - "//pkg/base", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/execinfra", - "//pkg/sql/opt/cat", - "//pkg/sql/rowenc", - "//pkg/sql/rowexec", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlutil", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/jobutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util", - "//pkg/util/encoding", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/retry", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -proto_library( - name = "stats_proto", - srcs = [ - "histogram.proto", - "table_statistic.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/types:types_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -go_proto_library( - name = "stats_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/stats", - proto = ":stats_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/types", - "@com_github_gogo_protobuf//gogoproto", - ], -) diff --git a/pkg/sql/stmtdiagnostics/BUILD.bazel b/pkg/sql/stmtdiagnostics/BUILD.bazel deleted file mode 100644 index d418706d19b..00000000000 --- a/pkg/sql/stmtdiagnostics/BUILD.bazel +++ /dev/null @@ -1,62 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "stmtdiagnostics", - srcs = ["statement_diagnostics.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/stmtdiagnostics", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/gossip", - "//pkg/kv", - "//pkg/multitenant", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sqlutil", - "//pkg/sql/types", - "//pkg/util", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "stmtdiagnostics_test", - size = "medium", - srcs = [ - "main_test.go", - "statement_diagnostics_helpers_test.go", - "statement_diagnostics_test.go", - ], - embed = [":stmtdiagnostics"], - tags = ["no-remote"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/sqlerrors", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/storageparam/BUILD.bazel b/pkg/sql/storageparam/BUILD.bazel deleted file mode 100644 index c52ae876561..00000000000 --- a/pkg/sql/storageparam/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "storageparam", - srcs = ["storage_param.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/storageparam", - visibility = ["//visibility:public"], - deps = [ - "//pkg/server/telemetry", - "//pkg/sql/paramparse", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/pgwire/pgnotice", - "//pkg/sql/sem/tree", - "//pkg/sql/sqltelemetry", - "//pkg/sql/types", - ], -) diff --git a/pkg/sql/storageparam/indexstorageparam/BUILD.bazel b/pkg/sql/storageparam/indexstorageparam/BUILD.bazel deleted file mode 100644 index 26d4c1eb4ee..00000000000 --- a/pkg/sql/storageparam/indexstorageparam/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "indexstorageparam", - srcs = ["index_storage_param.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/storageparam/indexstorageparam", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo/geoindex", - "//pkg/sql/catalog/descpb", - "//pkg/sql/paramparse", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/sql/storageparam", - "//pkg/util/errorutil/unimplemented", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/storageparam/tablestorageparam/BUILD.bazel b/pkg/sql/storageparam/tablestorageparam/BUILD.bazel deleted file mode 100644 index a6286d5cbe8..00000000000 --- a/pkg/sql/storageparam/tablestorageparam/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "tablestorageparam", - srcs = ["table_storage_param.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/storageparam/tablestorageparam", - visibility = ["//visibility:public"], - deps = [ - "//pkg/settings", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/paramparse", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/pgwire/pgnotice", - "//pkg/sql/sem/tree", - "//pkg/sql/storageparam", - "//pkg/util/duration", - "//pkg/util/errorutil/unimplemented", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/sql/tests/BUILD.bazel b/pkg/sql/tests/BUILD.bazel deleted file mode 100644 index 2994cd25cbb..00000000000 --- a/pkg/sql/tests/BUILD.bazel +++ /dev/null @@ -1,118 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "tests", - srcs = [ - "command_filters.go", - "data.go", - "end_txn_trigger.go", - "server_params.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/tests", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/sql/sqlstats", - "//pkg/testutils/storageutils", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "tests_test", - size = "large", - srcs = [ - "autocommit_extended_protocol_test.go", - "bank_test.go", - "enum_test.go", - "hash_sharded_test.go", - "impure_builtin_test.go", - "inverted_index_test.go", - "kv_test.go", - "main_test.go", - "monotonic_insert_test.go", - "random_schema_test.go", - "rename_column_test.go", - "repair_test.go", - "rsg_test.go", - "split_test.go", - "system_table_test.go", - "table_split_test.go", - "tracing_sql_test.go", - "truncate_test.go", - "virtual_table_test.go", - ], - data = glob(["testdata/**"]), - embed = [":tests"], - shard_count = 16, - deps = [ - "//pkg/base", - "//pkg/bench", - "//pkg/ccl", - "//pkg/ccl/utilccl", - "//pkg/clusterversion", - "//pkg/config/zonepb", - "//pkg/internal/rsg", - "//pkg/internal/sqlsmith", - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/concurrency", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descbuilder", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/catalog/systemschema", - "//pkg/sql/catalog/tabledesc", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/randgen", - "//pkg/sql/sem/builtins", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondatapb", - "//pkg/sql/stats", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/ctxgroup", - "//pkg/util/json", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_google_btree//:btree", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_kr_pretty//:pretty", - "@com_github_lib_pq//:pq", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/sql/ttl/ttljob/BUILD.bazel b/pkg/sql/ttl/ttljob/BUILD.bazel deleted file mode 100644 index 0902bbdd6a1..00000000000 --- a/pkg/sql/ttl/ttljob/BUILD.bazel +++ /dev/null @@ -1,88 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "ttljob", - srcs = [ - "ttljob.go", - "ttljob_keydecoder.go", - "ttljob_query_builder.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/ttl/ttljob", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/server/telemetry", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/lexbase", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/sql/sessiondatapb", - "//pkg/sql/sqltelemetry", - "//pkg/sql/types", - "//pkg/util/ctxgroup", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/metric/aggmetric", - "//pkg/util/quotapool", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_prometheus_client_model//go", - ], -) - -go_test( - name = "ttljob_test", - srcs = [ - "main_test.go", - "ttljob_keydecoder_test.go", - "ttljob_query_builder_test.go", - "ttljob_test.go", - ], - embed = [":ttljob"], - deps = [ - "//pkg/base", - "//pkg/ccl/kvccl/kvtenantccl", - "//pkg/jobs", - "//pkg/jobs/jobstest", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/scheduledjobs", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/desctestutils", - "//pkg/sql/lexbase", - "//pkg/sql/parser", - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/encoding", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/sql/ttl/ttlschedule/BUILD.bazel b/pkg/sql/ttl/ttlschedule/BUILD.bazel deleted file mode 100644 index 953b2c21317..00000000000 --- a/pkg/sql/ttl/ttlschedule/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ttlschedule", - srcs = ["ttlschedule.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/ttl/ttlschedule", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/kv", - "//pkg/scheduledjobs", - "//pkg/security", - "//pkg/sql", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descs", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/sql/sqlerrors", - "//pkg/sql/sqlutil", - "//pkg/util/metric", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//types", - ], -) diff --git a/pkg/sql/types/BUILD.bazel b/pkg/sql/types/BUILD.bazel deleted file mode 100644 index b186fd542c1..00000000000 --- a/pkg/sql/types/BUILD.bazel +++ /dev/null @@ -1,76 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "types", - srcs = [ - "alias.go", - "oid.go", - "testutils.go", - "types.go", - "types_jsonpb.go", - ], - embed = [":types_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/types", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo/geopb", - "//pkg/sql/lex", - "//pkg/sql/oidext", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//jsonpb", - "@com_github_gogo_protobuf//proto", - "@com_github_lib_pq//oid", - ], -) - -go_test( - name = "types_test", - size = "small", - srcs = [ - "dep_test.go", - "types_test.go", - "types_text_marshal_test.go", - ], - embed = [":types"], - deps = [ - "//pkg/geo/geopb", - "//pkg/sql/catalog/descpb", - "//pkg/sql/catalog/typedesc", - "//pkg/sql/oidext", - "//pkg/testutils/buildutil", - "//pkg/util/protoutil", - "@com_github_lib_pq//oid", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "types_proto", - srcs = ["types.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo/geopb:geopb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "types_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/types", - proto = ":types_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo/geopb", - "@com_github_gogo_protobuf//gogoproto", - ], -) diff --git a/pkg/sql/vtable/BUILD.bazel b/pkg/sql/vtable/BUILD.bazel deleted file mode 100644 index 5e1c99ff3fb..00000000000 --- a/pkg/sql/vtable/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "vtable", - srcs = [ - "information_schema.go", - "pg_catalog.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/sql/vtable", - visibility = ["//visibility:public"], -) - -exports_files([ - "pg_catalog.go", - "information_schema.go", -]) diff --git a/pkg/startupmigrations/BUILD.bazel b/pkg/startupmigrations/BUILD.bazel deleted file mode 100644 index 797db61e7ae..00000000000 --- a/pkg/startupmigrations/BUILD.bazel +++ /dev/null @@ -1,66 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "startupmigrations", - srcs = [ - "doc.go", - "migrations.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/startupmigrations", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/config/zonepb", - "//pkg/jobs", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/settings/cluster", - "//pkg/sql", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/catalogkeys", - "//pkg/sql/catalog/descpb", - "//pkg/sql/sem/tree", - "//pkg/sql/sessiondata", - "//pkg/startupmigrations/leasemanager", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/retry", - "//pkg/util/startup", - "//pkg/util/stop", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "startupmigrations_test", - srcs = [ - "main_test.go", - "migrations_test.go", - ], - embed = [":startupmigrations"], - deps = [ - "//pkg/base", - "//pkg/cli/exit", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql", - "//pkg/startupmigrations/leasemanager", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/startupmigrations/leasemanager/BUILD.bazel b/pkg/startupmigrations/leasemanager/BUILD.bazel deleted file mode 100644 index 71ee9e50c86..00000000000 --- a/pkg/startupmigrations/leasemanager/BUILD.bazel +++ /dev/null @@ -1,63 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "leasemanager", - srcs = ["lease.go"], - embed = [":leasemanager_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/startupmigrations/leasemanager", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/roachpb", - "//pkg/util/hlc", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "leasemanager_test", - size = "small", - srcs = [ - "lease_test.go", - "main_test.go", - ], - deps = [ - ":leasemanager", - "//pkg/base", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "@com_github_cockroachdb_errors//:errors", - ], -) - -proto_library( - name = "leasemanager_proto", - srcs = ["lease.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/hlc:hlc_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "leasemanager_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/startupmigrations/leasemanager", - proto = ":leasemanager_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/hlc", - "@com_github_gogo_protobuf//gogoproto", - ], -) diff --git a/pkg/storage/BUILD.bazel b/pkg/storage/BUILD.bazel deleted file mode 100644 index a92b50a0486..00000000000 --- a/pkg/storage/BUILD.bazel +++ /dev/null @@ -1,178 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "storage", - srcs = [ - "array_32bit.go", - "array_64bit.go", - "ballast.go", - "batch.go", - "disk_map.go", - "doc.go", - "engine.go", - "engine_key.go", - "in_mem.go", - "intent_interleaving_iter.go", - "intent_reader_writer.go", - "min_version.go", - "multi_iterator.go", - "mvcc.go", - "mvcc_incremental_iterator.go", - "mvcc_key.go", - "mvcc_logical_ops.go", - "open.go", - "pebble.go", - "pebble_batch.go", - "pebble_file_registry.go", - "pebble_iterator.go", - "pebble_merge.go", - "pebble_mvcc_scanner.go", - "replicas_storage.go", - "resource_limiter.go", - "row_counter.go", - "slice.go", - "slice_go1.9.go", - "sst.go", - "sst_iterator.go", - "sst_writer.go", - "store_properties.go", - "temp_engine.go", - "testing_knobs.go", - ":gen-resourcelimitreached-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/storage", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/cli/exit", - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/diskmap", - "//pkg/kv/kvserver/uncertainty", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/storage/enginepb", - "//pkg/storage/fs", - "//pkg/util", - "//pkg/util/bufalloc", - "//pkg/util/encoding", - "//pkg/util/envutil", - "//pkg/util/hlc", - "//pkg/util/humanizeutil", - "//pkg/util/iterutil", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/syncutil", - "//pkg/util/sysutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_pebble//:pebble", - "@com_github_cockroachdb_pebble//bloom", - "@com_github_cockroachdb_pebble//record", - "@com_github_cockroachdb_pebble//sstable", - "@com_github_cockroachdb_pebble//vfs", - "@com_github_cockroachdb_pebble//vfs/atomicfs", - "@com_github_cockroachdb_redact//:redact", - "@com_github_dustin_go_humanize//:go-humanize", - "@com_github_elastic_gosigar//:gosigar", - "@com_github_gogo_protobuf//proto", - "@io_etcd_go_etcd_raft_v3//raftpb", - ], -) - -go_test( - name = "storage_test", - size = "medium", - srcs = [ - "ballast_test.go", - "batch_test.go", - "bench_pebble_test.go", - "bench_test.go", - "disk_map_test.go", - "engine_key_test.go", - "engine_test.go", - "intent_interleaving_iter_test.go", - "intent_reader_writer_test.go", - "main_test.go", - "min_version_test.go", - "multi_iterator_test.go", - "mvcc_history_test.go", - "mvcc_incremental_iterator_test.go", - "mvcc_key_test.go", - "mvcc_logical_ops_test.go", - "mvcc_stats_test.go", - "mvcc_test.go", - "pebble_file_registry_test.go", - "pebble_mvcc_scanner_test.go", - "pebble_test.go", - "resource_limiter_test.go", - "sst_iterator_test.go", - "sst_test.go", - "sst_writer_test.go", - "temp_engine_test.go", - ], - data = glob(["testdata/**"]), - embed = [":storage"], - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/keys", - "//pkg/kv/kvserver/concurrency/lock", - "//pkg/kv/kvserver/diskmap", - "//pkg/kv/kvserver/uncertainty", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/sql/catalog", - "//pkg/sql/catalog/bootstrap", - "//pkg/sql/catalog/descpb", - "//pkg/sql/rowenc", - "//pkg/sql/sem/tree", - "//pkg/storage/enginepb", - "//pkg/storage/fs", - "//pkg/testutils", - "//pkg/testutils/skip", - "//pkg/testutils/zerofields", - "//pkg/util", - "//pkg/util/caller", - "//pkg/util/encoding", - "//pkg/util/fileutil", - "//pkg/util/hlc", - "//pkg/util/iterutil", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/shuffle", - "//pkg/util/sysutil", - "//pkg/util/timeutil", - "//pkg/util/uint128", - "//pkg/util/uuid", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_pebble//:pebble", - "@com_github_cockroachdb_pebble//sstable", - "@com_github_cockroachdb_pebble//vfs", - "@com_github_cockroachdb_redact//:redact", - "@com_github_kr_pretty//:pretty", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@org_golang_google_protobuf//proto", - "@org_golang_x_sync//errgroup", - ], -) - -stringer( - name = "gen-resourcelimitreached-stringer", - src = "resource_limiter.go", - typ = "ResourceLimitReached", -) diff --git a/pkg/storage/enginepb/BUILD.bazel b/pkg/storage/enginepb/BUILD.bazel deleted file mode 100644 index 059bac3749d..00000000000 --- a/pkg/storage/enginepb/BUILD.bazel +++ /dev/null @@ -1,70 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -proto_library( - name = "enginepb_proto", - srcs = [ - "engine.proto", - "file_registry.proto", - "mvcc.proto", - "mvcc3.proto", - "rocksdb.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/hlc:hlc_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "enginepb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/storage/enginepb", - proto = ":enginepb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/hlc", - "//pkg/util/uuid", # keep - "@com_github_gogo_protobuf//gogoproto", - ], -) - -go_library( - name = "enginepb", - srcs = [ - "decode.go", - "engine.go", - "file_registry.go", - "mvcc.go", - "mvcc3.go", - ], - embed = [":enginepb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/storage/enginepb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/hlc", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "enginepb_test", - size = "small", - srcs = [ - "decode_test.go", - "mvcc_test.go", - ], - deps = [ - ":enginepb", - "//pkg/roachpb", - "//pkg/storage", - "//pkg/util/hlc", - "//pkg/util/uuid", - "@com_github_cockroachdb_redact//:redact", - "@com_github_stretchr_testify//assert", - ], -) diff --git a/pkg/storage/fs/BUILD.bazel b/pkg/storage/fs/BUILD.bazel deleted file mode 100644 index 8e9c89ea962..00000000000 --- a/pkg/storage/fs/BUILD.bazel +++ /dev/null @@ -1,36 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "fs", - srcs = [ - "fs.go", - "safewrite.go", - "temp_dir.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/storage/fs", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/log", - "//pkg/util/stop", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_pebble//vfs", - ], -) - -go_test( - name = "fs_test", - srcs = [ - "safewrite_test.go", - "temp_dir_test.go", - ], - embed = [":fs"], - deps = [ - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_pebble//vfs", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/storage/metamorphic/BUILD.bazel b/pkg/storage/metamorphic/BUILD.bazel deleted file mode 100644 index 1216400ee21..00000000000 --- a/pkg/storage/metamorphic/BUILD.bazel +++ /dev/null @@ -1,50 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "metamorphic", - srcs = [ - "deck.go", - "generator.go", - "operands.go", - "operations.go", - "options.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/storage/metamorphic", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util/hlc", - "//pkg/util/randutil", - "//pkg/util/syncutil", - "//pkg/util/uint128", - "//pkg/util/uuid", - "@com_github_cockroachdb_pebble//:pebble", - "@com_github_cockroachdb_pebble//vfs", - ], -) - -go_test( - name = "metamorphic_test", - size = "enormous", - srcs = [ - "main_test.go", - "meta_test.go", - ], - embed = [":metamorphic"], - shard_count = 16, - deps = [ - "//pkg/settings/cluster", - "//pkg/testutils", - "//pkg/testutils/skip", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_pebble//vfs", - ], -) diff --git a/pkg/testutils/BUILD.bazel b/pkg/testutils/BUILD.bazel deleted file mode 100644 index b29894ba7e7..00000000000 --- a/pkg/testutils/BUILD.bazel +++ /dev/null @@ -1,60 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "testutils", - srcs = [ - "base.go", - "data_path.go", - "dir.go", - "error.go", - "files.go", - "hook.go", - "keys.go", - "listener.go", - "net.go", - "pprof.go", - "soon.go", - "sort.go", - "subtest.go", - "tb.go", - "trace.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/build/bazel", - "//pkg/roachpb", - "//pkg/security", - "//pkg/sql/pgwire/pgerror", - "//pkg/util", - "//pkg/util/envutil", - "//pkg/util/fileutil", - "//pkg/util/log", - "//pkg/util/retry", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) - -go_test( - name = "testutils_test", - size = "small", - srcs = [ - "hook_test.go", - "net_test.go", - "soon_test.go", - ], - embed = [":testutils"], - deps = [ - "//pkg/util", - "//pkg/util/grpcutil", - "//pkg/util/leaktest", - "//pkg/util/netutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/testutils/buildutil/BUILD.bazel b/pkg/testutils/buildutil/BUILD.bazel deleted file mode 100644 index efacd1d19ae..00000000000 --- a/pkg/testutils/buildutil/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "buildutil", - srcs = ["build.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/buildutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/skip", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/testutils/colcontainerutils/BUILD.bazel b/pkg/testutils/colcontainerutils/BUILD.bazel deleted file mode 100644 index eb846c900f5..00000000000 --- a/pkg/testutils/colcontainerutils/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "colcontainerutils", - srcs = ["diskqueuecfg.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/colcontainerutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/colcontainer", - "//pkg/storage", - "//pkg/storage/fs", - "//pkg/testutils", - ], -) diff --git a/pkg/testutils/diagutils/BUILD.bazel b/pkg/testutils/diagutils/BUILD.bazel deleted file mode 100644 index 03955e97631..00000000000 --- a/pkg/testutils/diagutils/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "diagutils", - srcs = ["diag_test_server.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/diagutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/server/diagnostics/diagnosticspb", - "//pkg/util/protoutil", - "//pkg/util/syncutil", - ], -) diff --git a/pkg/testutils/distsqlutils/BUILD.bazel b/pkg/testutils/distsqlutils/BUILD.bazel deleted file mode 100644 index 7dd2e8384c6..00000000000 --- a/pkg/testutils/distsqlutils/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "distsqlutils", - srcs = ["row_buffer.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/distsqlutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/execinfra", - "//pkg/sql/execinfrapb", - "//pkg/sql/rowenc", - "//pkg/sql/types", - "//pkg/util/log", - "//pkg/util/syncutil", - ], -) diff --git a/pkg/testutils/docker/BUILD.bazel b/pkg/testutils/docker/BUILD.bazel deleted file mode 100644 index e562f80ae8e..00000000000 --- a/pkg/testutils/docker/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -# keep -go_test( - name = "docker_test", - srcs = ["single_node_docker_test.go"], - data = glob(["testdata/**"]) + [ - "//pkg/testutils/docker:testdata", - "//pkg/testutils/docker/docker-fsnotify:docker-fsnotify", - ], - gotags = ["docker"], - deps = [ - "//pkg/util/contextutil", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - "@com_github_docker_docker//api/types", - "@com_github_docker_docker//api/types/container", - "@com_github_docker_docker//api/types/filters", - "@com_github_docker_docker//client", - "@com_github_docker_docker//pkg/stdcopy", - "@com_github_docker_go_connections//nat", - ], -) - -go_library( - name = "testutils_docker", - srcs = ["empty.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/docker", - visibility = ["//visibility:public"], -) diff --git a/pkg/testutils/docker/docker-fsnotify/BUILD.bazel b/pkg/testutils/docker/docker-fsnotify/BUILD.bazel deleted file mode 100644 index d1e759f8ef5..00000000000 --- a/pkg/testutils/docker/docker-fsnotify/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "docker-fsnotify_lib", - srcs = ["listen_file_creation.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/docker/docker-fsnotify", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/log", # keep - "@com_github_cockroachdb_errors//:errors", - "@com_github_fsnotify_fsnotify//:fsnotify", - ], -) - -go_binary( - name = "docker-fsnotify", - out = "docker-fsnotify-bin", - embed = [":docker-fsnotify_lib"], - visibility = ["//visibility:public"], -) diff --git a/pkg/testutils/echotest/BUILD.bazel b/pkg/testutils/echotest/BUILD.bazel deleted file mode 100644 index 57b42e94fa3..00000000000 --- a/pkg/testutils/echotest/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "echotest", - srcs = ["echotest.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/echotest", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_datadriven//:datadriven"], -) diff --git a/pkg/testutils/floatcmp/BUILD.bazel b/pkg/testutils/floatcmp/BUILD.bazel deleted file mode 100644 index 46f860867f6..00000000000 --- a/pkg/testutils/floatcmp/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "floatcmp", - srcs = ["floatcmp.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/floatcmp", - visibility = ["//visibility:public"], - deps = [ - "@com_github_google_go_cmp//cmp", - "@com_github_google_go_cmp//cmp/cmpopts", - ], -) - -go_test( - name = "floatcmp_test", - size = "small", - srcs = ["floatcmp_test.go"], - embed = [":floatcmp"], -) diff --git a/pkg/testutils/gossiputil/BUILD.bazel b/pkg/testutils/gossiputil/BUILD.bazel deleted file mode 100644 index 96bf4dbf2f7..00000000000 --- a/pkg/testutils/gossiputil/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "gossiputil", - srcs = ["store_gossiper.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/gossiputil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/gossip", - "//pkg/roachpb", - "//pkg/util/syncutil", - ], -) diff --git a/pkg/testutils/grpcutils/BUILD.bazel b/pkg/testutils/grpcutils/BUILD.bazel deleted file mode 100644 index 07469ebd043..00000000000 --- a/pkg/testutils/grpcutils/BUILD.bazel +++ /dev/null @@ -1,28 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -proto_library( - name = "grpcutils_proto", - srcs = ["testservice.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_google_protobuf//:any_proto"], -) - -go_proto_library( - name = "grpcutils_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/grpcutils", - proto = ":grpcutils_proto", - visibility = ["//visibility:public"], -) - -go_library( - name = "grpcutils", - srcs = ["testserver.go"], - embed = [":grpcutils_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/grpcutils", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//types"], -) diff --git a/pkg/testutils/jobutils/BUILD.bazel b/pkg/testutils/jobutils/BUILD.bazel deleted file mode 100644 index 52803e28d3b..00000000000 --- a/pkg/testutils/jobutils/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "jobutils", - srcs = ["jobs_verification.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/jobutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/jobs", - "//pkg/jobs/jobspb", - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/security", - "//pkg/sql/catalog/descpb", - "//pkg/testutils/sqlutils", - "//pkg/util/protoutil", - "//pkg/util/retry", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//:pq", - "@com_github_stretchr_testify//assert", - ], -) diff --git a/pkg/testutils/keysutils/BUILD.bazel b/pkg/testutils/keysutils/BUILD.bazel deleted file mode 100644 index db87c92d2b6..00000000000 --- a/pkg/testutils/keysutils/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "keysutils", - srcs = ["pretty_scanner.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/keysutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/sql/rowenc/keyside", - "//pkg/sql/sem/tree", - "//pkg/util/encoding", - "//pkg/util/keysutil", - ], -) - -go_test( - name = "keysutils_test", - size = "small", - srcs = ["pretty_scanner_test.go"], - embed = [":keysutils"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/testutils", - "//pkg/util/encoding", - ], -) diff --git a/pkg/testutils/kvclientutils/BUILD.bazel b/pkg/testutils/kvclientutils/BUILD.bazel deleted file mode 100644 index 7fa3724e333..00000000000 --- a/pkg/testutils/kvclientutils/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "kvclientutils", - srcs = [ - "api.go", - "txn_recovery.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/kvclientutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv", - "//pkg/roachpb", - "//pkg/util/hlc", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/testutils/lint/BUILD.bazel b/pkg/testutils/lint/BUILD.bazel deleted file mode 100644 index b2a22e95dd2..00000000000 --- a/pkg/testutils/lint/BUILD.bazel +++ /dev/null @@ -1,41 +0,0 @@ -exports_files(["testdata/errcheck_excludes.txt"]) - -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -# gazelle:build_tags lint -# gazelle:build_tags nightly - -go_library( - name = "lint", - srcs = ["lint.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint", - visibility = ["//visibility:public"], -) - -go_test( - name = "lint_test", - srcs = [ - "lint_test.go", - "nightly_lint_test.go", - ], - data = glob(["testdata/**"]), - embed = [":lint"], - gotags = ["lint"], - tags = ["integration"], - visibility = ["//build/bazelutil:__subpackages__"], - deps = [ - "//pkg/build/bazel", - "//pkg/cmd/urlcheck/lib/urlcheck", - "//pkg/internal/codeowners", - "//pkg/sql/parser", - "//pkg/sql/sem/builtins", - "//pkg/testutils", - "//pkg/testutils/buildutil", - "//pkg/testutils/skip", - "@com_github_cockroachdb_errors//:errors", - "@com_github_ghemawat_stream//:stream", - "@com_github_jordanlewis_gcassert//:gcassert", - "@com_github_stretchr_testify//require", - "@org_golang_x_tools//go/packages", - ], -) diff --git a/pkg/testutils/lint/passes/descriptormarshal/BUILD.bazel b/pkg/testutils/lint/passes/descriptormarshal/BUILD.bazel deleted file mode 100644 index e03bb81c613..00000000000 --- a/pkg/testutils/lint/passes/descriptormarshal/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "descriptormarshal", - srcs = ["descriptormarshal.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/descriptormarshal", - visibility = ["//visibility:public"], - deps = ["//pkg/testutils/lint/passes/forbiddenmethod"], -) diff --git a/pkg/testutils/lint/passes/errcheck/BUILD.bazel b/pkg/testutils/lint/passes/errcheck/BUILD.bazel deleted file mode 100644 index ba1183a5583..00000000000 --- a/pkg/testutils/lint/passes/errcheck/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "errcheck", - srcs = ["errcheck.go"], - embedsrcs = ["errcheck_excludes.txt"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/errcheck", - visibility = ["//visibility:public"], - deps = [ - "@com_github_kisielk_errcheck//errcheck", - ], -) - -# NB: We want errcheck_excludes.txt in the same logical directory so we can -# go:embed it, so we just copy it here unchanged. -genrule( - name = "gen-errcheck-excludes", - srcs = ["//pkg/testutils/lint:testdata/errcheck_excludes.txt"], - outs = ["errcheck_excludes.txt"], - cmd = "cp $< $@", -) diff --git a/pkg/testutils/lint/passes/errcmp/BUILD.bazel b/pkg/testutils/lint/passes/errcmp/BUILD.bazel deleted file mode 100644 index 2ad6c5fbd07..00000000000 --- a/pkg/testutils/lint/passes/errcmp/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "errcmp", - srcs = ["errcmp.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/errcmp", - visibility = ["//visibility:public"], - deps = [ - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/analysis/passes/inspect", - "@org_golang_x_tools//go/ast/inspector", - ], -) diff --git a/pkg/testutils/lint/passes/errwrap/BUILD.bazel b/pkg/testutils/lint/passes/errwrap/BUILD.bazel deleted file mode 100644 index d83cf6124b4..00000000000 --- a/pkg/testutils/lint/passes/errwrap/BUILD.bazel +++ /dev/null @@ -1,32 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "errwrap", - srcs = [ - "errwrap.go", - "functions.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/errwrap", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/passesutil", - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/analysis/passes/inspect", - "@org_golang_x_tools//go/ast/inspector", - ], -) - -go_test( - name = "errwrap_test", - srcs = ["errwrap_test.go"], - data = glob(["testdata/**"]) + [ - "@go_sdk//:files", - ], - deps = [ - ":errwrap", - "//pkg/build/bazel", - "//pkg/testutils", - "//pkg/testutils/skip", - "@org_golang_x_tools//go/analysis/analysistest", - ], -) diff --git a/pkg/testutils/lint/passes/fmtsafe/BUILD.bazel b/pkg/testutils/lint/passes/fmtsafe/BUILD.bazel deleted file mode 100644 index e364dd3e8fb..00000000000 --- a/pkg/testutils/lint/passes/fmtsafe/BUILD.bazel +++ /dev/null @@ -1,36 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "fmtsafe", - srcs = [ - "fmtsafe.go", - "functions.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/fmtsafe", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/errwrap", - "//pkg/util/log/logpb", - "@com_github_cockroachdb_errors//:errors", - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/analysis/passes/inspect", - "@org_golang_x_tools//go/ast/inspector", - "@org_golang_x_tools//go/types/typeutil", - ], -) - -go_test( - name = "fmtsafe_test", - size = "small", - srcs = ["fmtsafe_test.go"], - data = glob(["testdata/**"]) + [ - "@go_sdk//:files", - ], - deps = [ - ":fmtsafe", - "//pkg/build/bazel", - "//pkg/testutils", - "//pkg/testutils/skip", - "@org_golang_x_tools//go/analysis/analysistest", - ], -) diff --git a/pkg/testutils/lint/passes/forbiddenmethod/BUILD.bazel b/pkg/testutils/lint/passes/forbiddenmethod/BUILD.bazel deleted file mode 100644 index a665457c4d9..00000000000 --- a/pkg/testutils/lint/passes/forbiddenmethod/BUILD.bazel +++ /dev/null @@ -1,45 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -filegroup( - name = "testdata", - srcs = glob(["testdata/**"]), - visibility = ["//pkg/testutils/lint/passes:__subpackages__"], -) - -go_library( - name = "forbiddenmethod", - srcs = [ - "analyzers.go", - "forbiddenmethod.go", - "naked_go.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/forbiddenmethod", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/passesutil", - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/analysis/passes/inspect", - "@org_golang_x_tools//go/ast/inspector", - ], -) - -go_test( - name = "forbiddenmethod_test", - size = "small", - srcs = [ - "descriptormarshal_test.go", - "main_test.go", - "naked_go_test.go", - ], - data = [ - ":testdata", - "@go_sdk//:files", - ], - deps = [ - ":forbiddenmethod", - "//pkg/build/bazel", - "//pkg/testutils", - "//pkg/testutils/skip", - "@org_golang_x_tools//go/analysis/analysistest", - ], -) diff --git a/pkg/testutils/lint/passes/grpcclientconnclose/BUILD.bazel b/pkg/testutils/lint/passes/grpcclientconnclose/BUILD.bazel deleted file mode 100644 index 3bc20e6d074..00000000000 --- a/pkg/testutils/lint/passes/grpcclientconnclose/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "grpcclientconnclose", - srcs = ["grpcclientconnclose.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/grpcclientconnclose", - visibility = ["//visibility:public"], - deps = ["//pkg/testutils/lint/passes/forbiddenmethod"], -) diff --git a/pkg/testutils/lint/passes/grpcstatuswithdetails/BUILD.bazel b/pkg/testutils/lint/passes/grpcstatuswithdetails/BUILD.bazel deleted file mode 100644 index 0905f9c9a6b..00000000000 --- a/pkg/testutils/lint/passes/grpcstatuswithdetails/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "grpcstatuswithdetails", - srcs = ["grpcstatuswithdetails.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/grpcstatuswithdetails", - visibility = ["//visibility:public"], - deps = ["//pkg/testutils/lint/passes/forbiddenmethod"], -) diff --git a/pkg/testutils/lint/passes/hash/BUILD.bazel b/pkg/testutils/lint/passes/hash/BUILD.bazel deleted file mode 100644 index 29daf17c23b..00000000000 --- a/pkg/testutils/lint/passes/hash/BUILD.bazel +++ /dev/null @@ -1,28 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "hash", - srcs = ["hash.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/hash", - visibility = ["//visibility:public"], - deps = [ - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/analysis/passes/inspect", - ], -) - -go_test( - name = "hash_test", - size = "small", - srcs = ["hash_test.go"], - data = glob(["testdata/**"]) + [ - "@go_sdk//:files", - ], - deps = [ - ":hash", - "//pkg/build/bazel", - "//pkg/testutils", - "//pkg/testutils/skip", - "@org_golang_x_tools//go/analysis/analysistest", - ], -) diff --git a/pkg/testutils/lint/passes/leaktestcall/BUILD.bazel b/pkg/testutils/lint/passes/leaktestcall/BUILD.bazel deleted file mode 100644 index 019e58beb6e..00000000000 --- a/pkg/testutils/lint/passes/leaktestcall/BUILD.bazel +++ /dev/null @@ -1,28 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "leaktestcall", - srcs = ["leaktestcall.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/leaktestcall", - visibility = ["//visibility:public"], - deps = [ - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/analysis/passes/inspect", - "@org_golang_x_tools//go/ast/inspector", - ], -) - -go_test( - name = "leaktestcall_test", - srcs = ["leaktestcall_test.go"], - data = glob(["testdata/**"]) + [ - "@go_sdk//:files", - ], - deps = [ - ":leaktestcall", - "//pkg/build/bazel", - "//pkg/testutils", - "//pkg/testutils/skip", - "@org_golang_x_tools//go/analysis/analysistest", - ], -) diff --git a/pkg/testutils/lint/passes/nilness/BUILD.bazel b/pkg/testutils/lint/passes/nilness/BUILD.bazel deleted file mode 100644 index bdb9b028c29..00000000000 --- a/pkg/testutils/lint/passes/nilness/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "nilness", - srcs = ["nilness.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/nilness", - visibility = ["//visibility:public"], - deps = [ - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/analysis/passes/buildssa", - "@org_golang_x_tools//go/ssa", - ], -) - -go_test( - name = "nilness_test", - srcs = ["nilness_test.go"], - data = glob(["testdata/**"]) + [ - "@go_sdk//:files", - ], - deps = [ - ":nilness", - "//pkg/build/bazel", - "//pkg/testutils", - "@org_golang_x_tools//go/analysis/analysistest", - ], -) diff --git a/pkg/testutils/lint/passes/nocopy/BUILD.bazel b/pkg/testutils/lint/passes/nocopy/BUILD.bazel deleted file mode 100644 index e25f33a5834..00000000000 --- a/pkg/testutils/lint/passes/nocopy/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "nocopy", - srcs = ["nocopy.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/nocopy", - visibility = ["//visibility:public"], - deps = [ - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/analysis/passes/inspect", - "@org_golang_x_tools//go/ast/inspector", - ], -) - -go_test( - name = "nocopy_test", - size = "small", - srcs = ["nocopy_test.go"], - data = glob(["testdata/**"]) + [ - "@go_sdk//:files", - ], - deps = [ - ":nocopy", - "//pkg/build/bazel", - "//pkg/testutils", - "//pkg/testutils/skip", - "@org_golang_x_tools//go/analysis/analysistest", - ], -) diff --git a/pkg/testutils/lint/passes/passesutil/BUILD.bazel b/pkg/testutils/lint/passes/passesutil/BUILD.bazel deleted file mode 100644 index 1d3419bbffe..00000000000 --- a/pkg/testutils/lint/passes/passesutil/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "passesutil", - srcs = ["passes_util.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/passesutil", - visibility = ["//visibility:public"], - deps = [ - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/ast/astutil", - ], -) - -go_test( - name = "passesutil_test", - size = "small", - srcs = ["passes_util_test.go"], - data = [ - "//pkg/testutils/lint/passes/forbiddenmethod:testdata", - "//pkg/testutils/lint/passes/unconvert:testdata", - "@go_sdk//:files", - ], - deps = [ - "//pkg/build/bazel", - "//pkg/testutils/lint/passes/forbiddenmethod", - "//pkg/testutils/lint/passes/unconvert", - "//pkg/testutils/skip", - "@com_github_stretchr_testify//require", - "@org_golang_x_tools//go/analysis/analysistest", - ], -) diff --git a/pkg/testutils/lint/passes/returncheck/BUILD.bazel b/pkg/testutils/lint/passes/returncheck/BUILD.bazel deleted file mode 100644 index c14f8a0df3d..00000000000 --- a/pkg/testutils/lint/passes/returncheck/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "returncheck", - srcs = ["returncheck.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/returncheck", - visibility = ["//visibility:public"], - deps = [ - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/analysis/passes/inspect", - "@org_golang_x_tools//go/ast/inspector", - ], -) diff --git a/pkg/testutils/lint/passes/returnerrcheck/BUILD.bazel b/pkg/testutils/lint/passes/returnerrcheck/BUILD.bazel deleted file mode 100644 index f2c2f5aa4fc..00000000000 --- a/pkg/testutils/lint/passes/returnerrcheck/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "returnerrcheck", - srcs = ["returnerrcheck.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/returnerrcheck", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/passesutil", - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/analysis/passes/inspect", - "@org_golang_x_tools//go/ast/astutil", - "@org_golang_x_tools//go/ast/inspector", - ], -) - -go_test( - name = "returnerrcheck_test", - size = "small", - srcs = ["returnerrcheck_test.go"], - data = glob(["testdata/**"]) + [ - "@go_sdk//:files", - ], - deps = [ - ":returnerrcheck", - "//pkg/build/bazel", - "//pkg/testutils", - "//pkg/testutils/skip", - "@org_golang_x_tools//go/analysis/analysistest", - ], -) diff --git a/pkg/testutils/lint/passes/staticcheck/BUILD.bazel b/pkg/testutils/lint/passes/staticcheck/BUILD.bazel deleted file mode 100644 index 6b57842cb1c..00000000000 --- a/pkg/testutils/lint/passes/staticcheck/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "staticcheck", - srcs = ["staticcheck.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/staticcheck", - visibility = ["//visibility:public"], - deps = [ - "@co_honnef_go_tools//analysis/facts", - "@co_honnef_go_tools//analysis/lint", - "@co_honnef_go_tools//analysis/report", - "@org_golang_x_tools//go/analysis", - ], -) diff --git a/pkg/testutils/lint/passes/timer/BUILD.bazel b/pkg/testutils/lint/passes/timer/BUILD.bazel deleted file mode 100644 index c9e3d755d73..00000000000 --- a/pkg/testutils/lint/passes/timer/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "timer", - srcs = ["timer.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/timer", - visibility = ["//visibility:public"], - deps = [ - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/analysis/passes/inspect", - "@org_golang_x_tools//go/ast/inspector", - ], -) - -go_test( - name = "timer_test", - size = "small", - srcs = ["timer_test.go"], - data = glob(["testdata/**"]) + [ - "@go_sdk//:files", - ], - deps = [ - ":timer", - "//pkg/build/bazel", - "//pkg/testutils", - "//pkg/testutils/skip", - "@org_golang_x_tools//go/analysis/analysistest", - ], -) diff --git a/pkg/testutils/lint/passes/unconvert/BUILD.bazel b/pkg/testutils/lint/passes/unconvert/BUILD.bazel deleted file mode 100644 index 1ab26ea554f..00000000000 --- a/pkg/testutils/lint/passes/unconvert/BUILD.bazel +++ /dev/null @@ -1,37 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -filegroup( - name = "testdata", - srcs = glob(["testdata/**"]), - visibility = ["//pkg/testutils/lint/passes:__subpackages__"], -) - -go_library( - name = "unconvert", - srcs = ["unconvert.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/unconvert", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/lint/passes/passesutil", - "@org_golang_x_tools//go/analysis", - "@org_golang_x_tools//go/analysis/passes/inspect", - "@org_golang_x_tools//go/ast/inspector", - ], -) - -go_test( - name = "unconvert_test", - size = "small", - srcs = ["unconvert_test.go"], - data = [ - ":testdata", - "@go_sdk//:files", - ], - deps = [ - ":unconvert", - "//pkg/build/bazel", - "//pkg/testutils", - "//pkg/testutils/skip", - "@org_golang_x_tools//go/analysis/analysistest", - ], -) diff --git a/pkg/testutils/localtestcluster/BUILD.bazel b/pkg/testutils/localtestcluster/BUILD.bazel deleted file mode 100644 index 1d9fd8487f7..00000000000 --- a/pkg/testutils/localtestcluster/BUILD.bazel +++ /dev/null @@ -1,34 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "localtestcluster", - srcs = ["local_test_cluster.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/localtestcluster", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/clusterversion", - "//pkg/config", - "//pkg/config/zonepb", - "//pkg/gossip", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/rangefeed", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/closedts/sidetransport", - "//pkg/kv/kvserver/liveness", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/server/systemconfigwatcher", - "//pkg/settings/cluster", - "//pkg/spanconfig/spanconfigkvsubscriber", - "//pkg/sql/catalog/bootstrap", - "//pkg/storage", - "//pkg/util", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/stop", - "//pkg/util/tracing", - ], -) diff --git a/pkg/testutils/metrictestutils/BUILD.bazel b/pkg/testutils/metrictestutils/BUILD.bazel deleted file mode 100644 index 60e4201b1f5..00000000000 --- a/pkg/testutils/metrictestutils/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "metrictestutils", - srcs = ["metrics_text.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/metrictestutils", - visibility = ["//visibility:public"], - deps = ["//pkg/util/metric"], -) diff --git a/pkg/testutils/pgtest/BUILD.bazel b/pkg/testutils/pgtest/BUILD.bazel deleted file mode 100644 index cd940536b6b..00000000000 --- a/pkg/testutils/pgtest/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "pgtest", - srcs = [ - "datadriven.go", - "pgtest.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/pgtest", - visibility = ["//visibility:public"], - deps = [ - "//pkg/testutils/skip", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_jackc_pgproto3_v2//:pgproto3", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/testutils/physicalplanutils/BUILD.bazel b/pkg/testutils/physicalplanutils/BUILD.bazel deleted file mode 100644 index 19c51df72c1..00000000000 --- a/pkg/testutils/physicalplanutils/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "physicalplanutils", - srcs = ["fake_resolver.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/physicalplanutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/sql/physicalplan", - "//pkg/testutils/serverutils", - "//pkg/util", - ], -) diff --git a/pkg/testutils/serverutils/BUILD.bazel b/pkg/testutils/serverutils/BUILD.bazel deleted file mode 100644 index 31c1f165f5d..00000000000 --- a/pkg/testutils/serverutils/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "serverutils", - srcs = [ - "test_cluster_shim.go", - "test_cluster_utils.go", - "test_server_shim.go", - "test_tenant_shim.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/serverutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/config", - "//pkg/kv", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/security", - "//pkg/server/serverpb", - "//pkg/server/status", - "//pkg/settings/cluster", - "//pkg/storage", - "//pkg/testutils", - "//pkg/testutils/sqlutils", - "//pkg/util/hlc", - "//pkg/util/httputil", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/stop", - "//pkg/util/uuid", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/testutils/skip/BUILD.bazel b/pkg/testutils/skip/BUILD.bazel deleted file mode 100644 index 98be6766db4..00000000000 --- a/pkg/testutils/skip/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "skip", - srcs = [ - "skip.go", - "stress.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/skip", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build/bazel", - "//pkg/util", - "//pkg/util/buildutil", - "//pkg/util/envutil", - "//pkg/util/syncutil", - ], -) diff --git a/pkg/testutils/sqlutils/BUILD.bazel b/pkg/testutils/sqlutils/BUILD.bazel deleted file mode 100644 index a4fc20aba80..00000000000 --- a/pkg/testutils/sqlutils/BUILD.bazel +++ /dev/null @@ -1,62 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "sqlutils", - srcs = [ - "inject.go", - "pg_url.go", - "pretty.go", - "rows.go", - "scrub.go", - "sql_runner.go", - "table_gen.go", - "table_id.go", - "zone.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/sqlutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/config/zonepb", - "//pkg/keys", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/sql/catalog/descpb", - "//pkg/sql/lexbase", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/sem/tree", - "//pkg/testutils", - "//pkg/util/fileutil", - "//pkg/util/protoutil", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_stretchr_testify//require", - ], -) - -go_test( - name = "sqlutils_test", - size = "medium", - srcs = [ - "inject_test.go", - "main_test.go", - "sql_runner_test.go", - "table_gen_test.go", - ], - embed = [":sqlutils"], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/catalog/descpb", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/testutils/sstutil/BUILD.bazel b/pkg/testutils/sstutil/BUILD.bazel deleted file mode 100644 index 016a51c0e07..00000000000 --- a/pkg/testutils/sstutil/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sstutil", - srcs = [ - "kv.go", - "sstutil.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/sstutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/settings/cluster", - "//pkg/storage", - "//pkg/storage/enginepb", - "//pkg/util/hlc", - "//pkg/util/protoutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/testutils/storageutils/BUILD.bazel b/pkg/testutils/storageutils/BUILD.bazel deleted file mode 100644 index f2972731bca..00000000000 --- a/pkg/testutils/storageutils/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "storageutils", - srcs = ["mocking.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/storageutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvserver/kvserverbase", - "//pkg/roachpb", - "//pkg/util/syncutil", - "//pkg/util/syncutil/singleflight", - ], -) diff --git a/pkg/testutils/testcluster/BUILD.bazel b/pkg/testutils/testcluster/BUILD.bazel deleted file mode 100644 index 26e39666593..00000000000 --- a/pkg/testutils/testcluster/BUILD.bazel +++ /dev/null @@ -1,65 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "testcluster", - srcs = ["testcluster.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/testcluster", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/gossip", - "//pkg/keys", - "//pkg/kv/kvserver", - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/server", - "//pkg/server/serverpb", - "//pkg/spanconfig", - "//pkg/storage", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/util/contextutil", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/retry", - "//pkg/util/stop", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_stretchr_testify//require", - "@io_etcd_go_etcd_raft_v3//:raft", - ], -) - -go_test( - name = "testcluster_test", - size = "medium", - srcs = [ - "main_test.go", - "testcluster_test.go", - ], - embed = [":testcluster"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/server/serverpb", - "//pkg/sql/catalog/desctestutils", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/util/httputil", - "//pkg/util/leaktest", - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/testutils/zerofields/BUILD.bazel b/pkg/testutils/zerofields/BUILD.bazel deleted file mode 100644 index 8d3c0b91b63..00000000000 --- a/pkg/testutils/zerofields/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "zerofields", - srcs = ["no_zero_field.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/testutils/zerofields", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) - -go_test( - name = "zerofields_test", - size = "small", - srcs = ["no_zero_field_test.go"], - embed = [":zerofields"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) diff --git a/pkg/ts/BUILD.bazel b/pkg/ts/BUILD.bazel deleted file mode 100644 index ce53be08755..00000000000 --- a/pkg/ts/BUILD.bazel +++ /dev/null @@ -1,97 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "ts", - srcs = [ - "db.go", - "doc.go", - "keys.go", - "maintenance.go", - "memory.go", - "metrics.go", - "pruning.go", - "query.go", - "resolution.go", - "rollup.go", - "server.go", - "timespan.go", - "util.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/ts", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/settings", - "//pkg/settings/cluster", - "//pkg/storage", - "//pkg/ts/catalog", - "//pkg/ts/tspb", - "//pkg/util/contextutil", - "//pkg/util/encoding", - "//pkg/util/hlc", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/mon", - "//pkg/util/quotapool", - "//pkg/util/startup", - "//pkg/util/stop", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_grpc_ecosystem_grpc_gateway//runtime:go_default_library", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//status", - ], -) - -go_test( - name = "ts_test", - size = "medium", - srcs = [ - "db_test.go", - "iterator_test.go", - "keys_test.go", - "main_test.go", - "memory_test.go", - "metrics_test.go", - "model_test.go", - "pruning_test.go", - "query_test.go", - "rollup_test.go", - "server_test.go", - "timeseries_test.go", - ], - embed = [":ts"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/kv", - "//pkg/kv/kvclient/kvcoord", - "//pkg/kv/kvserver", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/storage", - "//pkg/testutils", - "//pkg/testutils/localtestcluster", - "//pkg/testutils/serverutils", - "//pkg/ts/testmodel", - "//pkg/ts/tspb", - "//pkg/util/hlc", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/mon", - "//pkg/util/stop", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//proto", - "@com_github_kr_pretty//:pretty", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/ts/catalog/BUILD.bazel b/pkg/ts/catalog/BUILD.bazel deleted file mode 100644 index afba591b7b0..00000000000 --- a/pkg/ts/catalog/BUILD.bazel +++ /dev/null @@ -1,46 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "catalog", - srcs = [ - "catalog_generator.go", - "chart_catalog.go", - "metrics.go", - ], - embed = [":catalog_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/ts/catalog", - visibility = ["//visibility:public"], - deps = [ - "//pkg/ts/tspb", - "//pkg/util/metric", - "@com_github_cockroachdb_errors//:errors", - "@com_github_prometheus_client_model//go", - ], -) - -proto_library( - name = "catalog_proto", - srcs = ["chart_catalog.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/ts/tspb:tspb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_github_prometheus_client_model//io/prometheus/client:io_prometheus_client_proto", - ], -) - -go_proto_library( - name = "catalog_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/ts/catalog", - proto = ":catalog_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/ts/tspb", - "@com_github_gogo_protobuf//gogoproto", - "@com_github_prometheus_client_model//go", - ], -) diff --git a/pkg/ts/testmodel/BUILD.bazel b/pkg/ts/testmodel/BUILD.bazel deleted file mode 100644 index 57849fb5e86..00000000000 --- a/pkg/ts/testmodel/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "testmodel", - srcs = [ - "data.go", - "db.go", - "functions.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/ts/testmodel", - visibility = ["//visibility:public"], - deps = ["//pkg/ts/tspb"], -) - -go_test( - name = "testmodel_test", - size = "small", - srcs = [ - "data_test.go", - "db_test.go", - "functions_test.go", - ], - embed = [":testmodel"], - deps = ["//pkg/ts/tspb"], -) diff --git a/pkg/ts/tspb/BUILD.bazel b/pkg/ts/tspb/BUILD.bazel deleted file mode 100644 index b349a741042..00000000000 --- a/pkg/ts/tspb/BUILD.bazel +++ /dev/null @@ -1,43 +0,0 @@ -# gazelle:go_grpc_compilers //pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler, @com_github_grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway:go_gen_grpc_gateway - -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "tspb", - srcs = ["timeseries.go"], - embed = [":tspb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/ts/tspb", - visibility = ["//visibility:public"], - deps = ["//pkg/roachpb"], -) - -proto_library( - name = "tspb_proto", - srcs = ["timeseries.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb:roachpb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@go_googleapis//google/api:annotations_proto", - ], -) - -go_proto_library( - name = "tspb_go_proto", - compilers = [ - "//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler", - "@com_github_grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway:go_gen_grpc_gateway", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/ts/tspb", - proto = ":tspb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "@com_github_gogo_protobuf//gogoproto", - "@com_github_golang_protobuf//descriptor:go_default_library_gen", # keep - "@org_golang_google_genproto//googleapis/api/annotations:go_default_library", - ], -) diff --git a/pkg/ui/BUILD.bazel b/pkg/ui/BUILD.bazel deleted file mode 100644 index f9887d54a48..00000000000 --- a/pkg/ui/BUILD.bazel +++ /dev/null @@ -1,72 +0,0 @@ -load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") -load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ui", - srcs = ["ui.go"], - # keep - embedsrcs = select({ - "//pkg/ui:with_ui": [ - "dist_vendor/list.min.js", - "dist_vendor/.gitkeep", - ], - "//conditions:default": [ - "dist_vendor/.gitkeep", - ], - }), - importpath = "github.com/cockroachdb/cockroach/pkg/ui", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/build", - "//pkg/util/httputil", - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - ], -) - -bool_flag( - name = "with_ui_flag", - build_setting_default = False, - visibility = ["//visibility:public"], -) - -config_setting( - name = "with_ui", - flag_values = { - ":with_ui_flag": "true", - }, - visibility = ["//visibility:public"], -) - -genrule( - name = "gen-empty-index.html", - outs = ["index.html"], - cmd = """ - cat >$@ < -CockroachDB -Binary built without web UI. -
-%s -EOF -""", - visibility = ["//pkg/ui:__subpackages__"], -) - -genrule( - name = "listjs", - srcs = ["@npm//:node_modules/list.js/dist/list.min.js"], - outs = ["dist_vendor/list.min.js"], - cmd = "cp ./$(location @npm//:node_modules/list.js/dist/list.min.js) $@", - tools = ["@npm//list.js"], -) - -test_suite( - name = "lint", - tests = [ - "//pkg/ui/workspaces/cluster-ui:lint", - "//pkg/ui/workspaces/db-console:lint", - ], -) diff --git a/pkg/ui/distoss/BUILD.bazel b/pkg/ui/distoss/BUILD.bazel deleted file mode 100644 index 20b44ebf36d..00000000000 --- a/pkg/ui/distoss/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -genrule( - name = "genassets", - srcs = select({ - "//pkg/ui:with_ui": ["//pkg/ui/workspaces/db-console:db-console-oss"], - "//conditions:default": ["//pkg/ui:gen-empty-index.html"], - }), - outs = ["assets.tar.gz"], - cmd = """ -if [ -d $< ] -then - $(location //pkg/util/targz/gen) $ encoding_tmp.go && \ - env PATH=$$GO_ABS_PATH HOME=$(GENDIR) GOPATH=/nonexist-gopath \ - $(location @com_github_cockroachdb_tools//cmd/stringer:stringer) -output=$@ -type=Type encoding_tmp.go - """, - exec_tools = [ - "@go_sdk//:bin/go", - "@com_github_cockroachdb_tools//cmd/stringer", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/util/encoding/csv/BUILD.bazel b/pkg/util/encoding/csv/BUILD.bazel deleted file mode 100644 index 7b46986e373..00000000000 --- a/pkg/util/encoding/csv/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "csv", - srcs = [ - "reader.go", - "writer.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/encoding/csv", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) - -go_test( - name = "csv_test", - size = "small", - srcs = [ - "example_test.go", - "reader_test.go", - "writer_test.go", - ], - embed = [":csv"], - deps = [ - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/util/encoding/encodingtype/BUILD.bazel b/pkg/util/encoding/encodingtype/BUILD.bazel deleted file mode 100644 index 18afcaefb2f..00000000000 --- a/pkg/util/encoding/encodingtype/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "encodingtype", - srcs = ["encoding_type.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/encoding/encodingtype", - visibility = ["//visibility:public"], -) diff --git a/pkg/util/envutil/BUILD.bazel b/pkg/util/envutil/BUILD.bazel deleted file mode 100644 index 8e34a3d2f41..00000000000 --- a/pkg/util/envutil/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "envutil", - srcs = ["env.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/envutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/humanizeutil", - "//pkg/util/syncutil", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "envutil_test", - size = "small", - srcs = ["env_test.go"], - embed = [":envutil"], - deps = ["@com_github_stretchr_testify//require"], -) diff --git a/pkg/util/errorutil/BUILD.bazel b/pkg/util/errorutil/BUILD.bazel deleted file mode 100644 index bfdf71ed828..00000000000 --- a/pkg/util/errorutil/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "errorutil", - srcs = [ - "catch.go", - "error.go", - "tenant.go", - "tenant_deprecated_wrapper.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/errorutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/settings", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/log/logcrash", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "errorutil_test", - size = "small", - srcs = ["error_test.go"], - embed = [":errorutil"], -) diff --git a/pkg/util/errorutil/unimplemented/BUILD.bazel b/pkg/util/errorutil/unimplemented/BUILD.bazel deleted file mode 100644 index e03ca6c80c6..00000000000 --- a/pkg/util/errorutil/unimplemented/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "unimplemented", - srcs = ["unimplemented.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/errorutil/unimplemented", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "unimplemented_test", - size = "small", - srcs = ["unimplemented_test.go"], - embed = [":unimplemented"], - deps = [ - "//pkg/build", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/util/fileutil/BUILD.bazel b/pkg/util/fileutil/BUILD.bazel deleted file mode 100644 index 0bbe2a3a505..00000000000 --- a/pkg/util/fileutil/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "fileutil", - srcs = [ - "copy.go", - "escape.go", - "move.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/fileutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/sysutil", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/util/flagutil/BUILD.bazel b/pkg/util/flagutil/BUILD.bazel deleted file mode 100644 index 52ea050a3d0..00000000000 --- a/pkg/util/flagutil/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "flagutil", - srcs = ["flagutil.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/flagutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/log", - "//pkg/util/timeutil", - "@com_github_spf13_pflag//:pflag", - ], -) - -go_test( - name = "flagutil_test", - size = "small", - srcs = ["flagutil_test.go"], - embed = [":flagutil"], - deps = [ - "//pkg/util/log", - "//pkg/util/timeutil", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/util/fsm/BUILD.bazel b/pkg/util/fsm/BUILD.bazel deleted file mode 100644 index 7b7badfb18d..00000000000 --- a/pkg/util/fsm/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "fsm", - srcs = [ - "debug.go", - "doc.go", - "fsm.go", - "match.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/fsm", - visibility = ["//visibility:public"], -) - -go_test( - name = "fsm_test", - size = "small", - srcs = [ - "example_test.go", - "fsm_test.go", - "match_test.go", - ], - embed = [":fsm"], - deps = ["@com_github_stretchr_testify//require"], -) diff --git a/pkg/util/fsm/gen/BUILD.bazel b/pkg/util/fsm/gen/BUILD.bazel deleted file mode 100644 index 87ecf905aa3..00000000000 --- a/pkg/util/fsm/gen/BUILD.bazel +++ /dev/null @@ -1 +0,0 @@ -exports_files(["write_reports.go.tmpl"]) diff --git a/pkg/util/fuzzystrmatch/BUILD.bazel b/pkg/util/fuzzystrmatch/BUILD.bazel deleted file mode 100644 index e8b2724ce90..00000000000 --- a/pkg/util/fuzzystrmatch/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "fuzzystrmatch", - srcs = [ - "leven.go", - "soundex.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/fuzzystrmatch", - visibility = ["//visibility:public"], -) - -go_test( - name = "fuzzystrmatch_test", - size = "small", - srcs = [ - "leven_test.go", - "soundex_test.go", - ], - embed = [":fuzzystrmatch"], -) diff --git a/pkg/util/goschedstats/BUILD.bazel b/pkg/util/goschedstats/BUILD.bazel deleted file mode 100644 index 8ccf6fa9713..00000000000 --- a/pkg/util/goschedstats/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "goschedstats", - srcs = [ - "runnable.go", - "runtime_deferpool_go1.17.go", - "runtime_deferpool_go1.18.go", - "runtime_go1.17.go", - "runtime_go1.19.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/goschedstats", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "goschedstats_test", - srcs = ["runnable_test.go"], - embed = [":goschedstats"], - deps = [ - "//pkg/testutils", - "//pkg/util/timeutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/growstack/BUILD.bazel b/pkg/util/growstack/BUILD.bazel deleted file mode 100644 index 33f91c20971..00000000000 --- a/pkg/util/growstack/BUILD.bazel +++ /dev/null @@ -1,11 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "growstack", - srcs = [ - "growstack.go", - "growstack.s", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/growstack", - visibility = ["//visibility:public"], -) diff --git a/pkg/util/grpcutil/BUILD.bazel b/pkg/util/grpcutil/BUILD.bazel deleted file mode 100644 index 54d1bab744b..00000000000 --- a/pkg/util/grpcutil/BUILD.bazel +++ /dev/null @@ -1,51 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "grpcutil", - srcs = [ - "grpc_log.go", - "grpc_util.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/grpcutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/log", - "//pkg/util/log/severity", - "//pkg/util/netutil", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_circuitbreaker//:circuitbreaker", - "@com_github_cockroachdb_errors//:errors", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//connectivity", - "@org_golang_google_grpc//grpclog", - "@org_golang_google_grpc//status", - ], -) - -go_test( - name = "grpcutil_test", - size = "small", - srcs = [ - "grpc_log_test.go", - "grpc_util_test.go", - ], - embed = [":grpcutil"], - deps = [ - "//pkg/server", - "//pkg/testutils", - "//pkg/testutils/skip", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/log/severity", - "//pkg/util/timeutil", - "@com_github_cockroachdb_circuitbreaker//:circuitbreaker", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_status//:status", - "@com_github_stretchr_testify//require", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_google_grpc//codes", - "@org_golang_google_grpc//health/grpc_health_v1", - ], -) diff --git a/pkg/util/hlc/BUILD.bazel b/pkg/util/hlc/BUILD.bazel deleted file mode 100644 index 35a0f0dd55d..00000000000 --- a/pkg/util/hlc/BUILD.bazel +++ /dev/null @@ -1,65 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "hlc", - srcs = [ - "doc.go", - "hlc.go", - "hlc_clock_device_linux.go", - "hlc_clock_device_stub.go", - "timestamp.go", - ], - cgo = True, - embed = [":hlc_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/hlc", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "hlc_test", - size = "small", - srcs = [ - "hlc_test.go", - "timestamp_test.go", - ], - embed = [":hlc"], - deps = [ - "//pkg/cli/exit", - "//pkg/util/log", - "//pkg/util/protoutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "hlc_proto", - srcs = [ - "legacy_timestamp.proto", - "timestamp.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "hlc_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/hlc", - proto = ":hlc_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) diff --git a/pkg/util/httputil/BUILD.bazel b/pkg/util/httputil/BUILD.bazel deleted file mode 100644 index 561961f2991..00000000000 --- a/pkg/util/httputil/BUILD.bazel +++ /dev/null @@ -1,32 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "httputil", - srcs = [ - "client.go", - "compute_etags.go", - "handlers.go", - "http.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/httputil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/protoutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//jsonpb", - ], -) - -go_test( - name = "httputil_test", - srcs = [ - "compute_etags_test.go", - "etag_handler_test.go", - ], - embed = [":httputil"], - deps = [ - "//pkg/util/leaktest", - "//pkg/util/targz", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/humanizeutil/BUILD.bazel b/pkg/util/humanizeutil/BUILD.bazel deleted file mode 100644 index 214edb3e628..00000000000 --- a/pkg/util/humanizeutil/BUILD.bazel +++ /dev/null @@ -1,32 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "humanizeutil", - srcs = [ - "count.go", - "duration.go", - "humanize.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/humanizeutil", - visibility = ["//visibility:public"], - deps = [ - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_dustin_go_humanize//:go-humanize", - "@com_github_spf13_pflag//:pflag", - ], -) - -go_test( - name = "humanizeutil_test", - size = "small", - srcs = [ - "duration_test.go", - "humanize_test.go", - ], - embed = [":humanizeutil"], - deps = [ - "//pkg/util/leaktest", - "@com_github_cockroachdb_redact//:redact", - ], -) diff --git a/pkg/util/interval/BUILD.bazel b/pkg/util/interval/BUILD.bazel deleted file mode 100644 index 24367c651b4..00000000000 --- a/pkg/util/interval/BUILD.bazel +++ /dev/null @@ -1,36 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "interval", - srcs = [ - "btree_based_interval.go", - "bu23.go", - "interval.go", - "llrb_based_interval.go", - "range_group.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/interval", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/envutil", - "//pkg/util/syncutil", - "@com_github_biogo_store//llrb", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "interval_test", - size = "small", - srcs = [ - "btree_based_interval_test.go", - "range_group_test.go", - ], - embed = [":interval"], - deps = [ - "//pkg/util/log", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/util/interval/generic/BUILD.bazel b/pkg/util/interval/generic/BUILD.bazel deleted file mode 100644 index c5f9817733a..00000000000 --- a/pkg/util/interval/generic/BUILD.bazel +++ /dev/null @@ -1,43 +0,0 @@ -# gazelle:exclude internal/** - -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load(":gen.bzl", "gen_interval_btree") - -go_library( - name = "generic", - srcs = [ - "doc.go", - "example_t.go", - ":example_interval_btree.go", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/interval/generic", - visibility = ["//visibility:public"], - deps = ["//pkg/roachpb"], -) - -# keep -go_test( - name = "generic_test", - size = "large", - srcs = [":example_interval_btree_test.go"], - embed = [":generic"], - shard_count = 16, - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/util/timeutil", - "@com_github_stretchr_testify//require", - ], -) - -filegroup( - name = "gen_srcs", - srcs = ["gen.sh"] + glob(["internal/*.go"]), - visibility = ["//visibility:public"], -) - -gen_interval_btree( - name = "example_interval_btree", - package = "generic", - type = "*example", -) diff --git a/pkg/util/ioctx/BUILD.bazel b/pkg/util/ioctx/BUILD.bazel deleted file mode 100644 index 412608be96f..00000000000 --- a/pkg/util/ioctx/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ioctx", - srcs = ["reader.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/ioctx", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) diff --git a/pkg/util/ipaddr/BUILD.bazel b/pkg/util/ipaddr/BUILD.bazel deleted file mode 100644 index b1d1ecb2d5c..00000000000 --- a/pkg/util/ipaddr/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "ipaddr", - srcs = [ - "ip.go", - "ipaddr.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/ipaddr", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/util/uint128", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "ipaddr_test", - size = "small", - srcs = ["ipaddr_test.go"], - embed = [":ipaddr"], - deps = ["//pkg/util/uint128"], -) diff --git a/pkg/util/iterutil/BUILD.bazel b/pkg/util/iterutil/BUILD.bazel deleted file mode 100644 index ccf6afcf0d9..00000000000 --- a/pkg/util/iterutil/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "iterutil", - srcs = ["iterutil.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/iterutil", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) diff --git a/pkg/util/jobutil/BUILD.bazel b/pkg/util/jobutil/BUILD.bazel deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/pkg/util/json/BUILD.bazel b/pkg/util/json/BUILD.bazel deleted file mode 100644 index abd9fa6c111..00000000000 --- a/pkg/util/json/BUILD.bazel +++ /dev/null @@ -1,55 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "json", - srcs = [ - "contains.go", - "contains_testers.go", - "encode.go", - "encoded.go", - "iterator.go", - "jentry.go", - "json.go", - "random.go", - "tables.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/json", - visibility = ["//visibility:public"], - deps = [ - "//pkg/geo", - "//pkg/geo/geopb", - "//pkg/keysbase", - "//pkg/sql/inverted", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/util/encoding", - "//pkg/util/syncutil", - "//pkg/util/unique", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "json_test", - size = "small", - srcs = [ - "dep_test.go", - "encode_test.go", - "json_test.go", - ], - data = glob(["testdata/**"]), - embed = [":json"], - deps = [ - "//pkg/sql/inverted", - "//pkg/sql/pgwire/pgerror", - "//pkg/testutils", - "//pkg/testutils/buildutil", - "//pkg/util/encoding", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "//pkg/util/unique", - "@com_github_cockroachdb_apd_v3//:apd", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/jsonbytes/BUILD.bazel b/pkg/util/jsonbytes/BUILD.bazel deleted file mode 100644 index 89ee0a3463a..00000000000 --- a/pkg/util/jsonbytes/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "jsonbytes", - srcs = ["jsonbytes.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/jsonbytes", - visibility = ["//visibility:public"], -) diff --git a/pkg/util/keysutil/BUILD.bazel b/pkg/util/keysutil/BUILD.bazel deleted file mode 100644 index 8134b52747f..00000000000 --- a/pkg/util/keysutil/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "keysutil", - srcs = ["keys.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/keysutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/util/leaktest/BUILD.bazel b/pkg/util/leaktest/BUILD.bazel deleted file mode 100644 index 45588d3b2bc..00000000000 --- a/pkg/util/leaktest/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "leaktest", - srcs = ["leaktest.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/leaktest", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_petermattis_goid//:goid", - ], -) diff --git a/pkg/util/limit/BUILD.bazel b/pkg/util/limit/BUILD.bazel deleted file mode 100644 index f8dfdb92c4b..00000000000 --- a/pkg/util/limit/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "limit", - srcs = ["limiter.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/limit", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/quotapool", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//types", - ], -) - -go_test( - name = "limit_test", - size = "small", - srcs = ["limiter_test.go"], - embed = [":limit"], - deps = [ - "//pkg/util/leaktest", - "@com_github_cockroachdb_errors//:errors", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/util/log/BUILD.bazel b/pkg/util/log/BUILD.bazel deleted file mode 100644 index 6ca511da724..00000000000 --- a/pkg/util/log/BUILD.bazel +++ /dev/null @@ -1,226 +0,0 @@ -load("@bazel_gomock//:gomock.bzl", "gomock") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "log", - srcs = [ - "ambient_context.go", - "buffered_sink.go", - "buffered_sink_closer.go", - "channels.go", - "clog.go", - "doc.go", - "event_log.go", - "every_n.go", - "exit_override.go", - "file.go", - "file_api.go", - "file_log_gc.go", - "file_names.go", - "file_sync_buffer.go", - "flags.go", - "fluent_client.go", - "format_crdb.go", - "format_crdb_v1.go", - "format_crdb_v2.go", - "format_json.go", - "formats.go", - "formattable_tags.go", - "get_stacks.go", - "http_sink.go", - "intercept.go", - "log.go", - "log_bridge.go", - "log_buffer.go", - "log_decoder.go", - "log_entry.go", - "log_flush.go", - "redact.go", - "registry.go", - "server_ident.go", - "sinks.go", - "stderr_redirect.go", - "stderr_redirect_unix.go", - "stderr_redirect_windows.go", - "stderr_sink.go", - "structured.go", - "test_log_scope.go", - "trace.go", - "tracebacks.go", - "vmodule.go", - ":gen-log-channels", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build", - "//pkg/cli/exit", - "//pkg/testutils/skip", - "//pkg/util", - "//pkg/util/caller", - "//pkg/util/encoding/encodingtype", - "//pkg/util/envutil", - "//pkg/util/fileutil", - "//pkg/util/jsonbytes", - "//pkg/util/log/channel", - "//pkg/util/log/eventpb", - "//pkg/util/log/logconfig", - "//pkg/util/log/logflags", - "//pkg/util/log/logpb", - "//pkg/util/log/severity", - "//pkg/util/syncutil", - "//pkg/util/sysutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_errors//oserror", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_cockroachdb_redact//interfaces", - "@com_github_cockroachdb_ttycolor//:ttycolor", - "@com_github_petermattis_goid//:goid", - "@org_golang_x_net//trace", - ] + select({ - "@io_bazel_rules_go//go/platform:aix": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:android": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:illumos": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:js": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:plan9": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:windows": [ - "@org_golang_x_sys//windows", - ], - "//conditions:default": [], - }), -) - -go_test( - name = "log_test", - size = "small", - srcs = [ - "ambient_context_test.go", - "buffered_sink_closer_test.go", - "buffered_sink_test.go", - "channels_test.go", - "clog_test.go", - "file_log_gc_test.go", - "file_names_test.go", - "file_test.go", - "flags_test.go", - "fluent_client_test.go", - "format_crdb_v1_test.go", - "format_crdb_v2_test.go", - "format_json_test.go", - "formats_test.go", - "formattable_tags_test.go", - "helpers_test.go", - "http_sink_test.go", - "intercept_test.go", - "log_decoder_test.go", - "main_test.go", - "redact_test.go", - "secondary_log_test.go", - "test_log_scope_test.go", - "trace_client_test.go", - "trace_test.go", - ":mock_logsink", # keep - ], - data = glob(["testdata/**"]), - embed = [":log"], - deps = [ - "//pkg/build", - "//pkg/cli/exit", - "//pkg/settings/cluster", - "//pkg/util/caller", - "//pkg/util/ctxgroup", - "//pkg/util/leaktest", - "//pkg/util/log/channel", - "//pkg/util/log/eventpb", - "//pkg/util/log/logconfig", - "//pkg/util/log/logpb", - "//pkg/util/log/severity", - "//pkg/util/netutil/addr", - "//pkg/util/randutil", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_golang_mock//gomock", # keep - "@com_github_kr_pretty//:pretty", - "@com_github_pmezard_go_difflib//difflib", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@org_golang_x_net//trace", - ], -) - -genrule( - name = "gen-log-channels", - srcs = [ - "//pkg/util/log/logpb:log.proto", - ], - outs = ["log_channels_generated.go"], - cmd = """ - $(location //pkg/util/log/gen) $(location //pkg/util/log/logpb:log.proto) \ - log_channels.go $(location log_channels_generated.go) - """, - exec_tools = [ - "//pkg/util/log/gen", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -gomock( - name = "mock_logsink", - out = "mocks_generated_test.go", - interfaces = [ - "TestingLogSink", - ], - library = ":log", - mock_names = {"TestingLogSink": "MockLogSink"}, - package = "log", - self_package = "github.com/cockroachdb/cockroach/pkg/util/log", - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/util/log/channel/BUILD.bazel b/pkg/util/log/channel/BUILD.bazel deleted file mode 100644 index 7d867b6c22d..00000000000 --- a/pkg/util/log/channel/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "channel", - srcs = [ - ":gen-channel", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log/channel", # keep - visibility = ["//visibility:public"], - deps = ["//pkg/util/log/logpb"], # keep -) - -genrule( - name = "gen-channel", - srcs = [ - "//pkg/util/log/logpb:log.proto", - ], - outs = ["channel_generated.go"], - cmd = """ - $(location //pkg/util/log/gen) $(location //pkg/util/log/logpb:log.proto) \ - channel.go $(location channel_generated.go) - """, - exec_tools = [ - "//pkg/util/log/gen", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/util/log/eventpb/BUILD.bazel b/pkg/util/log/eventpb/BUILD.bazel deleted file mode 100644 index 273b08b3d70..00000000000 --- a/pkg/util/log/eventpb/BUILD.bazel +++ /dev/null @@ -1,121 +0,0 @@ -load( - "//pkg/util/log/eventpb:PROTOS.bzl", - _EVENTPB_PROTOS = "EVENTPB_PROTOS", - _EVENTPB_PROTO_LOCATIONS = "EVENTPB_PROTO_LOCATIONS", -) -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -exports_files(_EVENTPB_PROTOS) - -go_binary( - name = "gen", - srcs = ["gen.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log/eventpb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cli/exit", - "//pkg/util/log/logpb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_gostdlib//go/format", - ], -) - -go_library( - name = "eventpb", - srcs = [ - "doc.go", - "events.go", - "sql_audit_events.go", - ":gen-eventlog-channels-generated-go", # keep - ":gen-json-encode-generated-go", # keep - ], - embed = [":eventpb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log/eventpb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/jsonbytes", # keep - "//pkg/util/log/logpb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "eventpb_test", - size = "small", - srcs = ["event_test.go"], - embed = [":eventpb"], - deps = [ - "@com_github_cockroachdb_redact//:redact", - "@com_github_stretchr_testify//assert", - ], -) - -proto_library( - name = "eventpb_proto", - srcs = [ - "cluster_events.proto", - "ddl_events.proto", - "debug_events.proto", - "events.proto", - "health_events.proto", - "job_events.proto", - "misc_sql_events.proto", - "privilege_events.proto", - "role_events.proto", - "session_events.proto", - "sql_audit_events.proto", - "telemetry.proto", - "zone_events.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "eventpb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log/eventpb", - proto = ":eventpb_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) - -genrule( - name = "gen-eventlog-channels-generated-go", - srcs = _EVENTPB_PROTOS, - outs = ["eventlog_channels_generated.go"], - cmd = """ - $(location //pkg/util/log/eventpb:gen) eventlog_channels_go \ - {} \ - >$(location eventlog_channels_generated.go) - """.format(_EVENTPB_PROTO_LOCATIONS), - exec_tools = [ - "//pkg/util/log/eventpb:gen", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) - -genrule( - name = "gen-json-encode-generated-go", - srcs = _EVENTPB_PROTOS, - outs = ["json_encode_generated.go"], - cmd = """ - $(location //pkg/util/log/eventpb:gen) json_encode_go \ - {} \ - >$(location json_encode_generated.go) - """.format(_EVENTPB_PROTO_LOCATIONS), - exec_tools = [ - "//pkg/util/log/eventpb:gen", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/util/log/gen/BUILD.bazel b/pkg/util/log/gen/BUILD.bazel deleted file mode 100644 index 406acc0f035..00000000000 --- a/pkg/util/log/gen/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "gen_library", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log/gen", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cli/exit", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_gostdlib//go/format", - ], -) - -go_binary( - name = "gen", - embed = [":gen_library"], - visibility = ["//visibility:public"], -) diff --git a/pkg/util/log/logconfig/BUILD.bazel b/pkg/util/log/logconfig/BUILD.bazel deleted file mode 100644 index 7bc63bcefb3..00000000000 --- a/pkg/util/log/logconfig/BUILD.bazel +++ /dev/null @@ -1,51 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") - -exports_files(["config.go"]) - -go_binary( - name = "gen", - srcs = ["gen.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log/logconfig", - visibility = ["//visibility:public"], - deps = [ - "//pkg/cli/exit", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_library( - name = "logconfig", - srcs = [ - "config.go", - "doc.go", - "export.go", - "validate.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log/logconfig", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build", - "//pkg/util/humanizeutil", - "//pkg/util/log/logpb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_dustin_go_humanize//:go-humanize", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) - -go_test( - name = "logconfig_test", - size = "small", - srcs = [ - "config_test.go", - "export_test.go", - "validate_test.go", - ], - data = glob(["testdata/**"]), - embed = [":logconfig"], - deps = [ - "@com_github_cockroachdb_datadriven//:datadriven", - "@com_github_kr_pretty//:pretty", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) diff --git a/pkg/util/log/logcrash/BUILD.bazel b/pkg/util/log/logcrash/BUILD.bazel deleted file mode 100644 index 8c65f0b4596..00000000000 --- a/pkg/util/log/logcrash/BUILD.bazel +++ /dev/null @@ -1,93 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "logcrash", - srcs = ["crash_reporting.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log/logcrash", - visibility = ["//visibility:public"], - x_defs = { - "github.com/cockroachdb/cockroach/pkg/util/log/logcrash.crashReportEnv": "{STABLE_CRASH_REPORT_ENV}", - }, - deps = [ - "//pkg/build", - "//pkg/settings", - "//pkg/util/envutil", - "//pkg/util/log", - "//pkg/util/log/severity", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_getsentry_sentry_go//:sentry-go", - ], -) - -go_test( - name = "logcrash_test", - size = "small", - srcs = [ - "crash_reporting_packet_test.go", - "crash_reporting_test.go", - "crash_reporting_unix_test.go", - "main_test.go", - ], - embed = [":logcrash"], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings/cluster", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/util", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - "@com_github_getsentry_sentry_go//:sentry-go", - "@com_github_kr_pretty//:pretty", - "@com_github_pmezard_go_difflib//difflib", - "@com_github_stretchr_testify//assert", - ] + select({ - "@io_bazel_rules_go//go/platform:aix": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:android": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:illumos": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:js": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:plan9": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "@org_golang_x_sys//unix", - ], - "//conditions:default": [], - }), -) diff --git a/pkg/util/log/logflags/BUILD.bazel b/pkg/util/log/logflags/BUILD.bazel deleted file mode 100644 index f4cbfec34ed..00000000000 --- a/pkg/util/log/logflags/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "logflags", - srcs = ["logflags.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log/logflags", - visibility = ["//visibility:public"], -) diff --git a/pkg/util/log/logpb/BUILD.bazel b/pkg/util/log/logpb/BUILD.bazel deleted file mode 100644 index 3a9fb8b54e2..00000000000 --- a/pkg/util/log/logpb/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "logpb", - srcs = ["severity.go"], - embed = [":logpb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log/logpb", - visibility = ["//visibility:public"], -) - -proto_library( - name = "logpb_proto", - srcs = ["log.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "logpb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log/logpb", - proto = ":logpb_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) - -exports_files( - [ - "log.proto", - ], - visibility = ["//visibility:public"], -) diff --git a/pkg/util/log/logtestutils/BUILD.bazel b/pkg/util/log/logtestutils/BUILD.bazel deleted file mode 100644 index 252e8c2cbff..00000000000 --- a/pkg/util/log/logtestutils/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "logtestutils", - srcs = ["log_test_utils.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log/logtestutils", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/log", - "//pkg/util/log/channel", - "//pkg/util/log/logconfig", - ], -) diff --git a/pkg/util/log/severity/BUILD.bazel b/pkg/util/log/severity/BUILD.bazel deleted file mode 100644 index 63d26d6ff25..00000000000 --- a/pkg/util/log/severity/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "severity", - srcs = [ - ":gen-severity", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/log/severity", # keep - visibility = ["//visibility:public"], - deps = ["//pkg/util/log/logpb"], # keep -) - -genrule( - name = "gen-severity", - srcs = [ - "//pkg/util/log/logpb:log.proto", - ], - outs = ["severity_generated.go"], - cmd = """ - $(location //pkg/util/log/gen) $(location //pkg/util/log/logpb:log.proto) \ - severity.go $(location severity_generated.go) - """, - exec_tools = [ - "//pkg/util/log/gen", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/util/log/testshout/BUILD.bazel b/pkg/util/log/testshout/BUILD.bazel deleted file mode 100644 index 4dedcd356c3..00000000000 --- a/pkg/util/log/testshout/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_test") - -go_test( - name = "testshout_test", - size = "small", - srcs = ["shout_test.go"], - deps = [ - "//pkg/util/log", - "//pkg/util/log/logconfig", - "//pkg/util/log/severity", - ], -) diff --git a/pkg/util/memzipper/BUILD.bazel b/pkg/util/memzipper/BUILD.bazel deleted file mode 100644 index d8b83d39e6c..00000000000 --- a/pkg/util/memzipper/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "memzipper", - srcs = ["zipper.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/memzipper", - visibility = ["//visibility:public"], - deps = ["//pkg/util/timeutil"], -) diff --git a/pkg/util/metric/BUILD.bazel b/pkg/util/metric/BUILD.bazel deleted file mode 100644 index e9aaed34fb4..00000000000 --- a/pkg/util/metric/BUILD.bazel +++ /dev/null @@ -1,82 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "metric", - srcs = [ - "doc.go", - "graphite_exporter.go", - "metric.go", - "prometheus_exporter.go", - "prometheus_rule_exporter.go", - "registry.go", - "rule.go", - "rule_registry.go", - "sliding_histogram.go", - "test_helpers.go", - ], - embed = [":metric_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/metric", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_codahale_hdrhistogram//:hdrhistogram", - "@com_github_gogo_protobuf//proto", - "@com_github_prometheus_client_golang//prometheus", - "@com_github_prometheus_client_golang//prometheus/graphite", - "@com_github_prometheus_client_model//go", - "@com_github_prometheus_common//expfmt", - "@com_github_prometheus_prometheus//promql/parser", - "@com_github_rcrowley_go_metrics//:go-metrics", - "@com_github_vividcortex_ewma//:ewma", - "@in_gopkg_yaml_v3//:yaml_v3", - ], -) - -go_test( - name = "metric_test", - size = "small", - srcs = [ - "metric_ext_test.go", - "metric_test.go", - "prometheus_exporter_test.go", - "prometheus_rule_exporter_test.go", - "registry_test.go", - "rule_test.go", - ], - data = glob(["testdata/**"]), - embed = [":metric"], - deps = [ - "//pkg/testutils", - "//pkg/testutils/echotest", - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "metric_proto", - srcs = ["metric.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_github_prometheus_client_model//io/prometheus/client:io_prometheus_client_proto", - ], -) - -go_proto_library( - name = "metric_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/metric", - proto = ":metric_proto", - visibility = ["//visibility:public"], - deps = [ - "@com_github_gogo_protobuf//gogoproto", - "@com_github_prometheus_client_model//go", - ], -) diff --git a/pkg/util/metric/aggmetric/BUILD.bazel b/pkg/util/metric/aggmetric/BUILD.bazel deleted file mode 100644 index 0f174b3cb59..00000000000 --- a/pkg/util/metric/aggmetric/BUILD.bazel +++ /dev/null @@ -1,37 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "aggmetric", - srcs = [ - "agg_metric.go", - "counter.go", - "gauge.go", - "histogram.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/metric/aggmetric", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/metric", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_codahale_hdrhistogram//:hdrhistogram", - "@com_github_gogo_protobuf//proto", - "@com_github_google_btree//:btree", - "@com_github_prometheus_client_model//go", - ], -) - -go_test( - name = "aggmetric_test", - size = "small", - srcs = ["agg_metric_test.go"], - deps = [ - ":aggmetric", - "//pkg/base", - "//pkg/roachpb", - "//pkg/util/leaktest", - "//pkg/util/metric", - "@com_github_prometheus_client_model//go", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/mon/BUILD.bazel b/pkg/util/mon/BUILD.bazel deleted file mode 100644 index 3ccc98ae1b6..00000000000 --- a/pkg/util/mon/BUILD.bazel +++ /dev/null @@ -1,42 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "mon", - srcs = [ - "bytes_usage.go", - "resource.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/mon", - visibility = ["//visibility:public"], - deps = [ - "//pkg/settings/cluster", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/util", - "//pkg/util/envutil", - "//pkg/util/humanizeutil", - "//pkg/util/ioctx", - "//pkg/util/log", - "//pkg/util/log/logcrash", - "//pkg/util/metric", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "mon_test", - size = "small", - srcs = ["bytes_usage_test.go"], - embed = [":mon"], - deps = [ - "//pkg/settings/cluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/metric", - "//pkg/util/randutil", - "@com_github_cockroachdb_redact//:redact", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/netutil/BUILD.bazel b/pkg/util/netutil/BUILD.bazel deleted file mode 100644 index 561667b727f..00000000000 --- a/pkg/util/netutil/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "netutil", - srcs = [ - "net.go", - "srv.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/netutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/base", - "//pkg/util/log", - "//pkg/util/log/severity", - "//pkg/util/netutil/addr", - "//pkg/util/stop", - "//pkg/util/syncutil", - "@com_github_cockroachdb_cmux//:cmux", - "@com_github_cockroachdb_errors//:errors", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_x_net//http2", - ], -) - -go_test( - name = "netutil_test", - srcs = [ - "net_test.go", - "srv_test.go", - ], - embed = [":netutil"], - deps = [ - "//pkg/util/contextutil", - "@com_github_cockroachdb_cmux//:cmux", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@org_golang_google_grpc//:go_default_library", - ], -) diff --git a/pkg/util/netutil/addr/BUILD.bazel b/pkg/util/netutil/addr/BUILD.bazel deleted file mode 100644 index 441d027f881..00000000000 --- a/pkg/util/netutil/addr/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "addr", - srcs = ["addr.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/netutil/addr", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) - -go_test( - name = "addr_test", - srcs = ["addr_test.go"], - deps = [ - ":addr", - "//pkg/testutils", - ], -) diff --git a/pkg/util/optional/BUILD.bazel b/pkg/util/optional/BUILD.bazel deleted file mode 100644 index 9fda9948cb5..00000000000 --- a/pkg/util/optional/BUILD.bazel +++ /dev/null @@ -1,47 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "optional", - srcs = [ - "duration.go", - "uint.go", - ], - embed = [":optional_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/optional", - visibility = ["//visibility:public"], -) - -go_test( - name = "optional_test", - size = "small", - srcs = [ - "duration_test.go", - "uint_test.go", - ], - deps = [ - ":optional", - "@com_github_stretchr_testify//require", - ], -) - -proto_library( - name = "optional_proto", - srcs = ["optional.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_google_protobuf//:duration_proto", - ], -) - -go_proto_library( - name = "optional_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/optional", - proto = ":optional_proto", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto"], -) diff --git a/pkg/util/pprofutil/BUILD.bazel b/pkg/util/pprofutil/BUILD.bazel deleted file mode 100644 index 41b10ae1b5d..00000000000 --- a/pkg/util/pprofutil/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "pprofutil", - srcs = ["labels.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/pprofutil", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_logtags//:logtags"], -) diff --git a/pkg/util/pretty/BUILD.bazel b/pkg/util/pretty/BUILD.bazel deleted file mode 100644 index cac62136fe1..00000000000 --- a/pkg/util/pretty/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "pretty", - srcs = [ - "document.go", - "pretty.go", - "util.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/pretty", - visibility = ["//visibility:public"], -) - -go_test( - name = "pretty_test", - size = "small", - srcs = ["pretty_test.go"], - deps = [":pretty"], -) diff --git a/pkg/util/protoutil/BUILD.bazel b/pkg/util/protoutil/BUILD.bazel deleted file mode 100644 index d77661ec080..00000000000 --- a/pkg/util/protoutil/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "protoutil", - srcs = [ - "clone.go", - "jsonpb_marshal.go", - "marshal.go", - "marshaler.go", - ], - embed = [":protoutil_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/protoutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_gogo_protobuf//jsonpb", - "@com_github_gogo_protobuf//proto", - "@com_github_grpc_ecosystem_grpc_gateway//runtime:go_default_library", - ], -) - -go_test( - name = "protoutil_test", - size = "small", - srcs = ["clone_test.go"], - deps = [ - ":protoutil", - "//pkg/config/zonepb", - "//pkg/gossip", - "//pkg/kv/kvserver/kvserverpb", - "//pkg/kv/kvserver/protectedts/ptpb", - "//pkg/roachpb", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/descpb", - "//pkg/storage/enginepb", - "@com_github_gogo_protobuf//proto", - ], -) - -proto_library( - name = "protoutil_proto", - srcs = ["clone.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = ["@com_github_gogo_protobuf//gogoproto:gogo_proto"], -) - -go_proto_library( - name = "protoutil_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/protoutil", - proto = ":protoutil_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/uuid", # keep - "@com_github_gogo_protobuf//gogoproto", - ], -) diff --git a/pkg/util/quotapool/BUILD.bazel b/pkg/util/quotapool/BUILD.bazel deleted file mode 100644 index ab6b9e0cd38..00000000000 --- a/pkg/util/quotapool/BUILD.bazel +++ /dev/null @@ -1,47 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "quotapool", - srcs = [ - "config.go", - "int_rate.go", - "intpool.go", - "notify_queue.go", - "quotapool.go", - "token_bucket.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/quotapool", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "quotapool_test", - size = "small", - srcs = [ - "bench_test.go", - "example_test.go", - "int_rate_test.go", - "intpool_test.go", - "node_size_test.go", - "notify_queue_test.go", - "token_bucket_test.go", - ], - embed = [":quotapool"], - deps = [ - "//pkg/testutils", - "//pkg/util/ctxgroup", - "//pkg/util/leaktest", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/util/randutil/BUILD.bazel b/pkg/util/randutil/BUILD.bazel deleted file mode 100644 index 2932de29abb..00000000000 --- a/pkg/util/randutil/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "randutil", - srcs = ["rand.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/randutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/envutil", - "//pkg/util/syncutil", - ], -) - -go_test( - name = "randutil_test", - size = "small", - srcs = ["rand_test.go"], - deps = [ - ":randutil", - "//pkg/util/log", - ], -) diff --git a/pkg/util/retry/BUILD.bazel b/pkg/util/retry/BUILD.bazel deleted file mode 100644 index 1921cfc0e8f..00000000000 --- a/pkg/util/retry/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "retry", - srcs = ["retry.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/retry", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "retry_test", - size = "small", - srcs = [ - "main_test.go", - "retry_test.go", - ], - embed = [":retry"], - deps = [ - "//pkg/util/log", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/ring/BUILD.bazel b/pkg/util/ring/BUILD.bazel deleted file mode 100644 index a645e6b1a20..00000000000 --- a/pkg/util/ring/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "ring", - srcs = ["ring_buffer.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/ring", - visibility = ["//visibility:public"], -) - -go_test( - name = "ring_test", - size = "small", - srcs = [ - "main_test.go", - "ring_buffer_test.go", - ], - embed = [":ring"], - deps = [ - "//pkg/util/leaktest", - "//pkg/util/randutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/sdnotify/BUILD.bazel b/pkg/util/sdnotify/BUILD.bazel deleted file mode 100644 index 8b3e70b27be..00000000000 --- a/pkg/util/sdnotify/BUILD.bazel +++ /dev/null @@ -1,80 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "sdnotify", - srcs = [ - "sdnotify.go", - "sdnotify_unix.go", - "sdnotify_windows.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/sdnotify", - visibility = ["//visibility:public"], - deps = select({ - "@io_bazel_rules_go//go/platform:windows": [ - "@com_github_cockroachdb_errors//:errors", - ], - "//conditions:default": [], - }), -) - -go_test( - name = "sdnotify_test", - size = "small", - srcs = ["sdnotify_unix_test.go"], - embed = [":sdnotify"], - deps = select({ - "@io_bazel_rules_go//go/platform:aix": [ - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:android": [ - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:illumos": [ - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:js": [ - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:plan9": [ - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "//pkg/util/log", - "@com_github_stretchr_testify//require", - ], - "//conditions:default": [], - }), -) diff --git a/pkg/util/search/BUILD.bazel b/pkg/util/search/BUILD.bazel deleted file mode 100644 index 95af5c0e4c2..00000000000 --- a/pkg/util/search/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "search", - srcs = ["search.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/search", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) - -go_test( - name = "search_test", - size = "small", - srcs = ["search_test.go"], - embed = [":search"], - deps = [ - "//pkg/util/timeutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/shuffle/BUILD.bazel b/pkg/util/shuffle/BUILD.bazel deleted file mode 100644 index f49daa496c9..00000000000 --- a/pkg/util/shuffle/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "shuffle", - srcs = ["shuffle.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/shuffle", - visibility = ["//visibility:public"], -) - -go_test( - name = "shuffle_test", - size = "small", - srcs = ["shuffle_test.go"], - embed = [":shuffle"], - deps = ["//pkg/util/leaktest"], -) diff --git a/pkg/util/sort/BUILD.bazel b/pkg/util/sort/BUILD.bazel deleted file mode 100644 index be6621098d1..00000000000 --- a/pkg/util/sort/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sort", - srcs = ["sort.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/sort", - visibility = ["//visibility:public"], - deps = ["//pkg/util/cancelchecker"], -) diff --git a/pkg/util/span/BUILD.bazel b/pkg/util/span/BUILD.bazel deleted file mode 100644 index 7e19ceb92d3..00000000000 --- a/pkg/util/span/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "span", - srcs = ["frontier.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/span", - visibility = ["//visibility:public"], - deps = [ - "//pkg/keys", - "//pkg/roachpb", - "//pkg/util/hlc", - "//pkg/util/interval", - ], -) - -go_test( - name = "span_test", - size = "small", - srcs = ["frontier_test.go"], - embed = [":span"], - deps = [ - "//pkg/roachpb", - "//pkg/util/hlc", - "//pkg/util/interval", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/startup/BUILD.bazel b/pkg/util/startup/BUILD.bazel deleted file mode 100644 index 2065d4a933f..00000000000 --- a/pkg/util/startup/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "startup", - srcs = ["retry.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/startup", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util", - "//pkg/util/log", - "//pkg/util/retry", - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_petermattis_goid//:goid", - ], -) - -go_test( - name = "startup_test", - srcs = ["startup_test.go"], - args = ["-test.timeout=295s"], - deps = [ - "//pkg/base", - "//pkg/keys", - "//pkg/roachpb", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/spanconfig", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/stop/BUILD.bazel b/pkg/util/stop/BUILD.bazel deleted file mode 100644 index 3fc668bcc01..00000000000 --- a/pkg/util/stop/BUILD.bazel +++ /dev/null @@ -1,39 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "stop", - srcs = ["stopper.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/stop", - visibility = ["//visibility:public"], - deps = [ - "//pkg/roachpb", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/log/logcrash", - "//pkg/util/quotapool", - "//pkg/util/syncutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "stop_test", - size = "small", - srcs = [ - "main_test.go", - "stopper_test.go", - ], - deps = [ - ":stop", - "//pkg/roachpb", - "//pkg/testutils", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/quotapool", - "//pkg/util/syncutil", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/stringarena/BUILD.bazel b/pkg/util/stringarena/BUILD.bazel deleted file mode 100644 index ff4ba841c25..00000000000 --- a/pkg/util/stringarena/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "stringarena", - srcs = ["arena.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/stringarena", - visibility = ["//visibility:public"], - deps = ["//pkg/util/mon"], -) - -go_test( - name = "stringarena_test", - size = "small", - srcs = ["arena_test.go"], - embed = [":stringarena"], -) diff --git a/pkg/util/stringencoding/BUILD.bazel b/pkg/util/stringencoding/BUILD.bazel deleted file mode 100644 index 56ff8e9ed9d..00000000000 --- a/pkg/util/stringencoding/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "stringencoding", - srcs = ["string_encoding.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/stringencoding", - visibility = ["//visibility:public"], -) diff --git a/pkg/util/syncutil/BUILD.bazel b/pkg/util/syncutil/BUILD.bazel deleted file mode 100644 index 66cdebe279e..00000000000 --- a/pkg/util/syncutil/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "syncutil", - srcs = [ - "atomic.go", - "int_map.go", - "mutex_deadlock.go", # keep - "mutex_sync.go", # keep - "mutex_sync_race.go", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/syncutil", - visibility = ["//visibility:public"], - deps = [ - "@com_github_sasha_s_go_deadlock//:go-deadlock", # keep - ], -) - -go_test( - name = "syncutil_test", - size = "small", - srcs = [ - "atomic_test.go", - "int_map_bench_test.go", - "int_map_reference_test.go", - "int_map_test.go", - "mutex_sync_race_test.go", # keep - ], - embed = [":syncutil"], - deps = ["@com_github_stretchr_testify//require"], -) diff --git a/pkg/util/syncutil/singleflight/BUILD.bazel b/pkg/util/syncutil/singleflight/BUILD.bazel deleted file mode 100644 index 54c45c360ec..00000000000 --- a/pkg/util/syncutil/singleflight/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "singleflight", - srcs = ["singleflight.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/syncutil/singleflight", - visibility = ["//visibility:public"], - deps = ["//pkg/util/syncutil"], -) - -go_test( - name = "singleflight_test", - size = "small", - srcs = ["singleflight_test.go"], - embed = [":singleflight"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) diff --git a/pkg/util/system/BUILD.bazel b/pkg/util/system/BUILD.bazel deleted file mode 100644 index c63250e7454..00000000000 --- a/pkg/util/system/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "system", - srcs = ["num_cpu.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/system", - visibility = ["//visibility:public"], -) diff --git a/pkg/util/sysutil/BUILD.bazel b/pkg/util/sysutil/BUILD.bazel deleted file mode 100644 index 20ab42819b2..00000000000 --- a/pkg/util/sysutil/BUILD.bazel +++ /dev/null @@ -1,130 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "sysutil", - srcs = [ - "acl_unix.go", - "acl_windows.go", - "aclinfo.go", - "large_file.go", - "large_file_linux.go", - "large_file_nonlinux.go", - "sysutil.go", - "sysutil_unix.go", - "sysutil_windows.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/sysutil", - visibility = ["//visibility:public"], - deps = [ - "@com_github_cockroachdb_errors//:errors", - ] + select({ - "@io_bazel_rules_go//go/platform:aix": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:android": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:illumos": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:js": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:plan9": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "@org_golang_x_sys//unix", - ], - "//conditions:default": [], - }), -) - -go_test( - name = "sysutil_test", - size = "small", - srcs = [ - "acl_unix_test.go", - "large_file_test.go", - "sysutil_test.go", - "sysutil_unix_test.go", - ], - embed = [":sysutil"], - deps = [ - "@com_github_cockroachdb_errors//:errors", - ] + select({ - "@io_bazel_rules_go//go/platform:aix": [ - "@com_github_stretchr_testify//assert", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:android": [ - "@com_github_stretchr_testify//assert", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "@com_github_stretchr_testify//assert", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "@com_github_stretchr_testify//assert", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "@com_github_stretchr_testify//assert", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:illumos": [ - "@com_github_stretchr_testify//assert", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "@com_github_stretchr_testify//assert", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:js": [ - "@com_github_stretchr_testify//assert", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "@com_github_stretchr_testify//assert", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "@com_github_stretchr_testify//assert", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "@com_github_stretchr_testify//assert", - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:plan9": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "@com_github_stretchr_testify//assert", - "@org_golang_x_sys//unix", - ], - "//conditions:default": [], - }), -) diff --git a/pkg/util/targz/BUILD.bazel b/pkg/util/targz/BUILD.bazel deleted file mode 100644 index e785b1a6f41..00000000000 --- a/pkg/util/targz/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "targz", - srcs = ["targz.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/targz", - visibility = ["//visibility:public"], - deps = [ - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_afero//:afero", - ], -) - -go_test( - name = "targz_test", - srcs = ["targz_test.go"], - embed = [":targz"], - deps = ["@com_github_stretchr_testify//require"], -) diff --git a/pkg/util/targz/gen/BUILD.bazel b/pkg/util/targz/gen/BUILD.bazel deleted file mode 100644 index b6459142236..00000000000 --- a/pkg/util/targz/gen/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "gen_lib", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/targz/gen", - visibility = ["//visibility:private"], - deps = [ - "//pkg/cli/exit", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_binary( - name = "gen", - embed = [":gen_lib"], - visibility = ["//pkg/ui:__subpackages__"], -) diff --git a/pkg/util/timeofday/BUILD.bazel b/pkg/util/timeofday/BUILD.bazel deleted file mode 100644 index 8854180f6a0..00000000000 --- a/pkg/util/timeofday/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "timeofday", - srcs = ["time_of_day.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/timeofday", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/duration", - "//pkg/util/timeutil", - ], -) - -go_test( - name = "timeofday_test", - size = "small", - srcs = ["time_of_day_test.go"], - embed = [":timeofday"], - deps = ["//pkg/util/duration"], -) diff --git a/pkg/util/timetz/BUILD.bazel b/pkg/util/timetz/BUILD.bazel deleted file mode 100644 index ecb840461db..00000000000 --- a/pkg/util/timetz/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "timetz", - srcs = ["timetz.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/timetz", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/util/timeofday", - "//pkg/util/timeutil", - "//pkg/util/timeutil/pgdate", - ], -) - -go_test( - name = "timetz_test", - size = "small", - srcs = ["timetz_test.go"], - embed = [":timetz"], - deps = [ - "//pkg/util/timeofday", - "//pkg/util/timeutil", - "//pkg/util/timeutil/pgdate", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/timeutil/BUILD.bazel b/pkg/util/timeutil/BUILD.bazel deleted file mode 100644 index 9be7302ead0..00000000000 --- a/pkg/util/timeutil/BUILD.bazel +++ /dev/null @@ -1,66 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "timeutil", - srcs = [ - "manual_time.go", - "stopwatch.go", - "time.go", - "time_source.go", - "time_zone_util.go", - "timer.go", - "timeutil.go", - "zoneinfo.go", - ":gen-lowercase-timezones", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/timeutil", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/syncutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "timeutil_test", - size = "medium", - srcs = [ - "main_test.go", - "manual_time_test.go", - "now_test.go", - "stopwatch_test.go", - "time_test.go", - "time_zone_util_test.go", - "timer_test.go", - ], - embed = [":timeutil"], - deps = [ - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/randutil", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//require", - ], -) - -genrule( - name = "gen-lowercase-timezones", - srcs = [ - "@go_sdk//:lib/time/zoneinfo.zip", - ], - outs = ["lowercase_timezones_generated.go"], - cmd = """ - $(location //pkg/util/timeutil/gen) \ - --filename=$(location lowercase_timezones_generated.go) \ - --zoneinfo=$(location @go_sdk//:lib/time/zoneinfo.zip) \ - --crlfmt=$(location @com_github_cockroachdb_crlfmt//:crlfmt) - """, - exec_tools = [ - "//pkg/util/timeutil/gen", - "@com_github_cockroachdb_crlfmt//:crlfmt", - ], - visibility = [ - ":__pkg__", - "//pkg/gen:__pkg__", - ], -) diff --git a/pkg/util/timeutil/gen/BUILD.bazel b/pkg/util/timeutil/gen/BUILD.bazel deleted file mode 100644 index 946d32fee46..00000000000 --- a/pkg/util/timeutil/gen/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -go_library( - name = "gen_library", - srcs = ["main.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/timeutil/gen", - visibility = ["//visibility:private"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) - -go_binary( - name = "gen", - data = ["@go_sdk//:lib/time/zoneinfo.zip"], - embed = [":gen_library"], - visibility = ["//visibility:public"], -) diff --git a/pkg/util/timeutil/pgdate/BUILD.bazel b/pkg/util/timeutil/pgdate/BUILD.bazel deleted file mode 100644 index 8475d93af75..00000000000 --- a/pkg/util/timeutil/pgdate/BUILD.bazel +++ /dev/null @@ -1,70 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "pgdate", - srcs = [ - "field_extract.go", - "fields.go", - "math.go", - "parsing.go", - "pgdate.go", - "setters.go", - "zone_cache.go", - ":gen-field-stringer", # keep - ], - embed = [":pgdate_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/timeutil/pgdate", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/util/arith", - "//pkg/util/errorutil/unimplemented", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_redact//:redact", - ], -) - -go_test( - name = "pgdate_test", - size = "small", - srcs = [ - "field_extract_test.go", - "fields_test.go", - "parsing_test.go", - "pgdate_test.go", - ], - embed = [":pgdate"], - deps = [ - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//:pq", - "@com_github_stretchr_testify//require", - ], -) - -stringer( - name = "gen-field-stringer", - src = "fields.go", - typ = "field", -) - -proto_library( - name = "pgdate_proto", - srcs = ["pgdate.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], -) - -go_proto_library( - name = "pgdate_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/timeutil/pgdate", - proto = ":pgdate_proto", - visibility = ["//visibility:public"], -) diff --git a/pkg/util/tracing/BUILD.bazel b/pkg/util/tracing/BUILD.bazel deleted file mode 100644 index d707610d706..00000000000 --- a/pkg/util/tracing/BUILD.bazel +++ /dev/null @@ -1,106 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "tracing", - srcs = [ - "context.go", - "crdbspan.go", - "doc.go", - "grpc_interceptor.go", - "recording.go", - "span.go", - "span_finalizer_race_off.go", - "span_finalizer_race_on.go", - "span_inner.go", - "span_options.go", - "tags.go", - "test_utils.go", - "tracer.go", - "tracer_snapshots.go", - "utils.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/tracing", - visibility = ["//visibility:public"], - deps = [ - "//pkg/settings", - "//pkg/util", - "//pkg/util/buildutil", - "//pkg/util/envutil", - "//pkg/util/iterutil", - "//pkg/util/netutil/addr", - "//pkg/util/protoutil", - "//pkg/util/randutil", - "//pkg/util/ring", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/tracing/tracingpb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//jsonpb", - "@com_github_gogo_protobuf//proto", - "@com_github_gogo_protobuf//types", - "@com_github_jaegertracing_jaeger//model/json", - "@com_github_petermattis_goid//:goid", - "@com_github_pmezard_go_difflib//difflib", - "@io_opentelemetry_go_otel//attribute", - "@io_opentelemetry_go_otel//codes", - "@io_opentelemetry_go_otel//semconv/v1.4.0:v1_4_0", - "@io_opentelemetry_go_otel_exporters_jaeger//:jaeger", - "@io_opentelemetry_go_otel_exporters_otlp_otlptrace_otlptracegrpc//:otlptracegrpc", - "@io_opentelemetry_go_otel_exporters_zipkin//:zipkin", - "@io_opentelemetry_go_otel_sdk//resource", - "@io_opentelemetry_go_otel_sdk//trace", - "@io_opentelemetry_go_otel_trace//:trace", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_google_grpc//metadata", - "@org_golang_google_grpc//status", - "@org_golang_x_net//trace", - ], -) - -go_test( - name = "tracing_test", - size = "small", - srcs = [ - "bench_test.go", - "grpc_interceptor_test.go", - "main_test.go", - "span_test.go", - "tags_test.go", - "tracer_external_test.go", - "tracer_test.go", - ], - embed = [":tracing"], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/settings", - "//pkg/testutils", - "//pkg/testutils/grpcutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/sqlutils", - "//pkg/util", - "//pkg/util/iterutil", - "//pkg/util/leaktest", - "//pkg/util/log", - "//pkg/util/stop", - "//pkg/util/timeutil", - "//pkg/util/tracing/tracingpb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_cockroachdb_logtags//:logtags", - "@com_github_gogo_protobuf//types", - "@com_github_stretchr_testify//require", - "@io_opentelemetry_go_otel//attribute", - "@io_opentelemetry_go_otel_sdk//trace", - "@io_opentelemetry_go_otel_sdk//trace/tracetest", - "@io_opentelemetry_go_otel_trace//:trace", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_google_grpc//metadata", - "@org_golang_x_net//trace", - "@org_golang_x_sync//errgroup", - ], -) diff --git a/pkg/util/tracing/collector/BUILD.bazel b/pkg/util/tracing/collector/BUILD.bazel deleted file mode 100644 index 171ba8685d2..00000000000 --- a/pkg/util/tracing/collector/BUILD.bazel +++ /dev/null @@ -1,48 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "collector", - srcs = [ - "collector.go", - "nodes.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/tracing/collector", - visibility = ["//visibility:public"], - deps = [ - "//pkg/kv/kvserver/liveness/livenesspb", - "//pkg/roachpb", - "//pkg/rpc", - "//pkg/rpc/nodedialer", - "//pkg/util/log", - "//pkg/util/tracing", - "//pkg/util/tracing/tracingpb", - "//pkg/util/tracing/tracingservicepb", - ], -) - -go_test( - name = "collector_test", - srcs = [ - "collector_test.go", - "main_test.go", - ], - deps = [ - ":collector", - "//pkg/base", - "//pkg/ccl/utilccl", - "//pkg/kv/kvserver/liveness", - "//pkg/roachpb", - "//pkg/rpc/nodedialer", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/testutils/serverutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "//pkg/util/tracing", - "//pkg/util/tracing/tracingpb", - "@com_github_gogo_protobuf//types", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/tracing/service/BUILD.bazel b/pkg/util/tracing/service/BUILD.bazel deleted file mode 100644 index 7abfed6af27..00000000000 --- a/pkg/util/tracing/service/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "service", - srcs = ["service.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/tracing/service", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/tracing", - "//pkg/util/tracing/tracingservicepb", - ], -) - -go_test( - name = "service_test", - srcs = ["service_test.go"], - embed = [":service"], - deps = [ - "//pkg/util/leaktest", - "//pkg/util/tracing", - "//pkg/util/tracing/tracingpb", - "//pkg/util/tracing/tracingservicepb", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/util/tracing/tracingpb/BUILD.bazel b/pkg/util/tracing/tracingpb/BUILD.bazel deleted file mode 100644 index 7c2ce2142ad..00000000000 --- a/pkg/util/tracing/tracingpb/BUILD.bazel +++ /dev/null @@ -1,46 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "tracingpb", - srcs = [ - "recorded_span.go", - "tracing.go", - ], - embed = [":tracingpb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/tracing/tracingpb", - visibility = ["//visibility:public"], - deps = [ - "@com_github_cockroachdb_redact//:redact", - "@com_github_gogo_protobuf//types", - ], -) - -proto_library( - name = "tracingpb_proto", - srcs = [ - "recorded_span.proto", - "tracing.proto", - ], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -go_proto_library( - name = "tracingpb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/tracing/tracingpb", - proto = ":tracingpb_proto", - visibility = ["//visibility:public"], - deps = [ - "@com_github_cockroachdb_redact//:redact", # keep - "@com_github_gogo_protobuf//gogoproto", - ], -) diff --git a/pkg/util/tracing/tracingservicepb/BUILD.bazel b/pkg/util/tracing/tracingservicepb/BUILD.bazel deleted file mode 100644 index 83af4b38715..00000000000 --- a/pkg/util/tracing/tracingservicepb/BUILD.bazel +++ /dev/null @@ -1,33 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -proto_library( - name = "tracingservicepb_proto", - srcs = ["tracing_service.proto"], - strip_import_prefix = "/pkg", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/tracing/tracingpb:tracingpb_proto", - "@com_github_gogo_protobuf//gogoproto:gogo_proto", - ], -) - -go_proto_library( - name = "tracingservicepb_go_proto", - compilers = ["//pkg/cmd/protoc-gen-gogoroach:protoc-gen-gogoroach_grpc_compiler"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/tracing/tracingservicepb", - proto = ":tracingservicepb_proto", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/tracing/tracingpb", - "@com_github_gogo_protobuf//gogoproto", - ], -) - -go_library( - name = "tracingservicepb", - embed = [":tracingservicepb_go_proto"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/tracing/tracingservicepb", - visibility = ["//visibility:public"], -) diff --git a/pkg/util/tracing/tracingui/BUILD.bazel b/pkg/util/tracing/tracingui/BUILD.bazel deleted file mode 100644 index 13580eb77d4..00000000000 --- a/pkg/util/tracing/tracingui/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "tracingui", - srcs = ["span_registry_ui.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/tracing/tracingui", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/tracing", - "//pkg/util/tracing/tracingpb", - ], -) diff --git a/pkg/util/tracing/zipper/BUILD.bazel b/pkg/util/tracing/zipper/BUILD.bazel deleted file mode 100644 index f330b06c206..00000000000 --- a/pkg/util/tracing/zipper/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "zipper", - srcs = ["zipper.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/tracing/zipper", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/sem/tree", - "//pkg/sql/sqlutil", - "//pkg/util/log", - "//pkg/util/memzipper", - "//pkg/util/tracing", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/util/treeprinter/BUILD.bazel b/pkg/util/treeprinter/BUILD.bazel deleted file mode 100644 index 6240a5aa78e..00000000000 --- a/pkg/util/treeprinter/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "treeprinter", - srcs = ["tree_printer.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/treeprinter", - visibility = ["//visibility:public"], -) - -go_test( - name = "treeprinter_test", - size = "small", - srcs = ["tree_printer_test.go"], - embed = [":treeprinter"], -) diff --git a/pkg/util/uint128/BUILD.bazel b/pkg/util/uint128/BUILD.bazel deleted file mode 100644 index c90b7cfd2ca..00000000000 --- a/pkg/util/uint128/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "uint128", - srcs = ["uint128.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/uint128", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) - -go_test( - name = "uint128_test", - size = "small", - srcs = ["uint128_test.go"], - embed = [":uint128"], -) diff --git a/pkg/util/ulid/BUILD.bazel b/pkg/util/ulid/BUILD.bazel deleted file mode 100644 index 37c91644e26..00000000000 --- a/pkg/util/ulid/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "ulid", - srcs = ["ulid.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/ulid", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "ulid_test", - srcs = ["ulid_test.go"], - deps = [ - ":ulid", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/util/unaccent/BUILD.bazel b/pkg/util/unaccent/BUILD.bazel deleted file mode 100644 index 659bbcc508c..00000000000 --- a/pkg/util/unaccent/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "unaccent", - srcs = ["unaccent.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/unaccent", - visibility = ["//visibility:public"], -) diff --git a/pkg/util/unique/BUILD.bazel b/pkg/util/unique/BUILD.bazel deleted file mode 100644 index 98322e3b74a..00000000000 --- a/pkg/util/unique/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "unique", - srcs = ["unique.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/unique", - visibility = ["//visibility:public"], -) - -go_test( - name = "unique_test", - size = "small", - srcs = ["unique_test.go"], - embed = [":unique"], -) diff --git a/pkg/util/uuid/BUILD.bazel b/pkg/util/uuid/BUILD.bazel deleted file mode 100644 index 29c1a016cd2..00000000000 --- a/pkg/util/uuid/BUILD.bazel +++ /dev/null @@ -1,39 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "uuid", - srcs = [ - "codec.go", - "generator.go", - "sql.go", - "uuid.go", - "uuid_wrapper.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/util/uuid", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uint128", - "@com_github_cockroachdb_errors//:errors", - ], -) - -go_test( - name = "uuid_test", - size = "small", - srcs = [ - "benchmark_fast_test.go", - "codec_test.go", - "generator_test.go", - "sql_test.go", - "uuid_test.go", - ], - data = glob(["testdata/**"]), - embed = [":uuid"], - deps = [ - "//pkg/testutils/skip", - "//pkg/util/timeutil", - "@com_github_cockroachdb_errors//:errors", - ], -) diff --git a/pkg/util/version/BUILD.bazel b/pkg/util/version/BUILD.bazel deleted file mode 100644 index 27dfa2885ba..00000000000 --- a/pkg/util/version/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "version", - srcs = ["version.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/util/version", - visibility = ["//visibility:public"], - deps = ["@com_github_cockroachdb_errors//:errors"], -) - -go_test( - name = "version_test", - size = "small", - srcs = ["version_test.go"], - embed = [":version"], -) diff --git a/pkg/workload/BUILD.bazel b/pkg/workload/BUILD.bazel deleted file mode 100644 index 4153cc87411..00000000000 --- a/pkg/workload/BUILD.bazel +++ /dev/null @@ -1,68 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "workload", - srcs = [ - "connection.go", - "csv.go", - "driver.go", - "pgx_helpers.go", - "round_robin.go", - "sql_runner.go", - "stats.go", - "workload.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/col/typeconv", - "//pkg/sql/types", - "//pkg/util/bufalloc", - "//pkg/util/encoding/csv", - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_jackc_pgconn//:pgconn", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_jackc_pgx_v4//pgxpool", - "@com_github_lib_pq//:pq", - "@com_github_spf13_pflag//:pflag", - "@org_golang_x_sync//errgroup", - ], -) - -go_test( - name = "workload_test", - size = "small", - srcs = [ - "bench_test.go", - "csv_test.go", - "main_test.go", - "pgx_helpers_test.go", - "stats_test.go", - "workload_test.go", - ], - embed = [":workload"], - deps = [ - "//pkg/col/coldata", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/sql/types", - "//pkg/testutils", - "//pkg/testutils/serverutils", - "//pkg/testutils/skip", - "//pkg/testutils/testcluster", - "//pkg/util/bufalloc", - "//pkg/util/httputil", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "//pkg/workload/bank", - "//pkg/workload/tpcc", - "//pkg/workload/tpch", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/workload/bank/BUILD.bazel b/pkg/workload/bank/BUILD.bazel deleted file mode 100644 index 9a0cd432139..00000000000 --- a/pkg/workload/bank/BUILD.bazel +++ /dev/null @@ -1,41 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "bank", - srcs = ["bank.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/bank", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/sql/types", - "//pkg/util/bufalloc", - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - "@org_golang_x_exp//rand", - ], -) - -go_test( - name = "bank_test", - size = "small", - srcs = [ - "bank_test.go", - "main_test.go", - ], - embed = [":bank"], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "//pkg/workload/workloadsql", - ], -) diff --git a/pkg/workload/bulkingest/BUILD.bazel b/pkg/workload/bulkingest/BUILD.bazel deleted file mode 100644 index 52e29942547..00000000000 --- a/pkg/workload/bulkingest/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "bulkingest", - srcs = ["bulkingest.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/bulkingest", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/sql/types", - "//pkg/util/bufalloc", - "//pkg/util/randutil", - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/workload/cli/BUILD.bazel b/pkg/workload/cli/BUILD.bazel deleted file mode 100644 index da2afb7218f..00000000000 --- a/pkg/workload/cli/BUILD.bazel +++ /dev/null @@ -1,87 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "cli", - srcs = [ - "bash_complete.go", - "check.go", - "cli.go", - "csv_server.go", - "format.go", - "run.go", - "run_unix.go", - "run_windows.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/cli", - visibility = ["//visibility:public"], - deps = [ - "//pkg/build", - "//pkg/cli/exit", - "//pkg/util/envutil", - "//pkg/util/log", - "//pkg/util/log/logconfig", - "//pkg/util/retry", - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "//pkg/workload/workloadsql", - "@com_github_cockroachdb_errors//:errors", - "@com_github_prometheus_client_golang//prometheus/promhttp", - "@com_github_spf13_cobra//:cobra", - "@com_github_spf13_pflag//:pflag", - "@org_golang_x_time//rate", - ] + select({ - "@io_bazel_rules_go//go/platform:aix": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:android": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:illumos": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:js": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:plan9": [ - "@org_golang_x_sys//unix", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "@org_golang_x_sys//unix", - ], - "//conditions:default": [], - }), -) - -go_test( - name = "cli_test", - size = "small", - srcs = ["format_test.go"], - embed = [":cli"], - deps = [ - "//pkg/util/leaktest", - "//pkg/workload/histogram", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/workload/connectionlatency/BUILD.bazel b/pkg/workload/connectionlatency/BUILD.bazel deleted file mode 100644 index fcf08fe134e..00000000000 --- a/pkg/workload/connectionlatency/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "connectionlatency", - srcs = ["connectionlatency.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/connectionlatency", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/log", - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/workload/debug/BUILD.bazel b/pkg/workload/debug/BUILD.bazel deleted file mode 100644 index c75ea1a8114..00000000000 --- a/pkg/workload/debug/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "debug", - srcs = [ - "debug.go", - "tpcc_results.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/debug", - visibility = ["//visibility:public"], - deps = [ - "//pkg/workload/cli", - "//pkg/workload/histogram", - "//pkg/workload/tpcc", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_cobra//:cobra", - ], -) diff --git a/pkg/workload/examples/BUILD.bazel b/pkg/workload/examples/BUILD.bazel deleted file mode 100644 index 05a568ff7bf..00000000000 --- a/pkg/workload/examples/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "examples", - srcs = [ - "intro.go", - "startrek.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/examples", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/types", - "//pkg/workload", - ], -) diff --git a/pkg/workload/faker/BUILD.bazel b/pkg/workload/faker/BUILD.bazel deleted file mode 100644 index 750d0390f88..00000000000 --- a/pkg/workload/faker/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "faker", - srcs = [ - "address.go", - "dict.go", - "faker.go", - "lorem.go", - "name.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/faker", - visibility = ["//visibility:public"], - deps = ["@org_golang_x_exp//rand"], -) - -go_test( - name = "faker_test", - size = "small", - srcs = ["faker_test.go"], - embed = [":faker"], - deps = [ - "@com_github_stretchr_testify//assert", - "@org_golang_x_exp//rand", - ], -) diff --git a/pkg/workload/geospatial/BUILD.bazel b/pkg/workload/geospatial/BUILD.bazel deleted file mode 100644 index 6b9d3992496..00000000000 --- a/pkg/workload/geospatial/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "geospatial", - srcs = ["geospatial.go"], - embedsrcs = [ - "data/nyc_census_blocks.yaml.gz", - "data/nyc_homicides.yaml.gz", - "data/nyc_neighborhoods.yaml.gz", - "data/nyc_streets.yaml.gz", - "data/nyc_subway_stations.yaml.gz", - "data/subway_lines.yaml.gz", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/geospatial", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/types", - "//pkg/workload", - "@in_gopkg_yaml_v2//:yaml_v2", - ], -) diff --git a/pkg/workload/histogram/BUILD.bazel b/pkg/workload/histogram/BUILD.bazel deleted file mode 100644 index 6559ed378b9..00000000000 --- a/pkg/workload/histogram/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "histogram", - srcs = ["histogram.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/histogram", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "@com_github_codahale_hdrhistogram//:hdrhistogram", - "@com_github_prometheus_client_golang//prometheus", - "@com_github_prometheus_client_golang//prometheus/promauto", - ], -) - -go_test( - name = "histogram_test", - srcs = ["histogram_test.go"], - embed = [":histogram"], - deps = [ - "//pkg/util/ctxgroup", - "@com_github_prometheus_client_golang//prometheus", - "@com_github_prometheus_client_model//go", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/workload/indexes/BUILD.bazel b/pkg/workload/indexes/BUILD.bazel deleted file mode 100644 index c1ec1841235..00000000000 --- a/pkg/workload/indexes/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "indexes", - srcs = ["indexes.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/indexes", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/timeutil", - "//pkg/util/uint128", - "//pkg/util/uuid", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/workload/jsonload/BUILD.bazel b/pkg/workload/jsonload/BUILD.bazel deleted file mode 100644 index 43697d91fa1..00000000000 --- a/pkg/workload/jsonload/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "jsonload", - srcs = ["json.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/jsonload", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/json", - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/workload/kv/BUILD.bazel b/pkg/workload/kv/BUILD.bazel deleted file mode 100644 index e719a7aef6d..00000000000 --- a/pkg/workload/kv/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "kv", - srcs = [ - "kv.go", - "zipfian.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/kv", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/pgwire/pgcode", - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_jackc_pgconn//:pgconn", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/workload/ledger/BUILD.bazel b/pkg/workload/ledger/BUILD.bazel deleted file mode 100644 index 43caee6d7ae..00000000000 --- a/pkg/workload/ledger/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ledger", - srcs = [ - "balance.go", - "ddls.go", - "deposit.go", - "generate.go", - "ledger.go", - "ops_util.go", - "random.go", - "reversal.go", - "withdrawal.go", - "worker.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/ledger", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/types", - "//pkg/util/timeutil", - "//pkg/util/uint128", - "//pkg/util/uuid", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - "@org_golang_x_sync//syncmap", - ], -) diff --git a/pkg/workload/movr/BUILD.bazel b/pkg/workload/movr/BUILD.bazel deleted file mode 100644 index 39958a3b2c6..00000000000 --- a/pkg/workload/movr/BUILD.bazel +++ /dev/null @@ -1,30 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "movr", - srcs = [ - "movr.go", - "rand.go", - "workload.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/movr", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/timeutil", - "//pkg/util/uuid", - "//pkg/workload", - "//pkg/workload/faker", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - "@org_golang_x_exp//rand", - ], -) - -go_test( - name = "movr_test", - size = "small", - srcs = ["movr_test.go"], - embed = [":movr"], - deps = ["@com_github_stretchr_testify//require"], -) diff --git a/pkg/workload/querybench/BUILD.bazel b/pkg/workload/querybench/BUILD.bazel deleted file mode 100644 index da4572f9f33..00000000000 --- a/pkg/workload/querybench/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "querybench", - srcs = ["query_bench.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/querybench", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/workload/querylog/BUILD.bazel b/pkg/workload/querylog/BUILD.bazel deleted file mode 100644 index 625c0880944..00000000000 --- a/pkg/workload/querylog/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "querylog", - srcs = ["querylog.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/querylog", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/log", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "//pkg/workload", - "//pkg/workload/histogram", - "//pkg/workload/rand", - "@com_github_cockroachdb_errors//:errors", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_lib_pq//oid", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/workload/queue/BUILD.bazel b/pkg/workload/queue/BUILD.bazel deleted file mode 100644 index 2ddeb7810c1..00000000000 --- a/pkg/workload/queue/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "queue", - srcs = ["queue.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/queue", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/workload/rand/BUILD.bazel b/pkg/workload/rand/BUILD.bazel deleted file mode 100644 index 4ad1506679d..00000000000 --- a/pkg/workload/rand/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "rand", - srcs = ["rand.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/rand", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_lib_pq//:pq", - "@com_github_lib_pq//oid", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/workload/schemachange/BUILD.bazel b/pkg/workload/schemachange/BUILD.bazel deleted file mode 100644 index e6e6b5843eb..00000000000 --- a/pkg/workload/schemachange/BUILD.bazel +++ /dev/null @@ -1,47 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("//build:STRINGER.bzl", "stringer") - -go_library( - name = "schemachange", - srcs = [ - "deck.go", - "error_code_set.go", - "error_screening.go", - "operation_generator.go", - "schemachange.go", - "type_resolver.go", - ":gen-optype-stringer", # keep - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/schemachange", - visibility = ["//visibility:public"], - deps = [ - "//pkg/clusterversion", - "//pkg/roachpb", - "//pkg/security", - "//pkg/sql/catalog/catpb", - "//pkg/sql/catalog/colinfo", - "//pkg/sql/parser", - "//pkg/sql/pgwire/pgcode", - "//pkg/sql/pgwire/pgerror", - "//pkg/sql/randgen", - "//pkg/sql/schemachange", - "//pkg/sql/sem/tree", - "//pkg/sql/types", - "//pkg/util/encoding", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_jackc_pgconn//:pgconn", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_lib_pq//oid", - "@com_github_spf13_pflag//:pflag", - ], -) - -stringer( - name = "gen-optype-stringer", - src = "operation_generator.go", - typ = "opType", -) diff --git a/pkg/workload/sqlsmith/BUILD.bazel b/pkg/workload/sqlsmith/BUILD.bazel deleted file mode 100644 index 30e19220c61..00000000000 --- a/pkg/workload/sqlsmith/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sqlsmith", - srcs = ["sqlsmith.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/sqlsmith", - visibility = ["//visibility:public"], - deps = [ - "//pkg/internal/sqlsmith", - "//pkg/sql/randgen", - "//pkg/sql/sem/tree", - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/workload/tpcc/BUILD.bazel b/pkg/workload/tpcc/BUILD.bazel deleted file mode 100644 index 6f4701077e1..00000000000 --- a/pkg/workload/tpcc/BUILD.bazel +++ /dev/null @@ -1,62 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "tpcc", - srcs = [ - "audit.go", - "checks.go", - "ddls.go", - "delivery.go", - "generate.go", - "new_order.go", - "order_status.go", - "partition.go", - "payment.go", - "random.go", - "result.go", - "stock_level.go", - "tpcc.go", - "worker.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/tpcc", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/sql/types", - "//pkg/util/bufalloc", - "//pkg/util/log", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/util/uuid", - "//pkg/workload", - "//pkg/workload/histogram", - "//pkg/workload/workloadimpl", - "@com_github_cockroachdb_cockroach_go_v2//crdb/crdbpgx", - "@com_github_cockroachdb_errors//:errors", - "@com_github_codahale_hdrhistogram//:hdrhistogram", - "@com_github_jackc_pgtype//:pgtype", - "@com_github_jackc_pgx_v4//:pgx", - "@com_github_lib_pq//:pq", - "@com_github_prometheus_client_golang//prometheus", - "@com_github_prometheus_client_golang//prometheus/promauto", - "@com_github_spf13_pflag//:pflag", - "@org_golang_x_exp//rand", - "@org_golang_x_sync//errgroup", - ], -) - -go_test( - name = "tpcc_test", - size = "small", - srcs = [ - "partition_test.go", - "result_test.go", - "stats_test.go", - ], - embed = [":tpcc"], - deps = [ - "//pkg/testutils", - "//pkg/workload", - "@com_github_stretchr_testify//require", - ], -) diff --git a/pkg/workload/tpccchecks/BUILD.bazel b/pkg/workload/tpccchecks/BUILD.bazel deleted file mode 100644 index de6c5fcf032..00000000000 --- a/pkg/workload/tpccchecks/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "tpccchecks", - srcs = ["checks_generator.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/tpccchecks", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "//pkg/workload/tpcc", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/workload/tpcds/BUILD.bazel b/pkg/workload/tpcds/BUILD.bazel deleted file mode 100644 index f23f7930189..00000000000 --- a/pkg/workload/tpcds/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "tpcds", - srcs = [ - "queries.go", - "tpcds.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/tpcds", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/log", - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/workload/tpch/BUILD.bazel b/pkg/workload/tpch/BUILD.bazel deleted file mode 100644 index 7ec7215b091..00000000000 --- a/pkg/workload/tpch/BUILD.bazel +++ /dev/null @@ -1,41 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "tpch", - srcs = [ - "expected_rows.go", - "generate.go", - "queries.go", - "random.go", - "tpch.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/tpch", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/sql/types", - "//pkg/util/bufalloc", - "//pkg/util/encoding", - "//pkg/util/log", - "//pkg/util/timeutil", - "//pkg/util/timeutil/pgdate", - "//pkg/workload", - "//pkg/workload/faker", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - "@org_golang_x_exp//rand", - ], -) - -go_test( - name = "tpch_test", - srcs = ["random_test.go"], - embed = [":tpch"], - deps = [ - "//pkg/util/bufalloc", - "//pkg/util/timeutil", - "@com_github_stretchr_testify//assert", - "@org_golang_x_exp//rand", - ], -) diff --git a/pkg/workload/ttllogger/BUILD.bazel b/pkg/workload/ttllogger/BUILD.bazel deleted file mode 100644 index 226616bc3e6..00000000000 --- a/pkg/workload/ttllogger/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ttllogger", - srcs = ["ttllogger.go"], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/ttllogger", - visibility = ["//visibility:public"], - deps = [ - "//pkg/util/timeutil", - "//pkg/util/uuid", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_cockroachdb_errors//:errors", - "@com_github_prometheus_client_golang//prometheus", - "@com_github_prometheus_client_golang//prometheus/promauto", - "@com_github_spf13_pflag//:pflag", - ], -) diff --git a/pkg/workload/workloadimpl/BUILD.bazel b/pkg/workload/workloadimpl/BUILD.bazel deleted file mode 100644 index 36d7ef29afe..00000000000 --- a/pkg/workload/workloadimpl/BUILD.bazel +++ /dev/null @@ -1,28 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "workloadimpl", - srcs = [ - "doc.go", - "precomputedrand.go", - "random.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/workloadimpl", - visibility = ["//visibility:public"], - deps = ["@org_golang_x_exp//rand"], -) - -go_test( - name = "workloadimpl_test", - size = "small", - srcs = [ - "precomputedrand_test.go", - "random_test.go", - ], - deps = [ - ":workloadimpl", - "//pkg/util/timeutil", - "@com_github_stretchr_testify//require", - "@org_golang_x_exp//rand", - ], -) diff --git a/pkg/workload/workloadsql/BUILD.bazel b/pkg/workload/workloadsql/BUILD.bazel deleted file mode 100644 index ad854e05a2f..00000000000 --- a/pkg/workload/workloadsql/BUILD.bazel +++ /dev/null @@ -1,48 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "workloadsql", - srcs = [ - "dataload.go", - "workloadsql.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/workloadsql", - visibility = ["//visibility:public"], - deps = [ - "//pkg/sql/lexbase", - "//pkg/util/ctxgroup", - "//pkg/util/errorutil", - "//pkg/util/log", - "//pkg/util/timeutil", - "//pkg/util/version", - "//pkg/workload", - "@com_github_cockroachdb_errors//:errors", - "@org_golang_x_sync//errgroup", - "@org_golang_x_time//rate", - ], -) - -go_test( - name = "workloadsql_test", - size = "small", - srcs = [ - "main_test.go", - "sliceslice_test.go", - "workloadsql_test.go", - ], - embed = [":workloadsql"], - deps = [ - "//pkg/base", - "//pkg/security", - "//pkg/security/securitytest", - "//pkg/server", - "//pkg/testutils/serverutils", - "//pkg/testutils/sqlutils", - "//pkg/testutils/testcluster", - "//pkg/util/leaktest", - "//pkg/util/randutil", - "//pkg/util/uuid", - "//pkg/workload", - "//pkg/workload/bank", - ], -) diff --git a/pkg/workload/ycsb/BUILD.bazel b/pkg/workload/ycsb/BUILD.bazel deleted file mode 100644 index 60bf96d42eb..00000000000 --- a/pkg/workload/ycsb/BUILD.bazel +++ /dev/null @@ -1,44 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "ycsb", - srcs = [ - "acknowledged_counter.go", - "skewed_latest_generator.go", - "uniform_generator.go", - "ycsb.go", - "zipfgenerator.go", - ], - importpath = "github.com/cockroachdb/cockroach/pkg/workload/ycsb", - visibility = ["//visibility:public"], - deps = [ - "//pkg/col/coldata", - "//pkg/sql/types", - "//pkg/util/bufalloc", - "//pkg/util/syncutil", - "//pkg/util/timeutil", - "//pkg/workload", - "//pkg/workload/histogram", - "@com_github_cockroachdb_cockroach_go_v2//crdb", - "@com_github_cockroachdb_errors//:errors", - "@com_github_spf13_pflag//:pflag", - "@org_golang_x_exp//rand", - ], -) - -go_test( - name = "ycsb_test", - size = "medium", - srcs = [ - "main_test.go", - "zipfgenerator_test.go", - ], - embed = [":ycsb"], - shard_count = 16, - deps = [ - "//pkg/testutils/skip", - "//pkg/util/leaktest", - "//pkg/util/timeutil", - "@org_golang_x_exp//rand", - ], -)