Skip to content

Guard PackageInfo behind cabal-version: 3.10 - #9374

Closed
andreabedini wants to merge 1 commit into
haskell:masterfrom
andreabedini:andrea/cabal-version-for-package-infos
Closed

andreabedini wants to merge 1 commit into
haskell:masterfrom
andreabedini:andrea/cabal-version-for-package-infos

Conversation

@andreabedini

@andreabedini andreabedini commented Oct 27, 2023 •

Copy link
Copy Markdown
Collaborator

This is a fix to ffa9f01 which introduced a new Cabal functionality without protecting it behind a new cabal-version, therefore breaking forward compatibility.

I am marking this as a draft because I have just emulated other checks without knowing how it works. That said, the example in #9331 (comment) gets be rejected.

TODOs:

Note: This adds the constructor CabalSpecV3_10 to CabalSpecVersion and is therefore a breaking change to Cabal-syntax.

Closes: #9331

This is a fix to ffa9f01 which
introduced a new Cabal functionality without protecting it behind a new
cabal-version, therefore breaking forward compatibility.
@andreabedini

Copy link
Copy Markdown
Collaborator Author

Also to discuss is how to release this. As noted above it's a breaking change to Cabal-syntax. So we cannot really release it as a patch release.

@fgaz

fgaz commented Oct 27, 2023 •

Copy link
Copy Markdown
Member

I think the only way is to disable the new functionality unconditionally in a patch release, then enable it conditionally in the next major release (so on cabal-version >= 3.11, not 3.10)

edit: let's discuss in #9331

@gbaz

gbaz commented Nov 15, 2023

Copy link
Copy Markdown
Collaborator

doesn't it make sense to keep the other check too?

@andreabedini

Copy link
Copy Markdown
Collaborator Author

AFAIK this was resolved in other PRs.

@andreabedini
andreabedini deleted the andrea/cabal-version-for-package-infos branch June 3, 2025 07:34
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.

PackageInfo functionality is not guarded behind cabal-version.

3 participants