From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: use of git-fetch Date: Fri, 24 Jul 2015 00:50:33 +0200 Message-ID: <87zj2mo5dy.fsf@gnu.org> References: <87h9ov6gqe.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIPK5-0004JY-4a for guix-devel@gnu.org; Thu, 23 Jul 2015 18:50:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIPK1-000569-E6 for guix-devel@gnu.org; Thu, 23 Jul 2015 18:50:41 -0400 In-Reply-To: (Federico Beffa's message of "Thu, 23 Jul 2015 08:29:39 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Federico Beffa Cc: Guix-devel Federico Beffa skribis: > On Wed, Jul 22, 2015 at 11:10 PM, Ludovic Court=C3=A8s wro= te: >> Federico Beffa skribis: >> >>> (sha256 >>> (base32 >>> "06mc7kh3fzdh2mqkyynjnp0xpv30yfaiik8bqv8z5b6hldji3cky")= ))) >> >> [...] >> >>> (sha256 >>> (base32 >>> "06mc7kh3fzdh2mqkyynjnp0xpv30yfaiik8bqv8z5b6hldji3cky")= ))) >> >> Both recipes are telling that they use the same source. So the daemon >> cleverly saves one download since it already has the thing with that >> hash on disk. See? :-) > > Thanks for the reply! > > I thought about this and, before posting, I also tried with an hash > where the first character was changed from '0' to '6'. It gave the > same result, even after deleting any existing 'emacs-dash' and > 'emacs-s' derivation in the store. In my understanding that shouldn't > happen. Is that correct? Right, but we=E2=80=99d have to check the exact sequence of actions that you took. > By changing the hash to a totally different one (a string of '6's) it > downloads the right repo. As expected, it complains about the hash and > gives me the right one which I can copy into the package recipe. > (That's The Lazy work-flow :-).) Heh. :-) It=E2=80=99s a good idea to clone by hand though and check the signatures if there are signed tags or commits (=E2=80=9Ctrust on first clone=E2=80=9D), = but I=E2=80=99m afraid this is not commonplace. Ludo=E2=80=99.