From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Petkov Subject: bug#36614: rust@1.36's hash is incorrect. Date: Fri, 12 Jul 2019 17:59:29 -0700 Message-ID: <4F732059-C44D-45CA-B077-7CDB5C8C5569@gmail.com> References: <8736jby4go.fsf@gmx.com> <87pnmf2y1n.fsf@nckx> <87k1cn411s.fsf@nckx> Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44299) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hm6OU-0008Vd-8N for bug-guix@gnu.org; Fri, 12 Jul 2019 21:00:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hm6OS-0006cK-BU for bug-guix@gnu.org; Fri, 12 Jul 2019 21:00:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60405) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hm6OQ-0006aH-LV for bug-guix@gnu.org; Fri, 12 Jul 2019 21:00:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hm6OQ-0000oW-Fq for bug-guix@gnu.org; Fri, 12 Jul 2019 21:00:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87k1cn411s.fsf@nckx> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Tobias Geerinckx-Rice Cc: 36614-done@debbugs.gnu.org > On Jul 12, 2019, at 10:26 AM, Tobias Geerinckx-Rice = wrote: >=20 > Yes, this is exactly what happened. I consider this is a feature of = Guix, even though it can feel like a gotcha sometimes. :-) >=20 > We often tend to think of the source URL(s) as an =E2=80=98identifier=E2= =80=99 of the source file. However, it is nothing more than a hint = about its *location*. The only authoritative identifier of its = *content* is the hash: to get *this file* (content hash), try looking = *here* (location: URL). >=20 > One origin may have 0 or more source URLs: Guix will try them all = until it downloads something matching the hash (and if even that fails = it will try some implicit ones like tarballs.nixos.org). >=20 > =E2=80=98Unique=E2=80=99 identifier (hash) > =E2=94=9C maybe you can *find* it here (URL) > =E2=94=9C or here (another URL) > =E2=94=9C hell maybe here I don't know (yet another URL) > =E2=8B=AE > Guix cares only about the content of the file; it doesn't care or = even remember how it got it. Or: if you change the download hint = (release URL in this case), Guix won't care, because you didn't change = the hash. >=20 > I hope that makes some sense, This is a wonderful explanation, thanks! Will keep this in mind for the = future :) =E2=80=94Ivan=