jiri: Fix bug in new "jiri update" wrt LoadManifest.
Change-Id: I87a8cb15acc29a541f16b4cde1d3ed92ec808749
diff --git a/project/project.go b/project/project.go
index 3d52109..f9fdbc2 100644
--- a/project/project.go
+++ b/project/project.go
@@ -592,8 +592,11 @@
manifest.Projects = append(manifest.Projects, project)
}
- // Add all tools from the current manifest to the snapshot manifest.
- _, tools, err := LoadManifest(jirix)
+ // Add all tools from the current manifest to the snapshot manifest. We can't
+ // just call LoadManifest here, since that determines the local projects using
+ // FastScan, but if we're calling CreateSnapshot during "jiri update" and we
+ // added some new projects, they won't be found anymore.
+ _, tools, err := loadManifestFile(jirix, jirix.JiriManifestFile(), localProjects)
if err != nil {
return err
}