BUILD 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = ["feature_gate.go"],
  10. importpath = "go-common/library/exp/feature",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:public"],
  13. deps = ["//vendor/github.com/pkg/errors:go_default_library"],
  14. )
  15. filegroup(
  16. name = "package-srcs",
  17. srcs = glob(["**"]),
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:private"],
  20. )
  21. filegroup(
  22. name = "all-srcs",
  23. srcs = [":package-srcs"],
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:public"],
  26. )
  27. go_test(
  28. name = "go_default_test",
  29. srcs = ["feature_gate_test.go"],
  30. embed = [":go_default_library"],
  31. rundir = ".",
  32. tags = ["automanaged"],
  33. )
  34. go_test(
  35. name = "go_default_xtest",
  36. srcs = ["example_test.go"],
  37. tags = ["automanaged"],
  38. deps = ["//library/exp/feature:go_default_library"],
  39. )