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
When a flake input is locked at flake = false, removing the flake = false setting from the flake.nix does not cause Nix to update the flake lock nor fetch the flake's inputs.
Steps To Reproduce
Given flake.nix:
{description="A very basic flake";inputs={iohk-nix={url="github:input-output-hk/iohk-nix";flake=false;};};outputs={self,nixpkgs}: {packages.x86_64-linux.hello=nixpkgs.legacyPackages.x86_64-linux.hello;packages.x86_64-linux.default=self.packages.x86_64-linux.hello;};}
This seems to also impact recursive updates: If A depends on B, and B has a flake = false dependency on C, then I update B to have a flake = true dependency on C, then updating A's dependency on B requires removing and re-adding B (Otherwise I get an error like "input 'iogx/iohk-nix' has an override for a non-existent input 'nixpkgs'")
Describe the bug
When a flake input is locked at
flake = false
, removing theflake = false
setting from theflake.nix
does not cause Nix to update the flake lock nor fetch the flake's inputs.Steps To Reproduce
Given
flake.nix
:flake.lock:
flake = false
linenix flake lock
Expected behavior
A
flake.lock
like (this one obtained by removing the entry, locking, then adding the entry and locking):nix --version
outputAdditional context
Add any other context about the problem here.
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: