From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qKowMSm0U2XYSgEA9RJhRA:P1 (envelope-from ) for ; Tue, 14 Nov 2023 18:53:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qKowMSm0U2XYSgEA9RJhRA (envelope-from ) for ; Tue, 14 Nov 2023 18:53:45 +0100 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 8F7C439A6F for ; Tue, 14 Nov 2023 18:53:45 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=No7ag0R8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699984425; a=rsa-sha256; cv=none; b=ZWnbWOiRZI54XP8hxEYQ1JZq/sN8kYvTu42EIjY2dcxeu/W3IDPvTWg8zpbHVFrPOSizgv HQJedzgc+hbgFEHpuoiNYq6YAYHvfcuyfy+0I2q2LYIJYlZf6Pna7X77LFQhYQGSpNsl8E 3GEQ/xTZmDCM37EC9IKU4RSCocAfh5p57FKcBuavU9OEwPmVMf26+Q25ItpxnmFfF+vCzZ WCixMihhlGAALQ4ALYlHFUPmqKuY6x4n/pn6jfgpfVvCtp10vBl21tBPALTatezLdy0FpW 0iVNPZ2tWR+bdrG9xfEtqswhqH2NAHglX4trTjn86MX5Ul481VGueEzJHtEDNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699984425; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9aLEWFrDP57xrdgo2QQRxuOpGw3YE9UEoxpCn75GiWk=; b=ELL/vqgXcb0EsQ91QMqvok6vr7N2KB3E1SEjWJxAD4fVlSP5Zd7KfzwoumLSruedtrcd6x 2/jbMtcvAMB3vxKn2fiFhw00MB8Fi8rQQsXn1TZlYkq58sDQL/TajV/PiUMKzFIpbhFNR7 8amjmZG2clY5JKZcPNooMsJG4qQHWtLwE7Mbrhewe48D75yZXL483k2Z2BR6kvK4LC07OU QelC8028tL8Wkpc8mpVB8xJzwDoHobhtgYNKf2DMmRYWGs8cX2dIByt4rLEBJ7DnDrjWm6 G6ObL/iqao0rI57v9zEL2Nz8FBkbTDXBGkttCOT3e5e6cLK8rI6Jn/4uE4hIbA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=No7ag0R8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2xbL-00025y-H4; Tue, 14 Nov 2023 12:53:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r2xbI-00025S-JU for bug-guix@gnu.org; Tue, 14 Nov 2023 12:53:24 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r2xbD-0007Y5-QP for bug-guix@gnu.org; Tue, 14 Nov 2023 12:53:23 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r2xbt-0003Ig-P2 for bug-guix@gnu.org; Tue, 14 Nov 2023 12:54:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#67048: guix refresh -u -L does not work with relative path Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 14 Nov 2023 17:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67048 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Andreas Enge , 67048@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 67048-submit@debbugs.gnu.org id=B67048.169998442612665 (code B ref 67048); Tue, 14 Nov 2023 17:54:01 +0000 Received: (at 67048) by debbugs.gnu.org; 14 Nov 2023 17:53:46 +0000 Received: from localhost ([127.0.0.1]:34139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2xbe-0003ID-Cg for submit@debbugs.gnu.org; Tue, 14 Nov 2023 12:53:46 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:38269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2xbc-0003Hz-Cz for 67048@debbugs.gnu.org; Tue, 14 Nov 2023 12:53:45 -0500 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-32da4180ca2so693611f8f.1 for <67048@debbugs.gnu.org>; Tue, 14 Nov 2023 09:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699984376; x=1700589176; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=9aLEWFrDP57xrdgo2QQRxuOpGw3YE9UEoxpCn75GiWk=; b=No7ag0R84ONLwlnbrm00PHAcfYnDwyfX9mbhtyxNWoNBXrWBI4TPNf/O2kNeABhWHq Fq4o9w6koy6EdAhKmEVht80DzBGrsklWUmD3svbuCnDS3Co19m7W65MzoGEPpX8aHhak 1Z0tqzB/YUCKVLNFLfVhwXfw0y2KdMSVPqTbZA7i1+1xyAASPaz+bGXY4AigyePvJoQD 2td08eR1Fm8wFmc49BZbNuWe4d5Ifkj1QAZyCj98QkDlfJZEqIXeyde0iWPpjRNxfq7M 9ndFQU1JRFdrvgXpk4c7T9RA4IC8YdD7NsnL6tsYW/0TjlP67uJATXsq2+t+GqnK6Sn6 1O/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699984376; x=1700589176; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9aLEWFrDP57xrdgo2QQRxuOpGw3YE9UEoxpCn75GiWk=; b=tklOS4OpYRYlxpz7H6ybNI4StWIcAxOVSUFOYSgsR+QSLsro2L31DyORuaA3WIjrqV +xIHQlbqwI/9r2hNkPNkvpgrZcHphcOJEexChoL4y3G9YTnkZC65pbJ3qy6ajHkEU/wo RwImy09Bm4ZDPII1BN97Mrw+zpWNsRPLNk3G7OuIHMiLwi+R40jU8P3k7VVPZEPhAPI0 2bM9fx0GQXEa3f5lfegcdVpgISEkeQUzepRTQOQ5eyypC6dnm7mknvL9/Fe7W5E46v2W TOUYRr5JD/g8kT0HhyCfOhRR6STEmBHiWny1CCqlIKx0kj0m0Eghptte+KI6spASEiW8 poMA== X-Gm-Message-State: AOJu0YxlBoJpa9QBfhj8I6cVbxXC8MbU00iUk/VLkwMBefXI0agWkF6r s8Ln4axnPyM1icFmNJHucgM= X-Google-Smtp-Source: AGHT+IG++zFrsxhRQU0dFJqn3qrW51/e1xTrophQUyvjQhhKaMUpPhet+UPc5Fo1Qj3Lh/yni6clEg== X-Received: by 2002:a5d:59a1:0:b0:32f:dca2:de2b with SMTP id p1-20020a5d59a1000000b0032fdca2de2bmr1981751wrr.7.1699984376116; Tue, 14 Nov 2023 09:52:56 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id e15-20020a5d594f000000b0032d9337e7d1sm8413244wri.11.2023.11.14.09.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 09:52:55 -0800 (PST) From: Simon Tournier In-Reply-To: <8734x9fqye.fsf@gmail.com> References: <8734x9fqye.fsf@gmail.com> Date: Tue, 14 Nov 2023 18:52:53 +0100 Message-ID: <87fs18dxxm.fsf@gmail.com> 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: 2.91 X-Migadu-Queue-Id: 8F7C439A6F X-Migadu-Spam-Score: 2.91 X-TUID: 8AegTgD404Ex Hi, On Mon, 13 Nov 2023 at 19:28, Simon Tournier wro= te: >> guix refresh -u -L proj python-numpy-illustrated >> yields the error >> proj/example.scm:10:2: python-numpy-illustrated: updating from version 0= .3 to version 0.3.1... >> proj/example.scm:10:2: warning: python-numpy-illustrated: no `version' f= ield in source; skipping As mentioned in [1], the issue is from =E2=80=99search-path=E2=80=99 =E2=80= =93 it returns #false =E2=80=93 it is involved in several layers. See for a patch proposal. Some details: When invoking =E2=80=9Cguix refresh=E2=80=9D (guix scripts re= fresh): + It calls the procedure =E2=80=99update-package=E2=80=99 + which calls =E2=80=99update-package-source=E2=80=99; see guix/upstream.= scm + which calls =E2=80=99package-field-location=E2=80=99; see guix/packag= e.scm (match (search-path %load-path file) ((? string? file-found) [...] (#f ;; FILE could not be found in %LOAD-PATH. #f))) -> Therefore in =E2=80=99update-package-source=E2=80=99, the variable =E2= =80=99version-loc=E2=80=99 is false: (version-loc (package-field-location package 'version))) (if version-loc + Once fixed, later in =E2=80=99update-package-source=E2=80=99, it reads, (file (and=3D> (location-file loc) (cut search-path %load-path <>)))) (if file -> Therefore, the variable =E2=80=99file=E2=80=99 is false. + Once fixed, later in =E2=80=99update-package-source=E2=80=99 it calls =E2=80=99absolute-location=E2=80=99; see guix/diagnostics.scm. (if (string-prefix? "/" (location-file loc)) [...] (match (search-path %load-path (location-file loc)) (#f (raise (formatted-message Well, I do not know how to do better than . WDYT? Cheers, simon 1: bug#67048: guix refresh -u -L does not work with relative path Simon Tournier Mon, 13 Nov 2023 19:28:25 +0100 id:8734x9fqye.fsf@gmail.com https://issues.guix.gnu.org/67048 https://issues.guix.gnu.org/msgid/8734x9fqye.fsf@gmail.com https://yhetil.org/guix/8734x9fqye.fsf@gmail.com