Describe the bug
When devenv needs to update an input either because it was added to devenv.yaml or the devenv update command was run, the "secondary" inputs of that input are not always locked in the same way that they are in their parent input's flake.lock.
Apologies for the confusing phrasing, I don't really understand the best terminology to use here.
Revision 53a2c32bc66f5ae41a28d7a9a49d321172af621e is the current HEAD of the nixos-23.11 branch, however the referenced version of the flake.lock file in nixpkgs-python uses a different revision.
When creating a new project with nix flake init and manually adding inputs.nixpkgs-python.url = "github:cachix/nixpkgs-python"; the revision used for the nixpkgs-python.inputs.nixpkgs node in the lock file is the same as from the input's flake lock.
Additionally, if a particular revision for the "secondary" input is in the lock file when devenv update is run, it gets updated to the latest revision in the same way as when the input was originally added. When using nix flake update this does not happen.
Describe the bug When devenv needs to update an input either because it was added to
devenv.yaml
or thedevenv update
command was run, the "secondary" inputs of that input are not always locked in the same way that they are in their parent input'sflake.lock
.Apologies for the confusing phrasing, I don't really understand the best terminology to use here.
To reproduce
devenv init
devenv inputs add nixpkgs-python github:cachix/nixpkgs-python
Running the above commands at the time of filing this issue, the following is created in
devenv.lock
(full set of files):Revision
53a2c32bc66f5ae41a28d7a9a49d321172af621e
is the current HEAD of thenixos-23.11
branch, however the referenced version of theflake.lock
file in nixpkgs-python uses a different revision.When creating a new project with
nix flake init
and manually addinginputs.nixpkgs-python.url = "github:cachix/nixpkgs-python";
the revision used for thenixpkgs-python.inputs.nixpkgs
node in the lock file is the same as from the input's flake lock.Additionally, if a particular revision for the "secondary" input is in the lock file when
devenv update
is run, it gets updated to the latest revision in the same way as when the input was originally added. When usingnix flake update
this does not happen.Version
devenv 1.0.4 (x86_64-linux)