Skip to content

Commit

Permalink
Fixes dosai invocation on darwin
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed May 27, 2024
1 parent f5c42dd commit 1034e83
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6376,9 +6376,13 @@ export function parseCsProjData(csProjData, projFile) {
Array.isArray(item.Reference[j].HintPath) &&
Array.isArray(item.Reference[j].HintPath[0]._)
) {
let packageFileName = basename(item.Reference[j].HintPath[0]._[0]);
if (packageFileName.includes("\\")) {
packageFileName = packageFileName.split("\\").pop();
}
pkg.properties.push({
name: "cdx:dotnet:dll_path",
value: item.Reference[j].HintPath[0]._[0],
name: "PackageFiles",
value: packageFileName,
});
}
pkgList.push(pkg);
Expand Down
8 changes: 4 additions & 4 deletions utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1633,8 +1633,8 @@ test("parse cs proj", () => {
"bom-ref": "pkg:nuget/activeup.net.common",
properties: [
{
name: "cdx:dotnet:dll_path",
value: "..\\activeup.net.common.dll",
name: "PackageFiles",
value: "activeup.net.common.dll",
},
],
});
Expand Down Expand Up @@ -1929,8 +1929,8 @@ test("parse .net cs proj", () => {
"bom-ref": "pkg:nuget/Antlr3.Runtime@3.5.0.2",
properties: [
{
name: "cdx:dotnet:dll_path",
value: "..\\packages\\Antlr.3.5.0.2\\lib\\Antlr3.Runtime.dll",
name: "PackageFiles",
value: "Antlr3.Runtime.dll",
},
],
});
Expand Down

0 comments on commit 1034e83

Please sign in to comment.