anchore / syft

CLI tool and library for generating a Software Bill of Materials from container images and filesystems
Apache License 2.0
5.73k stars 526 forks source link

Nix cataloger should use find by glob instead of iterating over all files #2997

Open kzantow opened 3 days ago

kzantow commented 3 days ago

Catalogers should not iterate over each file and match a glob, but rather use a find by glob. See: https://github.com/anchore/syft/blob/main/syft/pkg/cataloger/nix/cataloger.go#L37-L38