From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0vv9-0000Dw-VH for guix-patches@gnu.org; Sat, 07 Oct 2017 16:42:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0vv9-0003cN-45 for guix-patches@gnu.org; Sat, 07 Oct 2017 16:42:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:46410) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0vv9-0003cD-0T for guix-patches@gnu.org; Sat, 07 Oct 2017 16:42:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e0vv8-0002zr-QN for guix-patches@gnu.org; Sat, 07 Oct 2017 16:42:02 -0400 Subject: bug#28699: [PATCH] pull: Add GUIX_PULL_URL environment variable. Resent-To: guix-patches@gnu.org Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87d1632sge.fsf@gmail.com> <87o9pm7xk4.fsf@gnu.org> <87a8152bcj.fsf@gmail.com> Date: Sat, 07 Oct 2017 22:41:50 +0200 In-Reply-To: <87a8152bcj.fsf@gmail.com> (Oleg Pykhalov's message of "Fri, 06 Oct 2017 06:39:56 +0300") Message-ID: <87tvzaitbl.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Oleg Pykhalov Cc: 28699-done@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Oleg, Oleg Pykhalov skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Oleg Pykhalov skribis: >> >>> From 2638c08eef0e8c173111ced6bbc95167f6130fd7 Mon Sep 17 00:00:00 2001 >>> From: Oleg Pykhalov >>> Date: Wed, 4 Oct 2017 12:01:41 +0300 >>> Subject: [PATCH] pull: Add GUIX_PULL_URL environment variable. >>> >>> * guix/scripts/pull.scm (%repository-url): Add GUIX_PULL_URL environment >>> variable. >>> * doc/guix.texi (Invoking guix pull): Mention GUIX_PULL_URL. >> >> I=E2=80=99m not entirely convinced, especially with a look on =E2=80=9Cc= hannels=E2=80=9D, which >> would provide a way to persistently register repo URLs. > > Interesting. I didn't know about channels before you mention. It=E2=80=99s still a collective pipe dream at this stage, but we=E2=80=99ll= get there. :-) >> OTOH, I see that it can be convenient in the short-term for someone >> using a repo other than the default one. >> >> Thoughts? > > So, as we don't have channels yet, then I think it's a useful patch. > Because I cannot use 'guix pull --url=3DURL' when I use 'M-x guix pull' in > GNU Emacs. Yeah, that makes sense. Applied with the changes below, thank you! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/doc/guix.texi b/doc/guix.texi index 641e39d9e..7b5b71179 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -2532,9 +2532,10 @@ Produce verbose output, writing build logs to the standard error output. @item --url=@var{url} Download Guix from the Git repository at @var{url}. +@vindex GUIX_PULL_URL By default, the source is taken from its canonical Git repository at @code{gnu.org}, for the stable branch of Guix. To use a different source, -provide @code{GUIX_PULL_URL} environment variable. +set the @code{GUIX_PULL_URL} environment variable. @item --commit=@var{commit} Deploy @var{commit}, a valid Git commit ID represented as a hexadecimal --=-=-=--