BUILD.bazel 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "buddyinfo.go",
  6. "doc.go",
  7. "fs.go",
  8. "ipvs.go",
  9. "mdstat.go",
  10. "mountstats.go",
  11. "proc.go",
  12. "proc_io.go",
  13. "proc_limits.go",
  14. "proc_stat.go",
  15. "stat.go",
  16. "xfrm.go",
  17. ],
  18. importmap = "go-common/vendor/github.com/prometheus/procfs",
  19. importpath = "github.com/prometheus/procfs",
  20. visibility = ["//visibility:public"],
  21. deps = ["//vendor/github.com/prometheus/procfs/xfs:go_default_library"],
  22. )
  23. filegroup(
  24. name = "package-srcs",
  25. srcs = glob(["**"]),
  26. tags = ["automanaged"],
  27. visibility = ["//visibility:private"],
  28. )
  29. filegroup(
  30. name = "all-srcs",
  31. srcs = [
  32. ":package-srcs",
  33. "//vendor/github.com/prometheus/procfs/bcache:all-srcs",
  34. "//vendor/github.com/prometheus/procfs/sysfs:all-srcs",
  35. "//vendor/github.com/prometheus/procfs/xfs:all-srcs",
  36. ],
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. )