From 32ae851558fbae413c68d7cd59ff9285468d7836 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Tue, 2 Mar 2021 22:07:33 +0100 Subject: [PATCH] fix: skip lock file update if only remediation --- lib/manager/npm/post-update/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/manager/npm/post-update/index.ts b/lib/manager/npm/post-update/index.ts index 07c645b0cc..ea37ca6446 100644 --- a/lib/manager/npm/post-update/index.ts +++ b/lib/manager/npm/post-update/index.ts @@ -427,6 +427,13 @@ export async function getAdditionalFiles( logger.debug('Skipping lock file generation'); return { artifactErrors, updatedArtifacts }; } + if ( + !config.updatedPackageFiles?.length && + config.upgrades?.every((upgrade) => upgrade.isRemediation) + ) { + logger.debug('Skipping lock file generation for remediations'); + return { artifactErrors, updatedArtifacts }; + } logger.debug('Getting updated lock files'); if ( config.updateType === 'lockFileMaintenance' && -- GitLab