From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 sHHxLYs6xWPlPAAAbAwnHQ (envelope-from ) for ; Mon, 16 Jan 2023 12:52:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oFDwLYs6xWPXRAEA9RJhRA (envelope-from ) for ; Mon, 16 Jan 2023 12:52:43 +0100 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 7B1D8B8D2 for ; Mon, 16 Jan 2023 12:52:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHO21-0004BD-06; Mon, 16 Jan 2023 06:52:05 -0500 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 1pHO1x-0004AN-2J for help-guix@gnu.org; Mon, 16 Jan 2023 06:52:01 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHO1t-0003eG-6J for help-guix@gnu.org; Mon, 16 Jan 2023 06:51:59 -0500 Received: by mail-wm1-x32b.google.com with SMTP id l8so2672746wms.3 for ; Mon, 16 Jan 2023 03:51:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=TJ/Mcqqk6BuIDc89h01OG3pgrdqpTtfZT/0ibnGRhhI=; b=jX1fJxXFmcCNhgkHnktr8LGvbMZ73TkPDWVTQ2p+K/ZmNzsuTFU6rO+JEXMKuoDBXE 9OHcBYXhr9ikY4OSinFxs3hcK/BFRnxoZDpRYPjeZTY0WRQ1rlKITI0p9cn4U9Uj2/Jh /qjqVamRgvYfIt9ahw+gNLLkaoN+VJldB6ui/D3OKoNBFoE6udsK9hp2/1o3rftOYbxY +faJCRDwaI24bHL6HloVFPJ/WJCptmeSF06CJv1q0CfPibOBXS3+dyFq+zu1Edzf/dXG C+2SFlVzJphUuKE0EqEfx1h+ns51fYzNmz/HD7wdoeIv+3qRrGdzFGa5hVRLzxJi/DzR U3/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TJ/Mcqqk6BuIDc89h01OG3pgrdqpTtfZT/0ibnGRhhI=; b=Fe0xTw3hgi/8Hx53tGxrDOXEyCt3pSsI7zS6X3wn6TMLoFbX1Lj73CUlW32WyXXQGT Y8EaDRXdCzg7+m+Xt5Y3/m80I02BkOcNsRCnoGLAB0eaFwIy8ww6yuSsbJLlZKMY91fR 3+Z5Xyx/oO/s8Z+CjVzMQCIpqLxJnpVlE40ytL4osf89fRGFGFBT0cc9eqNYvTO4TEEc XlXUwezU9dH4fvC8UlJ39PxQCqNDxh2zOHOAAMEHV0yj8IIka9LiWCMxBunT4jiw8akc uhfkNkarqvx1ccX6F+5bHbkEN4AO3kSx+Q+vY+b8N66LHqZzuDahDWQsnPLrS1UBtrZO so0A== X-Gm-Message-State: AFqh2kr/0UlpXbVHmNjupnOKu/+HtIXYqQdlSt+dbGzV+Lk4RlYBhzLT isaP8BHIBU59txsd+M9Vf2jSxddZT0Q= X-Google-Smtp-Source: AMrXdXvzzLnkwQGI1GUTnhEU3riZYp/ZaylX/PWcUaLNz83kDD67yLFa1rI+4D2tAawejHj1/5KnZg== X-Received: by 2002:a05:600c:3d0e:b0:3d3:4f99:bb14 with SMTP id bh14-20020a05600c3d0e00b003d34f99bb14mr19040128wmb.0.1673869915830; Mon, 16 Jan 2023 03:51:55 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id o2-20020a05600c4fc200b003da2932bde0sm10325398wmq.23.2023.01.16.03.51.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 03:51:55 -0800 (PST) From: Simon Tournier To: Csepp , phodina via Subject: libgit2 shallow clone (was Re: Packaging Grafana) In-Reply-To: <86v8l8yrqp.fsf@riseup.net> References: <86v8l8yrqp.fsf@riseup.net> Date: Mon, 16 Jan 2023 12:39:06 +0100 Message-ID: <87tu0qu2sl.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32b.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673869963; a=rsa-sha256; cv=none; b=CFg1I9SQSB1gocIaO437MzJIw2dqGMeExDnW1ZghZHlnpBfFV3Q+2fDKexN+g+Cfky/ePA 7lsHRxSrwt5VPxP9nvU/OFjB5zbZFCXQPfldYrA+nvFKokHpdJLxGSvbXK0ueI++GvSTgZ +mafrMw8i45mMTQuDEX1IXvi68gMOZNVIDMG9NdbPEoXvOqeS0u6koDosVzOSaHteDtaf2 m9OHrEvfEkRJF68x8+tjXPq1/iYuaqTbt0iYLgP8Bal9rukWUQ+EoQL29anwW7C1tVnERp MNfd4uytGXFLTU52Z9C4iJaZNmsqtKgoreDQRyY2oJAsxvlxZ2Jzg8p/Ftjntg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jX1fJxXF; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673869963; h=from:from:sender:sender: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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=TJ/Mcqqk6BuIDc89h01OG3pgrdqpTtfZT/0ibnGRhhI=; b=Pp+48j7Xh1SAIkrQVYyFpYhCvySEtoGVde7O1RaOJkN+KT0eidsc7wzgAb0mpcgecPbZoS RT2P8yO2Iare5UN3R/qckMHCxaor/TEXqnz5PP+iV/NdKrNjogj/7p0Oo5u/5c0aH5c9EP CRPA10aahoII8mN1x4CGH8GAj11GiXYbca21SprWHL3uE94G+We9hm/bUAWsgEORQGdz3Q RSqZA70VhJ3Y8EOYrHYLbC+BCqj9PDF3s4UlIWjeRSzi6o5o/+BBpJ7ixzEWuXW6zs6Yi0 JnuT94ANesDVRFcexfQUogy9fdgJfQ+IVpQFj3lXZGHQ5DU6epfF8CI/UL0iCQ== X-Migadu-Spam-Score: -6.28 X-Spam-Score: -6.28 X-Migadu-Queue-Id: 7B1D8B8D2 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jX1fJxXF; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-TUID: k9FssDOkwUs/ Hi, On dim., 15 janv. 2023 at 12:12, Csepp wrote: > Honestly, I think our Go importer needs to be rewritten to just use Go's > libraries instead of trying to replicate all functionality in Guile. It > does a lot of... let's say sub-optimal things currently, like cloning > full git repos, when Go is smart enough to only clone what it needs for > dependency resolution. About cloning, the core of the issue is not Guile but libgit2. Guix relies on guile-git which is just libgit2. And sadly, libgit2 does not support shallow clone or depth fetch option. See libgit2 issue#3058. If I read correctly, Go relies on plain Git, instead. Therefore, sadly we cannot do better than full Git repository clone. It would be difficult switch from libgit2 to plain Git; as discussed in this thread [2]. 1: 2: Cheers, simon