Skip to content

Commit d1a710d

Browse files
kirtangajjarlukekarrys
authored andcommitted
Fix Tracker "idealTree:inflate:" already exists
Fixes https://github.com/npm/arborist/issues/330 as per solution described in comments.
1 parent 510f0ec commit d1a710d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,8 @@ This is a one-time fix-up, please be patient...
738738
: version || `file:${node.path}`
739739
const spec = npa.resolve(name, id, dirname(path))
740740
const sloc = location.substr('node_modules/'.length)
741-
const t = `idealTree:inflate:${sloc}`
741+
const rand = Math.random()
742+
const t = `idealTree:inflate:${sloc}:${rand}`
742743
this.addTracker(t)
743744
await pacote.manifest(spec, {
744745
...this.options,

0 commit comments

Comments
 (0)