Closed felipecrs closed 1 year ago
With #2770
$ go run . execute-template '{{ printf "%s\n%s" "[boot]" "systemd=true" | fromIni | toIni}}'
[boot]
systemd = "true"
$ go run . execute-template '{{ printf "%s\n%s" "[boot]" "systemd=true" | fromIni | toYaml }}'
boot:
systemd: "true"
Describe the bug
I'm trying to refactor my
wsl.conf
file into a chezmoi modify template using thefromIni
andtoIni
functions. However, every timefromIni
runs, it appears to read some data that doesn't exist.To reproduce
Expected behavior
To not have this key added to the dict.