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

Binary cache not getting hit and GHC keeps building? #2236

Open
ovitus opened this issue Aug 3, 2024 · 3 comments
Open

Binary cache not getting hit and GHC keeps building? #2236

ovitus opened this issue Aug 3, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@ovitus
Copy link

ovitus commented Aug 3, 2024

  • 86_64-linux
  • GHC 9.4.8
  • Haskell.nix commit 12913ad

My configuration flake contains:
nix.settings.substituters = [ "https://cache.iog.io" ];
nix.settings.trusted-public-keys = [ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" ];

The Haskell flake:
nixConfig = {
extra-substituters = ["https://cache.iog.io"];
extra-trusted-public-keys = ["hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="];
allow-import-from-derivation = "true";
};
}

And yet when I run "nix develop" it goes through the lengthy process of building ghc-9.4.8 from scratch. The binary cache doesn't seem to be getting hit.

@ovitus ovitus added the bug Something isn't working label Aug 3, 2024
@chreekat
Copy link
Contributor

chreekat commented Sep 3, 2024

I just tried following https://input-output-hk.github.io/haskell.nix/tutorials/getting-started-flakes.html#using-flake-init-and-nix and ran into the same problem.

$ nix build .#hello:exe:hello
trace: WARNING: 9.2.6 is out of date, consider using upgrading to 9.2.8.
trace: WARNING: 9.2.6 is out of date, consider using upgrading to 9.2.8.
trace: WARNING: 9.2.6 is out of date, consider using upgrading to 9.2.8.
trace: WARNING: 9.2.6 is out of date, consider using upgrading to 9.2.8.
trace: WARNING: 9.2.6 is out of date, consider using upgrading to 9.2.8.
[1/3/6 built, 0.0 MiB DL] building ghc-9.2.6 (configurePhase): checking for float... yes

Also, why is it picking 9.2.6? (Edit: I guess it could be that it wants to bootstrap the whole chain, and 9.2.6 is the first one missing in the cache.)

Copy link

stale bot commented Jan 1, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 1, 2025
@chreekat
Copy link
Contributor

chreekat commented Jan 7, 2025

If https://input-output-hk.github.io/haskell.nix/reference/supported-ghc-versions.html is to be believed, the last supported version of GHC is 9.2.2. I don't know if that's true or not.

@stale stale bot removed the wontfix label Jan 7, 2025
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