From 10b55311dfc62c20743d7b263c13e36900818ef1 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 10 Nov 2020 12:40:17 -0500 Subject: [PATCH] presenter: provide ID_LIKE information in json Signed-off-by: Alfredo Deza --- syft/presenter/json/document.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syft/presenter/json/document.go b/syft/presenter/json/document.go index 0762e934f..713dc7d7a 100644 --- a/syft/presenter/json/document.go +++ b/syft/presenter/json/document.go @@ -16,6 +16,7 @@ type Document struct { type Distribution struct { Name string `json:"name"` Version string `json:"version"` + IDLike string `json:"idLike"` } func NewDocument(catalog *pkg.Catalog, s scope.Scope, d distro.Distro) (Document, error) { @@ -35,6 +36,7 @@ func NewDocument(catalog *pkg.Catalog, s scope.Scope, d distro.Distro) (Document doc.Distro = Distribution{ Name: distroName, Version: d.FullVersion(), + IDLike: d.IDLike, } for _, p := range catalog.Sorted() {