From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: (current-filename) behaves differently in environment|build Date: Mon, 08 Apr 2019 11:14:41 +0200 Message-ID: <87zhp0zwn2.fsf@gnu.org> References: <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]:40001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDQXs-0002BS-Ca for guix-devel@gnu.org; Mon, 08 Apr 2019 05:26:29 -0400 In-Reply-To: <49dd27e8-a153-745a-4664-4ec97e2da1d3@wldhx.me> (wldhx's message of "Mon, 1 Apr 2019 02:42:30 +0300") 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: wldhx Cc: guix-devel@gnu.org Hello, wldhx skribis: > Discovered following behaviour while setting up GNUnet CI: > > Given > > ./gnu/packages/a.scm: > ... > (source (local-file (dirname (current-filename)))) > ... It=E2=80=99s enough to write: (local-file ".." #:recursive? #t) since =E2=80=98local-file=E2=80=99 already takes care of resolving the file= name relative to the current source file. Does that work for you? > 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? No, there shouldn=E2=80=99t be any difference. Thanks, and apologies for the delay! Ludo=E2=80=99.