Skip to content

chezmoi doctor - .chezmoiexternals/chezmoi.toml.tmpl detected as "suspicious-entries" #3966

Answered by halostatue
xfzv asked this question in Q&A
Discussion options

You must be logged in to vote

It probably could — but it would be subtle to do so. I’m looking at the implementation of the suspicious entries check and the problem is not that it contains chezmoi, it’s that it looks like a known bad target chezmoi.toml (the .tmpl is stripped when checking this). Files in a .chezmoiexternals directory aren't written to disk the same way, but handling this specific case might be complicated (I haven't checked this part, but if the file is also tagged as an external config file, it might not be that hard, either).

Renaming the file to chezmoi-binary.toml.tmpl (or chezmoi-itself.toml.tmpl) should also remove the warning and maintain the clarity that you would like.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xfzv
Comment options

Answer selected by twpayne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants