BUILD 988 B

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