forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
45 lines (43 loc) · 1.13 KB
/
BUILD.bazel
File metadata and controls
45 lines (43 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "label",
srcs = [
"attributes.go",
"errors.go",
"rule.go",
],
importpath = "github.com/pingcap/tidb/pkg/ddl/label",
visibility = ["//visibility:public"],
deps = [
"//pkg/config/kerneltype",
"//pkg/parser/ast",
"//pkg/tablecodec",
"//pkg/util/codec",
"@com_github_tikv_client_go_v2//tikv",
"@com_github_tikv_pd_client//http",
"@in_gopkg_yaml_v2//:yaml_v2",
],
)
go_test(
name = "label_test",
timeout = "short",
srcs = [
"attributes_test.go",
"main_test.go",
"rule_test.go",
],
embed = [":label"],
flaky = True,
shard_count = 9,
deps = [
"//pkg/config/kerneltype",
"//pkg/parser/ast",
"//pkg/tablecodec",
"//pkg/testkit/testsetup",
"@com_github_pingcap_kvproto//pkg/keyspacepb",
"@com_github_stretchr_testify//require",
"@com_github_tikv_client_go_v2//tikv",
"@com_github_tikv_pd_client//http",
"@org_uber_go_goleak//:goleak",
],
)