github.com/pingcap/tidb/parser@v0.0.0-20231013125129-93a834a6bf8d/auth/BUILD.bazel (about)

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2  
     3  go_library(
     4      name = "auth",
     5      srcs = [
     6          "auth.go",
     7          "caching_sha2.go",
     8          "mysql_native_password.go",
     9          "tidb_sm3.go",
    10      ],
    11      importpath = "github.com/pingcap/tidb/parser/auth",
    12      visibility = ["//visibility:public"],
    13      deps = [
    14          "//parser/format",
    15          "//parser/mysql",
    16          "//parser/terror",
    17          "@com_github_pingcap_errors//:errors",
    18      ],
    19  )
    20  
    21  go_test(
    22      name = "auth_test",
    23      timeout = "short",
    24      srcs = [
    25          "caching_sha2_test.go",
    26          "mysql_native_password_test.go",
    27          "tidb_sm3_test.go",
    28      ],
    29      embed = [":auth"],
    30      flaky = True,
    31      shard_count = 16,
    32      deps = [
    33          "//parser/mysql",
    34          "@com_github_stretchr_testify//require",
    35      ],
    36  )