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

melange completion panics #1718

Open
scop opened this issue Dec 19, 2024 · 0 comments
Open

melange completion panics #1718

scop opened this issue Dec 19, 2024 · 0 comments

Comments

@scop
Copy link

scop commented Dec 19, 2024

$ melange completion 
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
chainguard.dev/melange/pkg/cli.New.completion.func2(0xc0001c3d00?, {0x31b9e80?, 0x4?, 0x1d9a73e?})
	chainguard.dev/melange/pkg/cli/completion.go:61 +0x133
github.com/spf13/cobra.(*Command).execute(0xc000588c08, {0x31b9e80, 0x0, 0x0})
	github.com/spf13/[email protected]/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0xc000588308)
	github.com/spf13/[email protected]/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/[email protected]/command.go:1041
github.com/spf13/cobra.(*Command).ExecuteContext(0x20728c0?, {0x2072a80?, 0xc000414180?})
	github.com/spf13/[email protected]/command.go:1034 +0x47
main.main()
	chainguard.dev/melange/main.go:30 +0x96

E.g. melange completion bash works though.

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