vn971 / rua

Build tool for Arch Linux providing control, review and jailed build options
GNU General Public License v3.0
424 stars 42 forks source link

Question: why not allow more than one instance of rua running? #128

Closed VitalyAnkh closed 4 years ago

VitalyAnkh commented 4 years ago

image Sometimes I use rua to install two packages at the same time, so the feature is annoying.

vn971 commented 4 years ago

Hi. Unfortunately, this issue can't go through. The problem is that the "single instance only" model is really used to ensure no weird breakages in RUA. Without it, any step can break weirdly. E.g. you just prepared to build a directory, and then all contents are gone because another process wiped it. Or you copy the wrong things to the wrong place. Or have two different clients of different versions running in parallel.

"Single instance only", while it is somewhat limiting, allows a very clear understanding of what's happening, has a clearly defined "start" and "end".

Note that any operations that can avoid conflicts with other operations - are allowed to be run in parallel. E.g.: searching, querying information, shellcheck, tarcheck, checking for upgrades via --printonly (but not executing them).

VitalyAnkh commented 4 years ago

Thanks!