Only consider version constraints with --reject-unconstrained-dependencies - #12191
Conversation
0f6a94b to
34cb954
Compare
77e147b to
94893f6
Compare
6e0fb8f to
a5e4567
Compare
610ec30 to
28e5432
Compare
28e5432 to
644169e
Compare
51b9ec2 to
7625f98
Compare
|
I don't know how, but I missed a couple of failing tests. I've fixed the test expectations now without changing the implementation:
, -- reject-unconstrained-dependencies=all requires all non-goals to be
-- version constrained. Goals don't need constraints and flag constraints
-- are not enough.After the test update: Beforehand: |
42a701b to
5871a8d
Compare
- Add test for mistaking flag for version - Add tests for -any and -none - Add doctests to isNoVersion && isSpecificVersion - Update tests for rejecting -none and <0 - Reject -none and <0 as version constrained - Add =all and shorten the failure message - Minor correction of haddock rendering - Add more reject-unconstrained unit tests - Add a stanza constraint too - Split tests into two groups - Literal rejections - Update RequireExplicit/MultiPkg test
5871a8d to
4c63e7a
Compare
Merge Queue Status
This pull request spent 1 hour 54 minutes 9 seconds in the queue, including 1 hour 42 minutes 52 seconds running CI. Required conditions to merge
|
Fixes #12190.
I'll squash commits before applying the merge label if this pull request is approved.
Manual QA Notes
Compare running the included package test with the version of
cabal-install:exe:cabalfrom this branch and with a released version, such ascabal-3.16.1.0.Run the test locally manually, it should pass.
Run the test with a released version of cabal and it should fail:
Modify the test so that it will succeed for versions of cabal without this fix.
Tip
You may need to delete the named tests too that were added (appended) after these instructions.
Run the test with a released version of cabal and observe the change in output:
The change of output:
Template Α: This PR modifies behaviour or interface
Include the following checklist in your PR:
significance: significantin the changelog file.