-
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
nuget.exe push/delete won't use API Key #2627
Comments
@spadapet is this a regression? |
I tried the previous version (3.3.0.212) and it fails for an even more bizarre reason:
Looks like this: And then if I add the API Key for https://api.nuget.org/v3/index.json, it still fails: So, the behavior is sort of better now since I can actually unlist. But I need to know to set the API Key for a specific packages URL |
the issue here is |
Whether or not this is the same root cause as #2975 , that bug is not just a problem of inconsistent defaults, and it's not just a problem for nuget.org. |
@jmyersmsft yes, this is not a problem for nuget.org, it's for all sources |
Zhi found several dupes. Putting in beta3 for analysis. |
I had the same issue today on v3.4.3.855.
and was asked to login using username and password. So the issue for me was, when I ran: nuget SetApiKey abc...def, I noticed that in the config file ("%Appdata%\Roaming\Nuget\NuGet.Config") it added a key for https://www.nuget.org, when I changed to to the full path it worked fine -> https://www.nuget.org/api/v2/package So the bug appears to be in the SetApiKey command, not setting the correct key (for the push case anyway) |
@wallism get the latest nuget.exe 3.5.0 here: http://dist.nuget.org/index.html If you are still seeing the bug open a new issue to track this. |
Using version 3.4.3.854
REPRO
RESULT
WARNING: No API Key was provided and no API Key could be found for 'https://www.nuget.org/api/v2/package'. To save an API Key for a source use the 'setApiKey' command.
EXPECT
I already did set the API Key according to the instructions. Unlisting works fine if I set the API Key for https://www.nuget.org/api/v2/package, but why do I need to do that?
NOTE
Same issue with myget.org
The text was updated successfully, but these errors were encountered: