-
Notifications
You must be signed in to change notification settings - Fork 710
Add a format rejections function #9560
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
d82b2df
Format solver rejections
philderbeast 7f6bd1c
Add a faux pandoc package (for conflicts)
philderbeast 4743d21
Rerun test with shorter output
philderbeast 5e5adfa
Move formatRejections top level and doctest
philderbeast be71421
Add ProgressAction
philderbeast 00711b3
ProgressAction taking showQFNBool and showQSNBool
philderbeast 8e3f600
Don't pass strings to abbreviatePkgVers
philderbeast ccc8457
Rename to abbreviateOptions
philderbeast 36e3b18
Abbreviate to versions
philderbeast 7a22768
Switch to using the I and V to match other naming
philderbeast a760817
Add haddocks to tryVs and showIsOrVs
philderbeast 2e2d7c9
Add mixed tests
philderbeast dcc8568
Simplify versions for doctests
philderbeast 8a91a64
Remove PackageTests/ShortRejections
philderbeast c9ee431
Update expectations of cabal-install:unit-tests
philderbeast a4e70f5
Don't use show instance for showing ProgressAction
philderbeast 6eb24c3
Let intercalate check for singleton lists
philderbeast b20f1a9
Don't reverse list in showIsOrVs
philderbeast 8897ff6
Use blurb for showing a progress action
philderbeast 6c34eb6
Add blurbOption
philderbeast 8b27270
Change wording to "linked or installed"
philderbeast 5e3dace
Change foo to foo-bar, a hyphenated package name
philderbeast b15a515
Add skipping abbreviation unit tests
philderbeast a474965
Add skipping installed tests
philderbeast 5bceb40
Add cabal-install-solver to doctest target
philderbeast 18bc485
Satisfy fourmolu.
philderbeast f80bb15
Add /installed-x.y.z to expectations in unit tests
philderbeast File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
synopsis: Shorten solver rejection messages by removing repetition | ||
packages: cabal-install-solver | ||
prs: #9560 | ||
issues: #9559 #4251 | ||
|
||
description: { | ||
|
||
As before, we show a single rejection as hyphenated package-version. | ||
|
||
For multiple rejections, we show a list of versions preceded by package | ||
semicolon, a much shorter rendering of the same information. | ||
|
||
```diff | ||
- [__0] rejecting: pandoc-3.1.8, pandoc-3.1.7, pandoc-3.1.6.2, pandoc-3.1.6.1, | ||
- pandoc-3.1.6, pandoc-3.1.5, pandoc-3.1.4, pandoc-3.1.3, pandoc-3.1.2, | ||
- pandoc-3.1.1, pandoc-3.1, pandoc-3.0.1, pandoc-3.0, pandoc-2.19.2, | ||
- pandoc-2.19.1, pandoc-2.19, pandoc-2.18, pandoc-2.17.1.1, pandoc-2.17.1, | ||
+ [__0] rejecting: pandoc; 3.1.8, 3.1.7, 3.1.6.2, 3.1.6.1, 3.1.6, 3.1.5, 3.1.4, | ||
+ 3.1.3, 3.1.2, 3.1.1, 3.1, 3.0.1, 3.0, 2.19.2, 2.19.1, 2.19, 2.18, 2.17.1.1, | ||
``` | ||
|
||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.