BUILD.bazel 931 B

1234567891011121314151617181920212223242526272829303132333435
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "annotations.go",
  6. "config.go",
  7. "descriptor.go",
  8. "index.go",
  9. "layout.go",
  10. "manifest.go",
  11. "mediatype.go",
  12. ],
  13. importmap = "go-common/vendor/github.com/opencontainers/image-spec/specs-go/v1",
  14. importpath = "github.com/opencontainers/image-spec/specs-go/v1",
  15. visibility = ["//visibility:public"],
  16. deps = [
  17. "//vendor/github.com/opencontainers/go-digest:go_default_library",
  18. "//vendor/github.com/opencontainers/image-spec/specs-go:go_default_library",
  19. ],
  20. )
  21. filegroup(
  22. name = "package-srcs",
  23. srcs = glob(["**"]),
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:private"],
  26. )
  27. filegroup(
  28. name = "all-srcs",
  29. srcs = [":package-srcs"],
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:public"],
  32. )