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

Compatibility with Bazel 6 #1583

Closed
parthea opened this issue Feb 6, 2023 · 1 comment · Fixed by #1584
Closed

Compatibility with Bazel 6 #1583

parthea opened this issue Feb 6, 2023 · 1 comment · Fixed by #1584
Assignees
Labels
type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@parthea
Copy link
Contributor

parthea commented Feb 6, 2023

An error appears when using bazel 6.0.0 because this BUILD.bazel uses @bazel_tools//platforms which has been removed

ERROR: /usr/local/google/home/partheniou/.cache/bazel/_bazel_partheniou/158c73e91735c8bd1e202dd9acfefc6b/external/bazel_tools/platforms/BUILD:19:6: in alias rule @bazel_tools//platforms:x86_64: Constraints from @bazel_tools//platforms have been removed. Please use constraints from @platforms repository embedded in Bazel, or preferably declare dependency on https://github.com/bazelbuild/platforms. See https://github.com/bazelbuild/bazel/issues/8622 for details.
ERROR: /usr/local/google/home/partheniou/.cache/bazel/_bazel_partheniou/158c73e91735c8bd1e202dd9acfefc6b/external/bazel_tools/platforms/BUILD:19:6: Analysis of target '@bazel_tools//platforms:x86_64' failed
ERROR: /usr/local/google/home/partheniou/.cache/bazel/_bazel_partheniou/158c73e91735c8bd1e202dd9acfefc6b/external/com_google_protobuf/BUILD:513:10: While resolving toolchains for target @com_google_protobuf//:protoc: invalid registered toolchain '//:pandoc_toolchain_linux': 
ERROR: Analysis of target '//tests/integration:redis_update' failed; build aborted: 
@parthea
Copy link
Contributor Author

parthea commented Feb 6, 2023

There is also an old version of protobuf in the build rules which is not compatible with bazel 6.

I've confirmed the issue is not present with the latest protobuf version 3.21.12 which is what is used in googleapis/googleapis here:

_protobuf_version = "3.19.2"
_protobuf_sha256 = "9ceef0daf7e8be16cd99ac759271eb08021b53b1c7b6edd399953a76390234cd"
_protobuf_version_in_link = "v{}".format(_protobuf_version)

@atulep atulep added the type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. label Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
2 participants