Skip to content

Commit 21f4b69

Browse files
Merge pull request #110 from interlynk-io/fix/spdx-tool-edit
Fix SPDX tool format
2 parents 3c4616a + ed2344d commit 21f4b69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/edit/spdx_edit.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,11 @@ func (d *spdxEditDoc) tools() error {
364364
tools := []spdx.Creator{}
365365

366366
for _, tool := range d.c.tools {
367+
parts := []string{tool.name, tool.value}
368+
367369
tools = append(tools, spdx.Creator{
368370
CreatorType: "Tool",
369-
Creator: fmt.Sprintf("%s (%s)", tool.name, tool.value),
371+
Creator: strings.Join(lo.Compact(parts), "-"),
370372
})
371373
}
372374

0 commit comments

Comments
 (0)