From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: bug#28749: guix build --subsitute-urls does not override guix-daemon run with --no-subsitutes Date: Fri, 13 Oct 2017 09:59:18 -0400 Message-ID: <87tvz3f8sp.fsf@gmail.com> References: <20171009192034.GB16949@jasmine.lan> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e30VV-0007Jl-2u for bug-guix@gnu.org; Fri, 13 Oct 2017 10:00:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e30VP-0007Uk-C4 for bug-guix@gnu.org; Fri, 13 Oct 2017 10:00:09 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:57737) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e30VP-0007TZ-8G for bug-guix@gnu.org; Fri, 13 Oct 2017 10:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e30VO-0001x8-Uj for bug-guix@gnu.org; Fri, 13 Oct 2017 10:00:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20171009192034.GB16949@jasmine.lan> (Leo Famulari's message of "Mon, 9 Oct 2017 15:20:34 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 28749@debbugs.gnu.org Cc: drashne@protonmail.com Leo Famulari writes: > On Sun, Oct 08, 2017 at 01:13:16PM -0400, Drashne wrote: >> From the kind people on #guix, I've heard that "guix build >> --subsitute-urls" should override "guix-daemon --no-subsitutes", but >> it seems it's not doing so for me. > > The documentation of guix-daemon [0] says this on the subject: > > "When the daemon runs with --no-substitutes, clients can still > explicitly enable substitution via the set-build-options remote > procedure call (see The Store)." > > So, there is a way for unprivileged users to enable substitution for > themselves even when the local administrator has disabled substitution, > but it's not via the --substitute-urls mechanism. > > I'm closing this bug because I think it's mostly a case of having > received mistaken advice on #guix. Eh, I'm sorry I was the one suggesting to open this bug report in the first place! Although, I would argue that the current behavior is non-intuitive. While true that the manual skim about how one can achieve this, the reference to "The Store" is not helpful; it doesn't even mention the "set-build-options" procedure. Also, leaving the command line to plug directly into Guix's API from Guile is inconvenient at best. It seems to me that the current behavior of other options that affect the guix-daemon operation are that user options override the corresponding guix-daemon defaults; maybe that's what lead me and others to think that --substitute-urls should attempt to do what the user desires? Otherwise, we could at least give advice on the output of a Guix command when the user passed --substitute-urls when the guix-daemon substitutes were disabled to make this clear(er). My 2 cents, Maxim