BUILD.bazel 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "alt_exit.go",
  6. "doc.go",
  7. "entry.go",
  8. "exported.go",
  9. "formatter.go",
  10. "hooks.go",
  11. "json_formatter.go",
  12. "logger.go",
  13. "logrus.go",
  14. "terminal_bsd.go",
  15. "terminal_linux.go",
  16. "terminal_notwindows.go",
  17. "terminal_solaris.go",
  18. "terminal_windows.go",
  19. "text_formatter.go",
  20. "writer.go",
  21. ],
  22. importmap = "go-common/vendor/github.com/sirupsen/logrus",
  23. importpath = "github.com/sirupsen/logrus",
  24. visibility = ["//visibility:public"],
  25. deps = select({
  26. "@io_bazel_rules_go//go/platform:solaris": [
  27. "//vendor/golang.org/x/sys/unix:go_default_library",
  28. ],
  29. "//conditions:default": [],
  30. }),
  31. )
  32. filegroup(
  33. name = "package-srcs",
  34. srcs = glob(["**"]),
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:private"],
  37. )
  38. filegroup(
  39. name = "all-srcs",
  40. srcs = [":package-srcs"],
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. )