Title: Looking to bump protobuf dependency > 7.0.0 · Issue #16172 · googleapis/google-cloud-python · GitHub
Open Graph Title: Looking to bump protobuf dependency > 7.0.0 · Issue #16172 · googleapis/google-cloud-python
X Title: Looking to bump protobuf dependency > 7.0.0 · Issue #16172 · googleapis/google-cloud-python
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 beyon...
Open Graph 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 a...
X 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_libra...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/16172
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Looking to bump protobuf dependency \u003e 7.0.0","articleBody":"\nI'm trying to upgrade bazel build rules:\n\nIn my MODULE.bazel I upgraded as follows:\n\n```\n ####################################################\n # Protobuf rules\n # This is the Way to load py_proto_library and proto_library for bazel 7.x and beyond\n #\n-bazel_dep(name = \"protobuf\", version = \"33.5\", dev_dependency = True)\n+bazel_dep(name = \"protobuf\", version = \"34.1\", dev_dependency = True)\n\n-bazel_dep(name = \"rules_python\", version = \"1.8.3\")\n+bazel_dep(name = \"rules_python\", version = \"1.9.0\")\n```\n\nThe protobuf rules bump has led me to an unresolvable constraint in the spanner \ndriver. First I tried with 3.59.0, then I increased the google-cloud-spanner version up to the latest 3.63.0.\n\n```\n$ update-requirements-lock.sh \n × No solution found when resolving dependencies:\n ╰─▶ Because google-cloud-spanner==3.63.0 depends on one of:\n protobuf\u003e=3.20.2,\u003c4.21.0\n protobuf\u003e4.21.0,\u003c4.21.1\n protobuf\u003e4.21.1,\u003c4.21.2\n protobuf\u003e4.21.2,\u003c4.21.3\n protobuf\u003e4.21.3,\u003c4.21.4\n protobuf\u003e4.21.4,\u003c4.21.5\n protobuf\u003e4.21.5,\u003c7.0.0\n and you require protobuf\u003e=7.34.1, we can conclude that your requirements and google-cloud-spanner==3.63.0 are incompatible.\n And because you require google-cloud-spanner==3.63.0, we can conclude that your requirements are unsatisfiable.\n```\n\nI'm not sure if there is good reason to have the \u003c7.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\n\n\n\n","author":{"url":"https://github.com/ericzundel","@type":"Person","name":"ericzundel"},"datePublished":"2026-03-25T15:26:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/16172/google-cloud-python/issues/16172"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:81bc153b-b1b1-1ee1-5cdf-10e6708f2aad |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3F4:7F1A9:9A2198:D0B58A:6A4D40C5 |
| html-safe-nonce | 4c6aa8e9c617da0d8d89a8b457f4774ec62007c64dccc120bebbf499cf24e1e2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0Y0OjdGMUE5OjlBMjE5ODpEMEI1OEE6NkE0RDQwQzUiLCJ2aXNpdG9yX2lkIjoiNzkzMzAyNjY5NDU0OTI5MTIwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 390842a2e6c6da393506cb7657dc04e3d2b352150b68e0da04b1f1d9f52e5079 |
| hovercard-subject-tag | issue:4138648948 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/16172/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2b253ba29e4ae14e43d540fed7bf01c5cd379b7c8775549976efdc8a77d1cbca/googleapis/google-cloud-python/issues/16172 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2b253ba29e4ae14e43d540fed7bf01c5cd379b7c8775549976efdc8a77d1cbca/googleapis/google-cloud-python/issues/16172 |
| og:image:alt | 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 a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ericzundel |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width