BUILD 975 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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/job/main/upload/dao",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:public"],
  13. deps = ["//app/job/main/upload/conf:go_default_library"],
  14. )
  15. filegroup(
  16. name = "package-srcs",
  17. srcs = glob(["**"]),
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:private"],
  20. )
  21. filegroup(
  22. name = "all-srcs",
  23. srcs = [":package-srcs"],
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:public"],
  26. )
  27. go_test(
  28. name = "go_default_test",
  29. srcs = ["dao_test.go"],
  30. embed = [":go_default_library"],
  31. rundir = ".",
  32. tags = ["automanaged"],
  33. deps = [
  34. "//app/job/main/upload/conf:go_default_library",
  35. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  36. ],
  37. )