k8sgpt icon indicating copy to clipboard operation
k8sgpt copied to clipboard

[Bug]: Windows executable not working properly

Open MR-Os1 opened this issue 9 months ago • 2 comments

Checklist

  • [X] I've searched for similar issues and couldn't find anything matching
  • [X] I've included steps to reproduce the behavior

Affected Components

  • [X] K8sGPT (CLI)
  • [ ] K8sGPT Operator

K8sGPT Version

v0.3.31

Kubernetes Version

No response

Host OS and its Version

Windows 11

Steps to reproduce

  1. Download windows x64_86 binary.
  2. add to path

Expected behaviour

get help command or something

Actual behaviour

panic: unable to redefine 'c' shorthand in "add" flagset: it's already used for "topp" flag

goroutine 1 [running]: github.com/spf13/pflag.(*FlagSet).AddFlag(0xc000d04700, 0xc00096b4a0) /home/runner/go/pkg/mod/github.com/spf13/[email protected]/flag.go:874 +0x3e7 github.com/spf13/pflag.(*FlagSet).VarPF(0x28?, {0x3364b70, 0x4dc5cc0}, {0x2c08dbd, 0x4}, {0x3331b20, 0x1}, {0x2d0a7cd, 0xca}) /home/runner/go/pkg/mod/github.com/spf13/[email protected]/flag.go:831 +0x14f github.com/spf13/pflag.(*FlagSet).VarP(...) /home/runner/go/pkg/mod/github.com/spf13/[email protected]/flag.go:837 github.com/spf13/pflag.(*FlagSet).Int32VarP(0x2ce6ad6?, 0x5e?, {0x2c08dbd?, 0x10?}, {0x3331b20?, 0x4d65680?}, 0x3331b18?, {0x2d0a7cd?, 0x0?}) /home/runner/go/pkg/mod/github.com/spf13/[email protected]/int32.go:50 +0x45 github.com/k8sgpt-ai/k8sgpt/cmd/auth.init.0() /home/runner/work/k8sgpt/k8sgpt/cmd/auth/add.go:166 +0x229

Additional Information

No response

MR-Os1 avatar May 17 '24 21:05 MR-Os1