Nix cataloger should use find by glob instead of iterating over all files
Open
- Dominant language
- Go
- Stars
- 9.6k
- Forks
- 954
- Avg merge
- 23h 27m
- Merged PRs (30d)
- 48
Description
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
Contributor guide
Research direction
Start in syft/pkg/cataloger/nix/cataloger.go at lines 37-38, where the cataloger iterates over files and matches a glob. Trace the existing cataloger flow and identify how a find-by-glob operation should fit there. Done means the Nix cataloger uses find by glob instead of checking every file individually.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100