BUILD 1004 B

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 = [
  10. "passport-user-job.toml",
  11. "passport-user-job-uat.toml",
  12. ],
  13. importpath = "go-common/app/job/main/passport-user/cmd",
  14. tags = ["automanaged"],
  15. visibility = ["//visibility:private"],
  16. deps = [
  17. "//app/job/main/passport-user/conf:go_default_library",
  18. "//app/job/main/passport-user/http:go_default_library",
  19. "//library/log: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. )