Skip to content

Commit

Permalink
Allow bazel_tags in bzlmod extension (fixes #686) (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsternatretool authored Aug 31, 2024
1 parent 9faf210 commit ffaa615
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oci/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pull = tag_class(attrs = {
Since tags are mutable, this is not reproducible, so a warning is printed."""),
"reproducible": attr.bool(doc = """Set to False to silence the warning about reproducibility when using `tag`.""", default = True),
"config": attr.label(doc = "Label to a .docker/config.json file"),
"bazel_tags": attr.string_list(doc = """Bazel tags to be propagated to generated rules.""")
})

toolchains = tag_class(attrs = {
Expand All @@ -38,6 +39,7 @@ def _oci_extension(module_ctx):
tag = pull.tag,
reproducible = pull.reproducible,
config = pull.config,
bazel_tags = pull.bazel_tags,
is_bzlmod = True,
)

Expand Down

0 comments on commit ffaa615

Please sign in to comment.