forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
51 lines (49 loc) · 1.37 KB
/
BUILD.bazel
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
46
47
48
49
50
51
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "config",
srcs = [
"config.go",
"config_util.go",
"const.go",
],
importpath = "github.com/pingcap/tidb/config",
visibility = ["//visibility:public"],
deps = [
"//br/pkg/streamhelper/config",
"//parser/terror",
"//util/logutil",
"//util/tiflashcompute",
"//util/tikvutil",
"//util/versioninfo",
"@com_github_burntsushi_toml//:toml",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_log//:log",
"@com_github_tikv_client_go_v2//config",
"@com_github_uber_jaeger_client_go//config",
"@org_uber_go_atomic//:atomic",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "config_test",
timeout = "short",
srcs = [
"config_test.go",
"config_util_test.go",
"main_test.go",
],
data = glob(["**"]),
embed = [":config"],
flaky = True,
shard_count = 23,
deps = [
"//testkit/testsetup",
"//util/logutil",
"@com_github_burntsushi_toml//:toml",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_log//:log",
"@com_github_stretchr_testify//require",
"@com_github_uber_jaeger_client_go//config",
"@org_uber_go_goleak//:goleak",
],
)