mirror of
https://github.com/anchore/syft.git
synced 2026-02-13 02:56: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,
|
Type: dep.Type,
|
||||||
}
|
}
|
||||||
|
|
||||||
return &pkg.Package{
|
p := &pkg.Package{
|
||||||
Name: name,
|
Name: name,
|
||||||
Version: dep.Resolved,
|
Version: dep.Resolved,
|
||||||
Type: pkg.DotnetPkg,
|
Type: pkg.DotnetPkg,
|
||||||
@ -132,6 +132,10 @@ func newDotnetPackagesLockPackage(name string, dep dotnetPackagesLockDep, locati
|
|||||||
Language: pkg.Dotnet,
|
Language: pkg.Dotnet,
|
||||||
PURL: packagesLockPackageURL(name, dep.Resolved),
|
PURL: packagesLockPackageURL(name, dep.Resolved),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p.SetID()
|
||||||
|
|
||||||
|
return p
|
||||||
}
|
}
|
||||||
|
|
||||||
func packagesLockPackageURL(name, version string) string {
|
func packagesLockPackageURL(name, version string) string {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user