```console
$ chezmoi doctor
RESULT CHECK MESSAGE
ok version v2.47.3, commit 4f76edb5295068569d7c6311020ac0094c77ef44, built at 2024-03-31T18:12:53Z, built by Homebrew
ok latest-version v2.47.3
ok os-arch darwin/arm64
ok uname Darwin .local 23.5.0 Darwin Kernel Version 23.5.0: Tue Mar 26 20:54:53 PDT 2024; root:xnu-10063.120.88.501.3~2/RELEASE_ARM64_T8122 arm64
ok go-version go1.22.1 (gc)
ok executable /opt/homebrew/bin/chezmoi
ok upgrade-method brew-upgrade
ok config-file ~/.config/chezmoi/chezmoi.toml, last modified 2024-03-18T17:43:17+11:00
ok source-dir ~/.local/share/chezmoi/HOME is a directory
ok suspicious-entries no suspicious entries
warning working-tree ~/.local/share/chezmoi is a git working tree (dirty)
ok dest-dir ~ is a directory
ok umask 022
ok cd-command found /bin/zsh
ok cd-args /bin/zsh
info diff-command not set
ok edit-command found /usr/bin/env
ok edit-args /usr/bin/env code --wait --new-window
ok git-command found /opt/homebrew/bin/git, version 2.44.0
ok merge-command found /usr/bin/vimdiff
ok shell-command found /bin/zsh
ok shell-args /bin/zsh
info age-command age not found in $PATH
ok gpg-command found /opt/homebrew/bin/gpg, version 2.4.5
info pinentry-command not set
info 1password-command op not found in $PATH
info bitwarden-command bw not found in $PATH
info bitwarden-secrets-command bws not found in $PATH
info dashlane-command dcli not found in $PATH
info doppler-command doppler not found in $PATH
info gopass-command gopass not found in $PATH
info keepassxc-command keepassxc-cli not found in $PATH
info keepassxc-db not set
info keeper-command keeper not found in $PATH
info lastpass-command lpass not found in $PATH
info pass-command pass not found in $PATH
info passhole-command ph not found in $PATH
info rbw-command rbw not found in $PATH
info vault-command vault not found in $PATH
info vlt-command vlt not found in $PATH
info secret-command not set
```
Describe the bug
When a
.chezmoiexternal.toml
contains a header without content, chezmoi experiences a segfault.To reproduce
.chezmoiexternal.toml
:Expected behavior
Graceful handling of the error.
Output of command with the
--verbose
flagOutput of
chezmoi doctor