mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 02:26:42 +01:00
Add set ID to dotnet packages (#3719)
Signed-off-by: houdini91 <mdstrauss91@gmail.com>
This commit is contained in:
parent
c613476347
commit
6a28c1c604
@ -123,7 +123,7 @@ func newDotnetPackagesLockPackage(name string, dep dotnetPackagesLockDep, locati
|
||||
Type: dep.Type,
|
||||
}
|
||||
|
||||
return &pkg.Package{
|
||||
p := &pkg.Package{
|
||||
Name: name,
|
||||
Version: dep.Resolved,
|
||||
Type: pkg.DotnetPkg,
|
||||
@ -132,6 +132,10 @@ func newDotnetPackagesLockPackage(name string, dep dotnetPackagesLockDep, locati
|
||||
Language: pkg.Dotnet,
|
||||
PURL: packagesLockPackageURL(name, dep.Resolved),
|
||||
}
|
||||
|
||||
p.SetID()
|
||||
|
||||
return p
|
||||
}
|
||||
|
||||
func packagesLockPackageURL(name, version string) string {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user