| 1 |
# peer optional failure D |
| 2 |
|
| 3 |
``` |
| 4 |
root -> (x, z@1) |
| 5 |
x -> PEEROPTIONAL(y) |
| 6 |
y -> PEER(z@2) |
| 7 |
``` |
| 8 |
|
| 9 |
[npm/arborist#223](https://github.com/npm/arborist/issues/223) |
| 10 |
|
| 11 |
[npm/arborist#236](https://github.com/npm/arborist/issues/236) |
| 12 |
|
| 13 |
Subtly similar to case A, but note y and z swapped, so that they are |
| 14 |
resolved in the reverse order (because deps are alphabetically sorted for |
| 15 |
consistency). This is relevant, because it ensures that there's no dep |
| 16 |
present in the peerSet until _after_ the conflict is encountered, and that |
| 17 |
code path was not being hit. |