Closed 5u623l20 closed 1 year ago
The error is at line 19 in your config file template. You're calling promptBool
but this should be promptBoolOnce
.
Thanks. What is the easier way of debugging such mistakes?
The error message contains the filename, line number, and column of the error.
As general advice, if your suspected cause is suspiciously specific (why would chezmoi's promptStringOnce
function behave differently for IPv6 addresses versus all other inputs?) then it's probably something else, and you should at least comment out the line you believe is causing the problem to verify that the error goes away when you remove the line.
Describe the bug
I am trying to prompt the user for an IPv6 address and save it as part of the configuration using this file: https://github.com/bounce-commerce/dotfiles/blob/main/home/.chezmoi.toml.tmpl
However when I am trying to input the IPv6 address it ends up with an error:
To reproduce
If we try to input:
2001:db8::1
for anystring
prompts it ends up like this.Expected behavior
It should accept it as string with quotes
Output of command with the
--verbose
flagOutput of
chezmoi doctor
Additional context
I think the
:
in colon in IPv6 addresses are somehow messing up the writing of the toml configs.