Ludovic Courtès <ludo@gnu.org> skribis:
Toggle quote (12 lines)
> If you do, as a regular user:>> guix pull> sudo guix system reconfigure …>> the ‘guix system reconfigure’, as part of the downgrade-detection> machinery, triggers an update of the channel checkout(s) in> ~root/.cache, even though ~USER/.cache is already up-to-date.>> One way to avoid it might be to special-case the checkout cache> directory for when ‘SUDO_USER’ is set.
Attached is a prototype that first clones/fetches from ~USER/.cache into~root/.cache, in the hope that this avoids the need to access theupstream repo. (It requires ‘set-remote-url!’, which is only inGuile-Git ‘master’.)
It’s a bit hacky but I can’t think of a better way to address thisissue. In particular, having root use ~USER/.cache directly is not anoption: it could end up creating root-owned files there.
Thoughts?
Ludo’.