From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8Dl7D90sgWG7UAAAgWs5BA (envelope-from ) for ; Tue, 02 Nov 2021 13:19:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IHg0C90sgWEIPwAA1q6Kng (envelope-from ) for ; Tue, 02 Nov 2021 12:19:41 +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 8FF69D92D for ; Tue, 2 Nov 2021 13:19:40 +0100 (CET) Received: from localhost ([::1]:36268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhslP-0006um-Mc for larch@yhetil.org; Tue, 02 Nov 2021 08:19:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhrxM-0008BD-A8 for guix-devel@gnu.org; Tue, 02 Nov 2021 07:27:57 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:53881) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhrxK-0002bK-ER; Tue, 02 Nov 2021 07:27:56 -0400 Received: by mail-wm1-x32e.google.com with SMTP id y196so6113013wmc.3; Tue, 02 Nov 2021 04:27:53 -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=qu5VYgPgJXyVKJTRpGrnq3whIhci+UxWfTjcw/2xPIg=; b=lWHjZMZ1q6d2AtkHLpjhBxLpMM1ihEmQsvoJLVsN5xckIGQKGrzmL+9wRj6coaV4Ou CXbcYTnNvj/0FeCZRCRQcFzduDKHjSWFHX80SMOJoPP9HuXTD137GuuI8gmTQKrFReJv E/w6fI/QYoWnlpq/XOymRZ5TykH7GsDPcm1iWeCRDehqmiKyY2Ypq+uUD40ckrW3W9oF +vpbIe4y3o8QVYRaBnUum/j2Dl99BANUtSk82QnGAYxSjOeGOQbf0AmPzTLiHTA4eq7c OhOtR0+rj5NVOVJcUpFBF39J5ranv/dLloUJBv4p5Y28Bvvm7mtOGdFsDs2lSGgvTh3V FTVw== 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=qu5VYgPgJXyVKJTRpGrnq3whIhci+UxWfTjcw/2xPIg=; b=WXRRpjiG0ZTUwEOR+DjTlEBPiYGLcWX0djMceKSURWTi+h7H+I5vuK2b7xljh0bII/ SMELChNfuIZUp/MGOeOHzw9pCqvMfDLl2gCeg7J7j/gf3LOhEd81ZZleZJvFEf1pBVpH DrNlAOvuAp2YL9gSI2pIRLaveEUgCrCe+qACa75UHXy7ealAqITzaiLRGazIFIcsS6dU UeLukxE7MU5QOy5hza2/R0tTlqLt9CR/UorLOvzKdvXjRyL/4i0KZoDnmb8W2q08BM/o GFiKvr5a/ap6AtYyCCKt/aRlS0HYXFAbtC7X5Cfk0ckDt5jETEHMw+Ergj/9sHmbqivj qmAA== X-Gm-Message-State: AOAM5305iaw5qDZYLp2bSKV1QJCGb9vwVXp2DPV3PGms5CdsjxZ/L8Ps hTHpz1IY/1FuCgvBloOSUcMxgoIWoN4= X-Google-Smtp-Source: ABdhPJxxe6cYohoiaGiZHgo+FMvxUZioWK3f6W7/KdZxPHjb/wFQ+9UjUAax4z4cPE4bKBrBo01v/A== X-Received: by 2002:a05:600c:19cd:: with SMTP id u13mr6243667wmq.148.1635852472081; Tue, 02 Nov 2021 04:27:52 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id o2sm17322657wrg.1.2021.11.02.04.27.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Nov 2021 04:27:51 -0700 (PDT) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: SWH and lookup (bug?) In-Reply-To: <87h7czzxo9.fsf@gnu.org> References: <86bl3b94tx.fsf@gmail.com> <87h7czzxo9.fsf@gnu.org> Date: Tue, 02 Nov 2021 12:23:33 +0100 Message-ID: <86bl32ztqi.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635855581; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=qu5VYgPgJXyVKJTRpGrnq3whIhci+UxWfTjcw/2xPIg=; b=JOrzZf17s4yTON6Xsqjdgima4UrLZC+q27ttYA9bjRIX0OmSE5SvSixcCPhDRWgBiV+wWZ hFzEDyYkF2WjSK8fNgDL1cidkgfFOSnJsz6P78YYRF8B9Kt/kUg0NGv7U3ch3JWpiAa4xr mcxay0NyrMOapAq2cD0AQW+TT9lqp17lcExGf7lNwLMiQpkAdElQYBj+XNoztzJEQteFZK mKSD9xJCECHlcfLeG/eeiOFZo5pSmecsbh1Prr+GI9EKxTTfiHLv/l5IKvFkjzb/iuX3Gf gd6OwjZRr59WPc7UMweyAtW+fylZkRB90acHLDSQGcDWExGctJnC6tEw+Lokqg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635855581; a=rsa-sha256; cv=none; b=Fi4hUr6ndUMrLVb8W+fCbihjL17R09MBccpPTalnLrZKHGtoBiYXWe7I98mLb9zwm/WvHu 6B5yZaYXARlENvb0PeZwUH9us00RI9XKtmFYPKTXzQvSxt9a09DACfpjNqWjN1R03RLheG ot4PSFDGIoStvf5KENbgeC3IPy4v2IKECstdCTpNQ2JFp7KnCMsCZ31A9XFKsjaTr0kfrF cOryULv3bwmzqIX/kQHQdyYQZl8Abe7eqLwJkI6LbuZB2nYU6pI3sbHKyt9wXLlg3a9evk nRPkaE9MW0nnTlV8AfadZnqyPQGGJnHoBLEF2grC+H8vmn/LV1T3rHqUn3iABA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=lWHjZMZ1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-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=lWHjZMZ1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 8FF69D92D X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7Vy/IOYeLmVg Hi Ludo, On Fri, 29 Oct 2021 at 16:57, Ludovic Court=C3=A8s wrote: > Right now Sway=E2=80=99s origin refers to the =E2=80=9C1.5.1=E2=80=9D tag. > > I found the problem: Wow! Thanks for sharing. > The solution is to implement pagination (yuk!), or to use an endpoint to > look up a branch by name instead of using =E2=80=98snapshot-branches=E2= =80=99 (is there > such an endpoint?). Maybe, the solution is to drop referring by tag and only use commit. As you proposed elsewhere [1]: No, I think we should consider always referring to commits instead of tags. It=E2=80=99s annoying from a readability viewpoin= t, but it would ensure reproducibility. Even flatpak has this policy. :-) https://github.com/flathub/flathub/wiki/App-Requirements Although, it would be hard and a lot of work for switching, it would solve many of lookup issues. At least, we could refer to commit instead of tag in =E2=80=99origin=E2=80= =99 for these specific packages. Bah, it is inelegant. :-) Note that using another endpoint via SWHID could be an option. As discussed here [2]. For instance, the lookup would use Disarchive-DB. On one hand, it would ease coverage and so on. On the other hand, it means rely on another service =E2=80=94 it does not appears straightforward= when speaking about long-term support; although Disarchive-DB is somehow a Git repo, i.e., archival on SWH is more or less easy, but it is still missing a mechanism to locally fallback is this very service is down. Well, the story is not complete yet. ;-) 1: 2: Cheers, simon