Files
tidb/util/disk/BUILD.bazel
2022-07-22 15:35:09 +08:00

39 lines
898 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "disk",
srcs = [
"tempDir.go",
"tracker.go",
],
importpath = "github.com/pingcap/tidb/util/disk",
visibility = ["//visibility:public"],
deps = [
"//config",
"//parser/terror",
"//util/memory",
"@com_github_danjacques_gofslock//fslock",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_log//:log",
"@org_golang_x_sync//singleflight",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "disk_test",
timeout = "short",
srcs = [
"main_test.go",
"tempDir_test.go",
],
embed = [":disk"],
flaky = True,
deps = [
"//config",
"//testkit/testsetup",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
],
)