diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2017-05-26 06:18:23 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2017-05-26 06:21:58 +0300 |
commit | 794c10e689634cbb85133f8de2b25411f374436b (patch) | |
tree | 536b0592a8ca73cef625341531c642502362977d /lib/install | |
parent | 674004c4c5ef50ed303add582351b32e2293b78e (diff) |
pkglock: remove packageIntegrity field of doom
Diffstat (limited to 'lib/install')
-rw-r--r-- | lib/install/read-shrinkwrap.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/install/read-shrinkwrap.js b/lib/install/read-shrinkwrap.js index 56d8ce11e..de398fb40 100644 --- a/lib/install/read-shrinkwrap.js +++ b/lib/install/read-shrinkwrap.js @@ -9,7 +9,6 @@ const log = require('npmlog') const parseJSON = require('../utils/parse-json.js') const path = require('path') const PKGLOCK_VERSION = require('../npm.js').lockfileVersion -const pkgSri = require('../utils/package-integrity.js') const readFileAsync = BB.promisify(fs.readFile) @@ -34,14 +33,6 @@ function readShrinkwrap (child, next) { throw ex } } - if ( - pkgJson && - parsed && - parsed.packageIntegrity && - !pkgSri.check(JSON.parse(pkgJson), parsed.packageIntegrity) - ) { - log.info('read-shrinkwrap', `${name} will be updated because package.json does not match what it was generated against.`) - } if (parsed && parsed.lockfileVersion !== PKGLOCK_VERSION) { log.warn('read-shrinkwrap', `This version of npm is compatible with lockfileVersion@${PKGLOCK_VERSION}, but ${name} was generated for lockfileVersion@${parsed.lockfileVersion || 0}. I'll try to do my best with it!`) } |