From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oHtrAEhQI2KglAAAgWs5BA (envelope-from ) for ; Sat, 05 Mar 2022 12:58:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CBh+OUdQI2Ks0gAA9RJhRA (envelope-from ) for ; Sat, 05 Mar 2022 12:57:59 +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 A23AA2F42F for ; Sat, 5 Mar 2022 12:57:59 +0100 (CET) Received: from localhost ([::1]:44608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQT2s-0005Y6-AK for larch@yhetil.org; Sat, 05 Mar 2022 06:57:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQT2g-0005Xx-8r for guix-devel@gnu.org; Sat, 05 Mar 2022 06:57:46 -0500 Received: from [2a00:1450:4864:20::32a] (port=33660 helo=mail-wm1-x32a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQT2e-0001FJ-84 for guix-devel@gnu.org; Sat, 05 Mar 2022 06:57:46 -0500 Received: by mail-wm1-x32a.google.com with SMTP id n33-20020a05600c3ba100b003832caf7f3aso4977150wms.0 for ; Sat, 05 Mar 2022 03:57:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beadling-co-uk.20210112.gappssmtp.com; s=20210112; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=lbwOL9sqwm2cariMx7QG+Sun6ENECc2pw0UPW5aPKZ8=; b=Cx1+i+UzlpkoKW6h3m7a646TAZcUlMXRII6koAbtLp2CPWMd+zm6OuTwTNp/h3/wyP MAJWQ9QEzpYoaFyKBos5q1dniuajdmce9/w4fKi1hmu8u3u9Kusm3cC/XuvTjBp6hxSg EPixomJnVbmKAfv8Lhc8BHFgJR4z+Qd25PtWPx/26fNuAdPz2zf6dgg+gSuIuxTJ/r4Y WQHtPZ46M0Bzwu69v+rlXvUjt3u61qt8ZM7Mw4abRK0i3Zl9/CTln8qdFsXy2x4t8Gcm lY1hihFYw93q2OyeqQ/OFL3AKBJTAPXhtkoza9mV/nGHtprLeW7d92KU+BHu0upd7ySp i5Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=lbwOL9sqwm2cariMx7QG+Sun6ENECc2pw0UPW5aPKZ8=; b=zmeMU7oH12nJGtgSffvXOF9LeAVePfKq5liCrI9ZZPnabheOqlOL4UKSRsmecfpnAp Lqrc+wRanYxahezUthPQRQWCwmKlSeUAdK0D5MZ9WHbY2seXKOnuAa0fN29lvIPPXXyQ ndFS3vtK4qqljanZ+8c9NC4DoGnf+XsHcp39g7F2zJHrPcpPgWeSSzLmLKHQYe5LXOdv 12XlgT9iEPdU11qFlqfdjmCEYwLG4n9cfPP90LC97VuZrIvHm2K6U2getsXdjOilt82B 1pWR2TcNtb3q0nzl/nax34VydDvNeLhqkxidCnTMaW76gSzzI9sHiPjfJZAkhddu2Fig Ds/A== X-Gm-Message-State: AOAM530zip0EdJknnopTcfoz5DEm1Xz9YkSQFJ4Vc8YUPVQiRPb346AW 9/tk6odsl4tPE2bJBNfEZtZJnHEHx0iwod/M X-Google-Smtp-Source: ABdhPJzYWk2CdW2JQ40h07+T+K5ZWCjoo3LQMBOzH/fl+oW1dNYyXJT+D7rRH+W4w2bQAlkHUxsTcw== X-Received: by 2002:a05:600c:4f47:b0:381:6c3e:19dc with SMTP id m7-20020a05600c4f4700b003816c3e19dcmr2144567wmq.155.1646481461547; Sat, 05 Mar 2022 03:57:41 -0800 (PST) Received: from xps13 (host-2-103-29-35.as13285.net. [2.103.29.35]) by smtp.gmail.com with ESMTPSA id t184-20020a1c46c1000000b003814de297fcsm1587917wma.16.2022.03.05.03.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Mar 2022 03:57:40 -0800 (PST) References: <62b594e94117bc98c9edf0e3f8f067ccc46b10a3.camel@gmail.com> <875yougixp.fsf@beadling.co.uk> User-agent: mu4e 1.4.15; emacs 27.2 From: Phil To: Liliana Marie Prikler Subject: Re: Help to workaround libgit2 fetch refs issue In-reply-to: Message-ID: <8735jwharw.fsf@beadling.co.uk> Date: Sat, 05 Mar 2022 11:57:39 +0000 MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32a (failed) Received-SPF: none client-ip=2a00:1450:4864:20::32a; envelope-from=phil@beadling.co.uk; helo=mail-wm1-x32a.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646481479; h=from:from:sender:sender: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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lbwOL9sqwm2cariMx7QG+Sun6ENECc2pw0UPW5aPKZ8=; b=gX/yVR5mPNnxlMOOzRrdQcWx2DVLBVxFlStMlgf+DTvbhfKybRBXhHDKoffMfsMISeMoud qvmnH5/5Rty4z0nxGtq+wOXAnOh6yxdECSwdqyxt5ry7O9Y5gDAB6Jt9OZwwBb4BO1soE+ pwJGJg4atH35bhziXwj6s+N86O4aZEQOjv1mRTD4iymBqJc062UecQuvYycut4o8yZalQt H0OnIIFeLfYhmjpf+uE/9oZctqSZqDsVNR9Lpjam2JCha6HtjX5mbssErwk3p3nqYjfjuu U9hRx+lcyXVTrXqCU5U5nzbD6umaiD/8q+C8w0l4oq12oJACr6qdInSdFBIsDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646481479; a=rsa-sha256; cv=none; b=Aq3+cwj1aFqebFRLz0nOCHgO1cAmOdPC1LpiSbh2I07/AwFcLTE1Y3CpgaZFZldUrBG/lV s7jChLpEQK9GkHLHanEihpPnaSKoXkPvm1D8ACwyymnc6ccenuuwkZSUnQckzOHYNFzHGN 7ORQAChpI9nvyTnFmCXClEfh5IxwyeI3VHcYGI3qjspFVk1BhzsKgxoAckBKNfbBtDwpsv sRRO1kdrs48vUdY0YGZRGRphAC61/xM0PE/D/HTb6f48L7CapEZ1ncn4XjBV+2c3cjUIo+ U3RMElhfqA2vVPb6k1Cj0Rw0lSybGKHkJNHyI8ICTqU2pzlzjF7TRFo+26FQxg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=beadling-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=Cx1+i+Uz; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=beadling-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=Cx1+i+Uz; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A23AA2F42F X-Spam-Score: -9.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: K9FY9VRg0wmT Thanks Liliana for the reply, Liliana Marie Prikler writes: > Am Freitag, dem 04.03.2022 um 09:34 +0000 schrieb Phil: > Again I wonder what the introduction of a new record type solves here. > Wouldn't it be easier to just adapt git-fetch to handle that edge case > and use normal git-references? Origin methods have network access, so > you can pretty much do whatever. > > Cheers The problem with an origin record using git-fetch is that it doesn't seem to work for key-authenticated repos using SSH. If I try to change the git-checkout for the standard git-fetch incantation: Original: (git-checkout (url "ssh://git@bitbucket:7999/foo/bar.git") (commit commit-production))) Proposed: (source (origin (method git-fetch) (uri (git-reference (url "ssh://git@bitbucket:7999/foo/bar.git") (commit commit-production))) (sha256 (base32 "0s9dpj0jdkqcg552f00jhd722czji4pffabmpys5pgi6djckq4f4")))) This fails because git-fetch is unable to use ssh because it seems to run inside a container? Initialized empty Git repository in /gnu/store/dbcl57jcrvaavjrj8qwpwskl7sfpzqb4-git-checkout/.git/ error: cannot run ssh: No such file or directory fatal: unable to fork Failed to do a shallow fetch; retrying a full fetch... error: cannot run ssh: No such file or directory fatal: unable to fork Even if it did find ssh, it would not have access from the daemon to the SSH Agent environment variables setup by the user to allow access to the SSH Key. This is covered here I think, and a patch was proposed, but it was dropped in favour for the original solution above in the original thread: http://issues.guix.gnu.org/issue/31285 I did think about perhaps resurrecting the proposed "git-fetch/impure" as shown in the patch of guix-download.scm in the link immediately above, but I was hoping for a quicker win with duplicating the record - alas that has it's own significant limitations tho. If I'm missing another trick with git-fetch I'd glady be proved wrong! :-) Cheers