Dist module_paths/files.db

Help debugging finder issues by disting module_paths/files.db for
later analysis.

Bug: 157656545
Test: treehugger
Change-Id: Idfa4cffe7ef724b399a2667efd487f9c3c76bb6b
This commit is contained in:
Colin Cross
2020-07-06 17:13:43 -07:00
parent 0eeff82c98
commit 96e5e41b88
2 changed files with 11 additions and 5 deletions

View File

@@ -126,6 +126,11 @@ func FindSources(ctx Context, config Config, f *finder.Finder) {
if err != nil {
ctx.Fatalf("Could not find modules: %v", err)
}
if config.Dist() {
f.WaitForDbDump()
distFile(ctx, config, f.DbPath, "module_paths")
}
}
func dumpListToFile(ctx Context, config Config, list []string, filePath string) (err error) {