Skip to content

Conversation

@sluongng
Copy link
Contributor

@sluongng sluongng commented Sep 5, 2022

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.

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
@sluongng
Copy link
Contributor Author

sluongng commented Sep 5, 2022

cc: @mikelalcon

Additional request: I would like to add a .bazelversion file at the root of this repo so that future users could build the project out of the box without issues.

@mikelalcon
Copy link
Collaborator

Hi,

sure, that sg. Not sure how it will work since we might have different Bazel versions here.

@copybara-staging copybara-staging bot closed this in 0f86413 Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants