From d8f439834194c62a290a912d2eb3401d74fd7a60 Mon Sep 17 00:00:00 2001 From: raashed Date: Fri, 6 Feb 2026 19:14:58 +0530 Subject: [PATCH 1/3] fix(prompt): remove GetTagNameFromUser() that caused deadlock The function had an empty goroutine that never sent to the unbuffered channel, causing any caller to block indefinitely. Since this function was unused and GetTagFromUser() already provides the correct implementation for tag selection, removing it entirely is the cleanest fix. Fixes #680 Signed-off-by: raashed --- pkg/prompt/prompt.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pkg/prompt/prompt.go b/pkg/prompt/prompt.go index e33e4ac2b..15776ebaa 100644 --- a/pkg/prompt/prompt.go +++ b/pkg/prompt/prompt.go @@ -192,14 +192,9 @@ func GetTagFromUser(repoName, projectName, reference string) string { return <-tag } -func GetTagNameFromUser() string { - repoName := make(chan string) - - go func() { - }() - - return <-repoName -} +// GetTagNameFromUser was removed - it contained a deadlock bug (empty goroutine +// that never sent to the channel). Use GetTagFromUser() instead which correctly +// fetches and displays tags for user selection. func GetScannerIdFromUser() string { scannerId := make(chan string) From 2c31bd2aa8be0561f5240da406c92990eb60cf17 Mon Sep 17 00:00:00 2001 From: raashed Date: Sat, 14 Feb 2026 22:31:33 +0530 Subject: [PATCH 2/3] fix(prompt): remove deadlocked GetTagNameFromUser function - Eliminate `GetTagNameFromUser` containing empty goroutine that never sent to channel, causing deadlock[1][2] - Retain `GetTagFromUser` as corrected replacement that properly fetches and displays tags[1] Signed-off-by: raashed --- pkg/prompt/prompt.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/prompt/prompt.go b/pkg/prompt/prompt.go index 15776ebaa..36ac3ed62 100644 --- a/pkg/prompt/prompt.go +++ b/pkg/prompt/prompt.go @@ -192,10 +192,6 @@ func GetTagFromUser(repoName, projectName, reference string) string { return <-tag } -// GetTagNameFromUser was removed - it contained a deadlock bug (empty goroutine -// that never sent to the channel). Use GetTagFromUser() instead which correctly -// fetches and displays tags for user selection. - func GetScannerIdFromUser() string { scannerId := make(chan string) From 383c254ad5519eab4713b546d19bedb2b132a041 Mon Sep 17 00:00:00 2001 From: raashed Date: Sat, 14 Feb 2026 22:35:14 +0530 Subject: [PATCH 3/3] chore: signed-off commit for DCO compliance Signed-off-by: raashed