From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#28749: guix build --subsitute-urls does not override guix-daemon run with --no-subsitutes Date: Mon, 9 Oct 2017 15:20:34 -0400 Message-ID: <20171009192034.GB16949@jasmine.lan> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9zSXsLTf0vkW971A" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1dbv-0006h7-I6 for bug-guix@gnu.org; Mon, 09 Oct 2017 15:21:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1dbr-0007xu-3n for bug-guix@gnu.org; Mon, 09 Oct 2017 15:21:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:49906) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1dbq-0007xh-Vb for bug-guix@gnu.org; Mon, 09 Oct 2017 15:21:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e1dbq-0005Yz-PG for bug-guix@gnu.org; Mon, 09 Oct 2017 15:21:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: Content-Disposition: inline In-Reply-To: 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: Drashne Cc: 28749-done@debbugs.gnu.org --9zSXsLTf0vkW971A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. [0] https://www.gnu.org/software/guix/manual/html_node/Invoking-guix_002ddaemon= =2Ehtml#Invoking-guix_002ddaemon > Here's the situation I ran in to: >=20 > While doing a "./pre-inst-env guix pull" I got an error about: >=20 > output path `/gnu/store/53lj4z9cavl7n27r89zjnvyd8fk854kj-libgit2-0.26.0= =2Etar.gz' should have sha256 hash `1fdk9yhwvl1w1z71ykzcvgh4nsf8scxcbclz5an= h98zpplmhmisa', instead has ` > 1b3figbhp5l83vd37vq6j2narrq4yl9pfw6mw0px0dzb1hz3jqka' >=20 > So I tried "./pre-inst-env guix build --source libgit2 --substitute-urls= =3D[https://mirror.hydra.gnu.org"](https://mirror.hydra.gnu.org) > but it redirected me to https://codeload.github.com/libgit2/libgit2/tar.g= z/v0.26.0 > which had the wrong hash. We are discussing how to handle unstable upstream sources more gracefully here: https://bugs.gnu.org/28659 --9zSXsLTf0vkW971A Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlnbzAIACgkQJkb6MLrK fwghAA/+O5V1E5GiZWo8S0iKJK37JugDTNigtTRqW5taBW9/zqeYCq1V4M3yHsmS YWRdDk3b7F6QbtzkO2/lER9jXOu+lNS3YC/mmhp2r/X0nptaXeoCSt0ntJHHZxsp tX9HtpQ8ISQWY6btnUnDtT4RQa72pSQf+FynBqyHjTlveM+swkyS5NzPLWVuH32L CFxaOJ9Q5G5NUv9Qe6aTkaA97x0Af1I2n7EGVzJlfSQdoCvp91w/JAb21hhX8/TR 6fjz0rAZ96WudAx+8MW2zWPrEyLL2AyIWeAJvDACTgRkLTTXjYaEJDhpNmljYz4v wtuz7B8jbVnBA7jo4ul+bmNSsksGGkgkiO8CUgVvs0Cwhfw8MunNtCL46HWqZYdM l7krmspep+db4ALyGEFrzpcgK0n4ZVsZmNxgRh9ryRHsdPx9xNUAhXDCO7F9JIq7 Z2PH6Y4iz1I0ja3kYMyfL6cwU2ydB5O7pRoJVhZV2RV6hBw4MGrUD43Fq4xFpi1c wuukHG+SSJ3dpmRVEWqNCARsst66OevhaojksuT7FMTn26unrvxAg3QatJN+0KOd 6c245wxZKhrZXLjAyl/UWAQ6+vw7CdC0ZqArxzPCJqpkNU/IvGJwQ55cUT/wieKa Xwn+lONibWInW3jDGAAs4hEFTL/iH/pJ9xCX8L0ztvItRwN50es= =UW/W -----END PGP SIGNATURE----- --9zSXsLTf0vkW971A--