Closed EnderShadow closed 3 months ago
Occasionally I'll get this error when running the twitch-cli command. I assume it's because of an interruption in my connection, but I don't think a check for a new version should fail with an error like this.
https://github.com/twitchdev/twitch-cli/blob/eafe2255edca4790fd00bf31c942d96b200150aa/internal/util/version_checker.go#L121
runtime error: index out of range[0] with length 0 goroutine 1 [running]: github.com/twitchdev/twitch-cli/internal/util.areWeRunningLatestVersion() /go/src/github.com/twitchdev/twitch-cli/internal/util/version_checker.go:121 +0x567 github.com/twitchdev/twitch-cli/internal/util.CheckForUpdatesAndPrintNotice() /go/src/github.com/twitchdev/twitch-cli/internal/util/version_checker.go:46 +0x145 github.com/twitchdev/twitch-cli/cmd.Execute() /go/src/github.com/twitchdev/twitch-cli/cmd/root.go:33 +0x65 main.main() /go/src/github.com/twitchdev/twitch-cli/main.go:54 +0x2aa
Occasionally I'll get this error when running the twitch-cli command. I assume it's because of an interruption in my connection, but I don't think a check for a new version should fail with an error like this.
https://github.com/twitchdev/twitch-cli/blob/eafe2255edca4790fd00bf31c942d96b200150aa/internal/util/version_checker.go#L121