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
Found during 0.4.0 consumer field-validation (EXOMA/hyrr feature/519-devcontainer-rc4-validation, adoption commit 1812b74).
The scaffold upgrade replaced the consumer's .pre-commit-config.yaml wholesale (166 lines changed), silently dropping repo-specific configuration:
the global exclude: block (physics data tables data/stopping/, *.dat, generated Tauri schemas, logo SVGs, jupytext notebook pairs, scratch docs) — after the upgrade, prek run --all-files in the 0.4.0 image "fixed" ~45 files it must never touch, including binary-adjacent .dat data tables;
per-hook excludes, e.g. detect-private-key exclusion for worker/src/index.ts (PEM marker literals used as pattern strings) — post-upgrade the suite reports a false-positive private key.
A config replaced on upgrade must either be managed (and then repos can't customize it) or preserved/merged — replacing a customized file without warning is the worst of both. Same class as the justfile.project recipe-stranding issue (filed separately); together they made the consumer's hook suite unusable after the upgrade until hand-repaired.
Possible Solution
Preserve-on-upgrade with a diff hint, or a merge step that retains exclude: blocks and per-hook exclude: keys, or at minimum a loud upgrade-time warning + MIGRATION.md entry listing what will be replaced.
Activity
fix(workspace): preserve the consumer .pre-commit-config.yaml on upgr…
fix(image): one-cycle pre-commit->prek compat shim + upgrade-time ref…
feat(flake): generate .pre-commit-config.yaml from one flake hook def…
fix(init-workspace): render preserved-file diff with git diff --no-index
fix(init-workspace): preserve consumer .typos.toml on upgrade
fix(workspace): preserve .typos.toml and harden init-workspace upgrad…
c-vigo commentedon Jul 8, 2026
Implemented in 0.4.1 (released 2026-07-08) — see the
## [0.4.1]CHANGELOG entry. Closing as completed.chore: release 0.4.1 (#202)
5 remaining items
fix(workspace): preserve .pymarkdown / .yamllint lint configs on upgr…
chore: release 1.2.1 (#1109)
fix(init-workspace): preserve dangling store pre-commit symlink (#1124)
fix(install): dereference symlinked templates in preserved-file diffs (…
fix(workspace): render knobs unconditionally and refuse symlinks (#1641)
feat: scan preserved configs for retired hook blocks (#1653)
feat(workspace): ship the actionlint hook and its label config to con…
feat(workspace): let the consumer own their runner-label declarations
feat(workspace): ship the actionlint hook and its label config to con…
feat(workspace): reconcile a preserved pre-commit config on upgrade
feat(workspace): reconcile a preserved pre-commit config on upgrade (#…
chore: release 1.16.0 (#1672)
test(bats): clone the both fixture for pure-setup upgrade sites
test(bats): isolate worktree.bats and tighten the BATS suite (#1709)
test(init): pin the shellcheck-composite-actions insert row at 1.17.0