finch
finch copied to clipboard
Support bundle fails to be created on Windows
Describe the bug
On Windows, running finch support-bundle generate
fails with the following error:
level=fatal msg="exec: \"uname\": executable file not found in %PATH%"
Steps to reproduce
Run finch support-bundle generate
on Windows.
Expected behavior A support bundle should be created.
Screenshots or logs If applicable, add screenshots or logs to help explain your problem.
Additional context
The reason this issue occurs is because pkg/support/support.go's getArch
function calls uname
on the host system, and Windows does not have a uname
executable.
getArch
should be scoped to OS-specific files for UNIX and Windows.
To help debug the issue as quickly as possible, we recommend generating a support bundle with finch support-bundle generate
and attaching it to this issue. This packages all Finch-related configs and logs into one file.