Skip to content

Disable external_include_paths in TF.Text OSS Bazel configuration. - #1571

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_1000522266
Open

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_1000522266

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Disable external_include_paths in TF.Text OSS Bazel configuration.

Open-source builds fetch .bazelrc from TensorFlow v2.22.0-rc0, which predates the external_include_paths toolchain feature. When IS_NIGHTLY=nightly or TF_VERSION points to a newer TensorFlow commit, prepare_tf_dep.sh updates @org_tensorflow in WORKSPACE to pull in the newer @rules_ml_toolchain from tf_workspace3(), which enables external_include_paths (-isystem for external repositories) by default and breaks TFLite header resolution (such as schema_utils via tflite_op_shim).

Append common --features=-external_include_paths and common --host_features=-external_include_paths to .bazelrc in oss_scripts/configure.sh to match TensorFlow master while remaining compatible with v2.22.0-rc0.

@copybara-service copybara-service Bot changed the title Prevent lagging tf-keras-nightly Requires-Dist from downgrading tf-nightly during requirements.update. Fix tf-text OSS nightly and presubmit builds against current tf-nightly. Oct 16, 2026
Open-source builds fetch `.bazelrc` from TensorFlow `v2.22.0-rc0`, which predates the `external_include_paths` toolchain feature. When `IS_NIGHTLY=nightly` or `TF_VERSION` points to a newer TensorFlow commit, `prepare_tf_dep.sh` updates `@org_tensorflow` in `WORKSPACE` to pull in the newer `@rules_ml_toolchain` from `tf_workspace3()`, which enables `external_include_paths` (`-isystem` for external repositories) by default and breaks TFLite header resolution (such as `schema_utils` via `tflite_op_shim`).

Append `common --features=-external_include_paths` and `common --host_features=-external_include_paths` to `.bazelrc` in `oss_scripts/configure.sh` to match TensorFlow `master` while remaining compatible with `v2.22.0-rc0`.

PiperOrigin-RevId: 1000522266
@copybara-service copybara-service Bot changed the title Fix tf-text OSS nightly and presubmit builds against current tf-nightly. Disable external_include_paths in TF.Text OSS Bazel configuration. Oct 23, 2026

This branch has not been deployed

No deployments
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.

1 participant