qossmic / deptrac

Keep your architecture clean.
https://qossmic.github.io/deptrac
MIT License
2.59k stars 136 forks source link

Version 2.0.0-alpha ignores @internal and just works with @deptrac-internal #1409

Closed finpension-aless closed 3 months ago

finpension-aless commented 3 months ago

We noticed with the upgrade to deptrac v2.0.0-alpha that it doesn't throw a violation anymore if you use a class with @internal and use this class outside of its layer. If you change the annotation to @deptrac-internal the violation gets thrown again.

image

image

finpension-aless commented 3 months ago

For everyone coming along this bug, you can fix it by defining your own annotation via config file: deptrac.yaml: image

patrickkusebauch commented 3 months ago

Yes, this is a BC break coming from this PR: https://github.com/qossmic/deptrac/pull/1318