From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EAOmD/Ll7WAaWwEAgWs5BA (envelope-from ) for ; Tue, 13 Jul 2021 21:13:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MEAvC/Ll7WD/JgAAbx9fmQ (envelope-from ) for ; Tue, 13 Jul 2021 19:13:54 +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 DE2E62CA15 for ; Tue, 13 Jul 2021 21:13:52 +0200 (CEST) Received: from localhost ([::1]:52906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3Nqp-0001eE-T1 for larch@yhetil.org; Tue, 13 Jul 2021 15:13:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3JYZ-00087d-L5 for guix-devel@gnu.org; Tue, 13 Jul 2021 10:38:43 -0400 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]:43713) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3JYX-0003Qn-VJ for guix-devel@gnu.org; Tue, 13 Jul 2021 10:38:43 -0400 Received: by mail-ot1-x32d.google.com with SMTP id i12-20020a05683033ecb02903346fa0f74dso22663091otu.10 for ; Tue, 13 Jul 2021 07:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=wySgKs+gQHXEok30dyfviHIeOtkotXgf9UW7GmJhkME=; b=s4vIGir1B+e0XPgERZQVD5Id1hdAe0oOVBFK7UM02Q6yY2Am5tdEyYdvefPIuckHJn woIau1772E9ECtKIDmz90I5NxUfvn+5480cNEvLCinq8GUjWeen9aSdfLm69H2fSmSzI XXwDXrbN4gWzKCDBEWa14b6RWAyivFz3I1Oyorhh3NkGIjr49CXXjRxhg0sm9McdV0LI sJQrLGn4cZQ8Fp7DbtIrAty4ZKJvRkLvod1JtNZuyvWAm5BOhz7mMJry5ob/C5ltzdfj /OSJzciH2z+5JjUlbk4tSO8hGVPUwgFZDDr5HC+m5vL0St1/8y2OtBExRnV0+7TxYLH9 mznw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=wySgKs+gQHXEok30dyfviHIeOtkotXgf9UW7GmJhkME=; b=f9+GImd5k6kRbnE8TOBfm+psYLMeup2S3Gf37B/3mXlUkn4UWjfifdNSGjG7d637R8 j0O/+M2QRof1794zQyiAIktMYpvRFlLNjZ8lbd8IGBFZJNq4CrZvdZP7kNNNGR7ikHHn VWtbgXu8KYn5qconwqDAhjRSrBn9Hd1FGA5fl1fFhDLMoWir6+T7egXTQ7kQlfwj6NLQ lUpvipDu4NZFoL6VPh7PIXNKlGAoSCva+VgwtBQAY9Few6hQIki+sBqYTol5ZuCnoukj 1KHxEW0w2OLrqYRwXDE5iZNW8CQrNR+YHQwx4NHVtK5mAfszvshh68vUKAaEtCFYCO58 Xpiw== X-Gm-Message-State: AOAM533VXYCoDzFOsnf8dpDPF0LtF+mtzZ/H007hL95irAt77bUS22mM PZBIlHtO6HxxHGOBZpmkIme17aSpa7Lmf4Si8IF2ebebFKz+HwH7 X-Google-Smtp-Source: ABdhPJyPmqY7B5SmLCu64YnUk9c3LP/wNZu2UULV/+CajYkhrTTmPI1av6PCWPLfFZbTxFVUTAOreP93Rd3iDU9hdFM= X-Received: by 2002:a05:6830:160c:: with SMTP id g12mr3835826otr.118.1626187120426; Tue, 13 Jul 2021 07:38:40 -0700 (PDT) MIME-Version: 1.0 From: Lo Peter Date: Tue, 13 Jul 2021 22:38:14 +0800 Message-ID: Subject: SSH in git-fetch To: guix-devel@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=peterloleungyau@gmail.com; helo=mail-ot1-x32d.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-Mailman-Approved-At: Tue, 13 Jul 2021 15:13:42 -0400 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626203633; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wySgKs+gQHXEok30dyfviHIeOtkotXgf9UW7GmJhkME=; b=bd+ldEAxPB+YEgCajbxFuE0Hx40ZUXWg3HmHZSCi3vI2dwrLP6esH8quWEUIhkmJD7xHVW HQrWZUoOPMiCwNYZz4a7UeWj6fpSBUZUGukZVWJuMA4i4npGJZkDqMUpe72dSmAdJjyv/W aaeFqIPvm8yyIoUxUQ//1TxzJUgpxAL0ZVs0J3H1yeJg1zk47tyAxseNl0V6D9BTXPWp3C fM0GhLPS7Hm8S6LDxmR9dfZHDklATDR9oy47jVqFzNKh4gbBFNxpmkwvzWD/v4RmOWtV4e wPfh8+eN6XHCu6aK/ww5NrsGgGHGloDqYQEjTWJYc9LuanJm7JLT+9Rq2g4Ahw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626203633; a=rsa-sha256; cv=none; b=ALJCdyc/u72NjyHNeeHvxa3ITa7DDKlNdLS4mK4jLDM8yzhWh3rmFi9cUZZp+2FqSB+Fel IZ6IRUbjQOIMdtqXAeMoAOIpo3N74/FOt2Rf7OYx1LL4KA+mF4f2hQSWuZq9IGWb4SAAK2 6N0GEa+FD9NKpcQbCUIYiEaP7Yh9zdoL7DxzrdM/A6BmzNUnhcfUr/tAJ4TJQ77ZblJVS7 DhMr/tnn3fmjGV1jnEuzPT+1csz44Fyg2ZmeJe564LxCVv8pYSBSbu8UlgBJLUhgTFVV/x jusALDbS3R+0gSpx4QcFTUNiI/w4CCCAXTYqRU001y3z/jWNLZmmlhjYfH1Zcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=s4vIGir1; dmarc=pass (policy=none) header.from=gmail.com; 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-Migadu-Spam-Score: -3.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=s4vIGir1; dmarc=pass (policy=none) header.from=gmail.com; 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-Migadu-Queue-Id: DE2E62CA15 X-Spam-Score: -3.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0Wne/znBiIDK 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