Repository navigation
Simplify command - #152
Simplify command#152
Conversation
|
Cool man! I know I bang on about it but have you seen #123; it makes sense for any item that doesn't have a parent in the set to be removed (but I assume that's obvious to you!) ? |
There was a problem hiding this comment.
Can please call it DependenciesFile?
0b2889a to
b77b4ca
Compare
There was a problem hiding this comment.
we should probably scan the code for "paket.references" and put it into Constants. Can you do this too? Thanks
|
@bartelink the alg is to remove all entries that are dependent on direct packages (directly or indirectly) 👯 |
There was a problem hiding this comment.
do we already have Save() method on the DependenciesFile?
Could take good use of this in Add command.
|
@theimowski Can't say I've thought about it much, but that seems to make sense. Again, probably a silly question, not looking at the code, just guessing: if there's a rule that says that if the deps file has a rule that differs in any way from Yet another silly question, have you considered adding FsCheck based tests specifying your algorithm (it can be mindbending but ultimately there can be no better validation IMO) ? Finally, as a general point (I know there are other ones about and you prob didnt put them there), but I don't understand what the Will hopefully get around to some sanify checking in coming days - wont happen today :( |
I ignored versions in the depfile. I base all dependencies on a lock file, so I made an assumption that there is no conflict.
Yeah, that would be nice to have. Probably deserves a separate issue ?
i lowercase everything that comes from dep and ref files to prevent any case-sensitivity issues, but the output casing is untouched. If someone specified |
That's fair enough - such an extension could easily be a new feature. I'm imagining running it 'just for kicks' but it 'considering' any 'pinning rules' I have and leaving them there as a vauge thing...
IMO Whether you're happy the code covers the cases can either be because you trust your coverage from a logical point of view and/or have confidence someone else has similarly triangulated across all the tests. I would not consider it a "top level feature" of a piece of software that it "has FsCheck"TM if you know what I mean.
Sounds like that's fair. I reckon over time we need a general package id abstraction, the |
|
whoa, that was silly of me 👎 Shall I fix it, or you already have hands on it? |
|
fixed it. |


for the moment I didn't have better idea how to shrink the contents of dependencies.file but to filter lines where a package name belongs to the set of indirect packages.
this probably needs more test cases and docs and stuff