BUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 = [
  10. "bits.go",
  11. "utils.go",
  12. ],
  13. importpath = "go-common/app/admin/main/up/util",
  14. tags = ["automanaged"],
  15. visibility = ["//visibility:public"],
  16. deps = [
  17. "//app/admin/main/up/util/timerqueue:go_default_library",
  18. "//library/log:go_default_library",
  19. "//library/net/http/blademaster:go_default_library",
  20. "//library/time:go_default_library",
  21. ],
  22. )
  23. filegroup(
  24. name = "package-srcs",
  25. srcs = glob(["**"]),
  26. tags = ["automanaged"],
  27. visibility = ["//visibility:private"],
  28. )
  29. filegroup(
  30. name = "all-srcs",
  31. srcs = [
  32. ":package-srcs",
  33. "//app/admin/main/up/util/databusutil:all-srcs",
  34. "//app/admin/main/up/util/hbaseutil:all-srcs",
  35. "//app/admin/main/up/util/mathutil:all-srcs",
  36. "//app/admin/main/up/util/now:all-srcs",
  37. "//app/admin/main/up/util/timerqueue:all-srcs",
  38. ],
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:public"],
  41. )
  42. go_test(
  43. name = "go_default_test",
  44. srcs = ["utils_test.go"],
  45. embed = [":go_default_library"],
  46. rundir = ".",
  47. tags = ["automanaged"],
  48. deps = ["//vendor/github.com/smartystreets/goconvey/convey:go_default_library"],
  49. )