BUILD 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = ["tab.go"],
  10. importpath = "go-common/app/interface/main/app-channel/dao/tab",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:public"],
  13. deps = [
  14. "//app/interface/main/app-channel/conf:go_default_library",
  15. "//app/interface/main/app-channel/model/tab:go_default_library",
  16. "//library/database/sql:go_default_library",
  17. ],
  18. )
  19. filegroup(
  20. name = "package-srcs",
  21. srcs = glob(["**"]),
  22. tags = ["automanaged"],
  23. visibility = ["//visibility:private"],
  24. )
  25. filegroup(
  26. name = "all-srcs",
  27. srcs = [":package-srcs"],
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:public"],
  30. )
  31. go_test(
  32. name = "go_default_test",
  33. srcs = ["tab_test.go"],
  34. embed = [":go_default_library"],
  35. tags = ["automanaged"],
  36. deps = [
  37. "//app/interface/main/app-channel/conf:go_default_library",
  38. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  39. ],
  40. )