BUILD.bazel 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "go_above_17.go",
  6. "go_above_19.go",
  7. "go_below_17.go",
  8. "go_below_19.go",
  9. "reflect2.go",
  10. "reflect2_amd64.s",
  11. "reflect2_kind.go",
  12. "relfect2_386.s",
  13. "relfect2_amd64p32.s",
  14. "relfect2_arm.s",
  15. "relfect2_arm64.s",
  16. "relfect2_mips64x.s",
  17. "relfect2_mipsx.s",
  18. "relfect2_ppc64x.s",
  19. "relfect2_s390x.s",
  20. "safe_field.go",
  21. "safe_map.go",
  22. "safe_slice.go",
  23. "safe_struct.go",
  24. "safe_type.go",
  25. "type_map.go",
  26. "unsafe_array.go",
  27. "unsafe_eface.go",
  28. "unsafe_field.go",
  29. "unsafe_iface.go",
  30. "unsafe_link.go",
  31. "unsafe_map.go",
  32. "unsafe_ptr.go",
  33. "unsafe_slice.go",
  34. "unsafe_struct.go",
  35. "unsafe_type.go",
  36. ],
  37. importmap = "go-common/vendor/github.com/modern-go/reflect2",
  38. importpath = "github.com/modern-go/reflect2",
  39. visibility = ["//visibility:public"],
  40. deps = ["//vendor/github.com/modern-go/concurrent:go_default_library"],
  41. )
  42. filegroup(
  43. name = "package-srcs",
  44. srcs = glob(["**"]),
  45. tags = ["automanaged"],
  46. visibility = ["//visibility:private"],
  47. )
  48. filegroup(
  49. name = "all-srcs",
  50. srcs = [":package-srcs"],
  51. tags = ["automanaged"],
  52. visibility = ["//visibility:public"],
  53. )