From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cOKlDGK67WAjCAEAgWs5BA (envelope-from ) for ; Tue, 13 Jul 2021 18:08:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IDVmCGK67WBLBwAA1q6Kng (envelope-from ) for ; Tue, 13 Jul 2021 16:08:02 +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 73FCA564B for ; Tue, 13 Jul 2021 18:08:01 +0200 (CEST) Received: from localhost ([::1]:57524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3Kwy-0003OZ-DC for larch@yhetil.org; Tue, 13 Jul 2021 12:08:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3KwX-0003M2-TG for help-guix@gnu.org; Tue, 13 Jul 2021 12:07:34 -0400 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]:35584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3KwW-0006xc-8I for help-guix@gnu.org; Tue, 13 Jul 2021 12:07:33 -0400 Received: by mail-oi1-x22e.google.com with SMTP id p67so6235967oig.2 for ; Tue, 13 Jul 2021 09:07:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=33c0qwX4Q5/aBuFMNs+tUQEx98+CG/WOntU9V2oiqNk=; b=X9PSHk1iLWvLQtlMpupc6ExTUaATY3uuk7NPZvkWmQQWdyAS0TZbLI07WSn8muKc16 ZKU4olhD5YdwYq2ltxhmNOtdwA77iu21Z4Psu8+6Ljdw6WnNtWK0jrtqHjJoAvXcUufg W+6r4jPaXgPu7vIp2ecQLWJdZlIUSskto/khGEo3JXQ0SGyRCGBjLRA7f1PTjELzwIk/ 2s0ieyamQbec8+y7kU90cq3NR8xxskD+icgbNAO/yAqIpAgr1rVMYUgkd+7NnI2JJ3Lo UVUB48kyCYF6xHc5n2rwW/AL64vy03lQ8Cl4KIIizIWC9qCPZdI+bvPI7KMhh+JnF3YL n8AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=33c0qwX4Q5/aBuFMNs+tUQEx98+CG/WOntU9V2oiqNk=; b=NN2nRPOwSPl1szL9/Xwck/cPepuHr5CR4GxoJp4dQGNgllCw1P4lwgviyWvERsG0I/ wDndg80R+Pe+Nzw5gM08lWS2fPC3rQSRs6N6D4f+hVQdPbXOq6zN7Fu0VMM36rbypXQv AD6JPUKdwtT9cH50XedVxCycxx4Z6MiY+i27MnTG43OKfhVnlc1CjUfIi/BKya4gAdBl 6wKCGyfEtRFwPH+KSLTUsdSsqDcaOQsURA933BPeR6WttZSb0rBLhcNuukwx99JmiBqR 6V/3vwAtKRGKm+VLwHl+8sO0uxyFlNjUW7SluisqUg/CkltfL71RCsqOhGFGVJJXg9B+ dmyQ== X-Gm-Message-State: AOAM530ZWjYS9U5aw67WUeB1kH/kbruftq8FANbdTPtNCbkohKkgD7a6 sKpPcmT/bCo97wIHL00yd2JXlimU7uNhNbttMUig5X0bRpU= X-Google-Smtp-Source: ABdhPJwHsXAvFdVaMgjvTBSEs6aVdY3iECnREbKwm4FmlJqZHII7puLKADsLsSgI9641FPiFG/ZLfXaMEaTYD7PtB6k= X-Received: by 2002:aca:3e09:: with SMTP id l9mr58615oia.169.1626192449954; Tue, 13 Jul 2021 09:07:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Lo Peter Date: Wed, 14 Jul 2021 00:07:18 +0800 Message-ID: Subject: Fwd: SSH in git-fetch To: help-guix Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::22e; envelope-from=peterloleungyau@gmail.com; helo=mail-oi1-x22e.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 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, PDS_BTC_ID=0.498, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626192481; 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=33c0qwX4Q5/aBuFMNs+tUQEx98+CG/WOntU9V2oiqNk=; b=dpQ9iiGV0NwXEWyu60aX0Pr55reXxs8o38HkwTaZM4Qt65w+/PmI1RaM2l3FH/5W8fqnUZ lsqJIY9bYs8j8kurabQqeGMEZgaCttlAzPQieXhaLimrnRXr0pfz5E3867aJThzbFoaE2b 140CNxkLZUnw1CqdYC6vtnFxuwlI0FqDBV4M4InQLxRg5zboPlcYsiqaqeLY07nmu/pd7z RfbjzmMlqTM/ptsj7Qadg+E+L5LoMbDLT+SzpViyBDgsTyc38wiGLamKJ5KFzmnU5hU9aF f5tXzlRW3gtDl/5QGuOdLiOpJwuQS0LOVTbX/JKipkHP20KUDyJXAwq9rInarg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626192481; a=rsa-sha256; cv=none; b=s6BFM83oGK7i/Mz4A/Thpqx51nLe+DMy/fDhL1bpX6h9KGIaEZmRPsyqgdtjbn+Dj01lzI oTSAW8Pb4ZoD20E3WcgdpUvEmJBBY357FIAYhVVKghVTxjB8jLRD9zfq+zc37LWPmenk0Z JndgxxFd4gmd1a7E/xqzalbMv03IgwbLq/2KqcnG1XJMg6dBOQ0iJplwWEfl/IRAFmaTuV JXARG9R24UkVoc1lsKHFvvsDkh9M7Fih/2aQLxpBHSG2wwGqDHr0WmxyufBjXvPI1l1A/q hX2/2cKTBtmmjvHA7MdCar6R09PjA63TQ2lv6upIxuEo0KXwAIAZ1m7ccryu9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=X9PSHk1i; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.60 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=X9PSHk1i; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 73FCA564B X-Spam-Score: -1.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6QLd+cF31o2r ---------- Forwarded message --------- From: Lo Peter Date: Tue, Jul 13, 2021 at 10:38 PM Subject: SSH in git-fetch To: Dear all, I am experimenting with writing a package definition for an example R package (https://github.com/jennybc/foofactors) in a PRIVATE channel, where the R source is also at a PRIVATE github repository. While the private channel works with proper setup of SSH key (that needs to be in PEM format due to a bug in libssh2), I am having trouble with the private git repository for package source. Is it that git-fetch does not support fetching over SSH? The package definition I have is: (define-module (my-packages r-pkgs) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system r) #:use-module (gnu packages) #:use-module (gnu packages statistics)) (define-public r-foofactors (let ((commit "ef71e8d2e82fa80e0cfc249fd42f50c01924326d") (revision "1")) (package (name "r-foofactors") (version (git-version "0.0.0.9000" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "git@github.com:peterloleungyau/foofactors.git") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "1hmfwac2zdl8x6r21yy5b257c4891106ana4j81hfn6rd0rl9f72")))) (build-system r-build-system) (propagated-inputs `(("r-forcats" ,r-forcats))) (home-page "https://github.com/jennybc/foofactors") (synopsis "A R package to make factors less aggravating.") (description "Factors have driven people to extreme measures, like ordering custom conference ribbons and laptop stickers to express how HELLNO we feel about stringsAsFactors. And yet, sometimes you need them. Can they be made less maddening? Let's find out.") (license license:expat)))) Note that I have cloned the original public repository to my private repository (for testing purpose). I have added the package definition to my local ~/to_keep/projects/my-guix-pkgs/my-packages/r-pkgs.scm Then I test building it locally with $ guix build -L ~/to_keep/projects/my-guix-pkgs/ r-foofactors The following derivations will be built: /gnu/store/gnzw26jl9vw3z10cdnpcahd67zlf1ziy-r-foofactors-0.0.0.9000-1.ef71e8d.drv /gnu/store/2l35rb0s5fjk1v8vczir6cp6lfmbbf12-r-foofactors-0.0.0.9000-1.ef71e8d-checkout.drv building /gnu/store/2l35rb0s5fjk1v8vczir6cp6lfmbbf12-r-foofactors-0.0.0.9000-1.ef71e8d-checkout.drv... guile: warning: failed to install locale environment variable `PATH' set to `/gnu/store/378zjf2kgajcfd7mfr98jn5xyc5wa3qv-gzip-1.10/bin:/gnu/store/sf3rbvb6iqcphgm1afbplcs72hsywg25-tar-1.32/bin' hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m Initialized empty Git repository in /gnu/store/7i9py1b47lsg2d2wqjk68ha04rv2l89i-r-foofactors-0.0.0.9000-1.ef71e8d-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 git-fetch: '/gnu/store/ra24wp6glfzmpx1w6i3471aqcqqdrk96-git-minimal-2.32.0/bin/git fetch origin' failed with exit code 128 Trying content-addressed mirror at berlin.guix.gnu.org... Trying content-addressed mirror at berlin.guix.gnu.org... Trying to download from Software Heritage... builder for `/gnu/store/2l35rb0s5fjk1v8vczir6cp6lfmbbf12-r-foofactors-0.0.0.9000-1.ef71e8d-checkout.drv' failed to produce output path `/gnu/store/7i9py1b47lsg2d2wqjk68ha04r build of /gnu/store/2l35rb0s5fjk1v8vczir6cp6lfmbbf12-r-foofactors-0.0.0.9000-1.ef71e8d-checkout.drv failed View build log at '/var/log/guix/drvs/2l/35rb0s5fjk1v8vczir6cp6lfmbbf12-r-foofactors-0.0.0.9000-1.ef71e8d-checkout.drv.bz2'. cannot build derivation `/gnu/store/gnzw26jl9vw3z10cdnpcahd67zlf1ziy-r-foofactors-0.0.0.9000-1.ef71e8d.drv': 1 dependencies couldn't be built guix build: error: build of `/gnu/store/gnzw26jl9vw3z10cdnpcahd67zlf1ziy-r-foofactors-0.0.0.9000-1.ef71e8d.drv' failed Why is there an error of "cannot run ssh"? Is it that git-fetch does not support fetching over SSH? I would like to prompt the use of Guix for per-project management in my small team of data scientists, so we would need a private channel for a few internal R packages. The above problem is a real blocker. Any help is greatly appreciated. Regards, Peter Lo