Debian Codegraph @

workspaces/arborist/test/fixtures/pathological-dep-nesting-cycle/README.md

raw
1 A cycle of dependencies that threatens to trigger an infinite regress of
2 nesting.
3
4 We fix this by adding a symlink up to the shallower match.
5
6 ```
7 a@1 -> b@1
8 a@2 -> b@2
9 b@1 -> a@2
10 b@2 -> a@1
11 ```
12
13 Resulting nesting goes:
14
15 ```
16 +-- a@1
17 +-- b@1
18 +-- a@2
19 +-- b@2
20 +-- a@1
21 +-- b@1
22 ... and so on
23 ```
24
25 To prevent it, we do this:
26
27 ```
28 +-- a@1
29 +-- b@1
30 +-- a@2
31 +-- b@2
32 +-- a@1 --> ../../a
33 ```