Repository navigation
Closed
Description
My lock file has:
NUGET
remote: http://nuget.org/api/v2
specs:
Microsoft.AspNet.WebApi (5.2.2)
Microsoft.AspNet.WebApi.WebHost (>= 5.2.2, < 5.3.0)
Microsoft.AspNet.WebApi.Client (5.2.2)
Newtonsoft.Json (>= 6.0.4)
Newtonsoft.Json (>= 6.0.4)
Microsoft.Net.Http (>= 2.2.22)
Microsoft.AspNet.WebApi.Core (5.2.2)
Microsoft.AspNet.WebApi.Client (>= 5.2.2)
Microsoft.AspNet.WebApi.WebHost (5.2.2)
Microsoft.AspNet.WebApi.Core (>= 5.2.2, < 5.3.0)
Microsoft.Bcl (1.1.9)
Microsoft.Bcl.Build (>= 1.0.14)
Microsoft.Bcl.Build (1.0.21)
Microsoft.Net.Http (2.2.28)
Microsoft.Bcl (>= 1.1.9)
Microsoft.Bcl.Build (>= 1.0.14)
Newtonsoft.Json (6.0.5)
Unquote (2.2.2)
bootstrap (3.2.0)
jquery (>= 1.9.0)
hyprlinkr (1.1.1)
Microsoft.AspNet.WebApi.Core (>= 4.0.20710.0)
jquery (2.1.1)
xunit (1.9.2)
STEP 1: Enrich with incoming and outgoing edges
(not shown)
STEP 2: Separate into ones with None outgoing edges vs Some (Q: what is best symbol? want an arrow effect like the pipes I have but dont want to clash with equality operators in version specs ... -> / <- ? Gratuitous unicode symbols? >> / << ? @ReedCopsey :P)
bootstrap (3.2.0)
<| jquery (>= 1.9.0)
hyprlinkr (1.1.1)
<| Microsoft.AspNet.WebApi.Core (>= 4.0.20710.0)
Microsoft.AspNet.WebApi (5.2.2)
<| Microsoft.AspNet.WebApi.WebHost (>= 5.2.2, < 5.3.0)
Unquote (2.2.2)
xunit (1.9.2)
jquery (2.1.1)
|> bootstrap (>= 1.9.0)
Microsoft.Bcl (1.1.9)
|> Microsoft.Net.Http (>= 1.1.9)
Microsoft.Bcl.Build (1.0.21)
|> Microsoft.Bcl (>= 1.0.14)
|> Microsoft.Net.Http (>= 1.0.14)
Microsoft.AspNet.WebApi.Client (5.2.2)
|> Microsoft.AspNet.WebApi.Core (>= 5.2.2)
<| Newtonsoft.Json (>= 6.0.4)
<| Newtonsoft.Json (>= 6.0.4)
<| Microsoft.Net.Http (>= 2.2.22)
Microsoft.AspNet.WebApi.Core (5.2.2)
|> hyprlinkr (>= 4.0.20710.0)
|> Microsoft.AspNet.WebApi.WebHost (>= 5.2.2, < 5.3.0)
<| Microsoft.AspNet.WebApi.Client (>= 5.2.2)
<| Microsoft.Net.Http (>= 2.2.22)
Microsoft.AspNet.WebApi.WebHost (5.2.2)
|> Microsoft.AspNet.WebApi (>= 5.2.2, < 5.3.0)
<| Microsoft.AspNet.WebApi.Core (>= 5.2.2, < 5.3.0)
Microsoft.Net.Http (2.2.28)
|> Microsoft.AspNet.WebApi.Core (>= 2.2.22)
<| Microsoft.Bcl (>= 1.1.9)
<| Microsoft.Bcl.Build (>= 1.0.14)
Newtonsoft.Json (6.0.5)
|> Microsoft.AspNet.WebApi.Client (>= 6.0.4)
|> Microsoft.AspNet.WebApi.Client (>= 6.0.4)
STEP 3: Distill second group:
(as in step 2, nodes with no outgoing edges)
bootstrap (3.2.0)
<| jquery (>= 1.9.0)
hyprlinkr (1.1.1)
<| Microsoft.AspNet.WebApi.Core (>= 4.0.20710.0)
Microsoft.AspNet.WebApi (5.2.2)
<| Microsoft.AspNet.WebApi.WebHost (>= 5.2.2, < 5.3.0)
Unquote (2.2.2)
xunit (1.9.2)
(3A: direct depends from prev group with no path)
jquery (2.1.1)
|> bootstrap (>= 1.9.0)
Microsoft.AspNet.WebApi.Core (5.2.2)
|> hyprlinkr (>= 4.0.20710.0)
|> Microsoft.AspNet.WebApi.WebHost (>= 5.2.2, < 5.3.0)
<| Microsoft.AspNet.WebApi.Client (>= 5.2.2)
<| Microsoft.Net.Http (>= 2.2.22)
Microsoft.AspNet.WebApi.WebHost (5.2.2)
|> Microsoft.AspNet.WebApi (>= 5.2.2, < 5.3.0)
<| Microsoft.AspNet.WebApi.Core (>= 5.2.2, < 5.3.0)
(3B: direct depends from prev group with no path)
Microsoft.AspNet.WebApi.Client (5.2.2)
|> Microsoft.AspNet.WebApi.Core (>= 5.2.2)
<| Newtonsoft.Json (>= 6.0.4)
<| Newtonsoft.Json (>= 6.0.4)
<| Microsoft.Net.Http (>= 2.2.22)
Microsoft.Net.Http (2.2.28)
|> Microsoft.AspNet.WebApi.Core (>= 2.2.22)
<| Microsoft.Bcl (>= 1.1.9)
<| Microsoft.Bcl.Build (>= 1.0.14)
(3C: direct depends from prev group with no path)
Microsoft.Bcl (1.1.9)
|> Microsoft.Net.Http (>= 1.1.9)
Microsoft.Bcl.Build (1.0.21)
|> Microsoft.Bcl (>= 1.0.14)
|> Microsoft.Net.Http (>= 1.0.14)
Newtonsoft.Json (6.0.5)
|> Microsoft.AspNet.WebApi.Client (>= 6.0.4)
|> Microsoft.AspNet.WebApi.Client (>= 6.0.4)
Proposal
bootstrap (3.2.0)
+ jquery (>= 1.9.0)
hyprlinkr (1.1.1)
+ Microsoft.AspNet.WebApi.Core (>= 4.0.20710.0)
Microsoft.AspNet.WebApi (5.2.2)
+ Microsoft.AspNet.WebApi.WebHost (>= 5.2.2, < 5.3.0)
Unquote (2.2.2)
xunit (1.9.2)
jquery (2.1.1)
-> bootstrap (>= 1.9.0)
Microsoft.AspNet.WebApi.Core (5.2.2)
+ Microsoft.AspNet.WebApi.Client (>= 5.2.2)
+ Microsoft.Net.Http (>= 2.2.22)
-> hyprlinkr (>= 4.0.20710.0)
-> Microsoft.AspNet.WebApi.WebHost (>= 5.2.2, < 5.3.0)
Microsoft.AspNet.WebApi.WebHost (5.2.2)
+ Microsoft.AspNet.WebApi.Core (>= 5.2.2, < 5.3.0)
-> Microsoft.AspNet.WebApi (>= 5.2.2, < 5.3.0)
Microsoft.AspNet.WebApi.Client (5.2.2)
+ Newtonsoft.Json (>= 6.0.4)
+ Newtonsoft.Json (>= 6.0.4)
+ Microsoft.Net.Http (>= 2.2.22)
-> Microsoft.AspNet.WebApi.Core (>= 5.2.2)
Microsoft.Net.Http (2.2.28)
+ Microsoft.Bcl (>= 1.1.9)
+ Microsoft.Bcl.Build (>= 1.0.14)
-> Microsoft.AspNet.WebApi.Core (>= 2.2.22)
Microsoft.Bcl (1.1.9)
-> Microsoft.Net.Http (>= 1.1.9)
Microsoft.Bcl.Build (1.0.21)
-> Microsoft.Bcl (>= 1.0.14)
-> Microsoft.Net.Http (>= 1.0.14)
Newtonsoft.Json (6.0.5)
-> Microsoft.AspNet.WebApi.Client (>= 6.0.4)
-> Microsoft.AspNet.WebApi.Client (>= 6.0.4)
Design Notes:
- This format should yield relevant diffs from text based diffing tools over time
- the
paket installprocess only needs to read unindented lines - the
->and+symbols are wide open for discussion. For me the key consideration is wehther whetherthey clash with the comparison symbols in the version specs. - I think grouping is important (and the associated blank lines) as
- we have a graph so nesting won't work but we still want to expose the depth of the dependency relationship
- sorting only makes sense with items at similar levels in the hierarchy
- the diffs make more sense when one can see an item switching groups
- we need to group to be able to surface information that is not obvious from a flat list
Other ideas:
- The lock file should prob have a child under each top level item detailing the rule that triggered it
- it's OK if a non
paket simplifyd file produces a single flat group - the+and->relationships will give clues as to the nature of the relationships (e.g. can see if a component is top level by lack of->)
Original proposal for posterity / to make comments make sense
bootstrap (3.2.0)
jquery (>= 1.9.0)
hyprlinkr (1.1.1)
Microsoft.AspNet.WebApi.Core (>= 4.0.20710.0)
Microsoft.AspNet.WebApi (5.2.2)
Microsoft.AspNet.WebApi.WebHost (>= 5.2.2, < 5.3.0)
Unquote (2.2.2)
xunit (1.9.2)
Microsoft.AspNet.WebApi.WebHost (5.2.2)
Microsoft.AspNet.WebApi.Core (>= 5.2.2, < 5.3.0)
Microsoft.AspNet.WebApi.Core (5.2.2)
Microsoft.AspNet.WebApi.Client (>= 5.2.2)
jquery (2.1.1)
Microsoft.AspNet.WebApi.Client (5.2.2)
Newtonsoft.Json (>= 6.0.4)
Newtonsoft.Json (>= 6.0.4)
Microsoft.Net.Http (>= 2.2.22)
Microsoft.Net.Http (2.2.28)
Microsoft.Bcl (>= 1.1.9)
Microsoft.Bcl.Build (>= 1.0.14)
Newtonsoft.Json (6.0.5)
Microsoft.Bcl (1.1.9)
Microsoft.Bcl.Build (>= 1.0.14)
Microsoft.Bcl.Build (1.0.21)
Metadata
Metadata
Assignees
Labels
No labels
Activity
bartelink commentedon Sep 19, 2014
A further example:
Should render as:
This allowed me to manually shrink my
Paket.referencestoby looking at the first batch
forki commentedon Sep 19, 2014
I agree about the sorting. I thought I had this already fixed. Mhm will
investigate and add a regression test.
On Sep 19, 2014 12:24 PM, "bartelink" [email protected] wrote:
bartelink commentedon Sep 19, 2014
I built from source at some point this morning IIRC. No other case-sensitivity issues observed, just sorting in the lock file. Won't get to do proper repro till later but knowing you; things will be long fixed by then!
Lock file should sorted alphabetical (case-insensitive - references #…
bartelink commentedon Sep 19, 2014
Cool, thanks.
So, about the grouping idea... Want to keep this issue closed and the list short or want me to edit primary issue to talk only about that ? // cc @agross
forki commentedon Sep 19, 2014
TBH didn't understand the grouping
bartelink commentedon Sep 19, 2014
@forki GTG, will explain later but will try now. Within groups, you sort alpha. Roots are in first group. Direct deps of that group go into group 2. Recurse until all put into groups and save.
bartelink commentedon Sep 19, 2014
@forki Right, let's try this...
For me, direct references are a lot more interesting than indirect ones.
If I'm using WebApi, and there's a top level package that I add, I don't care if there's a
Microsoft.Bcl.Buildpackage most of the time - I don't want to look at it.If I'm using
hyprlinkrand nothing else in the list is referencing it (yet it referencesMicrosoft.AspNet.WebApi.Core), I want to know that.If WebGrease is using Antlr, I might be interested in that. But not as much as the fact that it was
Microsoft.AspNet.Web.Optimizationthat pulled both of them in.The grouping above stores has the exact same data as the normal lock file, with an extra blank line between the 3-5 groups. Each indent is the same. Each package has the direct depends in the same format nested underneath. Within each group, the sorting is still case insensitive.
The only difference is that items that are pulled in by others in earlier groups come later.
The stuff at the top is ready to reason about / glance at and/or put at the top of your
Paket.dependencies(have to stop uppercasing the P :P). And the stuff at the bottom is stuff likeMicrosoft.Bcl.BuildQuestions? (Will be spiking the algorithm if you're not in a position to to/fro right now)
bartelink commentedon Sep 19, 2014
Another example:
Breaks out as:
forki commentedon Sep 19, 2014
Actually I think this should be solved via #102
bartelink commentedon Sep 19, 2014
Yes, hence "The stuff at the top is ready to reason about / glance at and/or put at the top of your Paket.dependencies " - IOW I agree that the effect of
paket simplifyis to leave only the top group in the file.But the
paket.lockfile is still not necessarily legible, which is the point at hand here.Also, doing simplifys aggressively all the time can lose important constraints (you might want to pin a speciific json.net and/or consider something that n packages depend on to actually be a primary reference).
forki commentedon Sep 19, 2014
... googling "legible" .... will be right back ....
bartelink commentedon Sep 19, 2014
... or do you mean that the work/speccing of the sorting of the lock file should live under that issue? I semi agree but to be honest I'm not interested in complicating that feature unnecessarily - this feature on its own can
legible means "can be read" [by humans]
forki commentedon Sep 19, 2014
Ok let's try to improve the lockfile.
How can we make your idea really obvious? I don't think your proposal is atm.
Nesting might help. Can you come up with different proposals?
bartelink commentedon Sep 19, 2014
We kinda did this before...
One tension is that trees have redundancy, which doesnt help either the humans or the computer
If it's about emitting a treeset, that's probably best achieved by
install -verboseor-describeHaving said that, one key thing is to have the rendering be stable so that diffs over time can be analysed as clearly as alpha sorting can
Let me see if I can do something with nesting all the same though... No - won't work as far too often most stuff at bottom is referenced from very many parents (and the interelationships are not very interesting). Thinking...
Tried inverting the tree, but that doesn't make sense either - each package that depends on a package has a versionspec. So yes, json.net is this version, but there are multiple dependees and we are interested in what they depended on etc. More thinking...
forki commentedon Sep 19, 2014
That's what I wanted to hear. ;-) I don't think grouping is the way to go.
bartelink commentedon Sep 19, 2014
It's looking good (though unexpected, and not a tree (which is not surprising as it's all a graph...)). Processing....
@forki Right, ready for review, grouping or not (please re-read from the top - I've edited each sample and added reasoning as to e.g. why a tree won't really make sense). Have left the workings at the top but I think it will be best to remove them and replace with a desc of the algorithm in English once you, @agross, @ilkerde, @theimowski, @isaacabraham and anyone else with an opinion are agreed.
Def interested in getting this assessed and/or refined properly out as I believe this will help a lot to help the product explain itself out in the world without people needing to write (or worse: read :P) docs too much!
Anyone have a
paket.lockfile they'd like to see re-rendered and/or discuss as an example of how this might be a bad idea?bartelink commentedon Sep 22, 2014
@forki Can you review please when you get a chance? I can log a new issue with a fresh summary of the proposal once we've agreed the basics.
forki commentedon Sep 22, 2014
I do like the idea to make the resolution process visible in the lockfile.
But I don't have time to change the lockfile very soon.
bartelink commentedon Sep 22, 2014
@forki Totally get that and not pushing for it now. And I'm going to add more to the issues list shortly :(
However, some things I'll be posting will try to use similar patterns, i.e. if I'm proposing a syntax for adding a reference to a package and this shows that as
+ Package, I want to use the same in thedependenciesas this is really a projection from the dependencies graph computation processMy proposal will be retty close #125 and as a result has minor implications (really just making it more consistent) for the lockfile, e.g.:
Would change a bit and the
lockanddependencieswould share a common style wrt Files and NuGets.So my question is really - at a high level, is there anything you don't like about the formatting:
+for showing child package references->or some other symbol not used independenciesto convey inferences the model has made fully respect that this just adds time to the long pole and complexity to the impl at this point.If you can give that basic reaction, we can let this sit here closed and when it makes sense to revisit the lockfile and/or after it has been visited for a reason we can consider adding this in at that point.
bartelink commentedon Sep 22, 2014
@forki Should I log a minimal WIP edition of this as an Open issue so others can review/comment? It's kinda in limbo now ?
bartelink commentedon Sep 23, 2014
Will revise this in light of #154 - will prob do some examples of grouping based on the syntax in it later.
bartelink commentedon Sep 25, 2014
@forki This one is def superseded by #165 now
If you like (i.e., if you ask or if I don't get an ack at some stage), I can translate the other 2 examples into #165 - I think MVC+WebApi is a pretty good example of how much this can clarify matters but IMO the concept is already plenty clear based on the examples there.