From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +AMsGYknXmSWkQAASxT56A (envelope-from ) for ; Fri, 12 May 2023 13:48:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cDggGYknXmRUCgEAauVa8A (envelope-from ) for ; Fri, 12 May 2023 13:48:25 +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 2CBBD143DD for ; Fri, 12 May 2023 13:48:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxRFk-00081E-If; Fri, 12 May 2023 07:48:04 -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 1pxRFj-00080s-6K for guix-patches@gnu.org; Fri, 12 May 2023 07:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxRFi-00085N-Jq for guix-patches@gnu.org; Fri, 12 May 2023 07:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pxRFh-0001id-Uh for guix-patches@gnu.org; Fri, 12 May 2023 07:48:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63462] [PATCH maintenance] hydra: build-package-metadata: Update fields in sources.json. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 12 May 2023 11:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63462 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Simon Tournier Cc: 63462@debbugs.gnu.org Received: via spool by 63462-submit@debbugs.gnu.org id=B63462.16838920716522 (code B ref 63462); Fri, 12 May 2023 11:48:01 +0000 Received: (at 63462) by debbugs.gnu.org; 12 May 2023 11:47:51 +0000 Received: from localhost ([127.0.0.1]:54222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxRFW-0001h5-KT for submit@debbugs.gnu.org; Fri, 12 May 2023 07:47:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxRFU-0001gJ-V7 for 63462@debbugs.gnu.org; Fri, 12 May 2023 07:47:49 -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 1pxRFP-0007zI-K0; Fri, 12 May 2023 07:47:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=iIMcVFJsglUSIWm949jkvu6VegKGvwCw8POMJe5FlJQ=; b=N9iA1hdET8N/D4maXX9e SsHPHCK+Mh0woTNytXV+HSfOrsPlR04QpkIGWcdLqGzpCn0hYGnUzn6TiGZa300o3QYre2V6SRR3W aif2m5XZqmuCdi81L2upVD9uPhoHhpdMVQ6U2/FgEeIPty2QHBsUhqo63c1VbDfXy5UsVL6GEaV7t K8fnLajbHj6H94oBTg2CQafgnAOEcCgzPhxKV+dU8puzpy3frb2asKdoy6/KlGvW1EEUo7axaz5bJ TsCIFM3Ztze7JbPW+P/H3V2v8H6zmYfNEOrO7LXhRg4vPyiQQyFO+GRuK9z/PXzMpvRf59MTX60/f 3Ds5BVclDJQ01Q==; Received: from [193.50.110.247] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pxRFP-0005lh-77; Fri, 12 May 2023 07:47:43 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20230512094504.2675076-1-zimon.toutoune@gmail.com> Date: Fri, 12 May 2023 13:47:40 +0200 In-Reply-To: <20230512094504.2675076-1-zimon.toutoune@gmail.com> (Simon Tournier's message of "Fri, 12 May 2023 11:45:04 +0200") Message-ID: <874joh3h5v.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (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: 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683892105; a=rsa-sha256; cv=none; b=jVzya/lToCNnOa8DiacoSBm2lhG9HyKzWDT/aGEPM7Hs6fqbB7aXiBlnZp4UB9rxhPB99E KM1GJtVyC7psCMd2OCmbzMJKQOp/+ROX1zW9PZg84aQ9MMcTg+7w5r33BLTZ8MiOmG0/S5 WJb3Qn4SYklmR9Mk1ggenGWEjRZHAXDAph6aLaFVka3kvVjQHIPUtzNPBx87TCc5l228mO QcRCNBtWccHGMKsHrOwOBv7t7IiguxRM78vIcFZ03ghNKOFYLBn2u9wo8oL0mKJSgYa41e 9+vyHHjBaIGDTWZThkAapnaO0rckjgS+aQW2EkJBhDjYZ1rtajdQY/RWb1vYgg== 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=N9iA1hdE; 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=1683892105; 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=iIMcVFJsglUSIWm949jkvu6VegKGvwCw8POMJe5FlJQ=; b=FXr8InIkThE23eMeQxR00ohUDVPYqCVlSn0ki1Mu3laQSFf80VdZZ2NT0DbMnZHJdp23v6 CaYKa722sVwFdgHxX2Y9HeRYD5YbMCCPtAwtt91zPzkXowMibwyTOe6dj58eS5+7v6f1lJ 7F4gw7mpXAe43+AVKz1qZ9BDiJjx/6JThKb0m5TAu3dwl1S8EYUKSm3xlSo/5rlyAMTbbk EN961jto21r5+6Y+oXCfyyPAQZk9uySi1YcjyT5wN4cMxSOo9x8zFsOkuGdkW5mMNRT+wv nH81f5TnCjh8pcVj4gS/JcA0HO39buD4m5iMyJ4M1YvU9S026cCWrNMpXOlOaA== X-Migadu-Spam-Score: -4.88 X-Spam-Score: -4.88 X-Migadu-Queue-Id: 2CBBD143DD X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=N9iA1hdE; 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" X-TUID: oQxvDIrS53jX Hi, Simon Tournier skribis: > This format had been discussed in > . > > * hydra/build-package-metadata.scm (origin->json)[resolve]: Add the fields > 'outputHashAlgo' and 'outputHashMode'. Neat, thanks for the update! (I pushed it on your behalf because you=E2=80= =99re not currently authorized in maintenance.git; please email guix-sysadmin if you=E2=80=99d like to be there.) > `(("integrity" . ,(string-append algorithm-string "-" > - (base64-encode hash-va= lue))))) > + (base64-encode hash-va= lue))) > + ("outputHashAlgo" . ,algorithm-string) > + ("outputHashMode" . ,(if (or (eq? url-fetch method) > + (eq? url-fetch/tarbomb m= ethod) > + (eq? url-fetch/zipbomb m= ethod)) > + "flat" > + "recursive")))) I wish they had opted for something more expressive (and also with a more meaningful name :-)) than =E2=80=98outputHashMode=E2=80=99, similar to= what you did for =E2=80=98guix hash -S=E2=80=99. But anyway, it does the job! It looks like SWH will be storing nar hashes; will there be endpoints to query directories by nar hash? Thanks, Ludo=E2=80=99.