From 4c5c90b47287241bf14d1187e217fb00e4934522 Mon Sep 17 00:00:00 2001 From: iseki Date: Thu, 22 Aug 2024 17:24:54 +0800 Subject: [PATCH] fix(go): -m --- module/go_mod/go.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/go_mod/go.go b/module/go_mod/go.go index 1817b703..f3f18f2b 100644 --- a/module/go_mod/go.go +++ b/module/go_mod/go.go @@ -101,7 +101,7 @@ var _ErrGoNotFound = errors.New("go not found") func doGoList(ctx context.Context, dir string) (result []model.DependencyItem, e error) { var logger = logctx.Use(ctx) - var cmd = exec.CommandContext(ctx, "go", "list", "-json", "all") + var cmd = exec.CommandContext(ctx, "go", "list", "-json", "-m", "all") cmd.Dir = dir stdout, e := cmd.StdoutPipe() if e != nil {