load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "resourcegrouptag", srcs = ["resource_group_tag.go"], importpath = "github.com/pingcap/tidb/util/resourcegrouptag", visibility = ["//visibility:public"], deps = [ "//parser", "//tablecodec/rowindexcodec", "@com_github_pingcap_errors//:errors", "@com_github_pingcap_kvproto//pkg/coprocessor", "@com_github_pingcap_kvproto//pkg/kvrpcpb", "@com_github_pingcap_tipb//go-tipb", "@com_github_tikv_client_go_v2//tikvrpc", ], ) go_test( name = "resourcegrouptag_test", timeout = "short", srcs = [ "main_test.go", "resource_group_tag_test.go", ], embed = [":resourcegrouptag"], flaky = True, deps = [ "//parser", "//testkit/testsetup", "//util/hack", "@com_github_pingcap_kvproto//pkg/coprocessor", "@com_github_pingcap_kvproto//pkg/kvrpcpb", "@com_github_pingcap_tipb//go-tipb", "@com_github_stretchr_testify//require", "@com_github_tikv_client_go_v2//tikvrpc", "@org_uber_go_goleak//:goleak", ], )