-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still generate a WORKSPACE file in repo rules if --enable_workspace i…
…s set 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. PiperOrigin-RevId: 590492936 Change-Id: I43bfc7bf79b3749f1fb02ce31be789d92c36a2c0
- Loading branch information
1 parent
75fffbf
commit c6a5ebb
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters