Skip to content

Conversation

@copybara-service
Copy link

Sync protobuf version with TF for the OSX build.

Comment on lines +27 to +31
# TF proto version is protobuf-3.21.9, and per proto engdoc
# https://protobuf.dev/support/version-support/
# The major version saparation happens at 21.x == 3.21
# so we pick 21.7, which is the same generation as 3.21.9
bazel_dep(name = "protobuf", version = "21.7")
Copy link
Contributor

@mtsokol mtsokol Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dryman!

With @iindyk we purposefully upgraded protobuf version (we need it for conda-forge feedstocks). The good news is that a few days ago tensorflow 2.20.0rc0 was released with protobuf-6.31.1. We now use this TF version for testing.

tensorflow/tensorflow@50bd166

write_to_bazelrc "build --host_cxxopt=-std=c++17"
write_to_bazelrc "build --experimental_repo_remote_exec"
write_to_bazelrc "common --check_direct_dependencies=error"
# write_to_bazelrc "common --check_direct_dependencies=error"
Copy link
Contributor

@mtsokol mtsokol Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks downstream, especially Grain, which installs a protobuf version that is incompatible with 21.7.

Comment on lines +94 to +95
# if [ "$(uname)" != "Darwin" ] && (( "${PYTHON_MINOR_VERSION}" < 13 )); then
if (( "${PYTHON_MINOR_VERSION}" < 13 )); then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once google/grain#954 is merged and Grain gets a pre-release we can actually have this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants