repository_resolved_file: pretty print
As the list of external repositories with their resolved information can
grow quite large, pretty print it, to make it easier for humans to inspect.
@@ -62,8 +62,10 @@ public final class RepositoryResolvedModule extends BlazeModule {
if (resolvedFile != null) {
try {
Writer writer = Files.newWriter(new File(resolvedFile), StandardCharsets.UTF_8);
- // TODO(aehlig): pretty print
- writer.write(EXPORTED_NAME + " = " + Printer.repr(resultBuilder.build()));
+ writer.write(
+ EXPORTED_NAME
+ + " = "
+ + Printer.getPrettyPrinter().repr(resultBuilder.build()).toString());
writer.close();
} catch (IOException e) {
logger.warning("IO Error writing to file " + resolvedFile + ": " + e);
