Skip to content

Commit

Permalink
Fix SPDX tool format
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshnoronha committed Oct 17, 2024
1 parent 3c4616a commit ed2344d
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 ed2344d

Please sign in to comment.