-
-
Notifications
You must be signed in to change notification settings - Fork 732
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
Add an explicit NuGet source for NuGetPush #970
Comments
I've confirmed that the previous default was (and should probably continue to be) |
@daveaglick I wanted to touch base on this issue. We, the @cake-build/team have spoken about this at length, and we have come to the decision that we are not going to implement this suggestion. What it comes down to is that there is no real way to cover all the requirements of this "breaking" NuGet change, without inversely affecting build scripts that are already in place. The approach that we have decided to follow is this:
As a result, I am going to go ahead and close the PR that you opened for this issue. If you would like to talk about this some more, then please feel free to reach out to the team. |
Sounds good - I've already patched my own builds to supply sources on push, so this no longer affects me personally. Anyone else who has a build script that doesn't supply a source will break when they update NuGet and try to push. I'm guessing at this point most folks have probably already updated NuGet and encountered this if they were going to. The verbose warning should help point out what they need to do to get back up and running. |
@daveaglick re-opening this, as I have an open PR that will add documentation for this scenario. |
GH970: Added documentation and logging for NuGetPush
Fixed by #1113 |
As of NuGet client 3.4.something, performing a NuGet push requires a source to be specified (it used to use a default source if none was provided). See NuGet/Home#2504 for more information.
At first glance, I would assume this should go in
NuGetPusher
(https://github.com/cake-build/cake/blob/develop/src/Cake.Common/Tools/NuGet/Push/NuGetPusher.cs#L74) as an alternate branch ifNuGetPushSettings.Source
isn't specified. The bigger question is probably what the default should be...The text was updated successfully, but these errors were encountered: