unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: guix-devel@gnu.org
Subject: Re: 05/05: store: Default to a non-empty list of substituters.
Date: Mon, 23 Mar 2015 14:18:24 -0400	[thread overview]
Message-ID: <87egofr30v.fsf@netris.org> (raw)
In-Reply-To: <E1YZob9-0002iN-JI@vcs.savannah.gnu.org> (Ludovic Court's message of "Sun, 22 Mar 2015 22:43:59 +0000")

Ludovic Courtès <ludo@gnu.org> writes:

> commit 4d58122071bbd7bb56c9658a9bbe7621bf3e423d
> Author: Ludovic Courtès <ludo@gnu.org>
> Date:   Sun Mar 22 23:43:25 2015 +0100
>
>     store: Default to a non-empty list of substituters.
>     
>     Fixes <http://bugs.gnu.org/20163>.
>     Reported by Mark H Weaver <mhw@netris.org>.
>     
>     * guix/store.scm (%default-substitute-urls): New variable.
>       (set-build-options): Change default value of #:substitute-urls to
>       %DEFAULT-SUBSTITUTE-URLS.
> ---
>  guix/store.scm |   11 ++++++++++-
>  1 files changed, 10 insertions(+), 1 deletions(-)
>
> diff --git a/guix/store.scm b/guix/store.scm
> index 45c555b..3d6b069 100644
> --- a/guix/store.scm
> +++ b/guix/store.scm
> @@ -447,6 +447,10 @@ encoding conversion errors."
>                                (message "invalid error code")
>                                (status   k))))))))
>  
> +(define %default-substitute-urls
> +  ;; Default list of substituters.
> +  '("http://hydra.gnu.org"))
> +
>  (define* (set-build-options server
>                              #:key keep-failed? keep-going? fallback?
>                              (verbosity 0)
> @@ -459,7 +463,12 @@ encoding conversion errors."
>                              (print-build-trace #t)
>                              (build-cores (current-processor-count))
>                              (use-substitutes? #t)
> -                            (substitute-urls '())) ; client "untrusted" cache URLs
> +
> +                            ;; Client-provided substitute URLs.  For
> +                            ;; unprivileged clients, these are considered
> +                            ;; "untrusted"; for root, they override the
> +                            ;; daemon's settings.
> +                            (substitute-urls %default-substitute-urls))

Does this mean that even if I've configured my daemon to use a different
set of substitute-urls, when I run 'guix' as root those settings will be
overridden?  That seems suboptimal.

We have a similar problem with the values of --cores and --max-jobs
passed to guix-daemon being ignored because they are always overridden
by our client.

How can we fix these so that the daemon's settings are used unless the
user specifically asks to override them in the client?

       Mark

       reply	other threads:[~2015-03-23 18:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20150322224357.10349.62362@vcs.savannah.gnu.org>
     [not found] ` <E1YZob9-0002iN-JI@vcs.savannah.gnu.org>
2015-03-23 18:18   ` Mark H Weaver [this message]
2015-03-23 21:11     ` Using the daemon’s default settings Ludovic Courtès
2015-03-27 18:44       ` Mark H Weaver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87egofr30v.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).