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 using inputs.*.follows, the input's lockfile in the nix store still has the old locked version.
This means that if you set .follows on an input and then add that to the registry with nix.registry.myregistryentry.flake = my-input in a nixos configuration it will not have the updated input.
The same applies for adding it to the nixPath with nix.nixPath = [ "mychannel=${my-input}" ]; or if the flake reads its own lock file for any other reason.
When follows is used, a new copy of the flake could be created (I assume it can be hardlinked so this doesn't waste space?) in the nix store with its lockfile updated to match the follows.
Describe the bug
When using
inputs.*.follows
, the input's lockfile in the nix store still has the old locked version.This means that if you set .follows on an input and then add that to the registry with
nix.registry.myregistryentry.flake = my-input
in a nixos configuration it will not have the updated input.The same applies for adding it to the
nixPath
withnix.nixPath = [ "mychannel=${my-input}" ];
or if the flake reads its own lock file for any other reason.Steps To Reproduce
Here is a flake which uses nixpkgs as an input:
https://github.com/LunNova/nixos-configs/tree/nixpkgs-unfree-test
Use this flake as your own input and make its nixpkgs input follow a different revision:
Expected behavior
When follows is used, a new copy of the flake could be created (I assume it can be hardlinked so this doesn't waste space?) in the nix store with its lockfile updated to match the follows.
nix-env --version
outputTested with stable and unstable.
Workaround
I was able to work around this for my particular case by creating a new flake from a template and substituting the hashes, rather than using the follows mechanism.
The text was updated successfully, but these errors were encountered: