From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id APKaLMVT/2RdjgAAG6o9tA:P1 (envelope-from ) for ; Mon, 11 Sep 2023 19:52:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id APKaLMVT/2RdjgAAG6o9tA (envelope-from ) for ; Mon, 11 Sep 2023 19:52:05 +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 6C0DA5AA53 for ; Mon, 11 Sep 2023 19:52:05 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=BgP6QKKV; dkim=pass header.d=wolfsden.cz header.s=mail header.b=DbijLXZG; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694454725; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=EiCE+0WCV82+1hz87Hka72AuzpYJClHgmudDTnBCSiM=; b=mFsIAh3Npc8lhFKk+Fhvbqp2QBow9z2ZBq/77OpmoJasEUYPdPtg+vK091Axxe0U5ZvKiV cRLvXr5EHe4oixTTeHRoNsc+v/pRIpxo86rz4VD6onfziH8tbG6vVcT1sBL/zxKeVd5hZH CpvPGWDYDTXapbkR9G+YmUF3PGLmauxHi7FAg+/MkfRZ44gMeyxf1382vRwUdojfPOC5qW T3wBL9pSxeGOK/n7TIDjGObJdqW7nhl1YvfkA7vzSWhKHht0bmglApHlFqsrCaNVzSeNf+ Ymm9BdIoARVVwtPrcHG5t0a5sDYGumQru2bWoFn0e6dNoOm3xDDde9hlgW3Jbg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=BgP6QKKV; dkim=pass header.d=wolfsden.cz header.s=mail header.b=DbijLXZG; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694454725; a=rsa-sha256; cv=none; b=lKJVF1ais3ASUI+Tx8u6IeSKGI+any+wM6Qp6Q9teJ/Qg/8ukABr9/Y2S7UL6Fogz0pi0O NFWRRstc7fDeUkYxr3GwWHvoNm3qpebA6XKjBKfm7BSq3cB0NrJFC0/TgT6ceXHmIKEjN3 Zn58M1kaFqJjFJ0sY3J+wLILPLE0G53USzFE4TmrZdUQP6AJQnd7vZRGTUUWkR89TVpZD6 si+mR66eiZdgYoz9ibJzsv7hV8+sx6PIj6TxmDNo0da2bOa0/3y9v4mWM8ZuuNXtT2aigK kzrSqpuX8bqA0+y/39potpIdJwGxbrDJQEQ3D6Hhysp8f1ZGNl43UlQ+ZbE0ow== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfl4L-0002Ft-PQ; Mon, 11 Sep 2023 13:51:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfl4J-0002DM-61 for guix-devel@gnu.org; Mon, 11 Sep 2023 13:51:27 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfl4F-0008DV-VJ; Mon, 11 Sep 2023 13:51:26 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 9F0DE25BE86; Mon, 11 Sep 2023 17:51:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1694454677; bh=YKHnK8J4Nvc/YG8hoVj0875PfScSVpNjEV8ySq4TjiA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=BgP6QKKVX5Wf7hu5UwPpgcyW8LFATxhLnW2AhC/nPpt/eCRvWYEj6aWIZbYNFQGok dpKFSnIj0Da1fHqoLkZAaDYwH6eRuuLMso6otIhFGp8WACtv7mOvQfZCYN/wfny2HL 7Kst2fU03eLFmTcyGCM+R4QCWF346kYNA+2tDnY2i+92hR7E4pLvqskGouy0Rb5RHc lhzoJwA4Ir2YIrX+EcAEK0o011RuWU9n7k0RUJNnSboQQDpR1ULs5InGjHTFjoYQik FmKYrSh+u+0lygtqXI0R9MhqXXCcMy/p3XuHEDQuuZWNPA/F3CbSQRGj1ipgg979vM t+I7mlIwGJnJlbhERnJ81OVNQ+2LoWc4JgyOzxMwy2YuVGcNfyQtMcY/XehZToUALP Q2jxNkS8qrFWC1ZfgOYC4bfzFkrufKnmFuDEIlpr0uAmqaSGe/WM+RZK3MJOrqDqTk bbn+v/pSt5eeXSHqbx3A1H1RNVvgGIpjMI5aCSgUrrMdWw/LwNqlaNPjTXXqAB7vSk DdIIxgBR9JC9nONdhGehLlhdEzExi49PMwu87rR0wiOOilpDK5GvWV9eSSv2nyTxEZ WfG/LEVFj4MUGLMDX1fOaAe83ESr8XML0mvau8Y7v2l5XTWIQ8wOp+6zYCOunWWLKr R2zNIdNSiUoigU1QfwK3DXwA= Received: from localhost (unknown [193.32.127.154]) by wolfsden.cz (Postfix) with ESMTPSA id 3D81125AC5C; Mon, 11 Sep 2023 17:51:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1694454676; bh=YKHnK8J4Nvc/YG8hoVj0875PfScSVpNjEV8ySq4TjiA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=DbijLXZGK3AjNE8RcjO2Dq7wru4wBZ7Dn5D9mw/NRGA3to0JRaptnJb1UpS85QmHz ktzCF1wfop9D4ca72tcum+yfvkqztWjkJ56Za2/pIC9RN5Ag0+P77KpHilkBabDtZm ngUBKP2GcZppQSMYuWBps8t6m0OtpVdlHdGjKm+FfAeHCsRciQ+lglpRAHbRGQVAsm EW+ZSLr8tSykQbnupqkKMJT848VvGOCHTEmYYYodAgtSIVdTMg8ftMhZRM8aVJKkQN 9MXM1oZocZD87Wv33zm04rqaVea049zlXKjOljsUeCIOeYKxNtwHjtAldtD0GODwxQ s5QRbYwbix+zy8zjlcyoPmWQEcI92rIgKMi5Kd0DylcdYOXn6g64VdtJDC2x0jLT0R b84l7nBG+CP/9HHpWibz5GxNRE4l0SFUe+94fuWCQEOy8RmUajd9WazQycstXR+QS5 NjQzfO01+KCDVvJ3QEE17DqacQpY159Xo5iY495DD/AdL7rctb2J3Um/zuRKxiR1re tsLPMbIvsyhxavojGe+gPY5O95gGoGIvKITbo0UbKY8PH5UQtQ+zq0Qpt5+j5PiCIO DN0CwBtm/Povvhz0rBunOj0r2oKuYwXwPgnUUPzx4osbZJEyd5PQ25Ow3o8oLx9TOq JE22kcERrlE0/OR8OGK5dj+Q= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id be1f87af; Mon, 11 Sep 2023 17:51:15 +0000 (UTC) Date: Mon, 11 Sep 2023 19:51:15 +0200 From: wolf To: Simon Tournier Cc: guix-devel@gnu.org, Ludovic =?iso-8859-1?Q?Court=E8s?= Subject: Re: hard dependency on Git? (was bug#65866: [PATCH 0/8] Add built-in builder for Git checkouts) Message-ID: Mail-Followup-To: Simon Tournier , guix-devel@gnu.org, Ludovic =?iso-8859-1?Q?Court=E8s?= References: <871qf4ivsr.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fm3Voru6HIvYdWCx" Content-Disposition: inline In-Reply-To: <871qf4ivsr.fsf@gmail.com> Received-SPF: none client-ip=37.205.8.62; envelope-from=ws@wolfsnet.cz; helo=wolfsden.cz X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -11.41 X-Spam-Score: -11.41 X-Migadu-Queue-Id: 6C0DA5AA53 X-TUID: pT3tO+eA6qwF --fm3Voru6HIvYdWCx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2023-09-11 17:17:24 +0200, Simon Tournier wrote: > Hi, >=20 > On Mon, 11 Sep 2023 at 16:23, Ludovic Court=C3=A8s wrote: >=20 > > Note that the patch series adds a hard dependency on Git. > > This is because the existing =E2=80=98git-fetch=E2=80=99 code depends o= n Git, > > which is itself motivated by the fact that Git supports > > shallow clones and libgit2/Guile-Git doesn=E2=80=99t. >=20 > Going this path, I appears to me worth to revisit the proposal: >=20 > RFC: libgit2 is slow/inefficient; switch to git command? > Maxim Cournoyer > Mon, 21 Nov 2022 21:21:02 -0500 > id:87cz9fpw4x.fsf@gmail.com > https://yhetil.org/guix/87cz9fpw4x.fsf@gmail.com > https://lists.gnu.org/archive/html/guix-devel/2022-11 >=20 > I know it is not an option for now to parse the output of =E2=80=99git=E2= =80=99 commands > in order to keep the features of (guix git), (guix channels), etc. >=20 > However, this discussion was mentioning an implementation of > clone/checkout in pure Racket supporting shallow checkout. Considering > the current level of integration, I thought the next Big Plan=E2=84=A2 wa= s to > gradually move bits of Guile-Git to being pure Scheme, maybe based on > the Racket implementation of =E2=80=99clone=E2=80=99 as a starting point. >=20 > Personally, I do not have a strong opinion about the Big Plan=E2=84=A2. = I note > that the introduction of Git as a hard dependency is a slippery slope > considering the current state of libgit2. Here, it starts with =E2=80=9C= git > clone=E2=80=9D, then =E2=80=9Cgit gc=E2=80=9D (unsupported by libgit2) is= also in the pipes > (#65720 [1]). And after timing, I am almost sure that many operations > using Guile-Git will be slower than their plain Git counter-parts. And > we will start to parse the output of =E2=80=99git=E2=80=99 plumbing comma= nds. If you don't mind me asking, why is that so problematic approach? Git's plumbing commands are intended to be used in scripts, so I am unsure what t= he problem is. I cannot recall a single instance when some tooling I have at home or wrote= for work stopped working due to git changing. I guess there likely are such instances, but would be interested in examples if someone has a list. > Slippery slope for pushing Guile-Git out, no? Guile-git does not seem to be in the best place currently, when I was putti= ng together the script I sent to #65720, I tried to use the info manual, and t= he best way to describe it is "incomplete". Some behaviors are... surprising. Arguably that is the impression I got based on one morning of trying to use= it, so it is probably inaccurate description and lacks some details. >=20 > And I do not speak about the closure. Is it possible to extract the > command =E2=80=99git-clone=E2=80=99 from git-minimal? It would reduce th= e size, no? >=20 >=20 > Cheers, > simon >=20 > 1: https://issues.guix.gnu.org/65720 >=20 --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --fm3Voru6HIvYdWCx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmT/U5MACgkQL7/ufbZ/ walLHA//YzMXgxU87eUPwEAAC4ukkP0QLFDGFTGUWWWq6fPhDWaTnjSvuZUBJ2Or oSfBMZG/CigZGQykLSvVTvgOgfAaOpze7NO2XPski1Jecf+2HqjSOt4NwH47hUNv o+XxFib1yXxjPChHGNcAvIvw2DHY2BdviIYd+e1VI8nyZgmlmh+T6yW23Ebe44Jl yr5tNMMZ+rIir3V5vGlVIRpK21WzW8YxhaGYlK2W4Pcc/lnUQ1MiwV5PJVXuz5+u TYiYTIbcVs2VjLFvNvXzUIUlEmf/OXsbf8sCihG+phXEAZ41k2Yd1TomwOYNmi+2 p7rAlg0ZD81d16t9jgMvodU4GWpc6KAaM8y5wkJ/usnknUN5H/YOl/IzLop1QHlE ryQl5v4Q/SXyRDViIbewWZS/XLPNWjKMlyQ7/oqFNcmzIQZzDCF4UV1310r40f4K pv/C++Tk+9a0Dtnhy8RaWoyXnE1pevjaJ8OKv1kVlM+A6W7I0/S0lQAKPa8gOPIf UD5LL0l7SHamQiHbTdFjZMgJdTblmVw81/eDZM23d4Uj/8chpDLiqrgw5obkavIr dFNFWhxrbruia2nmCK5nt9ENRsOMK6r41AT1gKHcsEQ5wkFcFVnsARCzBeIblycp 4ylHR2vO208GmlpSVq2al4BuqtfeSHLyYRjFugiFXEDryq4QLQA= =w0ZJ -----END PGP SIGNATURE----- --fm3Voru6HIvYdWCx--