From mboxrd@z Thu Jan 1 00:00:00 1970 From: wldhx Subject: (current-filename) behaves differently in environment|build Date: Mon, 1 Apr 2019 02:42:30 +0300 Message-ID: <49dd27e8-a153-745a-4664-4ec97e2da1d3@wldhx.me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:41392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAk69-00051F-5s for guix-devel@gnu.org; Sun, 31 Mar 2019 19:42:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAk68-0006PZ-8a for guix-devel@gnu.org; Sun, 31 Mar 2019 19:42:45 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:8926) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hAk68-0006On-0K for guix-devel@gnu.org; Sun, 31 Mar 2019 19:42:44 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 456F44BDF5 for ; Mon, 1 Apr 2019 01:42:40 +0200 (CEST) Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id YcrGZsMMu8UT for ; Mon, 1 Apr 2019 01:42:34 +0200 (CEST) Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hi guix, Discovered following behaviour while setting up GNUnet CI: Given ./gnu/packages/a.scm: ... (source (local-file (dirname (current-filename)))) ... export GUIX_PACKAGE_PATH=3D$PWD `(current-filename)` returns `#f` when evaluated via `guix environment`, while `guix build` does fine. Is this expected? Am I doing something wron= g? The usecase is like https://lists.gnu.org/archive/html/help-guix/2017-04/msg00097.html.