-
Notifications
You must be signed in to change notification settings - Fork 256
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
"Unable to gather dependency information for multiple packages" when updating a project with at least one package where none of the packages exists on the target source #5884
Comments
Could you try to specify nuget.org as your source like following?
|
@zhili1208 - If I include both of the sources that is going to work as it will find the other package on the official feed. To be clear I do not want to do an update against the official feed because I am only interested in updating internal packages and not external 3rd party packages. This was working as of 2.12.0 but we now need to move to a newer version of nuget. If the packages.config is empty then the update does not fail but obviously nothing is updated. If the packages.config contains at least one packages that exists on the target source it will also complete successfully even if there are packages that do not exist on the target source. For completeness I have run an update using a package.config only contains internal packages that will not exist on the official feed. If I try to do an update against the official feed I get the same error.
|
If I understand what @zhili1208 just told me about this issue, it sounds like you have a set of internal packages and external packages. You'd like to lock down version of the external packages, and no be presented updates for those packages. Given that, we're going to close this issue. Because we'd like to support this through lineups and not by changing our error behavior in this case. Thanks. |
@rrelyea - Yes that is pretty much it however the current behaviour does not feel right given the following scenarios. Given I have a nuget packages file Given I have a nuget packages file Given I have a nuget packages file I would have expected the last scenario to behave the same was as the first scenario. Also this is a breaking change from version 2.x as version 2.x handles the last scenario the same way as the first. |
@rrelyea - Did you have a chance to review the above and any consideration for reopening? This is causing us issues from moving from nuget v2x to v4 |
Details about Problem
Nuget update exists with an exit code of 1 and a message of "Unable to gather dependency information for multiple packages" when updating a project that has at least one nuget package and none of the nuget packages exist on the source.
We have a solution which is built on TeamCity this solution has multiple internal dependencies that live as nuget artifacts on TeamCity. Nightly we run a build that updates all the internal nuget dependencies to ensure there are no breaking changes should we do an update. When updating a project that does not have any internal nuget dependencies but has at least one nuget dependency the update fails with the message above. This does not happen if the packages.config contains no packages.
NuGet product used NuGet.exe
NuGet version (3.5 - 4.3):
OS version (Multiple versions of windows)):
Worked before? If so, with which NuGet version: 2.12.0
Verbose Logs
From 3.5
Just stack trace from 4.3
The text was updated successfully, but these errors were encountered: