Skip to content

Commit

Permalink
Add type checking to arch_specific_packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlchen1 committed Jul 11, 2024
1 parent c5b9533 commit 3c61e32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apt/private/resolve.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def _deb_resolve_impl(rctx):

if type(manifest.get("packages", [])) != "list":
fail("`packages` should be an array")

if type(manifest.get("arch_specific_packages", {})) != "dict":
fail("`arch_specific_packages` should be a dictionary")

sources = []

Expand Down

0 comments on commit 3c61e32

Please sign in to comment.