Skip to content

Commit

Permalink
fix(test): tests fail if dotnet isnt on the path
Browse files Browse the repository at this point in the history
  • Loading branch information
kthompson committed Jul 15, 2024
1 parent c7fa15d commit cfeb817
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Panther.Tests/CodeAnalysis/Dotnet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ private static string FindDotnet()
return exeFullPath;
}

// Ok we cant find it on the path lets just take some guesses
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
var homebrew = "/usr/local/share/dotnet/dotnet";
if (File.Exists(homebrew))
return homebrew;
}

throw new ArgumentException("Could not find `dotnet` executable");
}
}

0 comments on commit cfeb817

Please sign in to comment.