Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.1.0] Still generate a WORKSPACE file in repo rules if --enable_wor…
…kspace is set (#20914) 47e48a1 made it so that, after a repo rule finishes, we no longer generate an empty WORKSPACE file if one is not found at the repo root. (We generate a REPO.bazel file instead, which also marks the boundary of the repo just fine.) But some users actually expect a WORKSPACE file specifically, so this CL restores the behavior of creating an empty WORKSPACE file if --enable_workspace is set. Note that neither WORKSPACE nor REPO.bazel is created if the repo rule logic creates any repo boundary file itself. Fixes #20498. Commit c6a5ebb PiperOrigin-RevId: 590492936 Change-Id: I43bfc7bf79b3749f1fb02ce31be789d92c36a2c0 Co-authored-by: Googler <[email protected]>
- Loading branch information