BUILD.bazel 809 B

12345678910111213141516171819202122232425262728293031323334353637
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "apic.go",
  6. "decode.go",
  7. "emitterc.go",
  8. "encode.go",
  9. "parserc.go",
  10. "readerc.go",
  11. "resolve.go",
  12. "scannerc.go",
  13. "sorter.go",
  14. "writerc.go",
  15. "yaml.go",
  16. "yamlh.go",
  17. "yamlprivateh.go",
  18. ],
  19. importmap = "go-common/vendor/gopkg.in/yaml.v2",
  20. importpath = "gopkg.in/yaml.v2",
  21. visibility = ["//visibility:public"],
  22. )
  23. filegroup(
  24. name = "package-srcs",
  25. srcs = glob(["**"]),
  26. tags = ["automanaged"],
  27. visibility = ["//visibility:private"],
  28. )
  29. filegroup(
  30. name = "all-srcs",
  31. srcs = [":package-srcs"],
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:public"],
  34. )