Stop saving config in initConfig()

This commit is contained in:
Chuan-kai Lin
2025-09-11 12:31:29 -07:00
parent 4e2e64a92a
commit 5c30ae46c1
4 changed files with 9 additions and 10 deletions

View File

@@ -681,10 +681,10 @@ async function run() {
logUnwrittenDiagnostics();
}
// We may have updated the config returned from `initConfig`, e.g. to revert
// to `OverlayDatabaseMode.None` if we failed to download an overlay-base
// database. So we save the config again, to ensure that the `analyze` step
// reads the correct config.
// We save the config here instead of at the end of `initConfig` because we
// may have updated the config returned from `initConfig`, e.g. to revert to
// `OverlayDatabaseMode.None` if we failed to download an overlay-base
// database.
await configUtils.saveConfig(config, logger);
await sendCompletedStatusReport(
startedAt,