fix: clear PackageFiles during initRepo (#15635)

This commit is contained in:
Rhys Arkins 2022-05-18 15:51:54 +02:00 committed by GitHub
parent 0cf2ab4823
commit 7fdd9e147c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@ import { platform } from '../../../modules/platform';
import { clone } from '../../../util/clone'; import { clone } from '../../../util/clone';
import { setUserRepoConfig } from '../../../util/git'; import { setUserRepoConfig } from '../../../util/git';
import { checkIfConfigured } from '../configured'; import { checkIfConfigured } from '../configured';
import { PackageFiles } from '../package-files';
import { initApis } from './apis'; import { initApis } from './apis';
import { initializeCaches, resetCaches } from './cache'; import { initializeCaches, resetCaches } from './cache';
import { getRepoConfig } from './config'; import { getRepoConfig } from './config';
@ -25,6 +26,7 @@ function warnOnUnsupportedOptions(config: RenovateConfig): void {
export async function initRepo( export async function initRepo(
config_: RenovateConfig config_: RenovateConfig
): Promise<RenovateConfig> { ): Promise<RenovateConfig> {
PackageFiles.clear();
let config: RenovateConfig = initializeConfig(config_); let config: RenovateConfig = initializeConfig(config_);
await resetCaches(); await resetCaches();
config = await initApis(config); config = await initApis(config);