Skip to content

Commit

Permalink
fix(git): stop generating integrity for git
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Nov 15, 2017
1 parent 62f8cdf commit d45363b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/fetchers/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ function plainManifest (repo, spec, opts) {
_spec: spec,
_ref: ref,
_rawRef: spec.gitCommittish || spec.gitRange,
_uniqueResolved: resolved
_uniqueResolved: resolved,
_integrity: false
}
} else {
// We're SOL and need a full clone :(
Expand All @@ -123,7 +124,8 @@ function plainManifest (repo, spec, opts) {
_repo: repo,
_rawRef: rawRef,
_resolved: rawRef && rawRef.match(/^[a-f0-9]{40}$/) && resolved,
_uniqueResolved: rawRef && rawRef.match(/^[a-f0-9]{40}$/) && resolved
_uniqueResolved: rawRef && rawRef.match(/^[a-f0-9]{40}$/) && resolved,
_integrity: false
}
}
})
Expand Down
4 changes: 2 additions & 2 deletions lib/finalize-manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ function Manifest (pkg, fromTarball, fullMetadata) {
// Not all handlers (or registries) provide these out of the box,
// and if they don't, we need to extract and read the tarball ourselves.
// These are details required by the installer.
this._integrity = pkg._integrity || fromTarball._integrity
this._shasum = pkg._shasum
this._integrity = pkg._integrity || fromTarball._integrity || null
this._shasum = pkg._shasum || null
this._shrinkwrap = pkg._shrinkwrap || fromTarball._shrinkwrap || null
this.bin = pkg.bin || fromTarball.bin || null

Expand Down

0 comments on commit d45363b

Please sign in to comment.