Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Darwin ARM64 binaries to be used in Bazel #442

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ structure_test_toolchain(
def _structure_test_repo_impl(repository_ctx):
platform = repository_ctx.attr.platform.replace("_", "-")

# There is no arm64 version of structure test binary.
# TODO: remove this after we start publishing one.
if platform.find("darwin") != -1:
platform = platform.replace("arm64", "amd64")
elif platform.find("windows") != -1:
if platform.find("windows") != -1:
platform = platform + ".exe"
url = "https://github.com/GoogleContainerTools/container-structure-test/releases/download/{version}/container-structure-test-{platform}".format(
version = _VERSION,
Expand Down
Loading