2026-05-18
Pre-release
Pre-release
Fix broken @oss-disable markers that break OSS builds Summary: Several prelude files had `# oss-disable` only on the closing line of multi-line statements. Codesync strips marked lines individually, so this left dangling syntax (unclosed `load(` calls, empty `if False:` bodies) that caused Starlark parse errors in OSS builds. Fixes: - Multi-line `load()` statements: mark every line with `# oss-disable`, not just the closing paren. - `if`/`else` blocks where the `if` body is fully disabled: add `# oss-enable: pass` so the `if False:` block has a valid body after stripping. Files: `android_binary_native_library_rules.bzl`, `apple_binary.bzl`, `apple_library.bzl`, `apple_error_handler.bzl`. This fixes the `buck2-oss-docs` CI test which has been disabled due to these parse errors. Reviewed By: JakobDegen Differential Revision: D105501080 fbshipit-source-id: f99170c91a668851632a2fdafb81247798e1404a