mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix: improve try/catch for mirrorMode config
This commit is contained in:
parent
ef26fdb3fe
commit
13609b735d
1 changed files with 4 additions and 0 deletions
|
@ -18,9 +18,13 @@ async function mergeRenovateConfig(config) {
|
||||||
);
|
);
|
||||||
logger.info('Found mirror config');
|
logger.info('Found mirror config');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
// Do nothing
|
||||||
|
}
|
||||||
|
if (!renovateJson) {
|
||||||
logger.debug('No mirror config found - using default config');
|
logger.debug('No mirror config found - using default config');
|
||||||
renovateJson = { extends: ['config:base'] };
|
renovateJson = { extends: ['config:base'] };
|
||||||
}
|
}
|
||||||
|
logger.debug({ renovateJson }, 'mirrorMode config');
|
||||||
const migratedConfig = migrateAndValidate(config, renovateJson);
|
const migratedConfig = migrateAndValidate(config, renovateJson);
|
||||||
const resolvedConfig = await presets.resolveConfigPresets(migratedConfig);
|
const resolvedConfig = await presets.resolveConfigPresets(migratedConfig);
|
||||||
returnConfig = mergeChildConfig(returnConfig, resolvedConfig);
|
returnConfig = mergeChildConfig(returnConfig, resolvedConfig);
|
||||||
|
|
Loading…
Reference in a new issue