Do dependency resolution after checking valid configs#2960
Do dependency resolution after checking valid configs#2960Geod24 merged 3 commits intodlang:masterfrom
Conversation
|
✅ PR OK, no changes in deprecations or warnings Total deprecations: 8 Total warnings: 0 Build statistics: statistics (-before, +after)
executable size=5297464 bin/dub
rough build time=62sFull build output |
1435836 to
6378251
Compare
6378251 to
9cb8214
Compare
9cb8214 to
32220a6
Compare
|
Could you use the new testing framework ? If you need some help setting it up let me know. I can also try to write a test myself but I won't be able to get to it until end of next week. |
Sure, happy to help ^^ I'm just kinda out of the loop, so IDK what the new testing framework is 😅 Looking in the latest commits I'm assuming that it means to add it as a unit test on the I made a branch with that workflow here master...grillo-delmal:dub:unittest_issue_2695 by adding a couple of unittest to the dependencies.d file Tell me if I got it right or if it needs some changes (like using a new file or something) and we can continue from there ;). |
Correct.
That looks good! In both cases, you might want to enforce that the right dependency is selected (
I try to group the tests by category but it's a bit arbitrary and categories will likely evolve with time. Anything related to dependency resolution was added to |
32220a6 to
628d2b5
Compare
|
Ok, updated the tests and rebased the PR over it ^^. |
This is my attempt to fix #2695
This PR changes the dependency resolver algorithm so that it marks which resulting config is going to be used after all the incompatible configs have been discarded.