You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
crane's flake.nix uses an IFD in the form of he inputFromLock function, with this import. This causes nix flake check to fail in some instances, if the check happens without this derivation having been built.
This causes any flake depending on crane to fail flake checks as well.
In my case I'm hitting this because I want to run nix flake check in the CI of my homelab flake that contains multiple nixosConfigurations. I don't want to build all these configurations when I'm just running CI, that would be a ton of compute for each change, so I'm running with --no-build (I also need this as I have machines with various architectures, but my CI runners can't build for all these archs). I use https://github.com/nix-community/lanzaboote which depends on crane, and so my nix flake checks are failing.
I don't understand the Rust ecosystem well enough, but it seems this pattern is only used to import a specific version of rust-overlay. Couid this instead be done without an IFD, by depending on it as a regular flake input?
This is actually running all of crane's test suite; to my understanding, flake checks are never run for dependencies (or even transitive dependencies), so even if the location you linked is triggering IFD, I'm not entirely certain why that would be triggered in your flake.
Could you provide a(n ideally minimal) reproduction of your flake that I can test with?
Describe the bug
crane's
flake.nix
uses an IFD in the form of heinputFromLock
function, with this import. This causesnix flake check
to fail in some instances, if the check happens without this derivation having been built.This causes any flake depending on crane to fail flake checks as well.
In my case I'm hitting this because I want to run
nix flake check
in the CI of my homelab flake that contains multiple nixosConfigurations. I don't want to build all these configurations when I'm just running CI, that would be a ton of compute for each change, so I'm running with--no-build
(I also need this as I have machines with various architectures, but my CI runners can't build for all these archs). I use https://github.com/nix-community/lanzaboote which depends on crane, and so mynix flake checks
are failing.I don't understand the Rust ecosystem well enough, but it seems this pattern is only used to import a specific version of
rust-overlay
. Couid this instead be done without an IFD, by depending on it as a regular flake input?Reproduction
The text was updated successfully, but these errors were encountered: