From e096c2af72ebc5ca3e21c753b5d4827daaec97ee Mon Sep 17 00:00:00 2001 From: afdesk Date: Thu, 14 Apr 2022 12:55:37 +0600 Subject: [PATCH] fix(go): set correct go modules type (#1990) --- pkg/detector/library/driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/detector/library/driver.go b/pkg/detector/library/driver.go index b47f65429608..aaaa696b6415 100644 --- a/pkg/detector/library/driver.go +++ b/pkg/detector/library/driver.go @@ -34,7 +34,7 @@ func NewDriver(libType string) (Driver, error) { case ftypes.Composer: ecosystem = vulnerability.Composer comparer = compare.GenericComparer{} - case ftypes.GoBinary, ftypes.GoMod: + case ftypes.GoBinary, ftypes.GoModule: ecosystem = vulnerability.Go comparer = compare.GenericComparer{} case ftypes.Jar, ftypes.Pom: