Open dudicoco opened 1 year ago
Hey @dudicoco, thanks for reporting this issue.
Since pinning a nixpkg
commit also pins all of the package's build dependencies, it is not necessary to list the transitive dependencies for reproducibility. As long as the same commit is used, all the package versions used in the derivation should be the same.
Is there a reason or usecase why you want to list the transitive dependencies in the lockfile?
Thanks for the info @Lagoja.
So how does one specify different dependencies than the ones in the same commit?
For example, if I specify a python version in devbox.json
, the pre-commit package would still use the python version from its commit. How can we enforce it to use a different python version, or not install that dependency at all?
Hi @Lagoja, any updates on this issue?
Current Behavior (bug) A nix package could install transitive dependencies, for example the pre-commit package installs all of these dependencies: https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/tools/misc/pre-commit/default.nix#L1-L15 These transitive dependencies do not appear in the lock file.
Expected Behavior (fix) The transitive dependencies with their versions should appear in the lock file.
Additional context Please include the output of
devbox version -v
and a copy of yourdevbox.json
file.