From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: bug#22981: guix-edit does not find git checkout directory Date: Fri, 11 Mar 2016 09:45:38 -0500 Message-ID: <874mcdf4z1.fsf@gmail.com> References: <871t7iov3n.fsf@gmail.com> <87io0tnunt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeOIR-0006rI-FQ for bug-guix@gnu.org; Fri, 11 Mar 2016 09:44:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeOIM-0008Id-CT for bug-guix@gnu.org; Fri, 11 Mar 2016 09:44:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:47298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeOIM-0008IX-9A for bug-guix@gnu.org; Fri, 11 Mar 2016 09:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aeOIM-00057Z-42 for bug-guix@gnu.org; Fri, 11 Mar 2016 09:44:02 -0500 In-Reply-To: <871t7iov3n.fsf@gmail.com> Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeOHr-0006ow-6L for bug-guix@gnu.org; Fri, 11 Mar 2016 09:43:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeOHm-00088g-3M for bug-guix@gnu.org; Fri, 11 Mar 2016 09:43:31 -0500 Received: from plane.gmane.org ([80.91.229.3]:39866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeOHl-00088U-SB for bug-guix@gnu.org; Fri, 11 Mar 2016 09:43:26 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aeOHk-0007sr-Qc for bug-guix@gnu.org; Fri, 11 Mar 2016 15:43:24 +0100 Received: from c-73-167-118-254.hsd1.ma.comcast.net ([73.167.118.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Mar 2016 15:43:24 +0100 Received: from myglc2 by c-73-167-118-254.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Mar 2016 15:43:24 +0100 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 22981@debbugs.gnu.org Alex Kost writes: > myglc2 (2016-03-11 00:56 +0300) wrote: > >> Situation: GuixSD sysetm managaed by user glc using a git checkout in >> /home/glc/sre/guix. >> >> Problem: When I follow the manual to set up a vanila user (glc5) with a >> separate git checkout in /home/glc5/src/guix, guix-edit does not find >> the checkout source. >> >> Note: I followed comments from the #guix irc channel to set links in glc >> and root that point to the glc checkout: >> >> glc@g1 ~/src/guix [env]$ stat ~/.config/guix/latest >> File: ‘/home/glc/.config/guix/latest’ -> ‘../../src/guix’ >> >> glc@g1 ~/src/guix [env]$ stat /root/.config/guix/latest >> File: ‘/root/.config/guix/latest’ -> ‘/home/glc/src/guix’ >> >> >> CREATE USER glc5 > [...] >> glc5@g1 ~/src$ stat ~/.config/guix/latest >> stat: cannot stat ‘/home/glc5/.config/guix/latest’: No such file or directory > > I don't understand, so you made the links for user 'glc', but then you > check another user 'glc5'. If you run emacs under glc, and try "M-x > guix-edit" there, you should be pointed to "~/.config/guix/latest". Yes, but it only it works for me (glc) because I studied guix for 6 weeks and learned an unpublished trick on #guix IRC channel. > Since you didn't make such a link for 'glc5', you are pointed to the > store. Yes because I am trying to help you improve the user experience. So glc5 is a simulated new user following the manual literally ;) > Anyway, you can configure any directory for "M-x guix-edit" by setting > 'guix-directory' variable. See (info "(guix) Emacs Commands"). It is > not in the hmtl manual yet. But what is the _recommended_ way to do this? A) set 'guix-directory' variable in emacs init file? B) make symbolic link to ~/src/guix from ~/.config/guix/latest? C) something else? And if a _new_ user starts reading in "8.1 Building from Git", how do they find this information? FWIW, I vote for method B.