From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EA4SFo7k9mS5GgAAauVa8A:P1 (envelope-from ) for ; Tue, 05 Sep 2023 10:19:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EA4SFo7k9mS5GgAAauVa8A (envelope-from ) for ; Tue, 05 Sep 2023 10:19:26 +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 22FCD57484 for ; Tue, 5 Sep 2023 10:19:26 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=E5fqAWKR; 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=1693901966; 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:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=8pM8T1310gSR8edOn+Ojn9vP6FDTUMbm5DyEBYbX+RI=; b=IeZd8Tgr3YQB5I1oblw9MZC+cujeypZFnrcU2kZPYDMfypnYFMV7YaMfHxhZrN1HwVvmj/ bXYskf4WmB3nY3gY9qN1EOfBLmS3733HZGk1MkZGkYdbCzrG2AcTIVNCUCXRDoYPfrkxZK 586Lq3u8SHTwTxSCVPA6Pulgn1ZaMjum1wDYGwoqeZb9uqzTjvwbAtneTqlgD8ceyxzzBn YRjNV27oZyWjuuX09rJ0pp0L/VkdJCuj/T2lm5LyUJ6tJB0YbQXNxYidicYaCWwXyC34Bk Z5EmC4U9lsGNAJ7nGPjP23EXLxjBwgD+AAntTeOZsJfhhjuWNtRgGfvavJ9Yqw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693901966; a=rsa-sha256; cv=none; b=AZTvNF6TDUsOXncZ8dhRNQc5PnXkiGgyTRzlDGUP9yW4M9IKDPN6Ej1JMB4AcpjHRLWNGA bvxukOxMJlo7TAQEKYcszgjKxalRJu466g/Iczj2fkJBycQ/8keduggk/9QauD1VU8tMLi wMEEeiaB5uMH+JUWqTC0kjx7DK16/hWM6fEoFxh0hv4MT60EsaoU1psoSv6gq2Loj0tfSI 3ydtIgqCoQZsWZ0pT9UloWe8gcsI3G9SG2KDIpBHFk2YE4qz7QeF/mogJq+G4mjeQ77Kv6 XlEaxpkQFIsVD8zDOR8jATrgB5llkKnyYTBCCuB71Ffkra1/O21xR8CkD4QW+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=E5fqAWKR; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdRH7-0008VR-2R; Tue, 05 Sep 2023 04:19:05 -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 1qdRH5-0008V7-TV for bug-guix@gnu.org; Tue, 05 Sep 2023 04:19:03 -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 ) id 1qdRH4-0006Py-3G for bug-guix@gnu.org; Tue, 05 Sep 2023 04:19:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdRH3-0003gf-Rm for bug-guix@gnu.org; Tue, 05 Sep 2023 04:19:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65720: Guile-Git-managed checkouts grow way too much Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 05 Sep 2023 08:19:01 +0000 Resent-Message-ID: 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?= , 65720@debbugs.gnu.org Received: via spool by 65720-submit@debbugs.gnu.org id=B65720.169390193514159 (code B ref 65720); Tue, 05 Sep 2023 08:19:01 +0000 Received: (at 65720) by debbugs.gnu.org; 5 Sep 2023 08:18:55 +0000 Received: from localhost ([127.0.0.1]:53458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdRGw-0003gJ-Os for submit@debbugs.gnu.org; Tue, 05 Sep 2023 04:18:55 -0400 Received: from jpoiret.xyz ([206.189.101.64]:55990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdRGt-0003g9-0b for 65720@debbugs.gnu.org; Tue, 05 Sep 2023 04:18:53 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 968F91851DF; Tue, 5 Sep 2023 08:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1693901929; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8pM8T1310gSR8edOn+Ojn9vP6FDTUMbm5DyEBYbX+RI=; b=E5fqAWKR36KGu3A3dWgbPYvmxOS6zdgYXQaFn0sY6toc3M6Vl8n7iH8o9OO9Y2qm/iwym1 zgSUgNHbcungycJPm0MLBLOVu6Wkk6wyduVNr3ikIRY6sp/YSZrp2Bgd0Gj+HKWFvb0t7O qN5EBIvXJ7Tod6fj+RSHbv01NsGsQhzxEB5RL8Pf34mzEvDFgqYlRcdG5LhBzq3ddd0U3s FmV8aXD/mYuE3lOpePWx8AOFY9f9prlilxl81LlFBR9of/nFj6XW1rWXohZRIr3G3dclES TRqSO8aixv/w4wYwV44Sass8VOvHX5CE6ZrzHNCbtcjkEDiaWtpzUcZrh1e34g== In-Reply-To: <87fs3tobju.fsf@gnu.org> References: <87bkejc7go.fsf@inria.fr> <87fs3tobju.fsf@gnu.org> Date: Tue, 05 Sep 2023 10:18:30 +0200 Message-ID: <87tts9uj6x.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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Josselin Poiret From: Josselin Poiret via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -8.82 X-Spam-Score: -8.82 X-Migadu-Queue-Id: 22FCD57484 X-TUID: lFZt+um8j8Ow --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, Ludovic Court=C3=A8s writes: > My inclination for the short term would be to work around this > limitation by (1) finding a heuristic to determine is a checkout has > likely accumulated too much cruft, and (2) considering such checkouts as > expired (thereby forcing a re-clone) or running =E2=80=98git gc=E2=80=99 = on them if > =E2=80=98git=E2=80=99 is available. I think using the git binary instead of libgit2 as a workaround is a good idea. We can consider building it directly as well, so that people who don't have it in their profiles can still benefit from it. We could even consider using git commands in most places and using libgit2 only where we really need the tight coupling. IIUC, libgit2 is eternally trying to catch up to git and often performs in a counter-intuitive way (I expect the various bugs with stale deleted files in checkouts to be caused by this). Maybe it could also let us use bare repository and directly extract the refs we want without having to mess with checkouts? Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCgAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmT25FYQHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5Fhcain93DACHuEyLuP52K5rHucB5+rmiiaHAqwh6U7Us GdD98bt8ggLcGkuJviQJKAL7sWrbLZLZGoFvGOVSIFU71zixL0aDy0vLHdLrr9kw nhlp9FBrsTE1WJ87n6cqN7QEGAKdecX8QSHzAPSgOiPniby8DDML/EZ5qkJA8HeA x8atrhamPs/j9lUiWMR94O9eTAo0iOrZ3V+o6Phc7711vRWXiSOneIkcrCcylLfs gtCjJUaVp2AwZXNvvCj8Lf17wWcEacsdvi4e6hTzhnT75xiDcCCc5O682F+lLPy2 XzaDc6GAql8y2tt+/zuNUa2S+anBXFGaqqz5Dxzmm3Vi/AEPA24dbCUyjmw+gX+z yzCbSSdt2wWKT9U3Us6jQWbtzztwRjHEqNLFS7NqZvCRZA2UiDF9XxZSLlB6jZB8 01biNYDABcz1SDgEFj007l2iBoxtTWwDeOt1bTdrYP3pmTZpojf0mCox4RXkviHB z6d2UwRQq8C9aGdHVCM0n6FSzs6a7l4= =6KMj -----END PGP SIGNATURE----- --=-=-=--