1 parent 5cc7aba commit e4b277bCopy full SHA for e4b277b
1 file changed
csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/NugetPackageRestorer.cs
@@ -460,7 +460,7 @@ private bool TryRestorePackageManually(string package, List<string> nugetSources
460
return true;
461
}
462
463
- if (!feedManager.CheckNugetFeedResponsiveness && res.HasNugetPackageSourceError && nugetSources.Count > 0)
+ if (!feedManager.CheckNugetFeedResponsiveness && !feedManager.HasPrivateRegistryFeeds && res.HasNugetPackageSourceError && nugetSources.Count > 0)
464
{
465
logger.LogDebug($"Trying to restore '{package}' without explicitly providing NuGet sources.");
466
// Restore could not be completed because the listed source is unavailable. Try without an explicit restore source argument.
0 commit comments