-
-
Notifications
You must be signed in to change notification settings - Fork 783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dependency that creates a cycle. #5777
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5777 +/- ##
=========================================
Coverage 84.59% 84.59%
Complexity 3784 3784
=========================================
Files 546 546
Lines 12943 12943
Branches 2273 2273
=========================================
Hits 10949 10949
Misses 861 861
Partials 1133 1133
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I think this can be closed now? |
I would still continue this way... the fix in #5792 was not complete, it's just working around the issues. |
I've been thinking about this and agree it should be merged. Was there anything else that you're planning to do for this PR? |
I think it might be enough to just do this. Can't think of anything else. Originally I only raised the PR to show the issue, but looking at it, it might be production ready 🤠. I fixed a typos and updated with latest to see if it still works. |
I'm good with the PR itself but I thought these errors were dealt with? https://github.com/detekt/detekt/actions/runs/4330440036/jobs/7561663181#step:4:520 Is that new with this change? |
Ah, yes! Lucky flaky build. Need to fix that. Now that I broke the circular dependency, the ordering is reversed (randomly). We can now really fix the implicit dependencies. I'll have a look next week. |
Do we want this included in 1.23 @TWiStErRob ? |
@cortinico No rush, as far as I understand it's more for correctness and tech debt, I don't think users will see anything of it since the change is in |
Got it. Removing the milestone for now. If we merge it in a couple of weeks it will make it into 1.23 👍 |
This comment was marked as duplicate.
This comment was marked as duplicate.
@3flex, I fixed the missing dependency similar to earlier fixes by @jprinet. Please have a look if this makes sense, I don't think there's anything else to do for now. In the future we definitely need to split up the config generation and somehow prevent referencing source-sets between projects: detekt/detekt-generator/build.gradle.kts Line 48 in c3bb324
I'm quite surprised this works with configuration cache. Project isolation all the way! 💪 |
Forked from #5773 (comment)
Since a dependency is removed in this PR, now the warning can trigger as described in the conversation thread on the other PR. This will happen randomly based on parallel ordering. Luckily we got a failure on one of the matrix jobs and Matthew noticed it.
A consistent repro is
which works on the Remove dependency that creates a cycle. commit. After that it should be fixed.