Skip to content

Commit

Permalink
fix(arborist): use full location as tracker key when inflating (#4300)
Browse files Browse the repository at this point in the history
Fixes: #4273
Ref: #4298

Co-authored-by: Kirtan Gajjar <8456197+kirtangajjar@users.noreply.github.com>
  • Loading branch information
lukekarrys and kirtangajjar authored Feb 22, 2022
1 parent dd63e21 commit 9bdd1ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions workspaces/arborist/lib/arborist/build-ideal-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,7 @@ This is a one-time fix-up, please be patient...
const id = useResolved ? resolved
: version || `file:${node.path}`
const spec = npa.resolve(name, id, dirname(path))
const sloc = location.substr('node_modules/'.length)
const t = `idealTree:inflate:${sloc}`
const t = `idealTree:inflate:${location}`
this.addTracker(t)
await pacote.manifest(spec, {
...this.options,
Expand Down

0 comments on commit 9bdd1ac

Please sign in to comment.