Skip to content

Stop parsing tags as a part of Version (x.y.z-tag) - #12188

Draft
Bodigrim wants to merge 1 commit into
masterfrom
no-version-tags
Draft

Stop parsing tags as a part of Version (x.y.z-tag)#12188
Bodigrim wants to merge 1 commit into
masterfrom
no-version-tags

Conversation

@Bodigrim

@Bodigrim Bodigrim commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Resolves #890.

Currently we allow tags to be a part of package version, as in x.y.z-tag. Once parsed, we emit a warning that a version contains a tag and throw the tag away, it's not stored or used for anything. For many years (since 2018, I think) this was meant to give potential users of tags a heads up that the feature will be eventually removed - and now it's time to remove it.

Hackage refuses to upload packages with tags in versions, so there is no historical debt.


Template Α: This PR modifies behaviour or interface

@Bodigrim
Bodigrim force-pushed the no-version-tags branch 3 times, most recently from 81e9a58 to 1fa8762 Compare July 31, 2026 19:09
@Bodigrim
Bodigrim marked this pull request as draft July 31, 2026 22:05
Resolves #890.

Currently we allow tags to be a part of package version, as in `x.y.z-tag`.
Once parsed, we emit a warning that a version contains a tag and throw
the tag away, it's not stored or used for anything.
For many years (since 2018, I think) this was meant to give potential
users of tags a heads up that the feature will be eventually removed -
and now it's time to remove it.

Hackage refuses to upload packages with tags in versions, so there is no
historical debt.

Note that `Distribution.Types.Version` is to represent versions of Cabal packages,
distinct from `Distribution.Types.PkgconfigVersion` (versions of external programs
from pkg-config database) and `base:Data.Version` (version of GHC).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cabal no longer supports package version tags

1 participant