Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bazel: update config and nogo #38549

Merged
merged 2 commits into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion br/pkg/lightning/config/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ go_test(
deps = [
":config",
"//br/pkg/lightning/common",
"//parser/mysql",
"@com_github_burntsushi_toml//:toml",
"@com_github_stretchr_testify//require",
],
Expand Down
32 changes: 16 additions & 16 deletions build/nogo_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,22 +198,22 @@
".*_generated\\.go$": "ignore generated code"
},
"only_files": {
"util/gctuner": "util/gctuner",
"br/pkg/lightning/mydump/": "br/pkg/lightning/mydump/",
"br/pkg/lightning/restore/opts": "br/pkg/lightning/restore/opts",
"executor/aggregate.go": "executor/aggregate.go",
"types/json_binary_functions.go": "types/json_binary_functions.go",
"types/json_binary_test.go": "types/json_binary_test.go",
"ddl/backfilling.go": "ddl/backfilling.go",
"ddl/column.go": "ddl/column.go",
"ddl/index.go": "ddl/index.go",
"ddl/ingest/": "ddl/ingest/",
"util/cgroup": "util/cgroup code",
"server/conn.go": "server/conn.go",
"server/conn_stmt.go": "server/conn_stmt.go",
"server/conn_test.go": "server/conn_test.go",
"planner/core/plan.go": "planner/core/plan.go",
"errno/": "only table code"
"util/gctuner": "only for util/gctuner",
"br/pkg/lightning/mydump/": "only for br/pkg/lightning/mydump/",
"br/pkg/lightning/restore/opts": "only for br/pkg/lightning/restore/opts",
"executor/aggregate.go": "only for executor/aggregate.go",
"types/json_binary_functions.go": "only for types/json_binary_functions.go",
"types/json_binary_test.go": "only for types/json_binary_test.go",
"ddl/backfilling.go": "only for ddl/backfilling.go",
"ddl/column.go": "only for ddl/column.go",
"ddl/index.go": "only for ddl/index.go",
"ddl/ingest/": "only for ddl/ingest/",
"util/cgroup": "only for util/cgroup code",
"server/conn.go": "only for server/conn.go",
"server/conn_stmt.go": "only for server/conn_stmt.go",
"server/conn_test.go": "only for server/conn_test.go",
"planner/core/plan.go": "only for planner/core/plan.go",
"errno/": "only for errno/"
}
},
"gofmt": {
Expand Down
5 changes: 5 additions & 0 deletions planner/core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,12 @@ go_test(
"//sessiontxn",
"//statistics",
"//statistics/handle",
"//store/mockstore",
"//store/mockstore/unistore",
"//table",
"//testkit",
"//testkit/ddlhelper",
"//testkit/external",
"//testkit/testdata",
"//testkit/testmain",
"//testkit/testsetup",
Expand All @@ -263,10 +266,12 @@ go_test(
"@com_github_golang_snappy//:snappy",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_kvproto//pkg/metapb",
"@com_github_pingcap_tipb//go-tipb",
"@com_github_prometheus_client_golang//prometheus",
"@com_github_prometheus_client_model//go",
"@com_github_stretchr_testify//require",
"@com_github_tikv_client_go_v2//testutils",
"@org_golang_x_exp//slices",
"@org_uber_go_goleak//:goleak",
],
Expand Down
1 change: 1 addition & 0 deletions server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ go_test(
"//sessionctx/binloginfo",
"//sessionctx/stmtctx",
"//sessionctx/variable",
"//sessiontxn",
"//statistics/handle",
"//store/helper",
"//store/mockstore",
Expand Down
1 change: 1 addition & 0 deletions statistics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ go_library(
"fmsketch.go",
"histogram.go",
"index.go",
"merge_worker.go",
"row_sampler.go",
"sample.go",
"scalar.go",
Expand Down