Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Non-interactive NuGet Restore impossible for ProGet private feeds
-
NuGet should already support the -NonInteractive flag when attempting to restore the package, can you add that and see if that helps?
-
Setting that flag just makes nuget.exe to throw exception when trying to prompt for credentials:
System.InvalidOperationException: Cannot prompt for input in non-interactive mode. -
In this case, you'll need to put credentials in the nugget.config file.
-
Hello
I am having the same problem that has been described before
I have a ProGet Chocolatey private feed, which I am using for artifacts built with Team City.
I have added the credentials for the feed "http://178.33.163.75:81/nuget/Artifacts" in the nuget.config.
Also, please notice that nuget says it's using the credentials from config.
But then it asks for the credentials for a completely different url "http://178.33.163.75:81/api/v2/package/Artifacts
/jobplatform_service/0.0.0.79"And since I am in NonInteractive mode, this will fail
This is the nuget command I enter:
C:\ProgramData\chocolatey\chocolateyinstall>nuget install jobplatform_service -v
ersion 0.0.0.79 -source http://178.33.163.75:81/nuget/Artifacts -NonInteractiveThis is the result:
Using credentials from config. UserName: TCDeploy
Please provide credentials for: http://178.33.163.75:81/api/v2/package/Artifacts
/jobplatform_service/0.0.0.79
UserName: Cannot prompt for input in non-interactive mode.How can I configure the credentials for this feed?
Thanks a huge lot
-
I am using password from nuget.config.
And as pointed by Pawel, password is being supplied when calling GET http://nuget.ourCompany.org/nuget/Corporate/Packages(Id='OurPackage',Version='1.0.2')but no password is supplied when calling GET http://nuget.ourCompany.org/api/v2/package/Corporate/OurPackage/1.0.2
Any solutions ? or work arounds.
FYI: I tried adding adding credentials in packageSourceCredentials for http://nuget.ourCompany.org/api/v2/package/Corporate/ or http://nuget.ourCompany.org/api/v2/
Still no luck.
Any help would be great!
Thanks
Manish -
This is, unfortunately, a bug in the NuGet client (v2.8.2 has it, as do various others).
There is no workaround, aside from getting the "CI build" of NuGet tools or using an older version without this bug.
-
Thanks Alana. moving back to an older version of Nuget.exe works
-
I'm having the same problem but reverting to 2.8.1 did not help.
-
I upgraded ProGet to current 3.4.5 from 3.3.11 and that fixed the problem.
-
Which older version of nuget works correctly?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login