You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensures we get all the versions of dependencies we want in `WORKSPACE`,
while providing a new API to consumers. Part of bazel-contrib#1652.
Bumps several packages as high as they can go and still be compatible
with Bazel 6 and 7:
- `bazel_skylib`: 1.4.1 => 1.7.1
- `rules_cc`: 0.0.6 => 0.0.9
- `rules_python`: 0.36.0 => 0.38.0
- `rules_go`: 0.50.1
The following packages are at the maximum version to prevent breakages
under Bazel 6.5.0.
---
`abseil-cpp` and `protobuf` have to stay at 20220623.1 and v27.1,
respectively, for Bazel 6 compatibility per bazel-contrib#1647. `protobuf` up to
v25.5 is compatible with Bazel 6 provided users set the compiler flags
mentioned in that issue.
---
`rules_python` 0.38.0 => 0.39.0 requires at least `rules_cc` 0.0.10,
which introduced `cc/common/cc_info.bzl`:
```txt
$ bazel build //{src,test,third_party,scala_proto}/...
[ ...snip... ]
ERROR: error loading package under directory 'test':
error loading package 'test':
at .../external/rules_python/python/defs.bzl:17:6:
at .../external/rules_python/python/py_binary.bzl:18:6:
at .../external/rules_python/python/private/py_binary_macro.bzl:16:6:
at .../external/rules_python/python/private/common_bazel.bzl:19:6:
Label '@rules_cc//cc/common:cc_info.bzl' is invalid
because 'cc/common' is not a package;
perhaps you meant to put the colon here:
'@rules_cc//cc:common/cc_info.bzl'?
```
---
`rules_cc` 0.0.9 => 0.0.10 requires Bazel 7, which defines
`CcSharedLibraryHintInfo`:
```txt
$ bazel build //{src,test,third_party,scala_proto}/...
ERROR: .../external/rules_cc/cc/private/rules_impl/native.bzl:40:33:
name 'CcSharedLibraryHintInfo' is not defined (did you mean
'CcSharedLibraryInfo'?)
[ ...snip... ]
ERROR: error loading package under directory 'test':
error loading package 'test':
at .../external/rules_python/python/defs.bzl:17:6:
at .../external/rules_python/python/py_binary.bzl:18:6:
at .../external/rules_python/python/private/py_binary_macro.bzl:16:6:
at .../external/rules_python/python/private/common_bazel.bzl:18:6:
at .../external/rules_cc/cc/common/cc_common.bzl:17:6:
compilation of module 'cc/private/rules_impl/native.bzl' failed
```
0 commit comments