BUILD 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 = ["dapper-query-example.toml"],
  10. importpath = "go-common/app/service/main/dapper-query/cmd",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:private"],
  13. deps = [
  14. "//app/service/main/dapper-query/api/v1:go_default_library",
  15. "//app/service/main/dapper-query/conf:go_default_library",
  16. "//app/service/main/dapper-query/service:go_default_library",
  17. "//app/service/main/dapper-query/util:go_default_library",
  18. "//library/log:go_default_library",
  19. "//library/net/http/blademaster:go_default_library",
  20. ],
  21. )
  22. go_binary(
  23. name = "cmd",
  24. embed = [":go_default_library"],
  25. visibility = ["//visibility:public"],
  26. )
  27. filegroup(
  28. name = "package-srcs",
  29. srcs = glob(["**"]),
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:private"],
  32. )
  33. filegroup(
  34. name = "all-srcs",
  35. srcs = [":package-srcs"],
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. )