BUILD 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. load(
  2. "@io_bazel_rules_go//proto:def.bzl",
  3. "go_proto_library",
  4. )
  5. package(default_visibility = ["//visibility:public"])
  6. load(
  7. "@io_bazel_rules_go//go:def.bzl",
  8. "go_library",
  9. )
  10. proto_library(
  11. name = "version_proto",
  12. srcs = ["version.proto"],
  13. tags = ["automanaged"],
  14. )
  15. go_proto_library(
  16. name = "version_go_proto",
  17. compilers = ["@io_bazel_rules_go//proto:go_proto"],
  18. importpath = "go-common/app/interface/main/app-resource/model/version",
  19. proto = ":version_proto",
  20. tags = ["automanaged"],
  21. )
  22. go_library(
  23. name = "go_default_library",
  24. srcs = ["version.go"],
  25. embed = [":version_go_proto"],
  26. importpath = "go-common/app/interface/main/app-resource/model/version",
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:public"],
  29. deps = [
  30. "//library/time:go_default_library",
  31. "@com_github_golang_protobuf//proto:go_default_library",
  32. ],
  33. )
  34. filegroup(
  35. name = "package-srcs",
  36. srcs = glob(["**"]),
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:private"],
  39. )
  40. filegroup(
  41. name = "all-srcs",
  42. srcs = [":package-srcs"],
  43. tags = ["automanaged"],
  44. visibility = ["//visibility:public"],
  45. )