From b8a8833ac693de32b8c950d0bfb8a0477fecd040 Mon Sep 17 00:00:00 2001 From: Hugh Willson Date: Mon, 15 May 2017 16:19:27 -0400 Subject: [PATCH] Moved LINKER_CACHE_SALT into cacheKeySuffix part of cache filename hash. --- tools/isobuild/compiler-plugin.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/isobuild/compiler-plugin.js b/tools/isobuild/compiler-plugin.js index 0bf26cc067..66fcc32523 100644 --- a/tools/isobuild/compiler-plugin.js +++ b/tools/isobuild/compiler-plugin.js @@ -1294,7 +1294,6 @@ export class PackageSourceBatch { const fileHashes = []; const cacheKeyPrefix = sha1(JSON.stringify({ - LINKER_CACHE_SALT, linkerOptions, files: jsResources.map((inputFile) => { fileHashes.push(inputFile.hash); @@ -1308,7 +1307,10 @@ export class PackageSourceBatch { }; }) })); - const cacheKeySuffix = sha1(JSON.stringify(fileHashes)); + const cacheKeySuffix = sha1(JSON.stringify({ + LINKER_CACHE_SALT, + fileHashes + })); const cacheKey = `${cacheKeyPrefix}_${cacheKeySuffix}`; {