On 02/01/2024 11:55, Michał Kłeczek wrote:
Now I am lost. Wouldn’t it find the same module?
This is a readability graph rather than a dependency graph. They are the
same thing until you add implied readability ("requires transitive") to
the picture. In that case, it's possible for a module in layerC to
require (and thus read) a module in layer A. That module in layer A, in
turn, requires-transitive another module in layer A and thus our module
in layerC reads two modules in layerA. It doesn't matter if there is a
module in layerB with the same name as the second module in layerA, it's
okay as long as there isn't a scenario where a module reads two (or
more) modules with the same name.
-Alan.