steven-omaha / pacdef

multi-backend declarative package manager for Linux
GNU General Public License v3.0
332 stars 13 forks source link

Review Resume #62

Open mike-lloyd03 opened 6 months ago

mike-lloyd03 commented 6 months ago

Currently, as a first time user is working through the review process, pacdef stores the results of each decision in memory and then applies them at the end.

The recent addition of the apply option (#61) allows users to save and apply their progress at any point. But if the user is interrupted for any reason, their progress is lost and they have to start over.

A temp file could be created in the user's temp directory to store the results of each decision. Once the review is done, this file is consulted to execute each action as is currently done.

If the review process starts and this file exists, it should be validated against the currently installed package list and packages which have already been evaluated will be skipped, leaving the user to handle whichever packages remain.

There's probably a number of edge cases to handle here and things which could leave the temp file in an unusable state. So there's a lot to consider.

I'm happy to implement this. Let me know your thoughts

steven-omaha commented 6 months ago

Thanks for this excellent idea. It's a lot simpler than #36 and #42, while also improving the review workflow.

The core issue I see is that interrupting the review for any reason could invalidate the review list, because

Therefore I would propose the following ideas.

Does that sound reasonable? Let me know what you think.

Thank you for working on this!

mike-lloyd03 commented 5 months ago

I had high hopes for this feature but I'm back on NixOS for now. So I'm not able to work on this.

It's possible I will go back to the beloved Arch, and if I do, I can pick this up again. Sorry for the false start.

ripytide commented 5 months ago

Could we keep this issue open so I can refer to it when working on the new review implementation along with #36?