diff --git a/pkg/dependency/parser/sbt/lockfile/parse.go b/pkg/dependency/parser/sbt/lockfile/parse.go index 040b0cfd7df2..3b5b1865903d 100644 --- a/pkg/dependency/parser/sbt/lockfile/parse.go +++ b/pkg/dependency/parser/sbt/lockfile/parse.go @@ -49,11 +49,17 @@ func (Parser) Parse(r xio.ReadSeekerAt) ([]ftypes.Package, []ftypes.Dependency, for _, dep := range lockfile.Dependencies { if slices.ContainsFunc(dep.Configurations, isIncludedConfig) { + name := dep.Organization + ":" + dep.Name libraries = append(libraries, ftypes.Package{ - ID: dependency.ID(ftypes.Sbt, dep.Organization+":"+dep.Name, dep.Version), - Name: dep.Organization + ":" + dep.Name, - Version: dep.Version, - Locations: []ftypes.Location{{StartLine: dep.StartLine, EndLine: dep.EndLine}}, + ID: dependency.ID(ftypes.Sbt, name, dep.Version), + Name: name, + Version: dep.Version, + Locations: []ftypes.Location{ + { + StartLine: dep.StartLine, + EndLine: dep.EndLine, + }, + }, }) } }