From debbugs-submit-bounces@debbugs.gnu.org Thu May 20 11:50:29 2021 Received: (at submit) by debbugs.gnu.org; 20 May 2021 15:50:29 +0000 Received: from localhost ([127.0.0.1]:35036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljkwP-0008AE-6r for submit@debbugs.gnu.org; Thu, 20 May 2021 11:50:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:56580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljkwN-0008A5-DZ for submit@debbugs.gnu.org; Thu, 20 May 2021 11:50:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljkwN-0003OX-2f for bug-guix@gnu.org; Thu, 20 May 2021 11:50:27 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:39053) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljkwK-0001tA-Jt for bug-guix@gnu.org; Thu, 20 May 2021 11:50:26 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6BA075C01A9 for ; Thu, 20 May 2021 11:50:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 20 May 2021 11:50:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=3kOVXN wf6cvHpqfzu09lcSaYyeb21lhNwSjyt4bZC/E=; b=SzTVKaNxL80JwbTM2ahQ+w ojgjzbm6YbDIBJksZ9TUmyxoICzTI7Olw9MGh1wZiXJHoJnsRiIY5ibi75g/iMLW xk6HPzYnhMvb5gBw6kdKS+KFplcXAzxioDvmVOlLt+QsCe/NxfYyjwfAH5Jg/5yq bK80X457ddlV8uzNWYh/Xd+j3BXZt6WbYW2vGydboW1WcEaig6n0LJWywCqLXgE8 M0SciZ15m6no82/Nh/fk9dNQDRR38n08/+RPKd2bkBTSP1i/J3T0SEadIqymEw0I zltAOTE7rky2VpmfMezMqnGltgmdTp/tFmiYOMjqdlKut0s9m1XdVdM9XtI3uUoQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdejuddgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkfgggtgfgsehtqhertd dtreejnecuhfhrohhmpefvihhmohhthhihucfurghmphhlvgcuoehsrghmphhlvghtsehn ghihrhhordgtohhmqeenucggtffrrghtthgvrhhnpeejhefhhffhleegiefhhfduteefie ffgeelffdugedtleffgeejtefgkeejveekteenucfkphepjeegrdduudeirddukeeirdeg geenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrg hmphhlvghtsehnghihrhhordgtohhm X-ME-Proxy: Received: from mrblack (74-116-186-44.qc.dsl.ebox.net [74.116.186.44]) by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 20 May 2021 11:50:20 -0400 (EDT) From: Timothy Sample To: bug-guix@gnu.org Subject: Non-recursive Git checkout with submodules breaks SWH download Date: Thu, 20 May 2021 11:50:19 -0400 Message-ID: <87a6opl804.fsf@ngyro.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=66.111.4.28; envelope-from=samplet@ngyro.com; helo=out4-smtp.messagingengine.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hi! When trying to recover the =E2=80=98non-sequencer=E2=80=99 source from SWH,= Guix fails with a hash mismatch: expected hash: 1cljkkyi9dxqpqhx8y6l2ja4zjmlya26m26kqxml8gx08vyvddhx actual hash: 1xrrczqx4ll276g449nqiq0ip6lpika9hs4z4xgxaa6ayw60v29f The reason is that the checkout includes submodules, and the way that Guix treats submodules differs from the way that SWH treats them. Note that this is not a recursive checkout (which is also broken, but more clearly a =E2=80=9Cknown limitation=E2=80=9D). In particular, Guix leaves = the submodule as an empty directory, while SWH turns it into a symlink pointing to the submodule=E2=80=99s commit hash: $ readlink ./f20fa6babec52bbf703bad6c1c92fa845b781f7e/lib/ntk 1e3f5106d404562902bed2983403301db24a3f78 This is clearly a rare edge case, but it should be pretty easy to fix. Perhaps it=E2=80=99s as easy as just opening =E2=80=9C.gitmodules=E2=80=9D = and replacing the symlink at each submodule path with an empty directory. -- Tim