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

fix(homebrew): try/catch sha256

parent 1b014ff8
No related branches found
No related tags found
No related merge requests found
......@@ -61,9 +61,14 @@ export async function updateDependency(
logger.debug(`Failed to update url for dependency ${upgrade.depName}`);
return content;
}
const newSha256 = createHash('sha256')
.update(file)
.digest('hex');
let newSha256;
try {
newSha256 = createHash('sha256')
.update(file)
.digest('hex');
} catch (err) /* istanbul ignore next */ {
logger.warn({ err }, 'Failed to generate new sha256 for homebrew');
}
newContent = updateUrl(content, upgrade.managerData.url, newUrl);
if (!newContent) {
logger.debug(`Failed to update url for dependency ${upgrade.depName}`);
......
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