cassava/repoctl

repoctl down does crash

ptr1337 opened this issue · 4 comments

Hi

Somehow over the night the "repoctl down" got broken. There were no changes at the system, so I think this could be AUR related a issue when it tries to fetch a AUR depend, which got updated over night?
It is not very clear to me, since our other repo's are working fine. It does only affect the "cachyos" one.

Here is the error it does thow:

repoctl down -P cachyos -u -o build-order.txt
panic: interface conversion: graph.Node is nil, not *graph.Node

goroutine 1 [running]:
github.com/cassava/repoctl/pacman/graph.Dependencies(0xc000a8e100?)
        github.com/cassava/repoctl/pacman/graph/functions.go:20 +0x517
main.downDependencies({0xc000a8e100?, 0xc000012048?, 0xc0000c4410?})
        github.com/cassava/repoctl/down.go:159 +0x4c
main.glob..func10(0x55a0642a63a0?, {0xc0000c4410?, 0x5?, 0x5?})
        github.com/cassava/repoctl/down.go:142 +0x12c
github.com/spf13/cobra.(*Command).execute(0x55a0642a63a0, {0xc0000c43c0, 0x5, 0x5})
        github.com/spf13/cobra@v1.5.0/command.go:872 +0x694
github.com/spf13/cobra.(*Command).ExecuteC(0x55a0642a40a0)
        github.com/spf13/cobra@v1.5.0/command.go:990 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/cobra@v1.5.0/command.go:918
main.main()
        github.com/cassava/repoctl/main.go:143 +0x32

If someone would be able to help, that would be very helpful to us. :)

Issue fixed.
repoctl tried to fetch the following AUR package:
https://aur.archlinux.org/packages/lenovolegionlinux-git

Which seems like when fetching it's dependecies does break. This package is very ugly done.

Hi @ptr1337, was the package itself fixed? When I try to download the package, I currently cannot reproduce a crash.

I would prefer at least if repoctl doesn't ever crash, so I try to understand the source of the issue.

Hi @ptr1337, was the package itself fixed? When I try to download the package, I currently cannot reproduce a crash.

Yes, I guess so. I don't know why that happned at all, but removing this package from the repo did solve it for us.
When doing:
repoctl down -P -r lenovolegionlinux-git

It is working fine for me. So, I think it was just a temporarly faulty pkgbuild :/