Skip to content

Allow to "internalize" package dependencies #515

Closed

Description

@forki

Sometime we have conflicts in our dependency graph.
One solution to solve (even if not always applicable) is to install both versions of the package.

NuGet puts the version no. in the path to solve this. But this makes updates a nightmare since the path is not stable.

I propose the following:

We add a new syntax to the paket.dependencies file which specifies that a given dependency of a package should be internalized.

nuget FSharp.Formatting
    internalize nuget Microsoft.AspNet.Razor
    internalize nuget RazorEngine

then we propagate this into the paket.lock file.

During restore we would create the following structure:

- packages/FSharp.Formatting/... // normal package
- packages/FSharp.Formatting/dependencies/Microsoft.AspNet.Razor/...
- packages/FSharp.Formatting/dependencies/RazorEngine/...

This would allow people to deal with conflicts and still have stable paths.

Activity

  1. panesofglass commented on Jan 5, 2015

    @panesofglass
    Contributor

    👍

  2. DamianReeves commented on Jan 8, 2015

    @DamianReeves

    👍
    I just stumbled on a use case for this recently:

    • I have a solution which has a windows service targeting .NET 4.5 and uses Microsoft.AspNet.WebApi.OwinSelfHost which depends on Microsoft.Owin version >= 3.0.0 (which only has a .NET 4.5 target).
    • I have a webproject which targets .NET 4.0 and references Microsoft.Owin.Host.SystemWeb 2.1.0 which needs Microsoft.Owin version 2.1 (which has both a .NET 4.5 and 4.0 target).

    With paket in its current state I can't proceed and it looks like I need to revert to using vanilla NuGet.

  3. forki commented on Oct 31, 2016

    @forki
    MemberAuthor

    I tried to implement this but it's too hard. Closing this for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions