Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Windows executable not working properly #1118

Closed
3 of 4 tasks
MR-Os1 opened this issue May 17, 2024 · 2 comments
Closed
3 of 4 tasks

[Bug]: Windows executable not working properly #1118

MR-Os1 opened this issue May 17, 2024 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@MR-Os1
Copy link

MR-Os1 commented May 17, 2024

Checklist

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

Affected Components

  • 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/pflag@v1.0.5/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/pflag@v1.0.5/flag.go:831 +0x14f
github.com/spf13/pflag.(*FlagSet).VarP(...)
/home/runner/go/pkg/mod/github.com/spf13/pflag@v1.0.5/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/pflag@v1.0.5/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

@YuviGold
Copy link

YuviGold commented May 20, 2024

The latest version (v0.3.31) panics on mac and linux as well. Version v0.3.30 works fine.

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(0x140009ecb00, 0x140008fa000)
        /home/runner/go/pkg/mod/github.com/spf13/pflag@v1.0.5/flag.go:874 +0x364
github.com/spf13/pflag.(*FlagSet).VarPF(0x1?, {0x1051384b0, 0x106ada2b0}, {0x1040c188c, 0x4}, {0x1047de090, 0x1}, {0x1041c08ca, 0xca})
        /home/runner/go/pkg/mod/github.com/spf13/pflag@v1.0.5/flag.go:831 +0x148
github.com/spf13/pflag.(*FlagSet).VarP(...)
        /home/runner/go/pkg/mod/github.com/spf13/pflag@v1.0.5/flag.go:837
github.com/spf13/pflag.(*FlagSet).Int32VarP(0x106a6fb60?, 0x104ccfa40?, {0x1040c188c?, 0x10222e544?}, {0x1047de090?, 0x10222e544?}, 0x0?, {0x1041c08ca?, 0x10419cc2c?})
        /home/runner/go/pkg/mod/github.com/spf13/pflag@v1.0.5/int32.go:50 +0x50
github.com/k8sgpt-ai/k8sgpt/cmd/auth.init.0()
        /home/runner/work/k8sgpt/k8sgpt/cmd/auth/add.go:166 +0x1f4

Should be resolved by

@AlexsJones
Copy link
Member

Fix in flight!

@AlexsJones AlexsJones added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: Done
Development

No branches or pull requests

3 participants