Skip to content

Add a simplify command #102

Closed
Closed

Description

@forki

We would like to have a paket simplify command which removes all indirect dependencies from the paket.dependencies file and maybe even from the paket.references files.

Activity

  1. theimowski commented on Sep 21, 2014

    @theimowski
    Member

    I'd like to start looking at this one. Can we base on the lock file to determine dependencies between packages? What impact should strict mode have on the command? If given strict mode, then don't touch references files?

  2. forki commented on Sep 21, 2014

    @forki
    MemberAuthor

    yes simplify should respect the lockfile. Actually I think the lockfile needs to be the same afterwards.

    strict mode should keep references files untouched. yes

  3. bartelink commented on Sep 21, 2014

    @bartelink
    Member

    @theimowski Have you seen #123 ?
    @forki Have you seen #123 or are you too deep in NuGet hell ?
    I'm also mulling over a proposal re source packages which would build on this general notion

  4. bartelink commented on Sep 21, 2014

    @bartelink
    Member

    If the lockfile is to form the basis of such an algorithm, I'd wait until the #125, #111, #114 and #89 etc gets organised.

    While it includes info derived from the dependencies, and arguably should expose all for debugging etc. (#123), right now its conceptually 'just' the input to the install phase.

    I'd futher say that, given that purpose of paket simplify is to simplify the dependencies, it should work from there.

    If dependency interrelationships have complexity we need to be able to reason about and manage (I think we can agree on that!), then simplify will need to be able to take them all into account whereas install doesn't need to reason about interrelationships to the same degree (it's making decisions off the dependencies graph as a whole and projecting them into the lock), Hence, if the dependencies file had a grammar, simplify could read it, transform it and save it right back.

    This is yet another reason I'll try to unify these concepts in a set of issues ASAP.

    I think that an important validation / sepcification of a straightforward simplify should be that reprocessing the dependencies should yield the same lockfile.

    @theimowski Please dont take this as a "please don't do it I want to change the world". As logn as the fundamentals in here make sense, all I'm really talking about is formalising some aspects. Any impl you do that works off the .dependencies files should rather than being a wasted effort be the basis for further work along those lines.

  5. bartelink commented on Sep 21, 2014

    @bartelink
    Member

    Simplifying references files is similar in that it needs to understand the grammar of the input, perform transformations, taking a model into account, and then emit it backa again. IOW it should be able to build up the same model from the depdencies and feed that into a processor that takes a references list and simplifies it in the context of a set of dependencies.

    @ilkerde You gave me a lot of food for thought in #114 (comment) - while it may seem or feel I was pooh poohing it, I believe it and #125 when refined can really clean up a lot of things...

  6. forki commented on Sep 22, 2014

    @forki
    MemberAuthor

    PR in #152

  7. bartelink commented on Sep 22, 2014

    @bartelink
    Member

    @forki 'ees very speedy eh!

  8. added a commit that references this issue on Jun 3, 2015
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