-
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
cabal check requires absolute cabal-version numbers #5108
Comments
Concretely:
|
But if my user has Cabal version 1.10, and I write |
@ndmitchell the warning is only when
To my understanding, no, Also note: that that for
Only with
and with 2.2 already the parser rejects the file:
We should document 1) cabal-spec evolution better 2) document cabal checks and 2+ refer from check messages to the documentation, but these are different issues. |
So users using older versions of Cabal are going to get a poor experience? Why not allow "the field value is not a range" - it really really is! If I say cabal-version: 1.18 that doesn't tie me to cabal-version 1.18, it allows me to use all versions higher. If I say base-0.4.5 that doesn't implicitly mean base >= 0.4.5... I understand it's not allowed to be a range other than an open ended range, but it is definitely describing a range. |
Cabal-name-ambiguity hits again. In We do write So it's not a range. It's a single version of the Cabal spec, "Cabal the declarative build specification language", if you will. Cabal-the-libs can interpret many different specs http://cabal.readthedocs.io/en/latest/developing-packages.html#pkg-field-cabal-version says
|
Something I just stumbled upon, http://cabal.readthedocs.io/en/latest/developing-packages.html#pkg-field-cabal-version still says
at the top. |
See #5108. We want `>=` to not be used anymore.
@phadej Am I correct in assuming that the wording of the warning message should similarly not name it a version range? ("Packages relying on Cabal 1.12 or later should specify a version range of the form 'cabal-version: x.y'." -> "Packages relying on Cabal 1.12 or later should specify a specific Cabal-spec version of the form 'cabal-version: x.y'.") |
@lspitzner yes, you're correct :-) |
Fix warning message for `cabal-version` field (see #5108)
The only reason for this update is to quiet a Cabal (or cabal-the-library) warning about syntax. See haskell/cabal#5108 for more details. Note that version 0.1.0.2 was not released on Hackage.
I've just run into this as well. Definitely the warning message can be improved to be more clear. Happy to send over a pull request. |
Otherwise, when uploading a new version on Hackage results into a warning: Packages relying on Cabal 1.12 or later should specify a version range of the form 'cabal-version: x.y'. Use 'cabal-version: 1.24'. See also: - cabal check requires absolute cabal-version numbers haskell/cabal#5108
Otherwise, when uploading a new version on Hackage results into a warning: Packages relying on Cabal 1.12 or later should specify a version range of the form 'cabal-version: x.y'. Use 'cabal-version: 1.24'. See also: - cabal check requires absolute cabal-version numbers: haskell/cabal#5108
@moodmosaic please do! if you start a PR we can get the rewording process in motion and it'll certainly accelerate things While at it, you might also want to review the wording in the user's guide, e.g. at |
@hvr, thank you. I'll send a PR over the next few days. |
@hvr, it looks like it's already fixed by @lspitzner in 6f778e5, which is great. |
Cabal HEAD recently started warning on
cabal check
forcabal-version: >= 1.18
. Why? It seems requiring people to break the version checking code on old Cabal versions is a bad idea...The text was updated successfully, but these errors were encountered: