-
Notifications
You must be signed in to change notification settings - Fork 697
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
Add check for upper bound on any dependency in cabal check #8339
Closed
jappeace
wants to merge
12
commits into
haskell:master
from
SupercedeTech:add-upper-bound-check-to-all
Closed
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
fb30717
Add check for upper bound on any package
jappeace ea851dc
wait what?
jappeace 755470f
move toDependencyVersionsMap to utils section
jappeace b8a9ad3
add nicer error message
jappeace 969743a
simplify checking logic, add more comments
jappeace 4925aa7
only emit missing upper bounds if bigger then one
jappeace d267e42
don't add bound to internal libraries
jappeace 032172a
filter out self from the dependency map
jappeace a4e67ee
I think this is an external library so it needs an upper bound now?
jappeace d19f1ca
add test for multilib
jappeace d408e91
fix test suite by ignoring the warning
jappeace 08bf672
Merge branch 'master' into add-upper-bound-check-to-all
jappeace 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 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 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
14 changes: 14 additions & 0 deletions
14
Cabal-tests/tests/ParserTests/regressions/public-multilib-3.cabal
This file contains 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,14 @@ | ||
cabal-version: 3.0 | ||
name: public-multilib3 | ||
version: 0 | ||
synopsis: public-multilibs | ||
category: Tests | ||
license: MIT | ||
|
||
library | ||
default-language: Haskell2010 | ||
build-depends: | ||
, base ^>=4.14 | ||
, somelib | ||
|
||
exposed-modules: Foo |
3 changes: 3 additions & 0 deletions
3
Cabal-tests/tests/ParserTests/regressions/public-multilib-3.check
This file contains 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,3 @@ | ||
No 'maintainer' field. | ||
No 'description' field. | ||
These packages miss upper bounds 'somelib' please add them with with `cabal gen-bounds`. For more information see: https://www.parsonsmatt.org/2020/05/07/on_pvp_restrictive_bounds.html |
This file contains 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 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,4 @@ | ||
synopsis: Add check for upper bound on any dependency in cabal check | ||
report, list, init, fetch, info, upload, get. | ||
prs: #8339 | ||
issues: #8291 |
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.
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'm uncertain what this syntax
somelib:internal
means, I assumedsomelib
is a dependency.There appears no docs on this syntax (note that this is the other multilib failing now, not mulitlib 1, which I fixed).
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 somelib is a dep, internal is its component.