Files
tidb/parser/auth/BUILD.bazel
2022-08-02 11:10:05 +08:00

30 lines
666 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "auth",
srcs = [
"auth.go",
"caching_sha2.go",
"mysql_native_password.go",
],
importpath = "github.com/pingcap/tidb/parser/auth",
visibility = ["//visibility:public"],
deps = [
"//parser/format",
"//parser/terror",
"@com_github_pingcap_errors//:errors",
],
)
go_test(
name = "auth_test",
timeout = "short",
srcs = [
"caching_sha2_test.go",
"mysql_native_password_test.go",
],
embed = [":auth"],
flaky = True,
deps = ["@com_github_stretchr_testify//require"],
)