-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NuGetPackageManager.InstallPackageAsync doesn't respect IgnoreFailedSources #7304
Comments
Please vote/comment there and follow-up for future update to that issue. |
@jainaashish, my original concern was about broken NuGet API: it take an instance of |
@jainaashish @karann-msft @rrelyea Hi folks! |
But the same method |
@jainaashish,
However, you wrote:
Only the NuGet.VisualStudio package includes APIs from your list (because the title of the list is "NuGet API in Visual Studio"). Do I understand correctly that other packages from the NuGet Client SDK (like NuGet.Packaging or NuGet.Protocol) don't contain public API at all? |
Those libraries |
Well, you publish these libraries on nuget.org, and they are available for everyone. There are a lot of different applications which use the NuGet Client SDK. I'm trying to understand your policy about these applications. Am I right that you are not going to make any changes which will be useful for non-Microsoft NuGet clients (all clients except Visual Studio or NuGet Gallery)? |
Again you're misreading it. I only meant that those libraries have supported infrastructure for existing IVS apis and web apis. But any consumer is free to consume them or any other NuGet library as and when it fits their requirement. But they aren't publicly supported APIs. Making a change in non-public apis or adding new ones always depends on the individual cases, we've done it in past depending on how valuable those changes are for the whole community. But it's also not possible to take every single request into consideration given the time n resource constraints. Having said that, It's all open source and if there are enough community feedback to support this request, then we'll be happy to take a contribution. Or you always have an option to fork and have your own copy of NuGet (but that will add an overhead to maintain it at your own). |
@jainaashish, here is another issue from me: #3324 It has 72 👍 , dozens of comments, and even a blog post about this issue. You had an awesome solution for this problem in NuGet 2.x. However, you don't want to reimplement it in NuGet 4.x. I (and some other developers) will be happy to implement a proper fix, but you ignore all our suggestions. How much community feedback do you need to accept such a PR? |
@jainaashish still waiting for a response from you. How much community feedback do you need to accept a contribution? |
@AndreyAkinshin voting #5463 up would definitely help us prioritize the issue against others. |
If I have an unavailable feed in the
NuGet.Config
(e.g.,http://localhost:9000/guestAuth/app/nuget/v1/FeedService.svc/
), I can't install a NuGet package viaNuGetPackageManager.InstallPackageAsync
.I tried to set
ResolutionContext.SourceCacheContext.IgnoreFailedSources = true
, but it doesn't help becauseNuGet.PackageManagement.ResolverGather.InitializeResourcesAsync
doesn't check this flag and just rethrow an exception:It also affects different NuGet clients. For example, I can't install a package in Visual Studio (15.7.4) while restore is working without any problems.
NuGet product used: NuGet.PackageManagement
NuGet version: 4.8.0
OS version: reproduced on Windows, Linux, macOS
The text was updated successfully, but these errors were encountered: