BUILD 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "ecode_test.go",
  11. "status_test.go",
  12. ],
  13. embed = [":go_default_library"],
  14. rundir = ".",
  15. tags = ["manual"],
  16. deps = [
  17. "//library/ecode/internal/types:go_default_library",
  18. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  19. "//vendor/github.com/stretchr/testify/assert:go_default_library",
  20. "@io_bazel_rules_go//proto/wkt:timestamp_go_proto",
  21. ],
  22. )
  23. go_library(
  24. name = "go_default_library",
  25. srcs = [
  26. "bbq_ecode.go",
  27. "common_ecode.go",
  28. "ecode.go",
  29. "ep_ecode.go",
  30. "live_ecode.go",
  31. "main_ecode.go",
  32. "open_ecode.go",
  33. "status.go",
  34. ],
  35. importpath = "go-common/library/ecode",
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. deps = [
  39. "//library/ecode/internal/types:go_default_library",
  40. "//vendor/github.com/pkg/errors:go_default_library",
  41. "@com_github_golang_protobuf//proto:go_default_library",
  42. "@com_github_golang_protobuf//ptypes:go_default_library_gen",
  43. ],
  44. )
  45. go_test(
  46. name = "go_default_xtest",
  47. srcs = ["example_test.go"],
  48. tags = ["automanaged"],
  49. deps = [
  50. "//library/ecode:go_default_library",
  51. "//vendor/github.com/pkg/errors:go_default_library",
  52. ],
  53. )
  54. filegroup(
  55. name = "package-srcs",
  56. srcs = glob(["**"]),
  57. tags = ["automanaged"],
  58. visibility = ["//visibility:private"],
  59. )
  60. filegroup(
  61. name = "all-srcs",
  62. srcs = [
  63. ":package-srcs",
  64. "//library/ecode/internal/types:all-srcs",
  65. "//library/ecode/pb:all-srcs",
  66. "//library/ecode/tip:all-srcs",
  67. ],
  68. tags = ["automanaged"],
  69. visibility = ["//visibility:public"],
  70. )