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

repositories: pinning platforms to latest version #207

Closed
wants to merge 1 commit into from

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