Closed halostatue closed 1 year ago
Doh! Good spot. I forgot to rename the fields. Using uppercase names (as they appear in the ConfigFile
struct definition works (e.g. chezmoi execute-template '{{ .chezmoi.config.Keepassxc.Command }}'
) but the case is wrong. Thanks for testing and fix coming up.
Fixed with #2943 and tagged v2.33.3.
Describe the bug
2940 introduced
.chezmoi.config
for use in templates, but trying to request the data results in a template execution error.To reproduce
Expected behavior
Additional context
This can be worked around by piping through JSON:
It is probably sufficient to use a JSON-serialized copy of the read config rather than storing the read config itself.