BUILD 1014 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 = ["dao.go"],
  10. importpath = "go-common/app/admin/main/feed/dao/egg",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:public"],
  13. deps = [
  14. "//app/admin/main/feed/conf:go_default_library",
  15. "//library/database/orm:go_default_library",
  16. "//vendor/github.com/jinzhu/gorm: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 = ["dao_test.go"],
  34. embed = [":go_default_library"],
  35. rundir = ".",
  36. tags = ["automanaged"],
  37. deps = ["//app/admin/main/feed/conf:go_default_library"],
  38. )