Skip to content

Commit

Permalink
repositories: pinning platforms to latest version
Browse files Browse the repository at this point in the history
In Bazel versions from 5.1.0 and older, there was a change [1] which
prevents copybara from compiling on Apple Silicon by default.

The solution recommended in [2] was to pin `platforms` repository to a
newer version where the constraints value for CPP toolchain could be
correctly resolved.

Without this change, we would need to use Bazel 5.0.0 or older to
compile copybara successfully on Apple Silicon.

[1]: bazelbuild/bazel#14844
[2]: bazelbuild/bazel#15175

Fixes #207

Change-Id: I8f71518f3c569de794fd60acb899d835323fccc9
  • Loading branch information
sluongng authored and mikelalcon committed Sep 7, 2022
1 parent 9a0d2ad commit 0f86413
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ def copybara_repositories():

RULES_JVM_EXTERNAL_SHA = "cd1a77b7b02e8e008439ca76fd34f5b07aecb8c752961f9640dea15e9e5ba1ca"

maybe(
http_archive,
name = "platforms",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.6/platforms-0.0.6.tar.gz",
"https://github.com/bazelbuild/platforms/releases/download/0.0.6/platforms-0.0.6.tar.gz",
],
sha256 = "5308fc1d8865406a49427ba24a9ab53087f17f5266a7aabbfc28823f3916e1ca",
)

maybe(
http_archive,
name = "rules_jvm_external",
Expand Down

0 comments on commit 0f86413

Please sign in to comment.