Skip to content

Commit

Permalink
fix: report if new digest could not be determined
Browse files Browse the repository at this point in the history
This fixes the issue where updates are silently omitted
due to the new digest not being computable.

Improving the situation as in: renovatebot#20160.
  • Loading branch information
devversion committed Feb 2, 2023
1 parent 092d3f7 commit ba9abae
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/workers/repository/process/lookup/index.ts
Expand Up @@ -384,6 +384,19 @@ export async function lookupUpdates(
// TODO #7154
update.newDigest =
update.newDigest ?? (await getDigest(config, update.newValue))!;

// If the digest could not be determined, report this as otherwise the
// update will be omitted later on without notice.
if (update.newDigest === null) {
logger.debug(
{ depName, ...update },
'Could not determine new digest for update.'
);
res.warnings.push({
message: `Could not determine new digest for update (${update.newValue}).`,
topic: depName,
});
}
}
if (update.newVersion) {
const registryUrl = dependency?.releases?.find(
Expand Down

0 comments on commit ba9abae

Please sign in to comment.