twpayne / chezmoi

Manage your dotfiles across multiple diverse machines, securely.
https://www.chezmoi.io/
MIT License
13.36k stars 493 forks source link

chezmoi doctor warns chezmoi.toml as suspicious-entries #2674

Closed johnmanjiro13 closed 1 year ago

johnmanjiro13 commented 1 year ago

Describe the bug

When I manage ~/.config/chezmoi/chezmoi.toml by chezmoi itself, chezmoi doctor warns chezmoi.toml as suspicious-entries.

To reproduce

$ touch ~/.config/chezmoi/chezmoi.toml
$ chezmoi add ~/.config/chezmoi/chezmoi.toml
$ chezmoi doctor

warning   suspicious-entries   ~/.local/share/chezmoi/dot_config/chezmoi/chezmoi.toml

Expected behavior

chezmoi doctor doesn't warn chezmoi.toml.

Output of command with the --verbose flag

$ chezmoi --verbose $COMMAND

Output of chezmoi doctor

```console $ chezmoi doctor ```

Additional context

Add any other context about the problem here.

twpayne commented 1 year ago

This is correct. To manage chezmoi's config file with chezmoi, use a config file template instead.

johnmanjiro13 commented 1 year ago

That makes sense. Thank you!