Skip to content
Snippets Groups Projects
Commit f61c416f authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: don’t deduplicate updates if same current and newvalue

parent ca2d9be0
No related branches found
No related tags found
No related merge requests found
...@@ -130,20 +130,18 @@ export async function branchifyUpgrades( ...@@ -130,20 +130,18 @@ export async function branchifyUpgrades(
} = upgrade; } = upgrade;
const upgradeKey = `${packageFile}:${depName}:${currentValue}`; const upgradeKey = `${packageFile}:${depName}:${currentValue}`;
const previousNewValue = seenUpdates[upgradeKey]; const previousNewValue = seenUpdates[upgradeKey];
if (previousNewValue) { if (previousNewValue && previousNewValue !== newValue) {
if (previousNewValue !== newValue) { logger.info(
logger.info( {
{ manager,
manager, packageFile,
packageFile, depName,
depName, currentValue,
currentValue, previousNewValue,
previousNewValue, thisNewValue: newValue,
thisNewValue: newValue, },
}, 'Ignoring upgrade collision'
'Ignoring upgrade collision' );
);
}
return false; return false;
} }
seenUpdates[upgradeKey] = newValue; seenUpdates[upgradeKey] = newValue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment