Closed mingzhao-db closed 2 years ago
Unfortunately that would break building the TensorFlow binding (and thus also examples), because even newest released TensorFlow versions include binary code compatible with protobuf 3.9.0–3.9.2 only.
Ideally Riegeli should have a different build mode which strips everything which depends on TensorFlow.
There is now a workaround for building with an old protobuf: https://github.com/google/riegeli/commit/58945ac448cc0fc11629efb7d3627277c7d9f822, so this should no longer be urgent.
Since TensorFlow was not yet able to update its protobuf version (and applied the workaround to the old protobuf instead, which I applied now here), updating the protobuf version as specified in Riegeli’s WORKSPACE will need to wait.
Of course you can depend on parts of Riegeli which do not depend on TensorFlow, substituting your own protobuf version — dependency versions are ultimately decided by the final project.
Upgrade protobuf to 3.19 to overcome build issue with bazel 4.2