From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sNQyFoULy15PZwAA0tVLHw (envelope-from ) for ; Mon, 25 May 2020 00:04:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uOVAEoULy14OfwAAB5/wlQ (envelope-from ) for ; Mon, 25 May 2020 00:04:21 +0000 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 D5C6A9403EC for ; Mon, 25 May 2020 00:04:20 +0000 (UTC) Received: from localhost ([::1]:49576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jd0bL-00011u-LC for larch@yhetil.org; Sun, 24 May 2020 20:04:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jd0bC-00010f-Cv for guix-devel@gnu.org; Sun, 24 May 2020 20:04:10 -0400 Received: from mx1.riseup.net ([198.252.153.129]:58374) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jd0bB-0003j5-3g for guix-devel@gnu.org; Sun, 24 May 2020 20:04:09 -0400 Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 49VclC0TFCzFcsw for ; Sun, 24 May 2020 17:04:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1590365047; bh=L8WjDr5Q23Cnr5O59cO8BAQ6vTyPeUodZqO9QQN1EbE=; h=Date:From:To:Subject:From; b=D48S7GJ32xMyNPX1Nswc+DMOud6CpPcYJ4AlPCPSSz3hzxgx5RI/E5IW/j4nWLHfQ +/CHGh1Ze7rpONKqKoTxSc2hE48ii17ThvuiT3OW9mTCcF8Xq18v1v2gS5ua9l9wOl A8SgG9XljNbD3mwGLh1sN3dSFkOK9VLmqz82t0AQ= X-Riseup-User-ID: 9F9148CD32A21C026E6F63178D9889C9BB749EBC1C5395118F3AE48B59C8AD2B Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 49VclB2l4PzJmh6 for ; Sun, 24 May 2020 17:04:06 -0700 (PDT) Date: Mon, 25 May 2020 02:04:03 +0200 From: raingloom To: guix-devel@gnu.org Subject: Git repos with large submodules Message-ID: <20200525020403.56f16a38@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/24 20:04:07 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=D48S7GJ3; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: 1SBeh5T2mA4C Hey all! So, I recently gave a go to packaging EDK2 on my channel, and found out that it requires several submodules, including OpenSSL, which take up quite a bit of space and take way longer to download than necessary. Since I couldn't find a way to shallow-init the submodules, I added them as separate origins and copied / symlinked them after the unpack phase. Is there a better way to do this? I don't see any equivalent of --shallow-submodules in guile-git or libgit2. I was thinking of writing a bit of Scheme to handle importing git repos with their submodules as origins, but that feels like a rather ugly hack. Maybe libgit or guile-git would be the best layer to fix this at.