From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#31956: guix environment: add option to download and unpack source Date: Sun, 24 Jun 2018 21:27:27 +0200 Message-ID: <20180624212727.0adf311c@scratchpost.org> References: <87tvpsngwm.fsf@aikidev.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/T.mEcZTcii_9VGc+t3_QrG/"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXAg9-0002JM-FP for bug-guix@gnu.org; Sun, 24 Jun 2018 15:28:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXAg6-0006Er-AR for bug-guix@gnu.org; Sun, 24 Jun 2018 15:28:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54437) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fXAg6-0006EI-6f for bug-guix@gnu.org; Sun, 24 Jun 2018 15:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fXAg5-0005MN-UW for bug-guix@gnu.org; Sun, 24 Jun 2018 15:28:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87tvpsngwm.fsf@aikidev.net> 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: Vagrant Cascadian Cc: 31956@debbugs.gnu.org --Sig_/T.mEcZTcii_9VGc+t3_QrG/ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Vagrant, On Sun, 24 Jun 2018 12:06:17 -0700 Vagrant Cascadian wrote: > It would be great if there were an option you could pass that downloads > and unpacks the source somewhere and drops you into the newly unpacked > source directory. >=20 > Not sure what to call it exactly, but something like: >=20 > guix environment --with-source hello +1 Right now, my silly workaround is to add a phase which fails (add-after 'unpack 'fail (lambda _ (error "stop it"))) and then do guix build --keep-failed hello and then do guix environment --pure hello cd /tmp/guix-build-hello* That's... very manual. Also, if the directory in /tmp is not .drv-0, the environment is technicall= y not the same as it was inside the guix-daemon build container. In that case there'd be an extra step rm -rf /tmp/guix-build-hello-*.drv-0 ln -s /tmp/guix-build-hello-* /tmp/guix-build-hello-<...>.drv-0 cd /tmp/guix-build-hello-<...>.drv-0 All in all that's not simple. Also, guix-daemon is taken from Nix and thus not exactly the same as guix environment in some cases. That's why in some cases I have to (edit the package definition and invoke guix build) over and over again in order to find a problem. In the long term we'll replace guix-daemon by guix environment. Much easier to reproduce situations then. --Sig_/T.mEcZTcii_9VGc+t3_QrG/ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlsv8J8ACgkQ5xo1VCww uqU+awf/bRY+CFdyWKV+qmSY0CmaPPdv/0q1ninj0LYvMH/XAAfxHz/BhT3Irr3t xToaA31CHGkPg/dQz2jRsXPuYwVg3bythaikpCxW0XhrEYtcZ3Qjnw8mgKoHxqeg AV/jJKu2adL0IshTNO7xQoqkZeacfTu12iWbLI9HZk8IFPiQw2XGlY2euP5EGqXl qtSZLTGXi0XqoEkwnipyeHNE+WdlZj1vVw1UsimPBKvx+SXCSN0gQEPj6R/q6Y62 SeFZrNLtuV9qZMxM2mo590GPyCQDolp+aRk8ylZc9QgBHfXt3TlfGbNRiOKd6vnH DkcoaAGcZ6AdzblhU2Wi3Q+Z0YNyXg== =/0DY -----END PGP SIGNATURE----- --Sig_/T.mEcZTcii_9VGc+t3_QrG/--