BUILD 1.1 KB

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