| commit | 4864d6399b844776d73439e5894fbcadfd0b732a | [log] [tgz] |
|---|---|---|
| author | Richard Levasseur <rlevasseur@google.com> | Mon Nov 11 16:12:51 2024 -0800 |
| committer | GitHub <noreply@github.com> | Tue Nov 12 00:12:51 2024 +0000 |
| tree | d6b87fec1c900224f4a0a594737e7da440eba268 | |
| parent | 4e610311c34ae39945766f0a74b082a66fefe1ca [diff] |
deps: updates for bazel 8 compatibility (#2379)
Various changes to support Bazel 8. An important note is dependencies
have forced
us to change the versions of Bazel we support.
Summary of changes:
* rules_cc 0.0.14: Releases after 0.0.9 have some Bazel 8 fixes, but
also broke
some things. Things seemed to have settled by 0.0.14.
* protobuf 29.0-rc1: Technically 28.0 works, however:
1. 29.0-rc1 is coming via a transitive dependency anyways, and
2. In protobuf 28.0, compile warnings are treated as errors, which our
Debian CI
respects (and thus fails), while other platforms ignore.
* stardoc 0.7.1: Fixes an issue with Bazel 8 and stardoc using empty
globs.
* Bazel 7.4 is now the minimum supported Bazel version. This
requirements comes via
dependencies.
* Drop Bazel 6 bzlmod support. This requirement comes via dependencies.
* Add a presubmit job for `last_rc` Bazel (currently the 8.x RC).
* Use a local patch so Gazelle works with Bazel 8. This can be removed
once https://github.com/bazel-contrib/bazel-gazelle/issues/1959 is fixed
and released.
* Fix a `$(rpathlocation)` call in bootstrap tests.
* Update bzl_library deps after upgrading deps: the set of targets that
provide
bzl sources changed in rules_cc and protobuf in these newer versions.
Sorting this all out and finding the right combination of dependency
versions was
fairly involved. The details of that are in
https://github.com/bazelbuild/rules_python/issues/2378.
Work towards https://github.com/bazelbuild/rules_python/issues/2378,
https://github.com/bazelbuild/rules_python/issues/2387This repository is the home of the core Python rules -- py_library, py_binary, py_test, py_proto_library, and related symbols that provide the basis for Python support in Bazel. It also contains package installation rules for integrating with PyPI and other indices.
Documentation for rules_python is at https://rules-python.readthedocs.io and in the Bazel Build Encyclopedia.
Examples live in the examples directory.
The core rules are stable. Their implementation is subject to Bazel's backward compatibility policy. This repository aims to follow semantic versioning.
The Bazel community maintains this repository. Neither Google nor the Bazel team provides support for the code. However, this repository is part of the test suite used to vet new Bazel releases. See How to contribute page for information on our development workflow.
For detailed documentation, see https://rules-python.readthedocs.io
See Bzlmod support for more details.