Please consider run as root -> de-escalate as the strategy for paru in the future.
Please consider a strategy of running paru as root and dropping permssions for the fetch/build processes. This would be an inversion of the current practice and would no longer rely on calling sudo/doas externally. This would allow for all of the sudoloop code to be dropped completely.
It would solve several issues that can be seen through the tracker. To name just a couple:
- Unattended installs - Without sudoloop and the correct runtime options. Paru can perform complete upgrades without user interaction. (My preference would be to see paru run completely without any user interaction by default and only ask for confirmations if the user passes flags)
- managing multiple privledge escalation tools - simply invoking
sudo paruordoas parushould be sufficient to grant necessary install permissons. If some new privlege escalation tool comes along, paru will support it by default. - Various container related permission issues.
Thanks for reading.
does this work now?
My preference would be to see paru run completely without any user interaction by default and only ask for confirmations if the user passes flags
Will never happen as paru mirrors pacman and is a user tool first. It's not built for 0 interaction.
does this work now?
No but it may be a thing one day
at the very least paru shouldn't let you run it with sudo since it (reasonably) refuses to build packages anyway