fix(chezmoi): stop repo-meta leaking into $HOME via .chezmoiignore#339
Merged
Conversation
docs/, tests/, LICENSE, DOCKER.md, and tmp/ live at the source root for
working *in this repo*, but with no dot_ prefix chezmoi was applying them
to ~/docs, ~/tests, ~/LICENSE, ~/DOCKER.md, and ~/tmp — the exact footgun
documented in .claude/rules/chezmoi-conventions.md ("A Non-dot_ File at
the Source Root Silently Applies to $HOME"). Same category as the
README.md / Dockerfile / plugins/ entries already ignored here.
Root-anchor each pattern so only the source-root copy is ignored, never a
managed nested target of the same basename. tmp/ is gitignored scratch
(one-off notes previously dropped there); chezmoi should not manage it.
Home targets are byte-identical to source (chezmoi diff empty), so
removing the leaked ~/ copies loses nothing — their source of truth is
this repo.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
|
| Status | Count |
|---|---|
| 🔍 Total | 170 |
| ✅ Successful | 160 |
| ⏳ Timeouts | 0 |
| 🔀 Redirected | 0 |
| 👻 Excluded | 9 |
| ❓ Unknown | 0 |
| 🚫 Errors | 1 |
Errors per input
Errors in exact_dot_claude/docs/prds/daily-catchup.PRD.md
- [404] https://docs.anthropic.com/claude-code/commands | Failed: Network error: Not Found
Full Github Actions output
Please fix the broken links before merging.
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.
What
Add root-anchored
.chezmoiignoreentries fordocs/,tests/,LICENSE,DOCKER.md, andtmp/.Why
These live at the source root for working in this repo, but with no
dot_prefix chezmoi was applying them to~/docs,~/tests,~/LICENSE,~/DOCKER.md, and~/tmp— the footgun documented in.claude/rules/chezmoi-conventions.md("A Non-dot_File at the Source Root Silently Applies to$HOME"). Same category as theREADME.md/Dockerfile/plugins/entries already ignored here.Surfaced during a
$HOMEcleanup audit:~/docs,~/tests,~/LICENSE,~/DOCKER.mdwere sitting in the home directory as chezmoi-managed copies.How
/) so only the source-root copy is ignored, never a managed nested target of the same basename.tmp/is gitignored scratch (one-off notes previously dropped there, not in the public repo); chezmoi should not manage it.Safety
chezmoi diffempty for each), so removing the leaked~/copies loses nothing — their source of truth is this repo.docs/tests/LICENSE/DOCKER.md(+ children); no nested over-match.Post-merge follow-up
After merge +
chezmoi apply, the already-deployed~/docs,~/tests,~/LICENSE,~/DOCKER.mdand the managed~/tmpscratch files can be removed from$HOME(they will no longer be redeployed).🤖 Generated with Claude Code