Closed riotrah closed 1 year ago
Oh dang - nevermind.
I knew it had to be due to a missing file.
I realize that it's because I had references to a path that was undefined on windows, in a template, like so:
{{- $fontDir := "" }}
{{- if eq .chezmoi.os "darwin" }}
{{- $fontDir = "Library/Fonts" }}
{{- else if eq .chezmoi.os "linux" }}
{{- $fontDir = ".local/share/fonts" }}
{{- end }}
And forgot to have a definition for windows, or at least a null check for $fontDir
😅.
Firstly, love
chezmoi
, been using it for like a year already on win, mac, ubuntu wsl, termux and even alpine (gitpod.io containers).What exactly are you trying to do?
Describe in as much detail as possible.
On windows 11
panic: runtime error: invalid memory address or nil pointer dereference
error--keep-going
)status
apply
diff
merge-all
init
edit-*
add
git *
cd
execute-template
update
verify
Perhaps important context - for this windows machine alone, I use
symlink
modeWhat have you tried so far ?
Describe what you have tried so far.
Updated
Purged
Looked for potentially circular dependencies
altered externals or removed them entirely
Removed all scripts
Rebuilt up local chezmoi config bit by bit
Followed the verbose/debug trace up to its last
ReadDir
:and tried to
Where else have you checked for solutions?
Output of any commands you've tried with
--verbose
flagOutput of
chezmoi doctor
Additional context
Add any other context about the problem here.