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

Non-existent ghc-boot-9.8.2 package referenced in stackage nightly nix file #2187

Closed
tysonzero opened this issue Apr 26, 2024 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@tysonzero
Copy link

tysonzero commented Apr 26, 2024

hackage."ghc-boot"."9.8.2" referenced in nightly-2024-04-24.nix even though it doesn't exist in hackage.nix:

       error: attribute '"9.8.2"' missing
       at /nix/store/bfvx0a76dj5vvbr9f61f5k77m2qs733h-source/nightly-2024-04-24.nix:1197:29:
         1196|       "persistent-postgresql".revision = hackage."persistent-postgresql"."2.13.6.1".revisions."e72a2be447c8bf6f0e78c375df5dfe247855685b0cc6f31ac9888961636568ff";
         1197|       "ghc-boot".revision = hackage."ghc-boot"."9.8.2".revisions.default;
             |                             ^
         1198|       "apecs".revision = hackage."apecs"."0.9.6".revisions."983fe81336e2a3229c55de174f43c32d6b74a17f7fee6fbe2554bebffcd2d332";
       Did you mean one of 9.2.2, 9.8.1, 8.0.2, 8.2.2 or 8.4.2?
@tysonzero tysonzero added the bug Something isn't working label Apr 26, 2024
@hamishmack
Copy link
Collaborator

Is this a new issue?
What should I run to reproduce this?

@tysonzero
Copy link
Author

I'm not sure how long this has been an issue, I was setting up a new project from scratch and not upgrading an existing one.

In hindsight I should have kept better track of the reproducing conditions, I assumed the misalignment between hackage.nix and stackage.nix would be a clear enough error to not worry too much about that.

I think it may have first popped up when trying to build miso with js backend and it failed on a dep?

@hamishmack
Copy link
Collaborator

ghc-boot 9.8.2 is not in hackage. I think the problem is that we leave it out of overlays/ghc-packages.nix for isGhcjs. I can't remember why that was, but the JS backend does need it and I saw this issue when getting #2199 working.

That PR included a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants