Skip to content

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

Description

@hpl002

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions