BUILD.bazel 855 B

123456789101112131415161718192021222324252627282930313233343536
  1. package(default_visibility = ["//visibility:private"])
  2. load("@bazel_gazelle//:def.bzl", "gazelle")
  3. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  4. gazelle(
  5. name = "gazelle",
  6. command = "fix",
  7. prefix = "gopkg.in/resty.v1",
  8. )
  9. go_library(
  10. name = "go_default_library",
  11. srcs = glob(
  12. ["*.go"],
  13. exclude = ["*_test.go"],
  14. ),
  15. importpath = "gopkg.in/resty.v1",
  16. visibility = ["//visibility:public"],
  17. deps = ["@org_golang_x_net//publicsuffix:go_default_library"],
  18. )
  19. go_test(
  20. name = "go_default_test",
  21. srcs =
  22. glob(
  23. ["*_test.go"],
  24. exclude = ["example_test.go"],
  25. ),
  26. data = glob([".testdata/*"]),
  27. embed = [":go_default_library"],
  28. importpath = "gopkg.in/resty.v1",
  29. deps = [
  30. "@org_golang_x_net//proxy:go_default_library",
  31. ],
  32. )