Page MenuHomePhabricator

Updating mwcli results in slice out of bounds [:4]
Open, Needs TriagePublic

Description

image.png (1×3 px, 1 MB)

New update found: 0.24.1
? Do you want to update? Yes
Updating binary 100% |█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (100/100, 10 it/s)
panic: runtime error: slice bounds out of range [:4] with length 0

goroutine 1 [running]:
gitlab.wikimedia.org/repos/releng/cli/internal/cmd/update.NewUpdateCmd.func1(0xc000cc9b08?, {0x1398cc3?, 0x4?, 0x1398d93?})
        /builds/repos/releng/cli/internal/cmd/update/update.go:155 +0xc96
github.com/spf13/cobra.(*Command).execute(0xc000cc9b08, {0x20ed600, 0x0, 0x0})
        /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:987 +0xab1
github.com/spf13/cobra.(*Command).ExecuteC(0xc0006fc308)
        /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
        /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039
gitlab.wikimedia.org/repos/releng/cli/cmd.Execute({0x17c5988?, 0x0?}, {0x17c4a8c?, 0x4017a0?}, {0x17c4a94?, 0x1f9b238?}, {0x17c5980, 0x7}, {0x17c9550, 0x14}, ...)
        /builds/repos/releng/cli/cmd/root.go:266 +0xa05
main.main()
        /builds/repos/releng/cli/main.go:29 +0x7a