Skip to content
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

curator does not find ghc-x.y.z #37

Open
andreasabel opened this issue Dec 14, 2023 · 4 comments
Open

curator does not find ghc-x.y.z #37

andreasabel opened this issue Dec 14, 2023 · 4 comments

Comments

@andreasabel
Copy link
Contributor

curator: Can't get proper GHC version: The program 'ghc' version ==9.6.3 is required but the version found at /usr/local/bin/ghc is version 9.8.1

Would be great if curator would also look for ghc-9.6.3 (maybe even first!), not just for ghc.

@juhp
Copy link
Collaborator

juhp commented Dec 26, 2023

I had a quick look - you are not wrong - however curator uses Cabal to determine the programDb and ghc/version in particular. So implementing this would be a little tedious.

How do you hit that error btw? - eg my /usr/bin/ghc is 9.4.5 but I can run some curator commands/scripts locally okay.

@juhp
Copy link
Collaborator

juhp commented Dec 26, 2023

Or you can try running stack --resolver ghc-$GHCVER exec curator check-snapshot etc

@juhp
Copy link
Collaborator

juhp commented Dec 26, 2023

Hmm, erm, okay I run into exactly this when I try upgrading nightly locally to 9.8.1 and run ./check 😢

Ah after running Fedora's stack-symlink-distro-ghc 9.8.1 [1] (equivalently stack setup 9.8.1) it works for me: so yeah I think the answer is basically stack.

[1] https://src.fedoraproject.org/rpms/haskell-platform/blob/rawhide/f/stack-symlink-distro-ghc

@andreasabel
Copy link
Contributor Author

I run into exactly this

I would guess you ran into the symmetric case (curator wanting 9.8.1 and your system being on something lower...).

cabal has the --with-compiler option (short -w), but I do not know how deep this is implemented, whether it has some representation in Cabal-the-library.

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

No branches or pull requests

2 participants