-
Notifications
You must be signed in to change notification settings - Fork 778
Open
Description
Description
┌─ user@c02fldw5md6m:~/Downloads
└──❯ nerdctl.lima ps -a
? Do you want to start the instance now? No
┌─ user@c02fldw5md6m:~/Downloads
└──❯ yes n | nerdctl.lima ps -a
? Do you want to start the instance now? (Y/n) ^[[55;214R^[[55;49Rpanic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x10fddebb6]
goroutine 1 [running]:
github.com/AlecAivazis/survey/v2/terminal.(*RuneReader).ReadLineWithDefault.func2(...)
github.com/AlecAivazis/survey/v2@v2.3.7/terminal/runereader.go:65
github.com/AlecAivazis/survey/v2/terminal.(*RuneReader).ReadLineWithDefault(0xc0005b46c0, 0x0, {0x1115a2f20, 0x0, 0x0}, {0x0?, 0xc000665340?, 0x10f359b25?})
github.com/AlecAivazis/survey/v2@v2.3.7/terminal/runereader.go:328 +0x976
github.com/AlecAivazis/survey/v2/terminal.(*RuneReader).ReadLine(...)
github.com/AlecAivazis/survey/v2@v2.3.7/terminal/runereader.go:37
github.com/AlecAivazis/survey/v2.(*Confirm).getBool(0xc00059e0b0, 0x0, 0xc0001ce308)
github.com/AlecAivazis/survey/v2@v2.3.7/confirm.go:59 +0x11e
github.com/AlecAivazis/survey/v2.(*Confirm).Prompt(0xc00059e0b0, 0xc0001ce308)
github.com/AlecAivazis/survey/v2@v2.3.7/confirm.go:137 +0xee
github.com/AlecAivazis/survey/v2.Ask({0xc0006657e0, 0x1, 0x4?}, {0x1102b94c0, 0xc0003d031c}, {0x0, 0x0, 0x10ffc2005?})
github.com/AlecAivazis/survey/v2@v2.3.7/survey.go:366 +0x3f3
github.com/AlecAivazis/survey/v2.AskOne(...)
github.com/AlecAivazis/survey/v2@v2.3.7/survey.go:283
github.com/lima-vm/lima/v2/pkg/uiutil.Confirm({0x110013b7d, 0x27}, 0x1)
github.com/lima-vm/lima/v2/pkg/uiutil/uiutil.go:24 +0xe6
main.askWhetherToStart(...)
github.com/lima-vm/lima/v2/cmd/limactl/edit.go:185
main.shellAction(0xc00054af08, {0xc000544aa0, 0x4, 0x5})
github.com/lima-vm/lima/v2/cmd/limactl/shell.go:104 +0x439
github.com/spf13/cobra.(*Command).execute(0xc00054af08, {0xc000544a50, 0x5, 0x5})
github.com/spf13/cobra@v1.10.1/command.go:1015 +0xb02
github.com/spf13/cobra.(*Command).ExecuteC(0xc00054a308)
github.com/spf13/cobra@v1.10.1/command.go:1148 +0x465
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.10.1/command.go:1071
main.main()
github.com/lima-vm/lima/v2/cmd/limactl/main.go:50 +0x6f
┌─ user@c02fldw5md6m:~/Downloads [SIGPIPE|2]
└──❯
Update:
Adding the "-y" option had no effect; the panic still occurred.
-y, --yes Alias of --tty=false
Metadata
Metadata
Assignees
Labels
No labels