From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Pykhalov Subject: Re: A few questions about channels Date: Tue, 30 Apr 2019 22:41:59 +0300 Message-ID: <875zqv5lh4.fsf@gmail.com> References: <20190424224654.td7fwnjjf4hnguyc@cf0> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:46378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLYrh-0005lG-82 for help-guix@gnu.org; Tue, 30 Apr 2019 15:56:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLYdu-0007K5-3J for help-guix@gnu.org; Tue, 30 Apr 2019 15:42:19 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:36410) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLYdt-0007ET-M9 for help-guix@gnu.org; Tue, 30 Apr 2019 15:42:18 -0400 Received: by mail-wr1-x432.google.com with SMTP id o4so10431624wra.3 for ; Tue, 30 Apr 2019 12:42:09 -0700 (PDT) In-Reply-To: (david larsson's message of "Thu, 25 Apr 2019 10:18:07 +0200 (CEST)") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: david.larsson@selfhosted.xyz Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable [=E2=80=A6] >> 2) Is it possible to use private remote repositories as channels? >> The issue here seems to be one of authentication. I'm wonder if >> there is (or should be) an "authentication" field one would add to >> the channel definition in the channels.scm file. >> > I agree it would be nice to have. The git-fetch method is defined > here: > https://github.com/guix-mirror/guix/blob/012bf5c4c03e30633f137960bd0677e2= 04c638a7/guix/build/git.scm > and I think it can be modified without too much effort to include an > argument for the -key flag to the git command. I am not sure though > whether git-fetch will have access to the home user's directory in > case you provide let's say ~/.ssh/id_rsa as argument. Another > possibility would be to check the GIT_SSH_COMMAND env variable. I > suppose you also need to make sure ssh is available for git-fetch. Another way to use a private repo is oauth authentication. (channel =E2=80=A6 (url "https://gitlab-ci-token:xxxxxxxxxxxxx-xxxxxx@gitla= b.com/author/repository.git") --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAlzIpQcACgkQFn+OpQAa +pzaHg//UT+PDZgyWUhMI8xZSBQAaGkCvNLKhSe0pbncMQVDJJp3V8RWDDhhdTmD C9ZwyGZWEDIDRVvXNBey4P1xuSbeAITqTVGZwfcRvbj53jLsI8nVpUecpWikx+pF n7u2Pk5g3xz/Aw1s+BmESCjGv7ZjBQ7jelL0V6h1lZuklrM6aw6OurIUPwbRz44x pL39k5+FUiNDVQ7wJvf3ex5nXvZV3vIcenI51xO8uXS1XYU8+8NKfKn37xrQO3Vl YxgOKQEmX3H0yxMoNLUjZNjQCDBTjhIBhQVbGM403fzEvw19Qn3N/5qxFrTpDaro JsFjfOBTL6KRbjtFnd3XjcOnXxE6VHI/Nh3V3UgmSnRTWhUFozWG5/DpC0guGimo ew2yuldtjzdf55tzsynnqnpb/YjIeWhndcYt/8B1CMiJhWaIU7swVYL8UtTiTjwa +euMVTf4uIFGZRO3mbmqORqzurzo0jO0Rg7OInxPDvzAWimogtjvNl1qK6I1rOAL d+ceaRLSXefYA56aGJWc++Xpy/Nr9aJoNlWbAJ38Hl2Riab67taZvwOO1DFlYvaO GfupU3AkANf6n1hBAb3TP4l1kibQIQNEgMu4oFWorI0eNGZFGh3YPgSdJvUhotnT JT2QiC/Hkmu7Vgjv2XqMzfy/jhX5tO53puIAGHwElu6fF8c25ik= =NzMK -----END PGP SIGNATURE----- --=-=-=--