-
Notifications
You must be signed in to change notification settings - Fork 701
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 no longer supports package version tags #890
Comments
(Imported comment by @dcoutts on 2011-11-20) Package version tags are no longer supported. We should make this explicit and fail up front with a better error message. |
I just ran into this. Very confusing, since I'd never heard of Cabal tags. I added a version to the version number documentation: http://www.haskell.org/haskellwiki/Package_versioning_policy#Warning.21. If the solution is to not support tags on the front end, then the fix is simple: just edit
and remove support for parsing tags (source). |
Ran into an obscure Cabal but along the way: haskell/cabal#890
We still don't warn if there is a tag in the version number. |
At least hackage should reject packages using version tags. |
I feel like doing a bit of archeology today. The issue described seems to have been fixed, cabal/cabal-install 2.2 give a warning about version tags and do not crash:
The version tag appears to be completely ignored. I suppose that is good enough or do we need to abort when encountering version tags? |
Related: I get "version with tags" warnings if I have something that looks like a tag in the |
Have you bumped `cabal-version` to 2.2 or 2.4 in cabal file? SPDX identifiers syppoeted only then. Before licenses are parsed roughly as package names,`GPL-3-or-later` is GPL version 3 with tags `[“or”, “later”]`. Note: valid SPDX identifier is `GPL-3.0-or-later`: 3.0, not 3.
…Sent from my iPhone
On 2 Dec 2019, at 10.12, endgame ***@***.***> wrote:
Related: I get "version with tags" warnings if I have something that looks like a tag in the license: version (like GPL-3-or-later), even if I don't have tags in the version number.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I had not, but that fixed my issue. Thank you. |
(Imported from Trac #900, reported by guest on 2011-11-20)
The following cabal file below triggers an assertion fail on the second install:
Only when I unregister the installed package via ghc-pkg unregister foobar I can configure the package again...The cabal file causing this behaviour:
The FooBar module is just a dummy empty module. This used to work previously, e.g. withThe text was updated successfully, but these errors were encountered: