1 parent b30141c commit 28503f6Copy full SHA for 28503f6
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