From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8HgUFJKSM2CfDQAA0tVLHw (envelope-from ) for ; Mon, 22 Feb 2021 11:16:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IFHeD5KSM2BzbwAAB5/wlQ (envelope-from ) for ; Mon, 22 Feb 2021 11:16:34 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6E80519D03 for ; Mon, 22 Feb 2021 12:16:33 +0100 (CET) Received: from localhost ([::1]:41812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lE9Ca-0005M5-1x for larch@yhetil.org; Mon, 22 Feb 2021 06:16:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lE9C9-0005LE-JL for bug-guix@gnu.org; Mon, 22 Feb 2021 06:16:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44253) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lE9C5-0007cc-TT for bug-guix@gnu.org; Mon, 22 Feb 2021 06:16:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lE9C5-0008I5-Pa for bug-guix@gnu.org; Mon, 22 Feb 2021 06:16:01 -0500 Subject: bug#46390: =?UTF-8?Q?=E2=80=9Cguix?= lint -L relative/path =?UTF-8?Q?foo=E2=80=9C?= fails Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Mon, 22 Feb 2021 11:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 46390 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zimoun Mail-Followup-To: 46390@debbugs.gnu.org, ludo@gnu.org, zimon.toutoune@gmail.com Received: via spool by 46390-done@debbugs.gnu.org id=D46390.161399252631815 (code D ref 46390); Mon, 22 Feb 2021 11:16:01 +0000 Received: (at 46390-done) by debbugs.gnu.org; 22 Feb 2021 11:15:26 +0000 Received: from localhost ([127.0.0.1]:55798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lE9BW-0008H5-Az for submit@debbugs.gnu.org; Mon, 22 Feb 2021 06:15:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lE9BQ-0008Gk-Lm for 46390-done@debbugs.gnu.org; Mon, 22 Feb 2021 06:15:24 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52347) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lE9BL-0007Bs-Hc; Mon, 22 Feb 2021 06:15:15 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42484 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lE9BJ-0000GE-Ce; Mon, 22 Feb 2021 06:15:15 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <86a6sekwvq.fsf@gmail.com> Date: Mon, 22 Feb 2021 12:15:12 +0100 In-Reply-To: <86a6sekwvq.fsf@gmail.com> (zimoun's message of "Mon, 08 Feb 2021 23:39:05 +0100") Message-ID: <87r1l8bbgf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 46390-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.87 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 6E80519D03 X-Spam-Score: -2.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7iw4j3d9qcYj Hi, zimoun skribis: > =E2=80=A6but breaks with relative path: > > $ cd /tmp/ > $ guix lint -L example hi -c source-file-name > Backtrace: > 13 (primitive-load "/home/sitour/.config/guix/current/bin/guix") > In guix/ui.scm: > 2150:12 12 (run-guix-command _ . _) > In ice-9/boot-9.scm: > 1736:10 11 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) > 1731:15 10 (with-exception-handler # _ #:unwind? _ #:unwind-for-type _) > In srfi/srfi-1.scm: > 634:9 9 (for-each # ("hi")) > In guix/scripts/lint.scm: > 65:4 8 (run-checkers # (#< name: source-file-name descripti=E2=80=A6>) =E2=80= =A6) > In srfi/srfi-1.scm: > 634:9 7 (for-each # (#< name: source-file-name=E2=80=A6>)) > In guix/scripts/lint.scm: > 74:21 6 (_ _) > In guix/lint.scm: > 897:9 5 (check-source-file-name _) > 148:18 4 (%make-warning # "the source file name should contain the package n=E2=80=A6" =E2=80= =A6) > In ice-9/boot-9.scm: > 1731:15 3 (with-exception-handler # _ #:unwind? _ #:unwind-for-type _) > In ice-9/ports.scm: > 440:11 2 (call-with-input-file #f # #:binary _ #:encoding _ # _) > In unknown file: > 1 (open-file #f "r" #:encoding #f #:guess-encoding #f) > In ice-9/boot-9.scm: > 1669:16 0 (raise-exception _ #:continuable? _) > > ice-9/boot-9.scm:1669:16: In procedure raise-exception: > Wrong type (expecting string): #f > > > The reason is from =E2=80=99package-field-location=E2=80=99 in (guix pack= ages): > > (catch 'system-error > (lambda () > ;; In general we want to keep relative file names for modules. > (call-with-input-file (search-path %load-path file) Indeed. Fixed in 9a38bed2cf32e9462badfa43e74cdd4580e804fc. Thanks! Ludo=E2=80=99.