Skip to content

Improve bad cabal-version error message - #9754

Merged
mergify[bot] merged 2 commits into
haskell:masterfrom
tbidne:improve-4899-error-msg
Mar 3, 2024
Merged

mergify[bot] merged 2 commits into
haskell:masterfrom
tbidne:improve-4899-error-msg

Conversation

@tbidne

@tbidne tbidne commented Feb 28, 2024 •

Copy link
Copy Markdown
Contributor

I took a stab at improving the error message one receives for a bad cabal-version field, per the discussion here.

Example message:

Errors encountered when parsing cabal file ./records.cabal:

records.cabal:0:0: error:
Unsupported cabal format version in cabal-version field: 3.10.
Current cabal-version values are listed at https://cabal.readthedocs.io/en/stable/file-format-changelog.html.

Template Α: This PR modifies cabal behaviour

Include the following checklist in your PR:

  • Patches conform to the coding conventions.
  • Any changes that could be relevant to users have been recorded in the changelog.
  • The documentation has been updated, if necessary.
  • Manual QA notes have been included.
  • Tests have been added. (Ask for help if you don’t know how to write them! Ask for an exemption if tests are too complex for too little coverage!)

@tbidne
tbidne force-pushed the improve-4899-error-msg branch from fb661a1 to 4ef7d8c Compare February 28, 2024 23:02
@tbidne
tbidne force-pushed the improve-4899-error-msg branch from 4ef7d8c to 8fd228e Compare February 29, 2024 21:16
@fgaz fgaz added the squash+merge me Tell Mergify Bot to squash-merge label Mar 1, 2024
@mergify mergify Bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Mar 3, 2024
@mergify
mergify Bot merged commit b48a620 into haskell:master Mar 3, 2024
@tbidne
tbidne deleted the improve-4899-error-msg branch April 16, 2024 22:19
erikd pushed a commit to erikd/cabal that referenced this pull request Apr 22, 2024
See: haskell#4899

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
@Kleidukos

Copy link
Copy Markdown
Member

@Mergifyio backport 3.12

@mergify

mergify Bot commented May 16, 2024 •

Copy link
Copy Markdown
Contributor

backport 3.12

✅ Backports have been created

Details

mergify Bot added a commit that referenced this pull request May 16, 2024
See: #4899

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit b48a620)
Mikolaj pushed a commit that referenced this pull request May 21, 2024
See: #4899

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit b48a620)
mergify Bot added a commit that referenced this pull request May 22, 2024
Improve bad cabal-version error message (backport #9754)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

attention: needs-backport 3.10 merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days squash+merge me Tell Mergify Bot to squash-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants