Skip to content

Commit

Permalink
Allow users to provide the versions of apko binaries not listed in ve…
Browse files Browse the repository at this point in the history
…rsions.bzl

Signed-off-by: Mateusz Hazy <mateusz.hazy@snowflake.com>
  • Loading branch information
sfc-gh-mhazy committed Jun 13, 2024
1 parent 91c0fe9 commit 2787395
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apko/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ def apko_register_toolchains(name, apko_version = LATEST_APKO_VERSION, platform_
if map == None:
map = _build_platform_to_apko_binary_map(apko_version)
for platform, apko_spec in map.items():
if platform not in PLATFORMS.keys():
fail("Unsupported platform: {}".format(platform))
apko_repositories(
name = name + "_" + platform,
platform = platform,
Expand Down

0 comments on commit 2787395

Please sign in to comment.