BUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "compare.go",
  10. "options.go",
  11. "path.go",
  12. "reporter.go",
  13. "unsafe_reflect.go",
  14. ],
  15. importpath = "github.com/google/go-cmp/cmp",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//vendor/github.com/google/go-cmp/cmp/internal/diff:go_default_library",
  20. "//vendor/github.com/google/go-cmp/cmp/internal/function:go_default_library",
  21. "//vendor/github.com/google/go-cmp/cmp/internal/value:go_default_library",
  22. ],
  23. )
  24. filegroup(
  25. name = "package-srcs",
  26. srcs = glob(["**"]),
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:private"],
  29. )
  30. filegroup(
  31. name = "all-srcs",
  32. srcs = [
  33. ":package-srcs",
  34. "//vendor/github.com/google/go-cmp/cmp/internal/diff:all-srcs",
  35. "//vendor/github.com/google/go-cmp/cmp/internal/function:all-srcs",
  36. "//vendor/github.com/google/go-cmp/cmp/internal/value:all-srcs",
  37. ],
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. )