From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#15286: Add the current directory as GUILE_LOAD_PATH by default Date: Fri, 06 Sep 2013 14:10:27 +0200 Message-ID: <87bo462lsc.fsf@gnu.org> References: <874n9yqowk.wl%arne_bab@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHusY-0001at-W1 for bug-guix@gnu.org; Fri, 06 Sep 2013 08:11:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHusR-0008PQ-D7 for bug-guix@gnu.org; Fri, 06 Sep 2013 08:11:10 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:35177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHusR-0008PK-9p for bug-guix@gnu.org; Fri, 06 Sep 2013 08:11:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VHusQ-0003cp-Kk for bug-guix@gnu.org; Fri, 06 Sep 2013 08:11:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <874n9yqowk.wl%arne_bab@web.de> (Arne Babenhauserheide's message of "Fri, 06 Sep 2013 11:29:15 +0200") 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: Arne Babenhauserheide Cc: 15286-done@debbugs.gnu.org Arne Babenhauserheide skribis: > Currently to install a local package definition, I have to adjust the GUI= LE_LOAD_PATH by hand: > > GUILE_LOAD_PATH=3D. guix package -e '(@ (mercurial) hg)' > > This could be much clearer if the $pwd were in the load path automaticall= y. As usual, it is a bad idea to include =E2=80=98.=E2=80=99 in the search pat= h, because it makes it easy to unwillingly execute untrusted code. More generally, =E2=80=98GUILE_LOAD_PATH=E2=80=99 is a user environment var= iable (like $PATH, $CPATH, etc.), so it=E2=80=99s up to the user, not to Guix, to set i= t up correctly. So I=E2=80=99m closing this bug, but of course, I remain open to discussion= s on improving Guix to better support =E2=80=9Coverlays=E2=80=9D. Thanks! Ludo=E2=80=99.