BUILD.bazel 983 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "dce.go",
  6. "doc.go",
  7. "hash.go",
  8. "marshal.go",
  9. "node.go",
  10. "node_net.go",
  11. "sql.go",
  12. "time.go",
  13. "util.go",
  14. "uuid.go",
  15. "version1.go",
  16. "version4.go",
  17. ],
  18. importmap = "go-common/vendor/github.com/google/uuid",
  19. importpath = "github.com/google/uuid",
  20. visibility = ["//visibility:public"],
  21. )
  22. go_test(
  23. name = "go_default_test",
  24. srcs = [
  25. "json_test.go",
  26. "seq_test.go",
  27. "sql_test.go",
  28. "uuid_test.go",
  29. ],
  30. embed = [":go_default_library"],
  31. )
  32. filegroup(
  33. name = "package-srcs",
  34. srcs = glob(["**"]),
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:private"],
  37. )
  38. filegroup(
  39. name = "all-srcs",
  40. srcs = [":package-srcs"],
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. )