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

Missing human-readable error: Panics if it cant find .kubeconfig in current directory #2

Open
hpl002 opened this issue Jul 27, 2022 · 0 comments

Comments

@hpl002
Copy link

hpl002 commented Jul 27, 2022

See title.

Suggestion: Cannot find .kubeconfig in directory: ${path}

? select which context to use insight-stacc-sandbox-1-k8s-admin
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x10 pc=0x10336187c]

goroutine 1 [running]:
github.com/stacc/paas/cli/cmd/environment.glob..func5(0x104d31aa0?, {0x104d920d0?, 0x0?, 0x0?})
        /home/runner/work/paas/paas/cli/cmd/environment/select.go:152 +0x76c
github.com/spf13/cobra.(*Command).execute(0x104d31aa0, {0x104d920d0, 0x0, 0x0})
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:860 +0x4ac
github.com/spf13/cobra.(*Command).ExecuteC(0x104d2fa20)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:974 +0x354
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:902
github.com/stacc/paas/cli/cmd.Execute({{0x103a2ed6c, 0x6}, {0x103a2f4e0, 0x28}, {0x103a2f220, 0x14}, {0x103a2f1b0, 0xa}})
        /home/runner/work/paas/paas/cli/cmd/root.go:63 +0x254
main.main()
        /home/runner/work/paas/paas/cli/main.go:13 +0xa0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant