Fix optional dependencies

This commit is contained in:
Stéphan Kochen
2023-10-30 14:14:40 +01:00
parent b075356c0d
commit ca3d96ae1d
+3 -1
View File
@@ -143,7 +143,9 @@ export default async (
originalFilename: filename, originalFilename: filename,
// Rebuild the filename, because the cache file we're operating on may be // Rebuild the filename, because the cache file we're operating on may be
// from the mirror directory, which uses different naming. // from the mirror directory, which uses different naming.
filename: cache.getChecksumFilename(pkg, sha512), filename: checksum
? cache.getChecksumFilename(pkg, checksum)
: cache.getVersionFilename(pkg),
sha512, sha512,
}); });
} }