-
Notifications
You must be signed in to change notification settings - Fork 697
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 freeze
fails with some GHC versions due to missing Distribution.Compat.Typeable
#10500
Comments
I'm running into the same problem with the same |
Thanks for the report and independent reproduction! Could you check if cabal-3.10 suffers the same? |
I tried cabal-install-3.10.1.0 and cabal-install-3.10.3.0 with ghc-9.2.1, but had the same error. |
I was seeing this same issue the last few weeks, but only on my aarch64-linux NixOS machines (a VPS and a nix-on-droid install). A number of similarly configured x86 machines are fine on the same versions of GHC / Cabal / surrounding machinery (the config is identical from machine to machine, only nixpkgs itself changes). GHC 9.8.1 I figured it out in my case while typing this: I had the following in my
I'd added this to most of my projects so I could use multi-repl as soon as it dropped. Removing this on cabal 3.12.1.0 fixed things for me. |
Thanks for valuable input. I think When I got the error, my cabal.project had When I removed the |
I used cabal-install-3.12.1.0, and found a problem in
cabal freeze
.To reproduce
ghc-9.2.1
andcabal-install-3.12.1.0
by ghcup.allow-newer: all
)cabal freeze
.Then I got the following error.
It looked like cabal tried to evaluate metadata of Cabal-3.12.1.0 with Cabal-syntax-3.14.0.0 in mind, and complained that
Distribution.Compat.Typeable
was missing.See also: One of my GitHub CI runs
System information
I used Xubuntu Linux 22.04 64-bit.
Affected GHC versions
According to my experiments, the following GHC versions had this bug.
The following GHC versions didn't have this bug.
Struggle
I tried running
cabal freeze -c 'Cabal==3.12.0.0' -c 'Cabal-syntax==3.12.0.0'
with ghc-9.2.1, but it had the same issue.I also tried writing the equivalent
constraints
stanza incabal.project.local
orcabal.project.freeze
, but it had the same issue.Any ideas? Is there any way to run
cabal freeze
with ghc-9.2.1?The text was updated successfully, but these errors were encountered: