Closed klausman closed 4 months ago
Thanks for reporting, this is #3662.
I think the root cause may have been having a file named .local/share/chezmoi/commitmsg.tmpl
--- I was trying to override the commit message (something that is a bit underdocumented IMHO), and I noticed chezmoi would complain about the file (even if not hooked up via .config/chezmoi/chezmoi.toml
), since it uses functions that are only available in the commit message templating context (targetRelPath
).
It would be neat to have a quick howto on overriding the commit message --- all I wanted was the short hostname of the machine as a prefix to the subject line/first line of every commit.
I opened https://github.com/charmbracelet/bubbletea/issues/1016 to report this. Closing this now as a dup of #3662 as I think this is a bug in a dependency, not in chezmoi.
If you have a way to reproduce the bug please add information to https://github.com/charmbracelet/bubbletea/issues/1016. Thank you!
Describe the bug
Updated to 2.48.0 and it works on all of my machines except in one LXC container (where it used to work).
cz apply
(anddump
, but notdump-config
) cause a Go panic:To reproduce
I don't know what makes chezmoi break on this machine. It's not the only LXC container I use it in, and I don't think the setup is otherwise special. Go is v1.22.2.
Expected behavior
chezmoi dump
should give me a variable dumpOutput of command with the
--verbose
flagAdding
--verbose
to the above command does not add any output.Output of
chezmoi doctor