From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guillaume Le Vaillant Subject: bug#38469: guix gc should keep around recent intermediate build ingredients by default Date: Tue, 03 Dec 2019 13:59:22 +0100 Message-ID: <87d0d5a7kl.fsf@yamatai> References: <484751C5-E7B0-40AA-B0BD-E81D31C0535C@vllmrt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51458) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ic7mk-0005tU-BP for bug-guix@gnu.org; Tue, 03 Dec 2019 08:00:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ic7me-0000Rx-Tk for bug-guix@gnu.org; Tue, 03 Dec 2019 08:00:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33435) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ic7me-0000NE-OY for bug-guix@gnu.org; Tue, 03 Dec 2019 08:00:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ic7mc-0002tN-LJ for bug-guix@gnu.org; Tue, 03 Dec 2019 08:00:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:48693) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ic7mF-0005l2-Il for bug-guix@gnu.org; Tue, 03 Dec 2019 07:59:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ic7m9-00076J-DP for bug-guix@gnu.org; Tue, 03 Dec 2019 07:59:34 -0500 Received: from mout02.posteo.de ([185.67.36.66]:47765) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ic7m8-0006jb-9v for bug-guix@gnu.org; Tue, 03 Dec 2019 07:59:33 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 470A92400FC for ; Tue, 3 Dec 2019 13:59:26 +0100 (CET) In-reply-to: <484751C5-E7B0-40AA-B0BD-E81D31C0535C@vllmrt.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: 38469@debbugs.gnu.org Robert Vollmert skribis: > [ This is a user/developer friendliness feature request. I=E2=80=99m not = arguing > that `guix gc` should do anything differently on a technical level, I= =E2=80=99m > just trying to argue that the default experience should be different. ] > > Current situation: > I use a forked guix repository as my default channel, which > includes a number of slow-to-build Haskell packages. Now and > then, I run out of disk space. So I call `guix gc`, which invariably > removes the store paths involved in building my current system generati= on, > so the next call to `guix system reconfigure` takes hours. > > Desired situation: > After calling `guix gc`, the paths that were involved in my last system > build are still around, so reconfiguring doesn=E2=80=99t result in ever= ything > being rebuilt. > > (If there=E2=80=99s some way I can achieve that now, perhaps by explicitl= y managing > some roots, or passing specific arguments to `guix gc`, I=E2=80=99d be ha= ppy to > know! I=E2=80=99d still argue that we should try to make this the default= behaviour, > though.) Have you tried passing the options '--gc-keep-derivations=3Dyes' and '--gc-keep-outputs=3Dyes' to guix-daemon? In the operating-system definition, it would be something like: --8<---------------cut here---------------start------------->8--- (services (cons* (service ...) [...] (modify-services %desktop-services (guix-service-type config =3D> (guix-configuration (inherit config) (extra-options '("--gc-keep-derivations=3Dyes" "--gc-keep-outputs=3Dyes"))))))) --8<---------------cut here---------------end--------------->8---