Repository navigation
fix(templates): make the default and minimal starters evaluate - #58
Merged
Merged
Conversation
The starter configs are rendered verbatim from option `example` values by
generate-template-configs, and two of those examples are not valid in a
fresh project. Every project created with `nix flake init -t #default` or
`#minimal` therefore failed to evaluate.
- stackpanel.devshell.packages is `listOf package`. It has never accepted
package names (name resolution belongs to the top-level
stackpanel.packages), but its example listed "git", "ripgrep" and
"nodePackages.typescript", so the devshell failed with the option
receiving the string "git". nodePackages has also been removed from
nixpkgs, so the example now uses pkgs.git, pkgs.ripgrep and
pkgs.typescript.
- The stackpanel.flakeApps example ran "${pkgs.web}/bin/web". There is no
pkgs.web, so once the devshell evaluated, `nix flake check` still failed
on apps.web. The example now runs pkgs.hello, matching the program
option's own example.
The examples are fixed at the source, and the same edit is applied to the
checked-in templates and the CLI's embedded copies so the next regeneration
does not reintroduce the breakage.
Refs: stackpanel-thq.20
cooper (czxtm)
had a problem deploying
to
docs-preview
September 23, 2026 13:19 — with
GitHub Actions
Failure
Contributor
|
Preview |
Contributor
|
Docs preview |
This branch had an error being deployed
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.
The
defaultandminimalflake templates failed to evaluate, so every project created from them was broken. The template configs copy option examples verbatim, and two of those examples were invalid:stackpanel.devshell.packagesexample used name strings ("git","ripgrep","nodePackages.typescript"), but the option islistOf package, andnodePackagesis also gone from nixpkgs. It now usespkgs.git,pkgs.ripgrepandpkgs.typescript.flakeAppsexample referenced a nonexistentpkgs.web. It now usespkgs.hello.Both examples are fixed at their source (
core/options/devshell.nix,outputs.nix). The same change is mirrored into both templates and both embedded Go copies, so the next regeneration doesn't reintroduce the breakage.Verification by the implementer:
defaultandminimalpassnix flake check --no-build, and so does the repo.tests/test-init-equivalence.shpasses.go buildpasses.go testfails only tests that already fail on main.Refs stackpanel-thq.20