unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Substitutes from multiple server
@ 2015-10-28 11:14 Ludovic Courtès
  2015-10-28 12:31 ` Thompson, David
  2015-10-28 15:01 ` Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Ludovic Courtès @ 2015-10-28 11:14 UTC (permalink / raw)
  To: guix-devel

It’s now possible to really use multiple substitute servers, as in:

  guix build foo --substitute-urls='http://example.org http://hydra.gnu.org'

Here Guix first looks for substitutes at example.org, and then falls
back to gnu.org for those that were not found.

The basics were in place but commit 55b2fc1 adds the missing bits.

Unfortunately, due to <http://bugs.gnu.org/20217>, the daemon’s
--substitute-urls is overridden by clients, so you really have to pass
--substitute-urls to various ‘guix’ commands.

Unfortunately², because URLs are whitespace-separated, one cannot put
the option in the ‘GUIX_BUILD_OPTIONS’ environment variable, because
that one is simply split up using ‘string-tokenize’.

Anyway, future work!

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Substitutes from multiple server
  2015-10-28 11:14 Substitutes from multiple server Ludovic Courtès
@ 2015-10-28 12:31 ` Thompson, David
  2015-10-28 15:01 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Thompson, David @ 2015-10-28 12:31 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

On Wed, Oct 28, 2015 at 7:14 AM, Ludovic Courtès <ludo@gnu.org> wrote:
> It’s now possible to really use multiple substitute servers, as in:
>
>   guix build foo --substitute-urls='http://example.org http://hydra.gnu.org'
>
> Here Guix first looks for substitutes at example.org, and then falls
> back to gnu.org for those that were not found.
>
> The basics were in place but commit 55b2fc1 adds the missing bits.

Awesome!  One step closer to 'guix publish' being a generally useful
tool.  I'd like to run my own substitute server to provide some custom
binaries while fetching everything else from hydra.gnu.org.

> Unfortunately, due to <http://bugs.gnu.org/20217>, the daemon’s
> --substitute-urls is overridden by clients, so you really have to pass
> --substitute-urls to various ‘guix’ commands.
>
> Unfortunately², because URLs are whitespace-separated, one cannot put
> the option in the ‘GUIX_BUILD_OPTIONS’ environment variable, because
> that one is simply split up using ‘string-tokenize’.

It will be a great day when these limitations are removed.

Thanks!

- Dave

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Substitutes from multiple server
  2015-10-28 11:14 Substitutes from multiple server Ludovic Courtès
  2015-10-28 12:31 ` Thompson, David
@ 2015-10-28 15:01 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2015-10-28 15:01 UTC (permalink / raw)
  To: guix-devel

ludo@gnu.org (Ludovic Courtès) skribis:

> Unfortunately, due to <http://bugs.gnu.org/20217>, the daemon’s
> --substitute-urls is overridden by clients, so you really have to pass
> --substitute-urls to various ‘guix’ commands.

This one was so lame that a solution came to mind, implemented in
fb4bf72.

So I’m happy to report that this can be used reasonably easily now.  :-)

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-28 15:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28 11:14 Substitutes from multiple server Ludovic Courtès
2015-10-28 12:31 ` Thompson, David
2015-10-28 15:01 ` Ludovic Courtès

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).