BUILD.bazel 967 B

1234567891011121314151617181920212223242526272829303132333435
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "auth.go",
  6. "conn.go",
  7. "req.go",
  8. "resp.go",
  9. "stmt.go",
  10. ],
  11. importmap = "go-common/vendor/github.com/siddontang/go-mysql/client",
  12. importpath = "github.com/siddontang/go-mysql/client",
  13. visibility = ["//visibility:public"],
  14. deps = [
  15. "//vendor/github.com/juju/errors:go_default_library",
  16. "//vendor/github.com/siddontang/go-mysql/mysql:go_default_library",
  17. "//vendor/github.com/siddontang/go-mysql/packet:go_default_library",
  18. "//vendor/github.com/siddontang/go/hack:go_default_library",
  19. ],
  20. )
  21. filegroup(
  22. name = "package-srcs",
  23. srcs = glob(["**"]),
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:private"],
  26. )
  27. filegroup(
  28. name = "all-srcs",
  29. srcs = [":package-srcs"],
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:public"],
  32. )