BUILD.bazel 927 B

12345678910111213141516171819202122232425262728293031323334353637
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "error.go",
  6. "file_dsync.go",
  7. "iterator.go",
  8. "metrics.go",
  9. "mmap_unix.go",
  10. "watermark.go",
  11. "y.go",
  12. ],
  13. importmap = "go-common/vendor/github.com/dgraph-io/badger/y",
  14. importpath = "github.com/dgraph-io/badger/y",
  15. tags = ["manual"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//vendor/github.com/pkg/errors:go_default_library",
  19. "//vendor/golang.org/x/sys/unix:go_default_library",
  20. "@org_golang_x_net//trace:go_default_library",
  21. ],
  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 = [":package-srcs"],
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:public"],
  34. )