CPE definition on pkg.Package
is coupled to an external package as a type alias
#2529
Labels
Milestone
pkg.Package
is coupled to an external package as a type alias
#2529
Today we have the CPEs field on the
pkg.Package
struct:syft/syft/pkg/package.go
Line 28 in c5d15d1
However, the
cpe.CPE
definition is a type alias:syft/syft/cpe/cpe.go
Line 11 in c5d15d1
This isn't good for a couple of reasons:
Ideally we should have an internal type that represents a CPE and has the basic functionality we need within syft. Downstream consumers (such as grype) that require additional behaviors (e.g. CPE matching or comparison) should use abstractions to protect against direct use of the upstream
wfn
package.The text was updated successfully, but these errors were encountered: