mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
fix(lua): skip rockspec with no package name (#4825)
--------- Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com> Co-authored-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
This commit is contained in:
co-authored by
Christopher Phillips
parent
7ca1f22395
commit
bf82010f3c
@@ -74,6 +74,11 @@ func parseRockspec(ctx context.Context, resolver file.Resolver, _ *generic.Envir
|
||||
}
|
||||
}
|
||||
|
||||
if name == "" {
|
||||
log.WithFields("path", reader.Path()).Trace("rockspec has no package name, skipping")
|
||||
return nil, nil, nil
|
||||
}
|
||||
|
||||
p := newLuaRocksPackage(
|
||||
ctx,
|
||||
resolver,
|
||||
|
||||
Reference in New Issue
Block a user