ошибка alr up #47
Owner
```
alr up 05:54:24
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
main.checkForUpdates({0x14da1a8, 0xc0002e2c00}, {0x14e1348?, 0x1e061a0?}, 0x0?, 0xc0009b3cb0, 0x0?, 0xc00045e0d0)
/home/xpamych/.cache/alr/pkgs/alr-bin/src/ALR/upgrade.go:155 +0x7a5
main.UpgradeCmd.func1(0xc0002e2f40)
/home/xpamych/.cache/alr/pkgs/alr-bin/src/ALR/upgrade.go:88 +0x594
github.com/urfave/cli/v2.(*Command).Run(0xc0001f86e0, 0xc0002e2f40, {0xc0009c0880, 0x1, 0x1})
/home/xpamych/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274 +0x7a2
github.com/urfave/cli/v2.(*Command).Run(0xc00032a160, 0xc0002e2d40, {0xc000034040, 0x2, 0x2})
/home/xpamych/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267 +0xa25
github.com/urfave/cli/v2.(*App).RunContext(0xc000318000, {0x14da1a8, 0xc0002e2c00}, {0xc000034040, 0x2, 0x2})
/home/xpamych/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332 +0x566
main.main()
/home/xpamych/.cache/alr/pkgs/alr-bin/src/ALR/main.go:127 +0x1cf
```
fix: add handling `len(pkgs) == 0` #48
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?