From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UJxhJR8QQF8zEgAA0tVLHw (envelope-from ) for ; Fri, 21 Aug 2020 18:19:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qE83IR8QQF/USQAA1q6Kng (envelope-from ) for ; Fri, 21 Aug 2020 18:19:11 +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 B9D3C94091A for ; Fri, 21 Aug 2020 18:19:10 +0000 (UTC) Received: from localhost ([::1]:41566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9Bd6-00011R-Gb for larch@yhetil.org; Fri, 21 Aug 2020 14:19:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9Bd0-00011H-Bh for bug-guix@gnu.org; Fri, 21 Aug 2020 14:19:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k9Bd0-0007zq-1V for bug-guix@gnu.org; Fri, 21 Aug 2020 14:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k9Bcz-0002Ec-Sh for bug-guix@gnu.org; Fri, 21 Aug 2020 14:19:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42971: When following instructions in the "Building from Git" manual node, 'git verify-commit...' fails. File got moved? Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 21 Aug 2020 18:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42971 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: tchrzcz@protonmail.com,42971@debbugs.gnu.org Received: via spool by 42971-submit@debbugs.gnu.org id=B42971.15980338958537 (code B ref 42971); Fri, 21 Aug 2020 18:19:01 +0000 Received: (at 42971) by debbugs.gnu.org; 21 Aug 2020 18:18:15 +0000 Received: from localhost ([127.0.0.1]:48272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9BcF-0002Db-6K for submit@debbugs.gnu.org; Fri, 21 Aug 2020 14:18:15 -0400 Received: from lepiller.eu ([89.234.186.109]:41960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9BcA-0002DP-O0 for 42971@debbugs.gnu.org; Fri, 21 Aug 2020 14:18:13 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id fdaacd15; Fri, 21 Aug 2020 18:18:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=peEXaI/fJFtyXhvsGG/IQimHhPLZ0R+9qwrp9osUozU=; b=TD62HcD8cENu u4rxQf+UwoOMC9Qg/GbyXNYHO8Yd+/NPtrOAlOF5iPsQYBQi0K04OEZlcf8GZxBM snHRRttMvWIZhc5WsG6CMnR1nfS3oHt1lYrL0dOqIlxJ5HsluMACKtY1rYo27wQz xuUBZK1uzGWHTqPl5EqMTOmDhIb6nAo/sqrNzndb/ZktsStkeS+lRHQa2yy8ehPQ ANhNauwlYPaPKyL85/WPeQEngogvu+V24hICn9cHhUMzEthmpb8JRVP4hmIowAa9 uUlVowX0ul9sX/L9qUWkd7SqOh6A0mkQ70BFh2/wNxx5RoqVg2EjLM6doSYqUjgo wfxNraLKHw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 862a70e8 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 21 Aug 2020 18:18:08 +0000 (UTC) Date: Fri, 21 Aug 2020 14:17:55 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----QMJCK4YXCRZ3N7E973D6537PJRCZKH" Content-Transfer-Encoding: 7bit From: Julien Lepiller Message-ID: <76971D25-3434-44CB-AA00-A6AC0A76E586@lepiller.eu> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=TD62HcD8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 1.09 X-TUID: whFlvsTX47fu ------QMJCK4YXCRZ3N7E973D6537PJRCZKH Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The mecanism has changed since last release, see https://guix=2Egnu=2Eorg/m= anual/devel/en/html_node/Building-from-Git=2Ehtml#Building-from-Git (Note "devel" in the URL, it corresponds to the latest master)=2E We now u= se "guix git authenticate" to authenticate the repository=2E On 2020=E5=B9=B48=E6=9C=8821=E6=97=A5 11:43:54 GMT-04:00, tchrzcz--- via B= ug reports for GNU Guix wrote: >Hello, > >https://guix=2Egnu=2Eorg/manual/en/html_node/Building-from-Git=2Ehtml#Bui= lding-from-Git >says: > >"How do you ensure that you obtained a genuine copy of the repository? >Guix itself provides a tool to authenticate your checkout, but you must >first make sure this tool is genuine in order to =E2=80=9Cbootstrap=E2=80= =9D the trust >chain=2E To do that, run: > >git verify-commit `git log --format=3D%H build-aux/git-authenticate=2Escm= `" > >1=2E When I run the command, I get the following error: > >"fatal: ambiguous argument 'build-aux/git-authenticate=2Escm': unknown >revision or path not in the working tree=2E >Use '--' to separate paths from revisions, like this: >'git [=2E=2E=2E] -- [=2E=2E=2E]' >usage: git verify-commit [-v | --verbose] =2E=2E=2E > > -v, --verbose print commit contents > --raw print raw gpg status output" > > >2=2E So I looked for "git-authenticate=2Escm" with 'find' and got two >results: >=2E/tests/git-authenticate=2Escm >=2E/guix/git-authenticate=2Escm > >3=2E These two are different files, sizes don't match, 'diff' outputs a >lot of stuff=2E > >4=2E I searched for "git-authenticate" in NEWS, HACKING and README and >didn't find anything=2E > >5=2E Then I figured I'd look in Git commits and found these two: > >https://git=2Esavannah=2Egnu=2Eorg/cgit/guix=2Egit/commit/?id=3D41f443c90= af57f9537eccb1a1a45c6e11b377a32 >"Add (guix git-authenticate)=2E" >https://git=2Esavannah=2Egnu=2Eorg/cgit/guix=2Egit/commit/?id=3D96bf434c7= 0c4346c6402658d3ec57ef64a8e521e >"maint: Remove 'build-aux/git-authenticate=2Escm'=2E" > >I'm not fluent in Git, GPG, nor Guile=2E Do I just run the command with >"guix/git-authenticate=2Escm" instead of >"build-aux/git-authenticate=2Escm"? > >Regards, >tchrzcz ------QMJCK4YXCRZ3N7E973D6537PJRCZKH Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable The mecanism has changed since last release, see <= a href=3D"https://guix=2Egnu=2Eorg/manual/devel/en/html_node/Building-from-= Git=2Ehtml#Building-from-Git">https://guix=2Egnu=2Eorg/manual/devel/en/html= _node/Building-from-Git=2Ehtml#Building-from-Git

(Note "devel" i= n the URL, it corresponds to the latest master)=2E We now use "guix git aut= henticate" to authenticate the repository=2E

On 2020=E5=B9=B48=E6=9C=8821=E6=97=A5 11:43:54 GMT-04:00, tchrzcz--- vi= a Bug reports for GNU Guix <bug-guix@gnu=2Eorg> wrote:
Hello,

https://guix= =2Egnu=2Eorg/manual/en/html_node/Building-from-Git=2Ehtml#Building-from-Git= says:

"How do you ensure that you obtained a genuine copy of th= e repository? Guix itself provides a tool to authenticate your checkout, bu= t you must first make sure this tool is genuine in order to =E2=80=9Cbootst= rap=E2=80=9D the trust chain=2E To do that, run:

git verify-commit `= git log --format=3D%H build-aux/git-authenticate=2Escm`"

1=2E When I= run the command, I get the following error:

"fatal: ambiguous argum= ent 'build-aux/git-authenticate=2Escm': unknown revision or path not in the= working tree=2E
Use '--' to separate paths from revisions, like this:'git <command> [<revision>=2E=2E=2E] -- [<file>=2E=2E= =2E]'
usage: git verify-commit [-v | --verbose] <commit>=2E=2E=2E<= br>
-v, --verbose print commit contents
--raw = print raw gpg status output"


2=2E So I looked for "git-= authenticate=2Escm" with 'find' and got two results:
=2E/tests/git-authe= nticate=2Escm
=2E/guix/git-authenticate=2Escm

3=2E These two are = different files, sizes don't match, 'diff' outputs a lot of stuff=2E
4=2E I searched for "git-authenticate" in NEWS, HACKING and README and did= n't find anything=2E

5=2E Then I figured I'd look in Git commits and= found these two:

https://= git=2Esavannah=2Egnu=2Eorg/cgit/guix=2Egit/commit/?id=3D41f443c90af57f9537e= ccb1a1a45c6e11b377a32 "Add (guix git-authenticate)=2E"
https://git=2Esavannah=2Egnu=2Eorg/cgit/guix= =2Egit/commit/?id=3D96bf434c70c4346c6402658d3ec57ef64a8e521e "maint: Re= move 'build-aux/git-authenticate=2Escm'=2E"

I'm not fluent in Git, G= PG, nor Guile=2E Do I just run the command with "guix/git-authenticate=2Esc= m" instead of "build-aux/git-authenticate=2Escm"?

Regards,
tchrzc= z



------QMJCK4YXCRZ3N7E973D6537PJRCZKH--