From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2CvSAcXES2P52AAAbAwnHQ (envelope-from ) for ; Sun, 16 Oct 2022 10:45:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sAYCAcXES2OkKAEAG6o9tA (envelope-from ) for ; Sun, 16 Oct 2022 10:45:57 +0200 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 5BEA146C6C for ; Sun, 16 Oct 2022 10:45:56 +0200 (CEST) Received: from localhost ([::1]:35184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojzHP-00041j-Dg for larch@yhetil.org; Sun, 16 Oct 2022 04:45:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojrwh-0004Jn-1v for bug-guix@gnu.org; Sat, 15 Oct 2022 20:56:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojrwg-0004cq-Q7 for bug-guix@gnu.org; Sat, 15 Oct 2022 20:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojrwg-0005b1-LT for bug-guix@gnu.org; Sat, 15 Oct 2022 20:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58555: [guile-git] Attempt to use git repositories that support older "dumb" HTTP protocol gives uninformative error message Resent-From: Wojtek Kosior Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 16 Oct 2022 00:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58555 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 58555@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166588175921469 (code B ref -1); Sun, 16 Oct 2022 00:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Oct 2022 00:55:59 +0000 Received: from localhost ([127.0.0.1]:42826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojrwb-0005a2-KZ for submit@debbugs.gnu.org; Sat, 15 Oct 2022 20:55:58 -0400 Received: from lists.gnu.org ([209.51.188.17]:50548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojimE-0001et-6a for submit@debbugs.gnu.org; Sat, 15 Oct 2022 11:08:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojimD-0007Jo-UK for bug-guix@gnu.org; Sat, 15 Oct 2022 11:08:37 -0400 Received: from koszko.org ([93.95.227.159]:46566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojimB-0001yh-Er for bug-guix@gnu.org; Sat, 15 Oct 2022 11:08:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=PSts7fCpE3dmwSi+neiXqlYg7geAoyO4rkQpxH/1w2Q=; b=mCVK+fTyNtf3dFcIc5kA5uSKfM RtZRO3gTPEMCstMJN0Us96KGQArWlvaqUAgzlRm/I3YmFzbJcPJOP2XAtYvPU3zSlmCb9Ub8S/5A9 ghmJrktFQpV1Eniad7op8JIYjf6KqTlEp7O69GmYqNPv1ET9sD63aSyj4hXB/akQ1lnNwhipB/jH4 iSP/OIEwbUzqw6VTR/CXAbP68Bx1h+yGx/HBBItXkLvdr2SfQ6qon1N3dWaHvMrj1Pul2q1k8fIg0 zzqAx/o4tJ2UblGji8cu6uSrdY7KKCfi40Mb/6fGR3U/CXkIyDsQ92wJKGFOAPQPaZgyVQGfIqK3g tAI47ayQPmxSBnqDIUlda7gSjaumQnXOTz0yi6Nk+DTDjTaL2fmMpdC+u0kmHXxhlXqLEfn1INeNA 2DNZWhLKRYiukPXwDHMSc/N6BPa+qOZ/cHd6o3kBdU5hLDTkkalGj5v8MT0uiH0NrZE6zC2Uj3XaG lbe4jGWXU7TY7Mb4lfNzMEA7T3oqLyclRO3tXOG9Mcf9pevob9cp4ZrImUhbWIE4EF+qpaE8TgM15 +pnU0pw0VWnYYctSU44csvszTVfyhcqWSKb1MSGg+AgYchkUbr1goAJ8e41IVwvRCkvNqJxj2rHQr RN/4bz1KY2eoe1EWgvCUEZVb+9Lit9NR466TdkbQ0=; Received: from 77-252-46-233.static.ip.netia.com.pl ([77.252.46.233] helo=koszkonutek-tmp.pl.eu.org) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojim4-00014z-94 for bug-guix@gnu.org; Sat, 15 Oct 2022 17:08:28 +0200 Date: Sat, 15 Oct 2022 17:08:26 +0200 Message-ID: <20221015170826.061d6f4d@koszkonutek-tmp.pl.eu.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/duXM1qbW_UFjc2zVeuA2KRZ"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 15 Oct 2022 20:55:52 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sun, 16 Oct 2022 04:45:33 -0400 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: Wojtek Kosior From: Wojtek Kosior 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=1665909956; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=PSts7fCpE3dmwSi+neiXqlYg7geAoyO4rkQpxH/1w2Q=; b=JSJ7jhxUbu8zRNw4ByRwxcg+DsVUpRThb0oPVjlFBl1LE6aj7FU5dy0hT95hI/wm1cTOz0 jWiQ/guGe1dZoxVat92p0GVl9PHRtQdiXoRbVRPD/p9p6Sl9kigtagJ9il5uvYpbdJfWKs 9r5uBuLSLwvRVJ0N41aUO7p8GaXHiTNguDl8Bvlk1Qf4XkJmjlz57Pi+rd2QR1ttV6iaOU 2t3rgheyC6x4akFClTh5mwGdYsY/XZjeOiq2mbfK21w6P+wBbMj8zSx514+54/yGzVZgc9 lvvNx/YeTTYnJpJkJpUcuQCrZFvSXIoBuJ+v1yywjDxtxrfpzWOtTj88p7uctA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665909956; a=rsa-sha256; cv=none; b=CT2O8ZUqVGzKtSnYh3g0QFXR5XvvV8Pm4mSTAx0RsVNraZOAoSChQ+qXBtfE+mwGoTmSx2 mzH2QV2ixNa5o7VBW20SkF6E/osmS3cuQULeMeElLa7mIfWy3Djyzja3cw+/K/tTCY2Clw SGo8FHsqCWQ2fFRpwsEdIdGPoMXnFdlDoSt4l3VaFbenJt8UUu8S1HMyf2hz3BqTkzFErc xJK0bamd1uzn7xxbl85kBp2v72KlJHiL5BCa9fzClahWhOfQLD8V/XjzLB18x+5HEm3gVN iKnZXqYL8ExT63rYwF+AXDE0gTe44o3jwLPN+wYISMtCF08br/Zen8LdPzQXhQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=mCVK+fTy; 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: -4.20 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=mCVK+fTy; 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: 5BEA146C6C X-Spam-Score: -4.20 X-Migadu-Scanner: scn1.migadu.com X-TUID: aGBAwY87HP1W --Sig_/duXM1qbW_UFjc2zVeuA2KRZ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I was trying to set up a Guix channel and use it from guix.scm of my project. I got an error when using `guix shell` > Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.= org/git/guix.git'... > Updating channel 'hydrilla-guix' from Git repository at 'https://git.kosz= ko.org/hydrilla-guix-packaging'... > SWH: revision "7ffa00d8923f518d4d3898d2b9f6673afe204660" originating from= https://git.koszko.org/hydrilla-guix-packaging could not be found > guix shell: warning: revision 7ffa00d8923f518d4d3898d2b9f6673afe204660 of= https://git.koszko.org/hydrilla-guix-packaging could not be fetched from S= oftware Heritage > guix shell: error: failed to load 'guix.scm': > guix/git.scm:401:19: Git error: invalid content-type: 'text/plain; charse= t=3DUTF-8' I investigated this and found out it's guile-git that fails to HTTP clone repositories that use the older "dumb" git protocol instead of the newer "smart" one. I have since added support for "smart" git protocol in my repository at git.koszko.org. However, I found a way to reproduce this issue directly in guile-git. I used more or less the following commands cd /tmp/ git clone https://gitlab.com/guile-git/guile-git.git cd guile-git; patch --strip 1 < ~/.config/guix/current/share/guile/site= /3.0/gnu/packages/patches/guile-git-adjust-for-libgit2-1.2.0.patch guix shell -f guix.scm nss-certs guile libgit2 guile-bytestructures -- = guile -c '(use-modules (git bindings) (git clone)) (libgit2-init!) (clone "= https://git.nicksphere.ch/calcurse" "/tmp/gitclonetest")' Nick's repo that I am using here only supports the dumb protocol. Hence the following error > Backtrace: > In ice-9/boot-9.scm: > 1752:10 7 (with-exception-handler _ _ #:unwind? _ # _) > In unknown file: > 6 (apply-smob/0 #) > In ice-9/boot-9.scm: > 724:2 5 (call-with-prompt _ _ #) > In ice-9/eval.scm: > 619:8 4 (_ #(#(#))) > In ice-9/command-line.scm: > 185:19 3 (_ #) > In unknown file: > 2 (eval (clone "https://git.nicksphere.ch/calcurse" "/=E2=80= =A6") #) > In git/clone.scm: > 46:8 1 (_ _ _ _) > In git/bindings.scm: > 77:2 0 (raise-git-error _) >=20 > git/bindings.scm:77:2: In procedure raise-git-error: > Throw to key `git-error' with args `(#< code: -1 message: "inv= alid content-type: 'text/plain; charset=3DUTF-8'" class: 34>)'. The expected behavior is that instead the user gets a meaningful message, e.g. "Repository at could not be used because it doesn't support the newer \"smart\" git HTTP protocol. Please ask the repository owner to add support for that protocol". I didn't see any mailing list for guile-git and I noticed most recent commits in guile-git are from Guix maintainer anyway so I decided to just submit to Guix bug mailing list. I hope I'm not doing something horribly wrong here :) Best, Wojtek -- (sig_start) website: https://koszko.org/koszko.html PGP: https://koszko.org/key.gpg fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A Meet Krak=C3=B3w saints! #35: blessed J=C3=B3zef Innocenty Guz Poznaj =C5=9Bwi=C4=99tych krakowskich! #35: b=C5=82ogos=C5=82awiony J=C3= =B3zef Innocenty Guz https://pl.wikipedia.org/wiki/J=C3=B3zef_Innocenty_Guz -- (sig_end) --Sig_/duXM1qbW_UFjc2zVeuA2KRZ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY0rM6gAKCRBLxSIcWnn9 Gt/6AP9UE8ZMdUj92pVnZCNIRnEiAs52ZmOrOn5/38GpOLLncAD/XeeDr8zh7Tf2 XWqJQk2cIXRw4RVIXc6xU7GW9+sk8AU= =8xOj -----END PGP SIGNATURE----- --Sig_/duXM1qbW_UFjc2zVeuA2KRZ--