Skip to content

Commit 9bdd1ac

Browse files
fix(arborist): use full location as tracker key when inflating (#4300)
Fixes: #4273 Ref: #4298 Co-authored-by: Kirtan Gajjar <8456197+kirtangajjar@users.noreply.github.com>
1 parent dd63e21 commit 9bdd1ac

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

workspaces/arborist/lib/arborist/build-ideal-tree.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,7 @@ This is a one-time fix-up, please be patient...
753753
const id = useResolved ? resolved
754754
: version || `file:${node.path}`
755755
const spec = npa.resolve(name, id, dirname(path))
756-
const sloc = location.substr('node_modules/'.length)
757-
const t = `idealTree:inflate:${sloc}`
756+
const t = `idealTree:inflate:${location}`
758757
this.addTracker(t)
759758
await pacote.manifest(spec, {
760759
...this.options,

0 commit comments

Comments
 (0)