Compare commits

...

2 Commits

Author SHA1 Message Date
Kota Kanbe
74d9a50923 null -> empty slice 2022-10-14 06:49:01 +09:00
Kota Kanbe
d3465ca676 fix(java): collect self-bulid-Jar in ScanResult.libraries 2022-10-07 13:53:15 +09:00

View File

@@ -770,6 +770,22 @@ func AnalyzeLibraries(ctx context.Context, libFilemap map[string]LibFile, isOffl
if err != nil {
return nil, xerrors.Errorf("Failed to convert libs. err: %w", err)
}
found := false
for _, a := range result.Applications {
if a.FilePath == path {
found = true
}
}
if !found {
libscan = append(libscan, models.LibraryScanner{
// TODO
// Type: app.Type,
LockfilePath: path,
Libs: []models.Library{},
})
}
libraryScanners = append(libraryScanners, libscan...)
}
return libraryScanners, nil