Skip to content

fix(dots-setup): record config template hash so chezmoi stops warning - #52

Merged
JustMaris merged 1 commit into
mainfrom
fix/dots-setup-init-hash
Sep 27, 2026
Merged

JustMaris merged 1 commit into
mainfrom
fix/dots-setup-init-hash

Conversation

@JustMaris

Copy link
Copy Markdown
Member

chezmoi records .chezmoi.toml.tmpl's hash only during chezmoi init, so after any template change it warns "config file template has changed" on every command, and dots-setup never cleared it. Running chezmoi init by hand is worse: it replaces the real config with the template's all-off defaults.

dots-setup now runs chezmoi init right before it writes chezmoi.toml. That records the hash, and the wizard's config immediately overwrites the defaults. A failed init only warns, so it can't abort the script between the two writes.

@JustMaris
JustMaris merged commit 11316ef into main Sep 27, 2026
8 checks passed
@JustMaris
JustMaris deleted the fix/dots-setup-init-hash branch September 27, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant