-
-
Notifications
You must be signed in to change notification settings - Fork 916
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
Fix nested complexity fragment sorting #3209
Conversation
5.4 ? |
foreach (var item in dependencies) | ||
{ | ||
if (item.Value == null) | ||
return item.Key; | ||
} |
Check notice
Code scanning / CodeQL
Missed opportunity to use Where
WOW, works fine locally, failed on CI due to |
foreach (var item in dependencies) // no deconstruct syntax for netstandard2.0 | ||
{ | ||
if (item.Value?.Remove(independentFragment) == true && item.Value.Count == 0) | ||
fragsToNull.Add(item.Key); | ||
} |
Check notice
Code scanning / CodeQL
Missed opportunity to use Where
Codecov Report
@@ Coverage Diff @@
## master #3209 +/- ##
==========================================
+ Coverage 84.44% 84.46% +0.02%
==========================================
Files 371 370 -1
Lines 16042 16051 +9
Branches 2602 2604 +2
==========================================
+ Hits 13547 13558 +11
+ Misses 1873 1872 -1
+ Partials 622 621 -1
Continue to review full report at Codecov.
|
return item.Key; | ||
} | ||
|
||
throw new InvalidOperationException("Fragments dependency cycle detected!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be due to different frameworks. |
Looks good to me. I'll merge and make a release. |
This is the only PR merged since 5.3.1 so this will be 5.3.2 as it is a bugfix |
Added failing test
Demonstrating that by swapping the order of two fragments, the test either passes or fails
[UPDATE]
Fixed by second commit.
5 4 2 1 3 - order before
5 3 2 4 1 - order after
Now should work for all cases.