From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IM9wCSknvWGfUwEAgWs5BA (envelope-from ) for ; Sat, 18 Dec 2021 01:11:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IHouBSknvWEpWgAA1q6Kng (envelope-from ) for ; Sat, 18 Dec 2021 00:11:21 +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 E1F3E15686 for ; Sat, 18 Dec 2021 01:11:20 +0100 (CET) Received: from localhost ([::1]:46022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myNJo-0004bF-3k for larch@yhetil.org; Fri, 17 Dec 2021 19:11:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myNJX-0004Zt-L7 for bug-guix@gnu.org; Fri, 17 Dec 2021 19:11:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myNJW-0004Ce-DI for bug-guix@gnu.org; Fri, 17 Dec 2021 19:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myNJW-0005Vj-92 for bug-guix@gnu.org; Fri, 17 Dec 2021 19:11:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52591: downloading from software archives as default even if version is wrong Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 18 Dec 2021 00:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52591 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Cc: lichengtai@gmail.com, 52591@debbugs.gnu.org X-Debbugs-Original-Cc: Andy Tai , 52591@debbugs.gnu.org, bug-guix@gnu.org Received: via spool by 52591-submit@debbugs.gnu.org id=B52591.163978623521122 (code B ref 52591); Sat, 18 Dec 2021 00:11:02 +0000 Received: (at 52591) by debbugs.gnu.org; 18 Dec 2021 00:10:35 +0000 Received: from localhost ([127.0.0.1]:40892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myNJ4-0005Uc-SK for submit@debbugs.gnu.org; Fri, 17 Dec 2021 19:10:35 -0500 Received: from tobias.gr ([80.241.217.52]:56288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myNJ2-0005UT-Cw for 52591@debbugs.gnu.org; Fri, 17 Dec 2021 19:10:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=6bQrVXThkGSgO Sz2QpRq2O5Hs1D2Lk+L/fAUhTEKN1k=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=Nhi2TtYG+lSSQEeAHhZBGgq7ayuBVYSicmb34S IZ/BzcEQoj1Egdvo/GXhhw1x1RmaprMgqfFYs9X6yERxciwmkxL77dKY5mfrvvivHiadJ3 Yu0/7xx9htptVfPRIfcVjGboVyk6KyXSXtu6+zzHtw3ak9v7AYOJ+t2UpZsHnvjVsbd9Il /OiPgcQ46+z+4yyejxI/QzXqQgtzbv8nDjKe1w6fMNKwstbtlnbozmeX/rrddrgkPPpYmq 0i7FgzsDczvj/YiYKFU0yYAbeDIOoVVkeFOkhImjmF4gcFRBPn+DmciRGIkpECAWWlRgTu d1DJ/6BceiDFooxsLZk2MyDg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 9963fc03 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sat, 18 Dec 2021 00:10:29 +0000 (UTC) References: <6c18852ca39e53a40cf6cdf0f3c661354d762907.camel@telenet.be> Date: Sat, 18 Dec 2021 01:06:48 +0100 In-reply-to: <6c18852ca39e53a40cf6cdf0f3c661354d762907.camel@telenet.be> BIMI-Selector: v=BIMI1; s=default; Message-ID: <874k76n55q.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Tobias Geerinckx-Rice From: Tobias Geerinckx-Rice via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639786280; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=6bQrVXThkGSgOSz2QpRq2O5Hs1D2Lk+L/fAUhTEKN1k=; b=WtbtKnvpwPnOrLUPNWIuTxy8LGK1ofWUCEqtYr+5ACE2HUc6/U/qZQMTDbTy6nwEtVRcKt AYLMYdZ9jVmxUqBOn2cQyqcjoWSHG5fskKODReQxLjTEcZcuadFJTx3Tumvp2zieZosl59 4yImmvGbaXz+DYrA8/2nCLbIt1fxYM/4nCLBj8g32gzlcaBhJY/onUYDPC5ZeF+EpgC1r8 7ihl9U0lVewDw2qE8sagSHqfV/4cOGWYiP1Plyi8apGv4stgBTyVVLbdnzLBQF4iZ8HM0L eU6AabKEOs/Ls8Yo02K8F/C4FgQVjr45WbSjO/1vl1uwAKUSgCkXsgUssifn+A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639786280; a=rsa-sha256; cv=none; b=h1g321biQgICF4XprazrdxFVmRm9COi5tL07pBl9kmoxp6TMh5IzAkLLpWlHSSuS/szWo5 mOOgoWXpfWHt97X1QOh1OnwGvd+3GJgcbsFi9lqtkilWMliclNBEXy9z48m3UD6+plvvA3 wVh7a4csppbCVK1CQdlJmH8ySdqZWKrWCXgdfit2bvFFpRS7mpDabLhRGLmS+lYL7gINzi J/whE9MLMdyurkHM74neBx1bqMYvwovJZbUyahFVn8+225cbKj4TGNoZBd3rc3dpLFWFYn 3ePjy+0iS3QQM7VJWGBXzUWADhVITPKYgZt2hNCORxONcnHTnEC85Kkfa97WkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=Nhi2TtYG; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.10 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=Nhi2TtYG; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E1F3E15686 X-Spam-Score: -6.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: nPB8H3V2pmfX --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Maxime Devos =E5=86=99=E9=81=93=EF=BC=9A > You forgot to update the sha256 hash. That's it, in a nutshell! > which at this time shall fail as I have not updated the hash=20 > checksum. No, that's the reason it *succeeds*! Guix is mostly content-addressed, meaning that the hash identifies=20 a file. If you don't change the hash, you're not asking for a new=20 file, by definition. URLs are like directions (hence: =E2=80=98locator=E2= =80=99),=20 not identifiers. You can easily generate a bogus-but-valid hash by negating the=20 first digit, which (in nix-base32 at least), can only be either 0=20 or 1. Guix will then print the correct hash of whatever it found=20 at the URI you specified. OK to close as NOTABUG? Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIIEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYb0nIQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15X7YA9iWFSpcWnB2t2fBzD7efAPDBM/Zbe6YORbDi/GUx P3sBAMQlRih69X31RVeJ8KEtuZ6uA3gbOF6oMrmakLZ9MPIA =Hm/z -----END PGP SIGNATURE----- --=-=-=--