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

Install dependencies in cache/proxy mode #32

Open
llmuculusll opened this issue Jan 31, 2020 · 1 comment
Open

Install dependencies in cache/proxy mode #32

llmuculusll opened this issue Jan 31, 2020 · 1 comment

Comments

@llmuculusll
Copy link

When I install a package with Nuget it installs all package dependencies, But when I install the package with LiGet it installs the package itself not its dependencies.

When I install a package with LiGet:

PM> Install-Package Microsoft.AspNet.Mvc


Attempting to gather dependency information for package 'Microsoft.AspNet.Mvc.5.2.7' with respect to project 'WebApplication1Nuget', targeting '.NETFramework,Version=v4.7.2'
Gathering dependency information took 0.27 ms
Attempting to resolve dependencies for package 'Microsoft.AspNet.Mvc.5.2.7' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Microsoft.AspNet.Mvc.5.2.7'
Resolved actions to install package 'Microsoft.AspNet.Mvc.5.2.7'
Retrieving package 'Microsoft.AspNet.Mvc 5.2.7' from 'LigetCache'.
  GET http://192.168.2.4:9011/api/cache/v3/package/microsoft.aspnet.mvc/5.2.7/microsoft.aspnet.mvc.5.2.7.nupkg
  OK http://192.168.2.4:9011/api/cache/v3/package/microsoft.aspnet.mvc/5.2.7/microsoft.aspnet.mvc.5.2.7.nupkg 1324ms
Installing Microsoft.AspNet.Mvc 5.2.7.
Adding package 'Microsoft.AspNet.Mvc.5.2.7' to folder 'C:\Users\muculus\source\repos\WebApplication1Nuget\packages'
Added package 'Microsoft.AspNet.Mvc.5.2.7' to folder 'C:\Users\muculus\source\repos\WebApplication1Nuget\packages'
Added package 'Microsoft.AspNet.Mvc.5.2.7' to 'packages.config'
Successfully installed 'Microsoft.AspNet.Mvc 5.2.7' to WebApplication1Nuget
Executing nuget actions took 3.31 sec
Time Elapsed: 00:00:05.9299174

When I install a package with Nuget directly:


PM> Install-Package Microsoft.AspNet.Mvc


Attempting to gather dependency information for package 'Microsoft.AspNet.Mvc.5.2.7' with respect to project 'WebApplication1Nuget', targeting '.NETFramework,Version=v4.7.2'
Gathering dependency information took 3.39 sec
Attempting to resolve dependencies for package 'Microsoft.AspNet.Mvc.5.2.7' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Microsoft.AspNet.Mvc.5.2.7'
Resolved actions to install package 'Microsoft.AspNet.Mvc.5.2.7'
  GET https://api.nuget.org/v3-flatcontainer/microsoft.aspnet.razor/3.2.7/microsoft.aspnet.razor.3.2.7.nupkg
  GET https://api.nuget.org/v3-flatcontainer/microsoft.web.infrastructure/1.0.0/microsoft.web.infrastructure.1.0.0.nupkg
  OK https://api.nuget.org/v3-flatcontainer/microsoft.aspnet.razor/3.2.7/microsoft.aspnet.razor.3.2.7.nupkg 80ms
Installing Microsoft.AspNet.Razor 3.2.7.
  OK https://api.nuget.org/v3-flatcontainer/microsoft.web.infrastructure/1.0.0/microsoft.web.infrastructure.1.0.0.nupkg 88ms
Installing Microsoft.Web.Infrastructure 1.0.0.
  GET https://api.nuget.org/v3-flatcontainer/microsoft.aspnet.webpages/3.2.7/microsoft.aspnet.webpages.3.2.7.nupkg
  OK https://api.nuget.org/v3-flatcontainer/microsoft.aspnet.webpages/3.2.7/microsoft.aspnet.webpages.3.2.7.nupkg 106ms
Installing Microsoft.AspNet.WebPages 3.2.7.
Retrieving package 'Microsoft.AspNet.Mvc 5.2.7' from 'nuget.org'.
Retrieving package 'Microsoft.AspNet.Razor 3.2.7' from 'nuget.org'.
Retrieving package 'Microsoft.AspNet.WebPages 3.2.7' from 'nuget.org'.
Retrieving package 'Microsoft.Web.Infrastructure 1.0.0' from 'nuget.org'.
Adding package 'Microsoft.AspNet.Razor.3.2.7' to folder 'C:\Users\muculus\source\repos\WebApplication1Nuget\packages'
Added package 'Microsoft.AspNet.Razor.3.2.7' to folder 'C:\Users\muculus\source\repos\WebApplication1Nuget\packages'
Added package 'Microsoft.AspNet.Razor.3.2.7' to 'packages.config'
Successfully installed 'Microsoft.AspNet.Razor 3.2.7' to WebApplication1Nuget
Adding package 'Microsoft.Web.Infrastructure.1.0.0' to folder 'C:\Users\muculus\source\repos\WebApplication1Nuget\packages'
Added package 'Microsoft.Web.Infrastructure.1.0.0' to folder 'C:\Users\muculus\source\repos\WebApplication1Nuget\packages'
Added package 'Microsoft.Web.Infrastructure.1.0.0' to 'packages.config'
Successfully installed 'Microsoft.Web.Infrastructure 1.0.0' to WebApplication1Nuget
Adding package 'Microsoft.AspNet.WebPages.3.2.7' to folder 'C:\Users\muculus\source\repos\WebApplication1Nuget\packages'
Added package 'Microsoft.AspNet.WebPages.3.2.7' to folder 'C:\Users\muculus\source\repos\WebApplication1Nuget\packages'
Added package 'Microsoft.AspNet.WebPages.3.2.7' to 'packages.config'
Successfully installed 'Microsoft.AspNet.WebPages 3.2.7' to WebApplication1Nuget
Adding package 'Microsoft.AspNet.Mvc.5.2.7' to folder 'C:\Users\muculus\source\repos\WebApplication1Nuget\packages'
Added package 'Microsoft.AspNet.Mvc.5.2.7' to folder 'C:\Users\muculus\source\repos\WebApplication1Nuget\packages'
Added package 'Microsoft.AspNet.Mvc.5.2.7' to 'packages.config'
Successfully installed 'Microsoft.AspNet.Mvc 5.2.7' to WebApplication1Nuget
Executing nuget actions took 6.79 sec
Time Elapsed: 00:00:11.3572295

What is the problem with installing dependencies, Why LiGet doesn't install dependencies?

@thomasd3
Copy link

this is a problem with BaGet, and LiGet is a fork of it.. I came here to see if this was working.

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