Skip to content

fix: exclude Finder metadata from chezmoi targets - #37

Merged
liby merged 2 commits into
mainfrom
bugfix/35-ignore-ds-store-targets
Sep 10, 2026
Merged

fix: exclude Finder metadata from chezmoi targets#37
liby merged 2 commits into
mainfrom
bugfix/35-ignore-ds-store-targets

Conversation

@liby

@liby liby commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Fixes #35 by excluding .DS_Store target paths during chezmoi add and apply, including nested directories. Files added as dot_DS_Store are outside the existing global Git ignore rule; raw .DS_Store files in ordinary source directories are already ignored by chezmoi.

An isolated chezmoi v2.72.1 check confirmed that root and nested metadata files are excluded while an ordinary sibling file is still managed.

Ignore .DS_Store target paths so recursive add cannot adopt them as
encoded dot_DS_Store sources outside the global Git ignore rule.
Apply the same exclusion to existing encoded sources at any depth.
@liby
liby merged commit 5204f06 into main Sep 10, 2026
1 check passed
@liby
liby deleted the bugfix/35-ignore-ds-store-targets branch September 10, 2026 18:41
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.

建议在 .chezmoiignore 中添加 **/.DS_Store

1 participant