github: automatically update flake.lock every week #2458
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary: Keeping the flake.lock up to date and 'fresh' is nice for all the same reasons that apply to things like Cargo, Poetry, etc.
Unfortunately, dependabot doesn't have support for Nix flakes. There is also no mechanism to add 'out of band' updates through dependabot, at least not yet. Instead, we use the
update-flake-lock
action from Determinate Systems, which can paper over it for us.This updates once a week on Sunday, which is pretty fine, I think.
A theoretical downside of this approach is that we can't group updates together like dependabot does; but dependabot only groups 'related' updates together, i.e. updates to Cargo dependencies. If it also detected updates for e.g. Poetry or Nix, it would make separate PRs for those.
Change-Id: I6f447deffc545da77fb320519abcf437