From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +LWiMcRkfWHWMwEAgWs5BA (envelope-from ) for ; Sat, 30 Oct 2021 17:29:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4AcxLcRkfWH/AwAAbx9fmQ (envelope-from ) for ; Sat, 30 Oct 2021 15:29:08 +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 880B8B26F for ; Sat, 30 Oct 2021 17:29:08 +0200 (CEST) Received: from localhost ([::1]:46742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgqI7-0003Dx-NI for larch@yhetil.org; Sat, 30 Oct 2021 11:29:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgqI3-0003Di-IG for guix-patches@gnu.org; Sat, 30 Oct 2021 11:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgqI3-0004Iv-9K for guix-patches@gnu.org; Sat, 30 Oct 2021 11:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgqI2-000532-69 for guix-patches@gnu.org; Sat, 30 Oct 2021 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51307] [PATCH 0/2] guix hash: eases conversion Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 30 Oct 2021 15:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51307 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 51307@debbugs.gnu.org Received: via spool by 51307-submit@debbugs.gnu.org id=B51307.163560768219316 (code B ref 51307); Sat, 30 Oct 2021 15:29:02 +0000 Received: (at 51307) by debbugs.gnu.org; 30 Oct 2021 15:28:02 +0000 Received: from localhost ([127.0.0.1]:58170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgqH4-00051T-5t for submit@debbugs.gnu.org; Sat, 30 Oct 2021 11:28:02 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:38426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgqGw-00050M-Ku for 51307@debbugs.gnu.org; Sat, 30 Oct 2021 11:27:55 -0400 Received: by mail-wr1-f53.google.com with SMTP id u18so21398929wrg.5 for <51307@debbugs.gnu.org>; Sat, 30 Oct 2021 08:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=V6vCoXb8RfNoHY5Rjuog64H7cMKEaBqQtnOc8Rilz2I=; b=ZvrsChQm/dZYBEvTteUjlKJWTZy3f1jBo7MnfMJVXJoAT6zZg/wolxbiU417GP54nk CFkDkVbDYtVwPM0IhtxsLxC7KtF56XOC4AAhxOsTLL+R62gvBCRWujD6VrDVhKZhb4iX QHj4sf2VHnIhMbHb36ncAcL783Zb0mRzP1bMznfEsr6PczjZijAeBm8H5zvK7QLW97/j 5EmUVyM6p1IFzIc7ERcJzbnyoub7sw3j73pufpYS51Dk78CVr+pW/hKBQ9wfQ2jehXI0 OdU8jgyRck0JVgzKGaqXRvb2wnBJ/Si5mNBrkhBYuvREkO7yh9R4SVH2Vg+OA8i8ha7N GDkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=V6vCoXb8RfNoHY5Rjuog64H7cMKEaBqQtnOc8Rilz2I=; b=kw4V82VkDs6lj6wLj7rEiLm/1/81zrUnDZQWRE/v+1LQ7eReZBxzsJjFS522ALy2On 3OqDplomYayzuu+MFQIH/cokc7DjLF8UzGD5Qk5X7/2ACwLG5XN/RFzX9qWlStj1ezxE rBJBJ/JrbPbnS16GoLyRr0oOjk2UrjSOk4CRamLEdSGaU6/Prx12vFHIVTySQBgcRczj rkTaQy+LpsBv/EjbufF8EYTNvDzkbYVhaZXQUS2W+sHL4qHm+jnPeP2wQqltBP7w8L9/ 4SVdLbXTkuwE1XvuxpJeQCcVHQbq/SE5h3PqbNk2ctpL5P7D47evHKb46TOKw7pNjvOe vtIw== X-Gm-Message-State: AOAM533o/m3AjO3kPDSHG3xK+PkSdGUH7jBwXOEaArINfDy7gmdksX0D DVtduzqvxgtg6UnGikiaBSMR8qFoS1w= X-Google-Smtp-Source: ABdhPJwk2S1+417nK548SKqoCM4QPhWgrPqHE57Iz7qw+bSpruiHS4HcjubgdtLwdoiuhZH8OX67iA== X-Received: by 2002:adf:d0cf:: with SMTP id z15mr23135819wrh.219.1635607668857; Sat, 30 Oct 2021 08:27:48 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id j17sm1517967wrw.63.2021.10.30.08.27.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Oct 2021 08:27:48 -0700 (PDT) From: zimoun In-Reply-To: <86tugyleub.fsf@gmail.com> References: <20211020165020.3358311-1-zimon.toutoune@gmail.com> <87wnlusgwy.fsf@gnu.org> <86tugyleub.fsf@gmail.com> Date: Sat, 30 Oct 2021 17:24:34 +0200 Message-ID: <86pmrmleml.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: 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635607748; 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=V6vCoXb8RfNoHY5Rjuog64H7cMKEaBqQtnOc8Rilz2I=; b=KaFFHXSdkBX/N9t0ZZoHF8T3uDG15s4sj0wQn/NGpdguApl0CtXYXlX0/Uc4qyj0lGAh5+ FzTihG7jwhaTU0ZhlYK+TyUNvl8bwrjmbiWVYAPEkSk8Ey3o1JaNESLR2VobzAvDrHsM9t Lnz6nao7JjXtGQRMke0dxUXZzX7IwkPCu6hkw6L08MoI43G8KRKgt3hG/i806YMaRx8jjw wr+pQqVk0iJO+Twghhu2AJu+ryhQ4/p0meoXmXkwhJZN8cTvEX0InKMrKzzY7mnzy1kzWq OgrrHpm2G/mEtGQ4NZqRrzzF2I/ZKHYzjFIVYYTPebp62WTo91JvSLHCRhPO3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635607748; a=rsa-sha256; cv=none; b=I9QMze/ty6ZwtWDPlGH8fbtrskLrq0K602KORRC4Pl8vci5LH5rti0n4cFs5HxQSmx0G6i hgvcgttb04ooPKxyofhAFVEXZqI6tWa85/GnGoqEO+a02JKUoL04cxWP142I6SffqUL2YQ S/jGyzZBz4VDCki8rG9cQDdSdXal5qRbm6hTNm+CWGn98VbhaOtOYdwnutJzRvJzG2G/yK xr/7GqPzhRFRDTgSspCa6nkHExArvG4CqhPHrzww55Gw7ySOhLhtvg3Pvs1qHwodA1k/t6 Mvke9h+lR55SSM/XgRpqXA6/N7oFo0qEi3BzVyU/gqK+gdwwPmcBB63kFkQrYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ZvrsChQm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ZvrsChQm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 880B8B26F X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: emNgVdvPfnTz Re, On Sat, 30 Oct 2021 at 17:19, zimoun wrote: >> An obvious problem with the interface you propose is that it=E2=80=99s >> ambiguous: are you printing the hash of the =E2=80=98ceph=E2=80=99 packa= ge, or computing >> that of the =E2=80=98ceph=E2=80=99 file? I=E2=80=99m sure the Zen of Py= thon has something on >> ambiguity. ;-) [...] > Well, I do not know. What could be better? Another subcommand =E2=80=9C= guix > archival=E2=80=9D doing all these plumbings: save, display hashes, upstre= am URL, > disarchive URL, etc. Ah, I forgot. Zen of Python says, Now is better than never. and the proposed patch does =E2=80=9Cnow=E2=80=9D the things I need and thi= s hypothetical other subcommand falls into =E2=80=9Cnever=E2=80=9D. :-) Cheers, simon