Describe the bug
Having an encrypted file the chezmoi dir and modifying it locally with the intent of calling chezmoi merge $filename afterwards results in the crypt text being shown in the diff and not the plain version.
$ chezmoi doctor
ok: version 1.7.11, commit acf34783a82ef39a2bd4794126342764aa800ad7, built at 2020-01-09T01:01:31Z
ok: runtime.GOOS linux, runtime.GOARCH amd64
ok: /home/fbartels/.local/share/chezmoi (source directory, perm 700)
ok: /home/fbartels (destination directory, perm 750)
ok: /home/fbartels/.config/chezmoi/chezmoi.toml (configuration file)
ok: /bin/bash (shell)
ok: /bin/nano (editor)
ok: /usr/bin/vimdiff (merge command)
ok: /usr/bin/git (source VCS command, version 2.17.1)
ok: /usr/bin/gpg (GnuPG, version 2.2.4)
warning: op (1Password CLI, not found)
warning: bw (Bitwarden CLI, not found)
warning: gopass (gopass CLI, not found)
warning: keepassxc-cli (KeePassXC CLI, not found)
warning: lpass (LastPass CLI, not found)
warning: pass (pass CLI, not found)
warning: vault (Vault CLI, not found)
Additional context
I have not reproduced it yet, but it also seems that chezmoi merge ignores templated files (would store the file as it is locally discarding templated syntax).
Describe the bug Having an encrypted file the chezmoi dir and modifying it locally with the intent of calling
chezmoi merge $filename
afterwards results in the crypt text being shown in the diff and not the plain version.To reproduce
Expected behavior The file should be encrypted before presenting it in the merge via (
chezmoi diff
shows decrypted version).Output of command with
--verbose
Output of
chezmoi doctor
Additional context I have not reproduced it yet, but it also seems that
chezmoi merge
ignores templated files (would store the file as it is locally discarding templated syntax).