zaquestion / lab

Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab
https://zaquestion.github.io/lab
Creative Commons Zero v1.0 Universal
1.1k stars 103 forks source link

ci view --follow panics #854

Open sding3 opened 1 year ago

sding3 commented 1 year ago

lab ci view --follow panics before downstream pipelines are created/running:

$ lab ci view --follow
2023/03/01 09:58:15 ERROR: ci_view.go:487: runtime error: invalid memory address or nil pointer dereference
goroutine 101 [running]:
runtime/debug.Stack()
        /usr/local/go/src/runtime/debug/stack.go:24 +0x65
github.com/zaquestion/lab/cmd.recoverPanic(0x0?)
        /tmp/lab/cmd/ci_view.go:487 +0x4c
panic({0xce4ea0, 0x14ab880})
        /usr/local/go/src/runtime/panic.go:838 +0x207
github.com/zaquestion/lab/internal/gitlab.CIJobs({0xcb5040?, 0xc00012a0a0}, 0x0?, 0x1, {0x0, 0x0})
        /tmp/lab/internal/gitlab/gitlab.go:1278 +0x54f
github.com/zaquestion/lab/cmd.updateJobs(0xc0002a4000, 0x1?)
        /tmp/lab/cmd/ci_view.go:498 +0xe5
created by github.com/zaquestion/lab/cmd.glob..func7
        /tmp/lab/cmd/ci_view.go:97 +0x59b
prarit commented 1 year ago

My apologies for the late reply @sding3 . I'm trying to reproduce this but so far have been unsuccessful. Is it possible that you could point me to an MR where you can reproduce this?