Skip to content

Commit 8aff07c

Browse files
redsun82Copilot
andcommitted
Fail explicitly on unsupported Linux architectures for ripunzip
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c6404a7a-35d7-4294-b3b6-9231ca15ef25
1 parent 9f272f2 commit 8aff07c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

misc/ripunzip/ripunzip.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ def _ripunzip_archive_impl(repository_ctx):
88
deb_arch = "arm64"
99
sha256 = repository_ctx.attr.sha256_linux_arm64
1010
canonical_id = "ripunzip-linux-arm64"
11-
else:
11+
elif arch in ("x86_64", "amd64"):
1212
deb_arch = "amd64"
1313
sha256 = repository_ctx.attr.sha256_linux_x64
1414
canonical_id = "ripunzip-linux-x64"
15+
else:
16+
fail("Unsupported Linux architecture: %s" % arch)
1517

1618
# ripunzip only provides a deb package for Linux: we fish the binary out of it
1719
# a deb archive contains a data.tar.xz one which contains the files to be installed under usr/bin

0 commit comments

Comments
 (0)