BUILD.bazel 724 B

1234567891011121314151617181920212223242526272829
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "version.go",
  6. "versioned.go",
  7. ],
  8. importmap = "go-common/vendor/github.com/opencontainers/image-spec/specs-go",
  9. importpath = "github.com/opencontainers/image-spec/specs-go",
  10. visibility = ["//visibility:public"],
  11. )
  12. filegroup(
  13. name = "package-srcs",
  14. srcs = glob(["**"]),
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:private"],
  17. )
  18. filegroup(
  19. name = "all-srcs",
  20. srcs = [
  21. ":package-srcs",
  22. "//vendor/github.com/opencontainers/image-spec/specs-go/v1:all-srcs",
  23. ],
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:public"],
  26. )