Subject: bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user

From: Danny Milosavljevic <[email-masked]>
Date: Mon, 24 Aug 2020 01:53:20 +0200

Hi,

On Sat, 22 Aug 2020 18:20:09 +0200
Bengt Richter <[email-masked]> wrote:

> BTW, what would sudo guix describe without the -E (preserving user environment) have produced?

I've tried it again (it's 100% reproducible) and I get (after "sudo -E guix pull"):

 dannym@dayas ~$ export LC_ALL=C
 dannym@dayas ~$ sudo -E guix describe
Generation 65   Aug 23 2020 23:44:26    (current)
  guix 9e2a49d
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 9e2a49db8ce70068644cecdfda4c198d4c09e36e
  heads 50b97d4
    repository URL: https://github.com/daym/heads-guix.git
    branch: wip-musl
    commit: 50b97d446ebafd0be7a0e19d87cd236882093244
 dannym@dayas ~$ sudo guix describe
Generation 65   Aug 23 2020 23:44:26    (current)
  guix 9e2a49d
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 9e2a49db8ce70068644cecdfda4c198d4c09e36e
  heads 50b97d4
    repository URL: https://github.com/daym/heads-guix.git
    branch: wip-musl
    commit: 50b97d446ebafd0be7a0e19d87cd236882093244
 dannym@dayas ~$ guix describe
  guix 9e2a49d
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 9e2a49db8ce70068644cecdfda4c198d4c09e36e
  heads 50b97d4
    repository URL: https://github.com/daym/heads-guix.git
    branch: wip-musl
    commit: 50b97d446ebafd0be7a0e19d87cd236882093244