about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-09-27 12:01:06 +0000
committerGitHub <noreply@github.com>2023-09-27 12:01:06 +0000
commit81ae4e07a370cacc200c95857e96ec3279f48411 (patch)
treedd26dd7e56df17c6b7a59f75cc2dfa558a8b717c /pkgs/build-support
parent9a4dae4abd518bc804832dce0e8ee22ca2aaaa0a (diff)
parent962321fcc3e6e8f689266ccf46161b2642bdebd7 (diff)
Merge master into staging-next
Diffstat (limited to 'pkgs/build-support')
-rwxr-xr-xpkgs/build-support/node/fetch-yarn-deps/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/build-support/node/fetch-yarn-deps/index.js b/pkgs/build-support/node/fetch-yarn-deps/index.js
index 04f47362b10dc..de2a09ee90415 100755
--- a/pkgs/build-support/node/fetch-yarn-deps/index.js
+++ b/pkgs/build-support/node/fetch-yarn-deps/index.js
@@ -37,7 +37,9 @@ const downloadFileHttps = (fileName, url, expectedHash, hashType = 'sha1') => {
 			res.on('end', () => {
 				file.close()
 				const h = hash.read()
-				if (h != expectedHash) return reject(new Error(`hash mismatch, expected ${expectedHash}, got ${h}`))
+				if (expectedHash === undefined){
+					console.log(`Warning: lockfile url ${url} doesn't end in "#<hash>" to validate against. Downloaded file had hash ${h}.`);
+				} else if (h != expectedHash) return reject(new Error(`hash mismatch, expected ${expectedHash}, got ${h}`))
 				resolve()
 			})
                         res.on('error', e => reject(e))