coffee-tools / coffee

Reference implementation for a flexible core lightning plugin manager
https://docs.page/coffee-tools/coffee
10 stars 13 forks source link

nurse: if the is no repository, unistall all the plugin #258

Open vincenzopalazzo opened 7 months ago

vincenzopalazzo commented 7 months ago

It possible fall under a state (if you mess up with a buggy version of coffee) that you have the plugin installed but you have no repository.

So Coffee should remove all the plugins installed when there is no repository.

tareknaser commented 7 months ago

Good idea We could even make the new nurse strategy more general in a sense that:

Only concern I have is that we currently have 1 nurse strategy GitRepositoryLocallyAbsentStrategy and we are adding another one in #239. If we have too many nurse strategies, we check for too many things before each command run. Might be a good time to make skip-verify a default.

What do you think?