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 WBhyNki/RWEuQgAAgWs5BA (envelope-from ) for ; Sat, 18 Sep 2021 12:28:24 +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 SOQjMki/RWFsDQAAbx9fmQ (envelope-from ) for ; Sat, 18 Sep 2021 10:28:24 +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 6B82283F for ; Sat, 18 Sep 2021 12:28:24 +0200 (CEST) Received: from localhost ([::1]:37760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRXa3-0003ed-DR for larch@yhetil.org; Sat, 18 Sep 2021 06:28:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRXZi-0003dD-UB for bug-guix@gnu.org; Sat, 18 Sep 2021 06:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50305) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRXZi-0001Dn-Lt for bug-guix@gnu.org; Sat, 18 Sep 2021 06:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRXZi-00076S-Hh for bug-guix@gnu.org; Sat, 18 Sep 2021 06:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#44187: Channel clones lack SWH fallback Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 18 Sep 2021 10:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44187 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 44187-submit@debbugs.gnu.org id=B44187.163196085327263 (code B ref 44187); Sat, 18 Sep 2021 10:28:02 +0000 Received: (at 44187) by debbugs.gnu.org; 18 Sep 2021 10:27:33 +0000 Received: from localhost ([127.0.0.1]:33618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRXZF-00075f-5p for submit@debbugs.gnu.org; Sat, 18 Sep 2021 06:27:33 -0400 Received: from mail-qk1-f176.google.com ([209.85.222.176]:34318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRXZC-00075P-MJ for 44187@debbugs.gnu.org; Sat, 18 Sep 2021 06:27:31 -0400 Received: by mail-qk1-f176.google.com with SMTP id a66so25629815qkc.1 for <44187@debbugs.gnu.org>; Sat, 18 Sep 2021 03:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=JB4jFSDwEXY0IpAY/3nsEphPTZcIkkhz/N0flCoKD08=; b=Xm8wtGdQiTA3T5MdaI65kFk/5imgRNAhqizvydN+pnWaNCKOzASOp2dAqOfq3yxfXB UYfnfkYkF5WQwhx4zJAX8oB4KhBUjF4hfg58s0UPAPn7bXrgJ86NnJecL6H9s3FJ/T/5 TeQDxrgoWsGZx6aaBq2+t5MJPvncQrua5ILiz2gyO5itRDZzLNNlfmu45VKEDxy6LFTS ddMwtphpJyoMaPGfm/o/nOwkx5JYNipOsz8upxWKsghEPjLi5sBmLkDfl97KcQ9Ul4q0 8aJt3ZtdE+wNUxg6kVlav8K2Un0CoyzBubn88CiaOOJ8/VmU5Wwby0ygm0rLgxTRak7P m+wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=JB4jFSDwEXY0IpAY/3nsEphPTZcIkkhz/N0flCoKD08=; b=huhwQ9nutl1YvYTAIUQKIClusUn8gW+1UHy6YVY29jGLKGfUi7rzXaD/iK6JayMO12 GSxaJ0wiqjIUk2Jrf05JM/AruM2KunpzVzJd4XPLipG1ANBKi6/i8z+E+oP2p4TIQekQ YQAJRrnycL5Yp4M6P1YSXCm9FSNSXx074fK9V7pLZCgideTz09pN5+kbvyRJUnj5lg9T jbEQ+yLmMyahnVuwjSQ5Eb6Td3ix9Kq9Dcb4rLNkEjPAI1TkJLygmz3WI3bDtDXuWzSn C/GG2aghMZtRBkdZd35Roui7m4TE+dtmCl9mlj+ZCCGTUWGDCgfqiWJYC7a5N2HSwTlB V1pg== X-Gm-Message-State: AOAM533kP6IBRnq69XMTa25llElV3kuYXNzJZok/e/RWLOgBiYOj7ns1 6iNN7U4tvqII79rMKYiSllf/jjjD/0e0xOWhJeU= X-Google-Smtp-Source: ABdhPJw4oRDgoyz0Hw5uXLQX694VxHBzxsImDKmN9gOtLQ94WMIhollAaG//0Kr943k3WnmtInlNocRqTj7YYkCURYI= X-Received: by 2002:a05:620a:4094:: with SMTP id f20mr14560268qko.488.1631960845041; Sat, 18 Sep 2021 03:27:25 -0700 (PDT) MIME-Version: 1.0 References: <87pn0dk61v.fsf@gnu.org> <20210910143415.14783-1-ludo@gnu.org> <20210910143415.14783-2-ludo@gnu.org> <874kajglbo.fsf_-_@gmail.com> <8735q2urjv.fsf@gnu.org> In-Reply-To: <8735q2urjv.fsf@gnu.org> From: zimoun Date: Sat, 18 Sep 2021 12:27:13 +0200 Message-ID: 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: , Cc: 44187@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631960904; 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=JB4jFSDwEXY0IpAY/3nsEphPTZcIkkhz/N0flCoKD08=; b=gL79bBDd6YGuiVFK9mFCZxsFZHAuvalY1m3uQg3G4TBEwPmsD2XY2AUJh7YBorlLuT7iSH IJzSGbtI0zWdGmwOE/su0RSQlkBBuC87FQDEfr/oz4K+hsVxwnJWEpTZvSjLaGKJKUqahr DX9slbBCt4bKdaYTpAMCfSCaLsBg+9V1N0eANjX+PZg7vLob6eh7TBQFtZbsFGspblQuoC rDa7yj+DNm58BT42KNr0ElBd5gbZAGPJzdphITs7o+A3b4Hg3pQJvfLb13ijE0Zfv6EjzH AoXE8yiupNGW7cyp4lmcVWt9kW6Qg8d5XtfcQf2jPlzmWbnCUN9CYmCB0glDFQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631960904; a=rsa-sha256; cv=none; b=Ju01Wopad5gvwhdYnWJ0tJY/HRroVSsbMP8hTs2puA58h4LzEtARjKR7Ia2+Eos4MZ0HTn yVnyxfhJ0Ysk3P8S521ZXI2NK6Q+6DmWiLJIiiwXS3mBNrD4EnYyXSycD91CDNgYl730j0 LOlfpw3JA8bn8JmWhV6Cg9aeYvOF6btE/5iRnAZv0tFz2+00vjQ+rKG2dZSi+7KF8KzKe1 wtEw/ExRO/xWN8YQUZiHZrKtCwDh8LJ0cn6q33xgLDaJyFHd/PMfb7xWgtmYklHvDz3YJA jmH7dqP5JnkS5Q/kmOnUYXAe7Is2KA3BRC0Ns4VyPa3ofmtJ8nCkM9EjdIYgJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Xm8wtGdQ; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: 0.21 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Xm8wtGdQ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 6B82283F X-Spam-Score: 0.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4ljWYMga3ap/ Hi, On Sat, 18 Sept 2021 at 12:05, Ludovic Court=C3=A8s wrote: > zimoun skribis: > > Does it make sense to pass this =E2=80=99swhid=E2=80=99 equal to =E2=80= =99swh:1:rev=E2=80=99 with the > > =E2=80=99flat=E2=80=99 archive-type? Another instance is, [...] > > and from my understanding, again =E2=80=99swhid=E2=80=99 depends on =E2= =80=99archive-type=E2=80=99. > > Therefore, it prone error. > > =E2=80=98git-bare=E2=80=99 only makes sense for a revision, not a directo= ry, but I So it does not seem possible to form a 'swhid' as "swh:1:dir" and pass 'archive-type' as 'git-bare'. And conversely with 'swh:1:rev' and 'flat'. Right? I have not tried though. :-) If yes, it means the both arguments 'swhid' and 'archive-type' are linked so the function should accept only one unifyied argument and not 2 independent ones. IMHO. > wonder if =E2=80=98flat=E2=80=99 can be used for a revision (in which cas= e it=E2=80=99d be > equivalent to getting the corresponding directory)? > > I agree there=E2=80=99s some redundancy between directory/revision and > flat/git-bare, but it=E2=80=99s the SWH API that looks like this, so I=E2= =80=99d be > tempted to just keep it as is. Maybe we could ask for guidance on > #swh-devel. Well, let postpone the refactoring. :-) However, if it works as I understand, then the refactoring seems the correct way so I would not accept a backward compatibility argument. ;-) Have a nice week-end, simon