From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: The future of 'guix environment' Date: Wed, 30 Aug 2017 11:33:53 -0400 Message-ID: <20170830153353.GA981@jasmine.lan> References: <87ziahytsq.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dn50h-0001PC-WD for guix-devel@gnu.org; Wed, 30 Aug 2017 11:34:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dn50c-0001Qk-I7 for guix-devel@gnu.org; Wed, 30 Aug 2017 11:34:29 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:42337) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dn50c-0001Ph-92 for guix-devel@gnu.org; Wed, 30 Aug 2017 11:34:26 -0400 Content-Disposition: inline In-Reply-To: <87ziahytsq.fsf@member.fsf.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 30, 2017 at 11:11:33PM +0800, =E5=AE=8B=E6=96=87=E6=AD=A6 wrote: > > 1) Add a caching mechanism. The environment profile should get built > > once, and then a symlink to it should be created in $PWD and > > registered as a GC root. This will, of course, require re-using some > > 'guix package' code to delete the profile. For the sake of the rest > > of this post, let's say that a --cache flag does this, and a --update > > flag forces a rebuilding of the cached profile. I like that the results of `guix environment` are ephemeral by default. > I always run 'guix environmeut guix' and have to wait for substitutes > before entering the shell, indeed caching the environment will save me > much time, but usually I don't mind that and was already used to the > "awlays being latest" behaviour... >=20 > I definitely want this feature too, so how about rename the current > implementation of 'environment' to 'guix shell', whose ad hoc behaviour > is similar to the 'nix-shell', and start a new implementation with this > persistent behaviour? I agree. If we change the behaviour to leave files in the current directory and register GC roots then we should use a new name or rename the existing functionality. I'm in favor of using a new name for new functionality. --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlmm2t4ACgkQJkb6MLrK fwhE/w/8CQdTh9xyTGHSnaYOCPcx23IYGbnQkez5UOTWsfFm9Ub46bNhH+3jGM/a jaRmM2Avr2l/B8ZTaFePpJw8kvg1rdsHVX2ecJF8QQneZPVvNpnK78jShy/ZDNMC 8T/qvw+Zer6ItGoE+6RdEeHhOyHeF2zu/IH5k8J6WYt2ftuMPTtsvqCtvgSEpZOd YuDaIQLPAPhISstZv2TSIceZRVHy5SRzaYREC/1Tka7YIqfOnQCehQkVXG1pH689 fAKyB3y/UVuoKf/l76jkNGbczuB5HgdeQYtuDfE+cqdHdelfflD6blxQs8Jk10M2 KLIizNc4VCaqWTlQC2+/JZ+v2itB/NiVWxiN3ySiC2zkUj10De8Q/YtpgjjiGfsh 1RjtVljOAEjA01EbOf9dGvWbksXbxzml4nyet0Uy3TDCrLp3LnnWpBRH5azHAOV7 9ATJsUN7N7v/XOTNbBNj2dT1d8BvJJ7CUKAPqa7CIDhaGrUJtEIp/36a2JL922fa KO3rD8ggfUQKqXGYKDwHLfS7yFkEf/8+GL14vdiIzkhSeAFI+zSpOsTWLR8JVZFD gJH0i6XjKCPZ2WomyokI/QEE8c2BJUO0yPiWgb+tk0XI1Uh1m7jFQqAJgatURCd4 yZalgBM6EtWvxINk/o/zu3G+kp731dW2qZ7CExQ9bACqlJWhE+0= =frec -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3--