mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 07:26:34 +01:00
The [requires] section parser set inRequirements=false when it encountered a comment line (#) inside the section, because the comment check was OR'd with the section-change check. Any dependency listed after a comment was silently skipped. Skip blank lines and comments before evaluating section state so they never toggle inRequirements. Add a regression test fixture with a comment inside [requires]. Fixes #5017 Signed-off-by: jeff <jfjrh2014@gmail.com>