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

No install when nuget package dependency has been unlisted. #1254

Closed
philderbeast opened this issue Nov 23, 2015 · 5 comments
Closed

No install when nuget package dependency has been unlisted. #1254

philderbeast opened this issue Nov 23, 2015 · 5 comments

Comments

@philderbeast
Copy link
Contributor

Paket cannot install a nuget package with a dependency on another nuget package when that other package has been unlisted. This is reproducable with the following minimal paket.dependencies ..

source https://nuget.org/api/v2
nuget ServiceStack.Host.AspNet

C:\...>.paket\paket install
Paket version 2.27.10.0
Resolving packages for group Main:
 - ServiceStack.Host.AspNet 4.0.48
 - ServiceStack.OrmLite.SqlServer 4.0.48
 - ServiceStack.Server 4.0.48
Paket failed with:
        Could not find versions for package WebActivator in any of the sources in ["https://nuget.org/api/v2"].

"The owner has unlisted this package. This could mean that the package is deprecated or shouldn't be used anymore."
SOURCE: https://www.nuget.org/packages/WebActivator

Even with this unlisted dependency nuget.exe itself can be used to install. Both the following nuget installs work ...

C:\..>nuget install ServiceStack.Host.AspNet

C:\...>nuget install WebActivator -Version 1.5.3
@philderbeast
Copy link
Contributor Author

Paket also fails on other commands, such as upgrade.

@philderbeast
Copy link
Contributor Author

I was able to work around this problem by adding one line to the paket.dependencies file, in order to pickup the package that I had already installed before it became unlisted ...

source https://nuget.org/api/v2
source packages

nuget ServiceStack.Host.AspNet

@forki
Copy link
Member

forki commented Nov 24, 2015

I jus talked to @maartenba - seems it's a NuGet v3 issue.

@forki
Copy link
Member

forki commented Nov 24, 2015

root cause is https://api-v3search-0.nuget.org/autocomplete?id=WebActivator&take=100000&prerelease=true doesn't show versions.

I worked around that, by retrying with v2 if no versions are reported.

@forki
Copy link
Member

forki commented Nov 24, 2015

@forki forki closed this as completed in 0eeb23b Nov 24, 2015
philderbeast added a commit to philderbeast/Paket that referenced this issue Nov 24, 2015
The issue number is 1254 and the WebActivator package number trying to
be resolved is 1.5.3. The typo is some kind of off by one error ;-)
philderbeast added a commit to philderbeast/Paket that referenced this issue Nov 24, 2015
forki added a commit that referenced this issue Nov 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants