You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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?
@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
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.
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...
Activity
theimowski commentedon Sep 21, 2014
I'd like to start looking at this one. Can we base on the lock file to determine dependencies between packages? What impact should
strictmode have on the command? If given strict mode, then don't touch references files?forki commentedon Sep 21, 2014
yes simplify should respect the lockfile. Actually I think the lockfile needs to be the same afterwards.
strictmode should keep references files untouched. yesbartelink commentedon Sep 21, 2014
@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
bartelink commentedon Sep 21, 2014
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 simplifyis to simplify thedependencies, 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
simplifywill need to be able to take them all into account whereasinstalldoesn't need to reason about interrelationships to the same degree (it's making decisions off thedependenciesgraph as a whole and projecting them into thelock), Hence, if thedependenciesfile had a grammar,simplifycould 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
simplifyshould be that reprocessing thedependenciesshould 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
.dependenciesfiles should rather than being a wasted effort be the basis for further work along those lines.bartelink commentedon Sep 21, 2014
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 thedepdenciesand feed that into a processor that takes areferenceslist and simplifies it in the context of a set ofdependencies.@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...
forki commentedon Sep 22, 2014
PR in #152
bartelink commentedon Sep 22, 2014
@forki 'ees very speedy eh!
Merge pull request #102 from Vidarls/mixed