Include arch in dependency cache key

This commit is contained in:
Damien Guard
2016-11-11 10:28:19 -08:00
parent 2df096ab13
commit 80bb4337e3

View File

@@ -22,7 +22,7 @@ module.exports = {
// Include the electron minor version in the fingerprint since that changing requires a re-install
const electronVersion = CONFIG.appMetadata.electronVersion.replace(/\.\d+$/, '')
const apmVersion = CONFIG.apmMetadata.dependencies['atom-package-manager']
const body = electronVersion + apmVersion + process.platform + process.version
const body = electronVersion + apmVersion + process.platform + process.version + process.arch
return crypto.createHash('sha1').update(body).digest('hex')
}
}