From 21b4e7047e6975283e37791441a8f307d9e9e018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=8D=E6=96=B9=E5=90=91=E7=9A=84=E7=A5=9E?= <1446575944@qq.com> Date: Mon, 6 Jan 2025 19:32:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20go=20list=E5=91=BD=E4=BB=A4=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E8=A2=AB=E5=90=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/go_mod/gotree.go | 1 + 1 file changed, 1 insertion(+) diff --git a/module/go_mod/gotree.go b/module/go_mod/gotree.go index b170efd..d271867 100644 --- a/module/go_mod/gotree.go +++ b/module/go_mod/gotree.go @@ -244,6 +244,7 @@ func readGraphCmd(ctx context.Context, dir string, directDependencyList map[stri stdout.Close() if err := cmd.Wait(); err != nil { logger.Error(err.Error()) + return nil, nil, nil, err } return dInfo, rootList, sonTree, nil }