edolstra / flake-compat

MIT License
254 stars 71 forks source link

Updating input ref doesn't invalidate lockfile #10

Open andir opened 4 years ago

andir commented 4 years ago

Whenever I update an input in a flake.nix without actually updating the flake.lock the compat expression uses the input as specified in the lockfile. I think for consistency reasons it should fail during eval. Otherwise this might lead to an inconsistent state as users might forget to update the lockfile while the build succeeds.