From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aKBrMVpIKmNIMgAAbAwnHQ (envelope-from ) for ; Wed, 21 Sep 2022 01:10:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6KJ1MVpIKmOBZwEA9RJhRA (envelope-from ) for ; Wed, 21 Sep 2022 01:10:18 +0200 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 603512B2F8 for ; Wed, 21 Sep 2022 01:10:18 +0200 (CEST) Received: from localhost ([::1]:57390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oamNd-0002uK-3v for larch@yhetil.org; Tue, 20 Sep 2022 19:10:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaj94-0001VE-Le for bug-guix@gnu.org; Tue, 20 Sep 2022 15:43:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oaj94-00021T-8h for bug-guix@gnu.org; Tue, 20 Sep 2022 15:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oaj94-0000L8-4c for bug-guix@gnu.org; Tue, 20 Sep 2022 15:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#28510: crash: guix build -S foo --with-source=bla Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 20 Sep 2022 19:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28510 X-GNU-PR-Package: guix X-GNU-PR-Keywords: easy To: zimoun , Maxime Devos , =?UTF-8?Q?J=C3=A9r=C3=A9my?= Korwin-Zmijowski , 28510@debbugs.gnu.org Received: via spool by 28510-submit@debbugs.gnu.org id=B28510.16637029681285 (code B ref 28510); Tue, 20 Sep 2022 19:43:02 +0000 Received: (at 28510) by debbugs.gnu.org; 20 Sep 2022 19:42:48 +0000 Received: from localhost ([127.0.0.1]:59771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oaj8q-0000Kf-4g for submit@debbugs.gnu.org; Tue, 20 Sep 2022 15:42:48 -0400 Received: from jpoiret.xyz ([206.189.101.64]:60428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oaj8l-0000KU-UM for 28510@debbugs.gnu.org; Tue, 20 Sep 2022 15:42:46 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id D944D184BCF; Tue, 20 Sep 2022 19:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1663702962; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YL2VqyAY0VoBOXWfpxADWiCkOMd0cPEQ0qpT/TKoaIc=; b=FBLQrEY/OaWcVXLUYg/jeIDiuxLDnjW1YBryYwcwgf4Y2GMm2QdoZWGPF7RmSrSzb3SCJ1 lDQZCV8qbQ/oOhb/b0oKJV5tLMauKComjxtCOfwzveseOkMUCmbRAhyEFwXDFSIF6VlCyf 1w4g71PDDwWV611RqAcydHIOikDMGQCuEQjpZsYP3DGKN1pw9Qe/gL29YLRxzkDlEQooyW DY8vMGBPloEwdtxVmkZyXNWhamJo+h+c2QYwFlXHfB1rewaYyOMD9fy5dDLxFlw8EGZ9JK sEdLZSBgOklO09vU+0OoSKD0Jn5ziU5RASDTA6m9B465hrrYRbierj3XdYtMMQ== In-Reply-To: <86a66u0xhr.fsf@gmail.com> References: <229c1399-ce4b-b942-1bae-deea501f1c48@telenet.be> <87k05y2yjc.fsf@jpoiret.xyz> <86a66u0xhr.fsf@gmail.com> Date: Tue, 20 Sep 2022 21:42:41 +0200 Message-ID: <87h7113k9a.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: + 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" Reply-to: Josselin Poiret From: Josselin Poiret via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663715418; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=YL2VqyAY0VoBOXWfpxADWiCkOMd0cPEQ0qpT/TKoaIc=; b=CQ2QHnyxDM1Sn2nItoS6toK56hwSmbfbel2lQDiMbI9ruL+7I6ZHnZfaMI7fNgUObXNMKx O9hG+L+y5JSIzdNPG+tJ2BQGnNf2Z0TfkgADtSdSnicteE4DS/Y6efDdPm28oWjKQkYLWo DREyF5TizXn0wduvYpXqRhvSx/mixUghZs23UfrP07gco5NXWTRSITWmL+hmSFElE2+/+6 Yn2nWT1G31/gw1+2BYV50djrAFCcJQUHGmh3iY0nKWZon6bCGjpUW8wqYZws7+AB8qzdl6 aIPgry0nlw6+TV9RPA3tYzHtfXbpoBJjnN05kM0DLrZZ8waYLeu9tLVSDvalFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663715418; a=rsa-sha256; cv=none; b=IUUcpUhf4WQH15A6NknQLj0EzIU/2Hrq9W9TnUsdcABgO7x9GiYBQXLZk5Z6x3ejat9VF/ KZxO/ZZJA1sNs0g22QV/emi2X2B/QvNoEAKVPwCcm/w9tOZMmsyH4T+/e4DE7sRJgnRYNi ArRQlI4KHf7+U2XG2fW8m0Es5J4Nd0FXbOFE3VBl5EKitkjjIV8qu7f1a6n/fwWjp7Puv+ guOVRo+ctQw+PtyPjyUWikSv5eiJ4G6ArB3D038RTmCeDaVK13R43EIIZ71KMLUfwQIpuF 7QlFN4LYdxITIAj41aw35W6NnPeAK8ym5h9fO+aRQxW1HaVlOlBzpNqOiNEBlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b="FBLQrEY/"; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -0.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b="FBLQrEY/"; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 603512B2F8 X-Spam-Score: -0.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: Y4KzsolVxObU Hi Simon, zimoun writes: > Well, I would add an error handler; as proposed [1]. :-) Because does > =E2=80=9Cguix build foo --source --with-source=3Dbla=E2=80=9D make sense?= What is the > use-case for such command? My bad, I didn't see the previous discussion on the subject. To me, the lack of generality would be unexpected: if I have a package with a source, I expect to be able to get that source, whatever the source may be. Maxime's minimal example shows that it could happen for a variety of different reasons, not just a --with-source=3D flag. I don't know what a proper fix for it would be though, since we're passing things around that we pretend are derivations but are not, and in many places. Best, --=20 Josselin Poiret