From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bug-guix-bounces+larch=yhetil.org@gnu.org>
Received: from mp11.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 KCvsEMgy+GRC7wAA9RJhRA:P1
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 06 Sep 2023 10:05:28 +0200
Received: from aspmx1.migadu.com ([2001:41d0:403:4789::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp11.migadu.com with LMTPS
	id KCvsEMgy+GRC7wAA9RJhRA
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 06 Sep 2023 10:05:28 +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 E041F45915
	for <larch@yhetil.org>; Wed,  6 Sep 2023 10:05:27 +0200 (CEST)
Authentication-Results: aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=fQg34g6J;
	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";
	dmarc=pass (policy=none) header.from=gnu.org
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1693987528;
	h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:resent-cc:resent-from:resent-sender:
	 resent-message-id:in-reply-to:in-reply-to:references:references:
	 list-id:list-help:list-unsubscribe:list-subscribe:list-post:
	 dkim-signature; bh=gyi8zkcyvxV3/1pT9N7jwCyamv5CshT2blTVJG3Xnrc=;
	b=lhvItCl9iHodUy4KTLSh+1PcJeNubGfThQCCH0n+U2M/8QK9y4To+sRmyqZonpYjTbqLsi
	rZUwQa02Grp98QVp/8B5lAExdcrtcvJexDBNZpn9/6N6VSg7cKjT+yDBYNNVJNFIIQoe/c
	YQtIuZgmqiicjmgZjrGhBn0xjUALiUL6zZN3oBEw0b1x1I/oozlRW8e4bQmFSjHhg7fyoj
	RSfr9iUJ22cv/jKcyktUuDrvgq+DC6ydxM7kFG1HyY5MY2BX7PAycMpiuYCcd/c5SoARre
	nJQdDDq4NYXesGyGOOjhn9IlcNOPOUQhlGGI1/SK428ZxX4LS+kI796DJrE4Bw==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=fQg34g6J;
	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";
	dmarc=pass (policy=none) header.from=gnu.org
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693987528; a=rsa-sha256; cv=none;
	b=YqfkqAuj9FrN++fXxWoEcqrpgAY4jT9rRCbTscFp9ha4s4E6sz2sb0Xaa3+S7e1Io9locK
	Yz+IwiwPwCG2CaNEZabSsGI+HlXOHOTKtz95q7sZpPsJZMaYvY4uWPJQkUuqq9QL+7ACiR
	/izsa02K5sTbwgPlz/5cdA06h6b98fQ4w9B6n+txWr6UqANy4UZaCql/Wo7tjZXjvA6RX4
	l1kp9ph2c9nCJ56vjA/A0ftBL0G5ZF6esW5E2nAhqkGK6b5Pqpa+UgQCwmHPGSwyBG5e0R
	JGJa24iobcMUnYgCd5DbanmKK3IVkzLP4fzS7ACgQMN3mD/rJL9EHZTR7GeSLg==
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-guix-bounces@gnu.org>)
	id 1qdnX5-0005zu-Dj; Wed, 06 Sep 2023 04:05:03 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1qdnX3-0005zP-OA
 for bug-guix@gnu.org; Wed, 06 Sep 2023 04:05:01 -0400
Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1qdnX3-00008r-Fd
 for bug-guix@gnu.org; Wed, 06 Sep 2023 04:05:01 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qdnX4-0004E7-CS
 for bug-guix@gnu.org; Wed, 06 Sep 2023 04:05:02 -0400
X-Loop: help-debbugs@gnu.org
Subject: bug#65720: Guile-Git-managed checkouts grow way too much
Resent-From: Josselin Poiret <dev@jpoiret.xyz>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-guix@gnu.org
Resent-Date: Wed, 06 Sep 2023 08:05:02 +0000
Resent-Message-ID: <handler.65720.B65720.169398746616202@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 65720
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@gnu.org>
Cc: 65720@debbugs.gnu.org
Received: via spool by 65720-submit@debbugs.gnu.org id=B65720.169398746616202
 (code B ref 65720); Wed, 06 Sep 2023 08:05:02 +0000
Received: (at 65720) by debbugs.gnu.org; 6 Sep 2023 08:04:26 +0000
Received: from localhost ([127.0.0.1]:60737 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1qdnWU-0004DF-36
 for submit@debbugs.gnu.org; Wed, 06 Sep 2023 04:04:26 -0400
Received: from jpoiret.xyz ([206.189.101.64]:34952)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dev@jpoiret.xyz>) id 1qdnWR-0004D6-9H
 for 65720@debbugs.gnu.org; Wed, 06 Sep 2023 04:04:24 -0400
Received: from authenticated-user (jpoiret.xyz [206.189.101.64])
 by jpoiret.xyz (Postfix) with ESMTPA id 91F69184D5F;
 Wed,  6 Sep 2023 08:04:20 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim;
 t=1693987460;
 h=from:from: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;
 bh=gyi8zkcyvxV3/1pT9N7jwCyamv5CshT2blTVJG3Xnrc=;
 b=fQg34g6JyiP+/me0aYN7zBWmsq5wxDC+grcS0a3n7Du2UVpugp4VzeUthbr+yLvznPY/6G
 C3U4KKoK9LcFooMUDcARSzBrmBOO4iR/rQbocaerR7nCoJ9Q4YnEu00vKyUYItgdTeNudo
 tN86jN9oE7QlfvXjImUROsHF0B0EBnNqz6zR58ljB8ztH4iH9LtE2tAK4cSUuizuePgQix
 KwJsjMGGcw6o1tSBvDi2OiZcz24nW7b1sqU70Aaoa0yTu7k1+nBIMBhtcPYUtFPizu1iZN
 X57Oaq9rFdJFZnGuf0mVP5h4JMvLbZx+U/BNFHo1ingazKEaqviwAS/DCFH/hA==
In-Reply-To: <87msy0ln4m.fsf@gnu.org>
References: <87bkejc7go.fsf@inria.fr> <87fs3tobju.fsf@gnu.org>
 <87tts9uj6x.fsf@jpoiret.xyz> <87msy0ln4m.fsf@gnu.org>
Date: Wed, 06 Sep 2023 10:04:11 +0200
Message-ID: <87pm2vvibo.fsf@jpoiret.xyz>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spamd-Bar: --
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-guix@gnu.org
List-Id: Bug reports for GNU Guix <bug-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-guix>
List-Post: <mailto:bug-guix@gnu.org>
List-Help: <mailto:bug-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=subscribe>
Reply-to:  Josselin Poiret <dev@jpoiret.xyz>
From:  Josselin Poiret via Bug reports for GNU Guix <bug-guix@gnu.org>
Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org
Sender: bug-guix-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
X-Migadu-Queue-Id: E041F45915
X-Migadu-Scanner: mx1.migadu.com
X-Migadu-Spam-Score: -8.82
X-Spam-Score: -8.82
X-TUID: z4XvqCZg6M+E

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Ludo,

Ludovic Court=C3=A8s <ludo@gnu.org> writes:

> Surely you=E2=80=99d agree that it would suck though: depending on two Git
> implementations because one doesn=E2=80=99t have a proper API and the oth=
er one
> lacks a bunch of features.

Right, although I wouldn't necessarily say that the former doesn't have
a proper API, but rather that it has a Unix-oriented API.  That leads to
performance issues on e.g. Windows but on Linux I'm not sure there's
much of a difference.

> It would also be pretty bad for closure size:
>
> --8<---------------cut here---------------start------------->8---
> $ guix size guile-git | tail -1
> total: 106.6 MiB
> $ guix size guile-git git-minimal | tail -1
> total: 169.8 MiB
> --8<---------------cut here---------------end--------------->8---
>
> It=E2=80=99s also not clear concretely how we=E2=80=99d add that dependen=
cy.  Try
> invoking =E2=80=98git=E2=80=99 from $PATH and print a warning if it doesn=
=E2=80=99t work?
> But then, what about applications like Cuirass and hpcguix-web?
>
> Tricky, tricky.

We could consider replacing the guile-git dependency with another
library built directly on top of git-minimal, and have this be a
dependency of Guix.  Not ideal though, and not really scalable either:
we can't just add every VCS as direct dependencies.

From=20what I've seen, people are now scaling back on their use of
libgit2 because of the impedence mismatch and are resorting more and
more to git plumbing.  From a pragmatic point of view, I'd prefer the
latter, since it is more stable and feature-complete.

Best,
=2D-=20
Josselin Poiret

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmT4MnsQHGRldkBqcG9p
cmV0Lnh5egAKCRBQXkC5FhcairUvDACAJZdGUEBC2qVWbsms7Xk6OUTUgfjucIC3
XOLFH74Ewo4OdrUJUrADcWP4GKjrEmglO1hQjRlTwpo60TB7CkFyZIC39Dkm0MPm
R7Oc8BYnPByFHihy3RJwrtk0zH1jOaRd/A6cvdIXCrXk1rnlTBn9EEAKpYlA1OrG
7al4FfxKfFkea48xZsGVM8uc1fsqiHrycZH3gLCbT8V0O4BtNY2rhYLf1eTjFkQl
PbcAdHmkOcnQaZR2WzUHUUH/9GGrHwcXkqSZtgnJ8y/zauig5nyWzX3Zgej4K+VJ
nN0l6QCVtkaAIgCN2+8zTg2ml+WeXjWcE1gGjVyv7748ICmpP3jXE0uGTSGvM0MX
ZFfi+TKU4wJUl8fCZLf41P5v7P1jSy2TbthqbAHkRKlsasYMf/KZMhSh6jypVIN0
VOFPWMUIJhZNQMP2DtVOMC/thc+O8BcfkbFSORNJ5XYaLiNvC4/ODwsKCGxYOa2h
4XlDMtm7YgAewG19hO9fYvbS1oXKLZM=
=olI3
-----END PGP SIGNATURE-----
--=-=-=--