Skip to content

Use Cabal 3.12 to unbreak cronjob#358

Closed
juhp wants to merge 2 commits intocommercialhaskell:masterfrom
juhp:use-Cabal-3.12
Closed

Use Cabal 3.12 to unbreak cronjob#358
juhp wants to merge 2 commits intocommercialhaskell:masterfrom
juhp:use-Cabal-3.12

Conversation

@juhp
Copy link
Member

@juhp juhp commented Jan 23, 2026

Hopefully this can fix the error we are getting on the stackage server
when importing webdriver-precore-0.2.0.1 (which uses cabal-version: 3.12) from Hackage.

For reference the error messages are:

stackage-server-cron: Unable to parse cabal file from package webdriver-precore-0.2.0.1@sha256:2c644f12cb915bd6491da97af448bb74270cdcee8260f4a39f11c7594b6153c4,7407 (from Hackage)
- 0:0: Unsupported cabal-version 3.12. See https://github.com/haskell/cabal/issues/4899.
The cabal file uses the cabal specification version 3.12, but we only support up to version 3.8.
Recommended action: upgrade your build tool (e.g., `stack upgrade`).

The 2nd line is from Cabal and last two are from pantry

@juhp
Copy link
Member Author

juhp commented Jan 23, 2026

Ah maybe i shouldn't bump to ghc-9.6.7?

$ nix eval nixpkgs/nixos-24.11#ghc.version
"9.6.6"

stackage-server-cron: Unable to parse cabal file from package webdriver-precore-0.2.0.1@sha256:2c644f12cb915bd6491da97af448bb74270cdcee8260f4a39f11c7594b6153c4,7407 (from Hackage)
- 0:0: Unsupported cabal-version 3.12. See haskell/cabal#4899.  <= error from Cabal
The cabal file uses the cabal specification version 3.12, but we only support up to version 3.8.
Recommended action: upgrade your build tool (e.g., `stack upgrade`).

The last two lines are from pantry
@juhp
Copy link
Member Author

juhp commented Jan 23, 2026

(okay reverted back to lts-22.43)

Copy link
Member

@chreekat chreekat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go ahead and merge this and fix #359 separately. Just one question.

allow-newer: true
allow-newer-deps:
- pantry
- postgresql-libpq
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did postgres need updating?

Copy link
Member Author

@juhp juhp Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version in lts-22 has an upper-bound preventing it building with Cabal-3.12. (The package version is unchanged of course.)

(I couldn't get it to link locally without pkg-config.)

@juhp
Copy link
Member Author

juhp commented Feb 6, 2026

Not sure how this appeared https://www.stackage.org/nightly-2026-02-05

@chreekat
Copy link
Member

#362 is merged. I'll deploy it next and make sure stackage is working again.

@chreekat chreekat closed this Feb 13, 2026
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.

2 participants