BUILD 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 = ["search-admin-test.toml"],
  23. importpath = "go-common/app/admin/main/search/cmd",
  24. tags = ["automanaged"],
  25. deps = [
  26. "//app/admin/main/search/conf:go_default_library",
  27. "//app/admin/main/search/http:go_default_library",
  28. "//app/admin/main/search/service:go_default_library",
  29. "//library/log:go_default_library",
  30. "//library/net/trace:go_default_library",
  31. ],
  32. )
  33. go_binary(
  34. name = "cmd",
  35. embed = [":go_default_library"],
  36. tags = ["automanaged"],
  37. )