Ludovic Courtès skribis: > 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 the upstream repo. (It requires ‘set-remote-url!’, which is only in Guile-Git ‘master’.) It’s a bit hacky but I can’t think of a better way to address this issue. In particular, having root use ~USER/.cache directly is not an option: it could end up creating root-owned files there. Thoughts? Ludo’.