-
Notifications
You must be signed in to change notification settings - Fork 22
Sync protobuf version with TF for the OSX build. #168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
e5588bc to
c16b65d
Compare
PiperOrigin-RevId: 788613087
c16b65d to
2ddccab
Compare
| # 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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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" |
There was a problem hiding this comment.
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.
| # if [ "$(uname)" != "Darwin" ] && (( "${PYTHON_MINOR_VERSION}" < 13 )); then | ||
| if (( "${PYTHON_MINOR_VERSION}" < 13 )); then |
There was a problem hiding this comment.
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.
Sync protobuf version with TF for the OSX build.