grype icon indicating copy to clipboard operation
grype copied to clipboard

Should we combine the grype and grype-db projects?

Open wagoodman opened this issue 1 year ago • 2 comments

This has come up a couple of times in ad-hoc conversations so I wanted to try and get this in a ticket for more feedback. Today we have a project for grype (the application that matches packages and vulnerabilities) and grype-db (the application that builds the DB of vulnerabilities that grype uses).

We could consider combining these projects (where the grype-db codebase is merged into the grype repo). There are at least a couple ways this can go:

  • Add another entrypoint (build two binaries): ./cmd/grype (today's) and ./cmd/grype-db
  • Update the grype application with more subcommands: grype db build ...

It might mean that the workflow that uses grype / grype-db to build OSS databases nightly remains where it is or is also migrated... this would be TBD.

To be clear: this is purely speculative. At the current time there is no plan to make this change (as it is a lot of work), but again, since it's been asked a couple times I wanted to see if there was anyone out there with strong opinions about this and gather as much feedback as possible (👍 or 👎 this for a vote and optionally comment).

wagoodman avatar Jul 31 '23 15:07 wagoodman

What are the advantages of combining them? When the question of combining them comes up, why does it come up?

willmurphyscode avatar Aug 03 '23 21:08 willmurphyscode