Skip to content

Commit

Permalink
fix(oci_image): restore tars=foo.tar.gz (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle authored Aug 17, 2023
1 parent 59a0546 commit 79f1d8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/deb/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ _ARCH = [
"arm64",
]

# crane doesn't do the right thing with compressed tarball inputs like .tar.gz or .tar.xz
# Workaround: crane doesn't do the right thing with .tar.xz compression
# so we simply decompress explicitly first.
[
genrule(
name = "decompress_" + architecture,
Expand Down
2 changes: 1 addition & 1 deletion oci/private/image.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ oci_image(
"""
_attrs = {
"base": attr.label(allow_single_file = True, doc = "Label to an oci_image target to use as the base."),
"tars": attr.label_list(allow_files = [".tar"], doc = """\
"tars": attr.label_list(allow_files = [".tar", ".tar.gz"], doc = """\
List of tar files to add to the image as layers.
Do not sort this list; the order is preserved in the resulting image.
Less-frequently changed files belong in lower layers to reduce the network bandwidth required to pull and push.
Expand Down

0 comments on commit 79f1d8f

Please sign in to comment.