Skip to content

Commit

Permalink
Merge pull request #110 from interlynk-io/fix/spdx-tool-edit
Browse files Browse the repository at this point in the history
Fix SPDX tool format
  • Loading branch information
riteshnoronha authored Oct 17, 2024
2 parents 3c4616a + ed2344d commit 21f4b69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/edit/spdx_edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,11 @@ func (d *spdxEditDoc) tools() error {
tools := []spdx.Creator{}

for _, tool := range d.c.tools {
parts := []string{tool.name, tool.value}

tools = append(tools, spdx.Creator{
CreatorType: "Tool",
Creator: fmt.Sprintf("%s (%s)", tool.name, tool.value),
Creator: strings.Join(lo.Compact(parts), "-"),
})
}

Expand Down

0 comments on commit 21f4b69

Please sign in to comment.