unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user
@ 2020-08-22 10:27 Danny Milosavljevic
  2020-08-22 16:20 ` Bengt Richter
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Danny Milosavljevic @ 2020-08-22 10:27 UTC (permalink / raw)
  To: 42983

[-- Attachment #1: Type: text/plain, Size: 1492 bytes --]

Hello,

Paul <paul@denknerd.org> reported on IRC that his guix behaved strangely.  Upon
investigation we found that the following happens (on a Guix system), when logged
in as regular user (not root):

$ readlink ~/.config/guix/current
/var/guix/profiles/per-user/dannym/current-guix
$ sudo -E guix pull
$ readlink ~/.config/guix/current
/var/guix/profiles/per-user/root/current-guix

You can also rm -f ~/.config/guix/current after that and do everything above
again and it will happen again.  It even happens when guix pull has nothing to
do.

That doesn't seem right.  We should at least try to prevent this from happening,
or warn or something.

The guix package manager that did that is:

$ sudo -E guix describe
Generation 64   Aug 22 2020 11:41:04    (current)
  guix dad963a
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: dad963a4393ea51409baa63817b26b449ed58338
  heads 50b97d4
    repository URL: https://github.com/daym/heads-guix.git
    branch: wip-musl
    commit: 50b97d446ebafd0be7a0e19d87cd236882093244

$ sudo -i
# guix describe
Generation 64   22. August 2020 11:41:04        (aktuell)
  guix dad963a
    Repository-URL: https://git.savannah.gnu.org/git/guix.git
    Branch: master
    Commit: dad963a4393ea51409baa63817b26b449ed58338
  heads 50b97d4
    Repository-URL: https://github.com/daym/heads-guix.git
    Branch: wip-musl
    Commit: 50b97d446ebafd0be7a0e19d87cd236882093244

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-08-28 13:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-22 10:27 bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user Danny Milosavljevic
2020-08-22 16:20 ` Bengt Richter
2020-08-23 23:53   ` Danny Milosavljevic
     [not found]     ` <20200824023829.GA18670@LionPure>
2020-08-25  8:43       ` Danny Milosavljevic
2020-08-22 16:22 ` Leo Famulari
2020-08-23 21:24   ` Danny Milosavljevic
2020-08-23 21:45     ` Leo Famulari
2020-08-24  0:11 ` Danny Milosavljevic
2020-08-28 13:41   ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).