Skip to content

Commit

Permalink
fix(git): integrity hash was failing sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat authored and iarna committed May 26, 2017
1 parent 5e8bafa commit c24d27a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function pack_ (pkg, dir) {
} else {
return cache.add(pkg).then((info) => {
return pipe(
cacache.get.stream.byDigest(pacoteOpts().cache, info.integrity),
cacache.get.stream.byDigest(pacoteOpts().cache, info.integrity || mani._integrity),
writeStreamAtomic(target)
)
}).then(() => target)
Expand Down
4 changes: 2 additions & 2 deletions test/tap/git-npmignore.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ function setup (cb) {

common.npm(
[
'--loglevel', 'warn',
'cache', 'clean'
'--loglevel', 'error',
'cache', 'clean', '--force'
],
NPM_OPTS,
function (er, code, _, stderr) {
Expand Down

0 comments on commit c24d27a

Please sign in to comment.