BUILD 944 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_binary",
  5. )
  6. package(default_visibility = ["//visibility:public"])
  7. filegroup(
  8. name = "package-srcs",
  9. srcs = glob(["**"]),
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:private"],
  12. )
  13. filegroup(
  14. name = "all-srcs",
  15. srcs = [":package-srcs"],
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. )
  19. go_library(
  20. name = "go_default_library",
  21. srcs = ["main.go"],
  22. data = ["msm-service-example.toml"],
  23. importpath = "go-common/app/service/main/msm/cmd",
  24. tags = ["automanaged"],
  25. deps = [
  26. "//app/service/main/msm/conf:go_default_library",
  27. "//app/service/main/msm/http:go_default_library",
  28. "//app/service/main/msm/service:go_default_library",
  29. "//library/log:go_default_library",
  30. ],
  31. )
  32. go_binary(
  33. name = "cmd",
  34. embed = [":go_default_library"],
  35. tags = ["automanaged"],
  36. )