+ 1

Cicrcular reference of modules

Hi If two modules have dependency on each other, how to resolve this ? In other words, Module A need Module B to build first where as Module B also need to have Module A billd first. How to solve this issue ?

16th Feb 2025, 10:13 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
3 Answers
+ 3
Might also ask yourself if one of the modules should be split, so instead of A <-> B You now have A -> B -> C But in cases where you can't avoid circular references, interfaces are the usual solution.
20th Feb 2025, 8:25 PM
Shardis Wolfe
+ 2
Ketan Lalcheta , try to use chatgpt by giving the complete text of your post. i did a try and got 4 various solutions, depending on the use case.
17th Feb 2025, 10:13 AM
Lothar
Lothar - avatar
+ 1
I want to have both module built one after another separately. I got one solution till now , that is abstract interfaces of both module and make it virtual then actual module will implement those details. Would you mind sharing other solution?
17th Feb 2025, 12:55 PM
Ketan Lalcheta
Ketan Lalcheta - avatar