From 9bdd1ace86300a8ee562027bbc5cb57d62dc7ba8 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Tue, 22 Feb 2022 09:49:47 -0700 Subject: [PATCH] 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> --- workspaces/arborist/lib/arborist/build-ideal-tree.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/workspaces/arborist/lib/arborist/build-ideal-tree.js b/workspaces/arborist/lib/arborist/build-ideal-tree.js index b7bc56f3e9797..3fedd972f9c00 100644 --- a/workspaces/arborist/lib/arborist/build-ideal-tree.js +++ b/workspaces/arborist/lib/arborist/build-ideal-tree.js @@ -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,