mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 07:56:36 +01:00
Use the json schema as input for templating (#2542)
* use the json schema as input for templating Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix cli tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
@@ -72,9 +72,7 @@ func (o EncodersConfig) Encoders() ([]sbom.FormatEncoder, error) {
|
||||
}
|
||||
|
||||
func (o EncodersConfig) templateEncoders() ([]sbom.FormatEncoder, error) {
|
||||
enc, err := template.NewFormatEncoder(template.EncoderConfig{
|
||||
TemplatePath: o.Template.TemplatePath,
|
||||
})
|
||||
enc, err := template.NewFormatEncoder(o.Template)
|
||||
return []sbom.FormatEncoder{enc}, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user