From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id gKGLL+swRmbrcwEAe85BDQ:P1 (envelope-from ) for ; Thu, 16 May 2024 18:14:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gKGLL+swRmbrcwEAe85BDQ (envelope-from ) for ; Thu, 16 May 2024 18:14:35 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=D4vIrQ5T; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715876048; a=rsa-sha256; cv=none; b=ri/YsWeXIdv/ojBuXl0nUIP6IU2j92GDVtrOWkYwJLqer8qw1QAewm7qEdHYf14GRAn5CY +RlZecta+ZhbgZ54iuVlIHK6GIMjzvuzV4LSzCt9p4f8W4BU5/nlBPKebjB80codumW/f+ QrRfiXANwKdwW1MTknGqc3fyr+FIi7P/9fx9bHdDvwTeij7BYUkzTLNY2dTzlUOiZRV1ah kIY76rWIoKfFtbA7yX2O4iLnHXlMjr326aIgx2kbm7hdcwQVOWowObwR/dXi6MZ6z44xkn OG7Z9JghYwi4TSQALsNzoyR24UvM5Kz0m5gojDIPyZi/MyaMfTDbrF5jvd0NhQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=D4vIrQ5T; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715876048; 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=hQRGp/6hbmZ91FhszPJBEbLtU2Hx9/r4AST8YObUA6w=; b=VA2SGifWdVCdKoRk/JZyL9NMQ8HZV6H+JrvZq8umtmyxm334VgCCpQYEFkWxVeZTu+BDzE 51VLMh+BZMUzqDRalZ/rVCRQgi9HawGTWexl4MU8npzZnh8tGUE7EIzTke6f6eRIb1vt3B 5QqAt0xnHwO5kN82WT1ZtoQTi7Eh55Vigx2E3D5djK82CXRUrhORGNasLgkikjzj4UUasK 2XC2VsQ/dCxXwiUaOjKXHVUyVDY/T0srH3F35yDj4sKXwTvI6HUU7/Emw5rrMB2twTrwGV V9u/Ny1tsdKGXJZ4MFQVoExGmMTZy7bhMXLSjlaBCrIOwyAsz2B6gywERozqHQ== 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 87C8C1F0B4 for ; Thu, 16 May 2024 18:14:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7dk1-0000Ja-Ql; Thu, 16 May 2024 12:14:02 -0400 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 1s7dk0-0000J9-6y for guix-patches@gnu.org; Thu, 16 May 2024 12:14:00 -0400 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 1s7djz-000166-VY for guix-patches@gnu.org; Thu, 16 May 2024 12:13:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7dk2-0000Lv-7q for guix-patches@gnu.org; Thu, 16 May 2024 12:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70494] [PATCH 12/23] scripts: substitute: Extract script specific output from download-nar. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 May 2024 16:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70494 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Baines Cc: Josselin Poiret , 70494@debbugs.gnu.org, Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , Ricardo Wurmus , Christopher Baines Received: via spool by 70494-submit@debbugs.gnu.org id=B70494.17158760111339 (code B ref 70494); Thu, 16 May 2024 16:14:02 +0000 Received: (at 70494) by debbugs.gnu.org; 16 May 2024 16:13:31 +0000 Received: from localhost ([127.0.0.1]:49595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7djW-0000LX-Ko for submit@debbugs.gnu.org; Thu, 16 May 2024 12:13:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7djU-0000LP-SS for 70494@debbugs.gnu.org; Thu, 16 May 2024 12:13:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7djL-00012Z-60; Thu, 16 May 2024 12:13:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=hQRGp/6hbmZ91FhszPJBEbLtU2Hx9/r4AST8YObUA6w=; b=D4vIrQ5TEo/M/1UyoSwG VBLOp7ZHtpZpzqfvwguhIM6GtPL4HTprlsOC28u8wfk3VbrwtKYVVt+qd+niT0tNAo1umbozk4+Wd xjrOc1RYiZXczasR5Xvs6qBM+PUNXuNwP7lQiP/6KiX0l3tJ/pePHwsJm9pefYA7b1LnK/KVPoW8Y DD0qung9ECPzIqdyC/qJngbox3gQ455tL6eK8pYNMUXzGPAJoLjxyByX/nR6KeMara7kR4dka1rXM xtWrG+7QTeHU9kHcJGq8F84NbjxvSBfs82jOOjfhl+afr3IOtYlHiJ57TeYzH2BaZlu07u5bgvFx5 KpBZtiHQy0J59w==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (Christopher Baines's message of "Sun, 21 Apr 2024 10:42:30 +0100") References: <87bk632h36.fsf@cbaines.net> Date: Thu, 16 May 2024 18:13:13 +0200 Message-ID: <87h6exag6e.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 87C8C1F0B4 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.76 X-Spam-Score: -5.76 X-TUID: sZ0Ejip/t0s/ Christopher Baines skribis: > As this moves download-nar in a direction where it could be used outside = the > substitute script. Note that there=E2=80=99s already (guix build download-nar), which is less capable. > * guix/scripts/substitute.scm (download-nar): Return expected and actual > hashes and move status-port output to guix-substitute. > (process-substitution/fallback): Remove port argument, and move output to= port > to guix-substitute. > (process-substitution): Return hashes from download-nar or > process-substitution/fallback, plus the narinfo. > (guix-substitute): Don't pass the reply-port in to process-substitution a= nd > implement the messages to the reply-port here. I=E2=80=99m not quite convinced. In particular, procedures returning more = than two values look confusing to me. Maybe it=E2=80=99s not the right level to generalize things? Ludo=E2=80=99.