mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 15:06:27 +00:00
fix: clear PackageFiles during initRepo (#15635)
This commit is contained in:
parent
0cf2ab4823
commit
7fdd9e147c
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue