We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dddba32 + b07b076 commit be2ce17Copy full SHA for be2ce17
1 file changed
csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DependencyManager.cs
@@ -924,6 +924,18 @@ private void DownloadMissingPackages(List<FileInfo> allFiles, ISet<string> dllPa
924
return;
925
}
926
927
+ var multipleVersions = notYetDownloadedPackages
928
+ .GroupBy(p => p.Name)
929
+ .Where(g => g.Count() > 1)
930
+ .Select(g => g.Key)
931
+ .ToList();
932
+
933
+ foreach (var package in multipleVersions)
934
+ {
935
+ logger.LogWarning($"Found multiple not yet restored packages with name '{package}'.");
936
+ notYetDownloadedPackages.Remove(new(package, PackageReferenceSource.PackagesConfig));
937
+ }
938
939
logger.LogInfo($"Found {notYetDownloadedPackages.Count} packages that are not yet restored");
940
941
var nugetConfigs = allFiles.SelectFileNamesByName("nuget.config").ToArray();
0 commit comments