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
Credential plugin exited with error -1 / error downloading package when using credential providers with multiple sources #2885
Comments
Spoke to Zach offline. He has tried 3.4.3 as well as a recent dev build from MyGet. 3.3.0 does not demonstrate the issue. I am working on reproducing it on my end. |
Moved to 3.4.5, after talking to @rrelyea. |
Fixed with NuGet/NuGet.Client#640. Merged into |
this should be verified as part of our 3.5 RTM run. |
Need to confirm that this is fixed in 3.5.0. Please also test #3148 repro (dupe issue) to ensure that both are fixed...etc... |
Fixed with NuGet/NuGet.Client#779. |
I believe there's a bug with how exceptions are not handled after a credential provider invocation is cancelled, because the package was already successfully fetched from another package source. This results in an error that indicates the credential provider returned -1 (which it did because it was intentionally terminated by nuget).
I've reproed this in NuGet >=3.4, including latest nightly.
I haven't been able to repro this in 3.3 (when the credential provider system was introduced I believe), so something must have changed there between 3.3 and 3.4.
It can be somewhat consistently reproed with a configuration as simple as this:
NuGet.config
Packages.config
Output
The text was updated successfully, but these errors were encountered: