-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
api: spannerIssues related to the Spanner API.Issues related to the Spanner API.
Description
I'm trying to upgrade bazel build rules:
In my MODULE.bazel I upgraded as follows:
####################################################
# Protobuf rules
# This is the Way to load py_proto_library and proto_library for bazel 7.x and beyond
#
-bazel_dep(name = "protobuf", version = "33.5", dev_dependency = True)
+bazel_dep(name = "protobuf", version = "34.1", dev_dependency = True)
-bazel_dep(name = "rules_python", version = "1.8.3")
+bazel_dep(name = "rules_python", version = "1.9.0")
The protobuf rules bump has led me to an unresolvable constraint in the spanner
driver. First I tried with 3.59.0, then I increased the google-cloud-spanner version up to the latest 3.63.0.
$ update-requirements-lock.sh
× No solution found when resolving dependencies:
╰─▶ Because google-cloud-spanner==3.63.0 depends on one of:
protobuf>=3.20.2,<4.21.0
protobuf>4.21.0,<4.21.1
protobuf>4.21.1,<4.21.2
protobuf>4.21.2,<4.21.3
protobuf>4.21.3,<4.21.4
protobuf>4.21.4,<4.21.5
protobuf>4.21.5,<7.0.0
and you require protobuf>=7.34.1, we can conclude that your requirements and google-cloud-spanner==3.63.0 are incompatible.
And because you require google-cloud-spanner==3.63.0, we can conclude that your requirements are unsatisfiable.
I'm not sure if there is good reason to have the <7.0.0 constraint on the protobuf package. The new protobuf rules seem to use: 7.34.1 by default. Here are the release notes for 7.x: https://protobuf.dev/news/2025-09-19/ from September 2025
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: spannerIssues related to the Spanner API.Issues related to the Spanner API.