-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dotnet): don't include non-runtime libraries into report for `*.d…
…eps.json` files (#7039)
- Loading branch information
1 parent
b76a725
commit 5bc662b
Showing
10 changed files
with
244 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,10 +22,11 @@ | |
"Type": "dotnet-core", | ||
"Packages": [ | ||
{ | ||
"ID": "Newtonsoft.Json/9.0.1", | ||
"Name": "Newtonsoft.Json", | ||
"Identifier": { | ||
"PURL": "pkg:nuget/[email protected]", | ||
"UID": "19955f480b8a6340" | ||
"UID": "e678401f5d07418a" | ||
}, | ||
"Version": "9.0.1", | ||
"Layer": {}, | ||
|
@@ -40,10 +41,11 @@ | |
"Vulnerabilities": [ | ||
{ | ||
"VulnerabilityID": "GHSA-5crp-9r3c-p9vr", | ||
"PkgID": "Newtonsoft.Json/9.0.1", | ||
"PkgName": "Newtonsoft.Json", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:nuget/[email protected]", | ||
"UID": "19955f480b8a6340" | ||
"UID": "e678401f5d07418a" | ||
}, | ||
"InstalledVersion": "9.0.1", | ||
"FixedVersion": "13.0.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
116 changes: 116 additions & 0 deletions
116
pkg/dependency/parser/dotnet/core_deps/testdata/without-runtime.deps.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"runtimeTarget": { | ||
"name": ".NETCoreApp,Version=v6.0", | ||
"signature": "" | ||
}, | ||
"compilationOptions": {}, | ||
"targets": { | ||
".NETCoreApp,Version=v6.0": { | ||
"hello2/1.0.0": { | ||
"dependencies": { | ||
"JsonDiffPatch": "2.0.61" | ||
}, | ||
"runtime": { | ||
"hello2.dll": {} | ||
} | ||
}, | ||
"JsonDiffPatch/2.0.61": { | ||
"dependencies": { | ||
"Microsoft.NETCore.App": "1.1.2" | ||
}, | ||
"runtime": { | ||
"lib/netcoreapp1.1/JsonDiffPatch.dll": { | ||
"assemblyVersion": "1.0.0.0", | ||
"fileVersion": "1.0.0.0" | ||
} | ||
} | ||
}, | ||
"Libuv/1.9.1": { | ||
"dependencies": { | ||
"Microsoft.NETCore.Platforms": "1.1.0" | ||
}, | ||
"runtimeTargets": { | ||
"runtimes/debian-x64/native/libuv.so": { | ||
"rid": "debian-x64", | ||
"assetType": "native", | ||
"fileVersion": "0.0.0.0" | ||
}, | ||
"runtimes/fedora-x64/native/libuv.so": { | ||
"rid": "fedora-x64", | ||
"assetType": "native", | ||
"fileVersion": "0.0.0.0" | ||
} | ||
} | ||
}, | ||
"Microsoft.NETCore.App/1.1.2": { | ||
"dependencies": { | ||
"Libuv": "1.9.1", | ||
"System.Collections.Immutable": "1.3.0" | ||
} | ||
}, | ||
"Microsoft.NETCore.Platforms/1.1.0": {}, | ||
"NETStandard.Library/1.6.0": { | ||
"dependencies": { | ||
"System.Net.Http": "4.1.0" | ||
} | ||
}, | ||
"System.Net.Http/4.1.0": {} | ||
} | ||
}, | ||
"libraries": { | ||
"hello2/1.0.0": { | ||
"type": "project", | ||
"serviceable": false, | ||
"sha512": "" | ||
}, | ||
"JsonDiffPatch/2.0.61": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-nZ4QtcU3jR+CBT69qcJBvCcWi5uKgPRrrvSMm4V8Z76ljJ/MFo1P55qXk/nQY0q0WC4v94m5qH4SDhovFfci+Q==", | ||
"path": "jsondiffpatch/2.0.61", | ||
"hashPath": "jsondiffpatch.2.0.61.nupkg.sha512" | ||
}, | ||
"Libuv/1.9.1": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-uqX2Frwf9PW8MaY7PRNY6HM5BpW1D8oj1EdqzrmbEFD5nH63Yat3aEjN/tws6Tw6Fk7LwmLBvtUh32tTeTaHiA==", | ||
"path": "libuv/1.9.1", | ||
"hashPath": "libuv.1.9.1.nupkg.sha512" | ||
}, | ||
"Microsoft.NETCore.App/1.1.2": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-fcN0Ob6rjY7Zu0770cA5l9wRJvj7+ltJPPdryUidejkkhao+y2AYrtezBTlP9nCSFXLmYR9BtaknORT17x8reA==", | ||
"path": "microsoft.netcore.app/1.1.2", | ||
"hashPath": "microsoft.netcore.app.1.1.2.nupkg.sha512" | ||
}, | ||
"Microsoft.NETCore.Platforms/1.1.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", | ||
"path": "microsoft.netcore.platforms/1.1.0", | ||
"hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512" | ||
}, | ||
"NETStandard.Library/1.6.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-ypsCvIdCZ4IoYASJHt6tF2fMo7N30NLgV1EbmC+snO490OMl9FvVxmumw14rhReWU3j3g7BYudG6YCrchwHJlA==", | ||
"path": "netstandard.library/1.6.0", | ||
"hashPath": "netstandard.library.1.6.0.nupkg.sha512" | ||
}, | ||
"System.Collections.Immutable/1.3.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-zukBRPUuNxwy9m4TGWLxKAnoiMc9+B+8VXeXVyPiBPvOd7yLgAlZ1DlsRWJjMx4VsvhhF2+6q6kO2GRbPja6hA==", | ||
"path": "system.collections.immutable/1.3.0", | ||
"hashPath": "system.collections.immutable.1.3.0.nupkg.sha512" | ||
}, | ||
"System.Net.Http/4.1.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-ULq9g3SOPVuupt+Y3U+A37coXzdNisB1neFCSKzBwo182u0RDddKJF8I5+HfyXqK6OhJPgeoAwWXrbiUXuRDsg==", | ||
"path": "system.net.http/4.1.0", | ||
"hashPath": "system.net.http.4.1.0.nupkg.sha512" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters