Skip to content

Commit

Permalink
fix: structure test platform keys include .exe suffix on windows (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle authored Mar 13, 2023
1 parent 818b6c2 commit f18ce53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oci/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def _stucture_test_repo_impl(repository_ctx):
# TODO: fix this upstream asking distroless people
if platform.find("darwin") != -1:
platform = platform.replace("arm64", "amd64")
elif platform.find("windows") != -1:
platform = platform + ".exe"
url = "https://github.com/GoogleContainerTools/container-structure-test/releases/download/{version}/container-structure-test-{platform}".format(
version = repository_ctx.attr.st_version,
platform = platform,
Expand Down

0 comments on commit f18ce53

Please sign in to comment.