BUILD.bazel 646 B

1234567891011121314151617181920212223242526272829
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "regex.go",
  6. "schemes.go",
  7. "tlds.go",
  8. "tlds_pseudo.go",
  9. "xurls.go",
  10. ],
  11. importmap = "go-common/vendor/github.com/mvdan/xurls",
  12. importpath = "github.com/mvdan/xurls",
  13. visibility = ["//visibility:public"],
  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. )