Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate loadable dummy .bzl/BUILD/WORKSPACE files
Until now, dummy files were saved in the wrong place by default (outside the test's scratch workspace); and had the string "dummy" as the content, regardless of file extension. This broken behavior somehow worked; presumably, until now, all tests using TestProjectBuilder performed no I/O at analysis time on their dummy files. The situation is different for .bzl/BUILD/WORKSPACE files: a rule (such as the new stardoc rules) may attempt to load and parse the file during the analysis phase. So we must take care to generate something that parses as valid Starlark and is saved under the right path. PiperOrigin-RevId: 520794401 Change-Id: Id12cbcd2898a505cf4d1cf50e254a35603d466d5
- Loading branch information