Hey, I'm a bit confused, how to check for cyclic d...
# konsist
p
Hey, I'm a bit confused, how to check for cyclic dependencies. I have following rules, but even though cyclic dependency exists in code, assert doesn't fail.
Copy code
Konsist.scopeFromModule("app")
    .assertArchitecture {
        val profile = Layer("profile", "com.some.app.profile..")
        val auth = Layer("auth", "com.some.app.auth..")
        profile.dependsOn(auth)
        auth.dependsOn(profile)
    }
g
Looks like you're asserting a cyclic dependency, so if it exists in code this check should be 🟢 Isn't it?