Repository navigation
feat(prune-lock) Add flake-file.prune-lock.enable option. - #15
Merged
Merged
Conversation
This allows processing the flake.lock file opt-in. It is also generic and does not depend on allfollow. But we provide an allfollow flakeModule and also included by default on dendritic.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces an opt-in prune-lock feature to prune or flatten flake.lock files and adds a standalone allfollow module for automatic flake.lock flattening.
- Added a
flake-file.prune-lockoption (enable + command) and wired it into thewrite-flakeworkflow. - Introduced a new
allfollowmodule and enabled it by default in thedendriticsetup. - Removed legacy
devshellandrust-overlayinputs from templates and updated the README with documentation for the new features.
Reviewed Changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| templates/dendritic/flake.nix | Removed devshell & rust-overlay inputs |
| modules/write-flake.nix | Added prune-lock shell application and replaced allfollow-run |
| modules/options.nix | Defined prune-lock submodule option (enable + command) |
| modules/dendritic/devshell.nix | Deleted unused devshell module |
| modules/dendritic.nix | Removed devshell import |
| modules/default.nix | Registered allfollow module under flakeModules |
| modules/allfollow.nix | Simplified to a module adding the allfollow input + default prune-lock settings |
| dev/flake.nix | Removed rust-overlay input block |
| README.md | Documented prune-lock and allfollow modules |
Comments suppressed due to low confidence (2)
modules/write-flake.nix:102
- Removing
nativeBuildInputsfrom theflake-formattedderivation meansnixfmt-rfc-styleis no longer available for formatting, which will likely break the format step. Consider restoring or adjusting build inputs so the formatter is present.
];
modules/allfollow.nix:6
- The
pkgsargument is not defined in the module header, yet it's referenced inside the command string (and so ispkgs.system). You should addpkgs(and possiblysystem) to the function parameters: e.g.{ lib, inputs, pkgs, ... }:.
pkgs: "${pkgs.lib.getExe inputs.allfollow.packages.${pkgs.system}.default} prune --pretty -o -";
Contributor
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This allows processing the flake.lock file opt-in.
It is also generic and does not depend on allfollow.
But we provide an allfollow flakeModule and also included by default on dendritic.
Fixes #14