Open srid opened 5 months ago
nix build won't necessarily catch this due to the possibility of these inputs being cached.
nix build
There's no standard way to do this. But here's one trick that works:
"ref"
flake.lock
nix --refresh flake archive
Are there better approaches?
This solution however is not general enough as it applies only to VCS inputs and not to say direct URL inputs (eg: tarball).
nix build
won't necessarily catch this due to the possibility of these inputs being cached.There's no standard way to do this. But here's one trick that works:
"ref"
field (pointing to custom branch) fromflake.lock
for all our inputsnix --refresh flake archive
which should recreateflake.lock
, thus reverting our changes if successful, after refetching those branches.Are there better approaches?