Currently, the nix lock files (for crate2nix and for the packages via niv) are only updated when one of the Nix users runs:
make regenerate-nix, and
niv update
This means that dependencies in Cargo.lock and Cargo.nix might be at different versions.
To resolve this, we can:
- Add the update commands to the pre-commit hooks, and/or
- Run the commands in CI and check for changes
Optionally, perhaps make regenerate-nix could also do the niv update so there is one command.
Currently, the nix lock files (for crate2nix and for the packages via
niv) are only updated when one of the Nix users runs:make regenerate-nix, andniv updateThis means that dependencies in Cargo.lock and Cargo.nix might be at different versions.
To resolve this, we can:
Optionally, perhaps
make regenerate-nixcould also do theniv updateso there is one command.