From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#20428: git-fetch does not always validate hash Date: Sun, 26 Apr 2015 15:13:16 +0200 Message-ID: <87lhhfyqvn.fsf@mango.localdomain> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmMNq-00060X-Jv for bug-guix@gnu.org; Sun, 26 Apr 2015 09:14:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmMNn-000196-Bf for bug-guix@gnu.org; Sun, 26 Apr 2015 09:14:06 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:50422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmMNn-000190-91 for bug-guix@gnu.org; Sun, 26 Apr 2015 09:14:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YmMNm-0005Ng-Nq for bug-guix@gnu.org; Sun, 26 Apr 2015 09:14:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmMND-0005Ux-K1 for bug-guix@gnu.org; Sun, 26 Apr 2015 09:13:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmMNA-0000qm-Cj for bug-guix@gnu.org; Sun, 26 Apr 2015 09:13:27 -0400 Received: from sender1.zohomail.com ([74.201.84.162]:53353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmMNA-0000pF-5Y for bug-guix@gnu.org; Sun, 26 Apr 2015 09:13:24 -0400 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-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 20428@debbugs.gnu.org I'm currently playing with the elogind package recipe and I'm occasionally updating my clone of the elogind git repository. Whenever I do I update the value of "commit" in the package definition: (define-public elogind (let ((commit "18ee7abc9a")) (package (name "elogind") (version (string-append "219." commit)) (source (origin (method git-fetch) (uri (git-reference (url "http://git.elephly.net/software/elogind.git") (commit commit))) (sha256 (base32 "0lg8jgp9rl3wf9w2xfip87nx9zpjhm4js7x1z05744xiyfmvawp5")))) ;; ... (license license:lgpl2.1+)))) Upon rebuilding the package from a new commit I would expect the build to fail with a hash validation error as I have not updated the hash yet. However, the build procedure just continues. I noticed that the git checkout is still the very same as before I updated the value of "commit". I cannot seem to reliably force a new git checkout.