-
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
DefaultPushSource in NuGetDefaults.config (ProgramData\NuGet) doesn't work #2653
Comments
Putting in 3.4.4 until we know if regression or not. |
This is a regression from 3.3.0 It just doesn't read the %ProgramData%\NuGet\NuGetDefaults.Config This has just broken all our build servers as we do a
|
@zhili1208 can you dig into this report from @holytshirt and look at more commands ensuring that progdata is appropriately being loaded. He reports that sources doesn't load it too. |
I want to understand regressions from 3.3 vs regressions from 2.x in 3.4.4 we will only fix 3.3 and on regressions |
I'm good with that, this is a regression from 3.3. If you need any more information or testing from me, just let me know. |
@HolyShirt, are you referring to sources or defaultpushsource? |
@yishaigalatzer I think he is referring to sources, we load sources from nugetDefault.config in 3.3, but doesn't do that in 3.4. This is regression from 3.3, but 3.3 has another issue: writing sources from nugetDefault.Config to local nuget.config during saving package sources. |
@yishaigalatzer as @zhili1208 said 3.3 does not load Not loading this file causes all default settings to be not load for :
|
I suggest fixing this for 3.4.4 anyway, because the removal of the default push source being nuget.org is a breaking change without a solution (yet). |
We will have a 3.4.4 build out today for verification |
@holytshirt I'm seeing slightly different behavior with my testing. can you tell us the paths of the different config files under %progdata%, along with their contents? |
@rrelyea <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- DefaultPushSource key is similar to the 'DefaultPushSource' key of NuGet.config schema-->
<!-- This can be used by administrators to prevent accidental publishing of packages to nuget.org -->
<config>
<add key="DefaultPushSource" value="http://localnuget.company.local:81/nuget/company/" />
</config>
<!-- Default Package Sources -->
<!-- They cannot be deleted or modified but can be disabled/enabled by user -->
<!-- The following section is similar to 'packageSources' section of NuGet.config schema -->
<packageSources>
<add key="nuget.org -cached (localnuget)" value="http://localnuget.company.local:81/nuget/nuget.org" />
<add key="companyShared Libraries (localnuget)" value="http://localnuget.company.local:81/nuget/company" />
<add key="Microsoft and .NET -cached (localnuget)" value="http://localnuget.company.local:81/nuget/nuget.org.microsoft" />
</packageSources>
<!-- Default Package Sources that are Disabled by Default -->
<!-- They cannot be modified or deleted either but can be enabled/disabled by user -->
<!-- The following section is similar to 'disabledPackageSources' section of NuGet.config schema -->
<!-- The value part of the entry in 'disabledPackageSources' section has no effect -->
<disabledPackageSources>
</disabledPackageSources>
</configuration> Anything else you need? |
That helps. Thx. We are considering options. |
I tested DefaultPushSource in local nuget.config, user nuget.config, and machine nugetdefaults.config. Works fine. |
I always get the error message
Source parameter was not specified
even though myNuGetDefaults.config
(stored inC:\ProgramData\NuGet
) looks like this:According to the documentation, this should work...
EDIT: I'm using NuGet 3.4.3.
The text was updated successfully, but these errors were encountered: