Skip to content
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

Pack Failure: Failed to retrieve information from remote source 'd:\dump\nuget\issues\x\packages'. #3343

Closed
kingerja opened this issue Aug 19, 2016 · 3 comments
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Functionality:Pack Type:Bug
Milestone

Comments

@kingerja
Copy link

When running nuget pack under some situations such as not having a nuget.config to load the above error occurs.

Additional info:
[‎8/‎19/‎2016 3:35 PM] Zhi Li:
I found out the reason, because NuGetPackages folder doesn't exist on my disk, nuGet try to get information from that folder

@kingerja
Copy link
Author

Repro steps:
robocopy \joshking-main\dump\nuget\issues\3343 d:\temp\nuget\issue\3343
cd /d d:\temp\nuget\issue\3343
nuget.exe pack GatedBalance.csproj

@rrelyea rrelyea added Functionality:Pack Area:ErrorHandling warnings and errors/log messages & related error codes. Type:Bug labels Aug 23, 2016
@rrelyea rrelyea added this to the Future milestone Aug 23, 2016
@rrelyea
Copy link
Contributor

rrelyea commented Aug 23, 2016

If you restore first, this works fine.
We should improve the error message when a packages folder doesn't exist.
Currently: "failed to retrieve information from remote source packages "c:\temp\foo\packages""
Should be better...like "Packages folder ('c:\temp\foo\packages') is missing. Please do a "nuget restore" to fix."

@zhili1208
Copy link
Contributor

Checked with dev branch, this is already fixed in dev branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Functionality:Pack Type:Bug
Projects
None yet
Development

No branches or pull requests

3 participants