Nuget manager fails to update packages.lock.json
artifact if nuget.config
contains default registry
#20888
Labels
manager:nuget
NuGeT (.NET) package manager
priority-3-medium
Default priority, "should be done" but isn't prioritised ahead of others
type:bug
Bug fix of existing functionality
How are you running Renovate?
Mend Renovate hosted app on github.com
If you're self-hosting Renovate, tell us what version of Renovate you run.
No response
If you're self-hosting Renovate, select which platform you are using.
None
If you're self-hosting Renovate, tell us what version of the platform you run.
No response
Was this something which used to work for you, and then stopped?
I never saw this working
Describe the bug
Minimal reproduction repository: https://github.com/skyfrk/renovate-nuget-issue-20888
If the
nuget.config
contains the default registry RenovateBot tries to add it usingdotnet nuget add source
and it fails, because it is already configured. This should theoretically also happen if there is nonuget.config
and renovate tries to add thedefaultRegistryUrls
of thenuget
datasource.To fix this issue, renovate should run
dotnet nuget list source
to get a list of already existing sources and only add additional sources.Relevant debug logs
Logs
Have you created a minimal reproduction repository?
I have read the minimal reproductions documentation and linked to such a repository in the bug description
The text was updated successfully, but these errors were encountered: