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(workspace): scaffold upgrade clobbers a customized .typos.toml (dual-config corruption) #913
Found during 0.4.1-rc1 consumer-upgrade testing (follow-up to #878, same class of bug).
Problem
init-workspace.sh --force overwrites the consumer's .typos.toml with the generic template one, because .typos.toml is not in PRESERVE_FILES. Two failure modes were reproduced:
Customized config lost (mat, 0.4.0 → rc1): a 69-line material-science .typos.toml (element symbols, Macor, metalness, LSO, fixture typos) was replaced by the 10-line generic template. The typos hook then "corrected" real content across the repo — metalness→metallicity, LSO→ALSO, and renamed docs/catalog/ceramics/macor.md→macro.md.
Dual-config corruption (vault, 0.3.5 → rc1): vault carries a legacy-named _typos.toml; the upgrade dropped a new .typos.toml alongside it. typos honours both, and the template .typos.toml lacks the Nd exemption, so the hook corrupted Nd→And inside the scaffold's own .devcontainer/scripts/version-check.sh — prek run --all-files then fails out of the box on a fresh upgrade.
Handle the legacy _typos.toml case so the upgrade never leaves two active typos configs (migrate _typos.toml→.typos.toml, or skip shipping the template .typos.toml when the consumer already has _typos.toml).
Activity
test(init-workspace): assert .typos.toml preserved and no dual configs
fix(init-workspace): preserve consumer .typos.toml on upgrade
test(init-workspace): use a non-typo token in the legacy _typos fixture
docs(changelog): add 0.4.1 entries for init-workspace upgrade hardening
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)
chore: release 0.4.1 (#898)
feat(setup): generate provenance banners in scaffolded assets (#1043)
feat(setup): complete provenance-banner coverage (jsonc, justfile.loc…
chore: release 1.2.0 (#1068)
fix(workspace): preserve .pymarkdown / .yamllint lint configs on upgr…
chore: release 1.2.1 (#1109)
fix(workspace): guard undotted typos.toml against dual configs
fix(workspace): guard undotted typos.toml against dual configs (#1289)
fix(install): dereference symlinked templates in preserved-file diffs (…