Compare commits
2 Commits
MaineK00n/
...
collect-se
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74d9a50923 | ||
|
|
d3465ca676 |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user