You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: fresh scaffold commit fails check-added-large-files on .devcontainer/CHANGELOG.md #1801
A new devcontainer/both-mode consumer's first scaffold commit fails check-added-large-files: the scaffold copies devkit's CHANGELOG.md to .devcontainer/CHANGELOG.md, and that file is now over the hook's 500 KB default (514,976 bytes at 1.17.0; 528,063 on dev). Found while building the #1762 consumer matrix.
Steps to Reproduce
Render a fresh workspace with init-workspace.sh --no-prompts --mode both.
git init && git add -A, then prek run (staged files, as a first git commit does).
Expected Behavior
A fresh scaffold commits cleanly with its own hooks.
devkit 1.17.0 (the file crossed 500 KB with the 1.17.0 changelog); grows every release.
Additional Context
Existing consumers are unaffected (the hook checks only added files; upgrades modify it). Devkit's own root CHANGELOG.md is likewise only ever modified.
Possible Solution
Exclude ^\.devcontainer/CHANGELOG\.md$ from check-added-large-files in the scaffold hook definition (nix/hooks.nix is the SSoT for the rendered config). A preserved consumer config does not need a fold: the file is already added there.
Fixed by #1805 (merged to dev, ships with the next release): check-added-large-files excludes ^\.devcontainer/CHANGELOG\.md$. Existing consumers need nothing, since the hook only checks added files.
Activity
test(hooks): assert check-added-large-files excludes the scaffold CHA…
fix(hooks): exclude the scaffold-copied CHANGELOG.md from large-file …
chore: merge dev into bugfix/1801-changelog-large-file-exclude
fix(hooks): exclude scaffold-copied CHANGELOG.md from large-file check (
feat(ci): add language and flake-eval cells to the consumer matrix (#…
c-vigo commentedon Oct 1, 2026
Fixed by #1805 (merged to
dev, ships with the next release):check-added-large-filesexcludes^\.devcontainer/CHANGELOG\.md$. Existing consumers need nothing, since the hook only checks added files.chore: release 1.18.0 (#1819)