diff --git a/src/Microsoft.Sbom.Api/PackageDetails/ComponentDetailsUtils/RubyGemsUtils.cs b/src/Microsoft.Sbom.Api/PackageDetails/ComponentDetailsUtils/RubyGemsUtils.cs index f05da6de..3087747c 100644 --- a/src/Microsoft.Sbom.Api/PackageDetails/ComponentDetailsUtils/RubyGemsUtils.cs +++ b/src/Microsoft.Sbom.Api/PackageDetails/ComponentDetailsUtils/RubyGemsUtils.cs @@ -59,11 +59,11 @@ public RubyGemsUtils(IFileSystemUtils fileSystemUtils, ILogger logger, IRecorder var fullGemspecPath = Path.Join(gemspecLocation, gemspecFileName); - gemspecLocation = Path.GetFullPath(fullGemspecPath); + fullGemspecPath = Path.GetFullPath(fullGemspecPath); if (fileSystemUtils.FileExists(fullGemspecPath)) { - return gemspecLocation; + return fullGemspecPath; } else {