all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Guillaume Le Vaillant <glv@posteo.net>
To: 38469@debbugs.gnu.org
Subject: bug#38469: guix gc should keep around recent intermediate build ingredients by default
Date: Tue, 03 Dec 2019 13:59:22 +0100	[thread overview]
Message-ID: <87d0d5a7kl.fsf@yamatai> (raw)
In-Reply-To: <484751C5-E7B0-40AA-B0BD-E81D31C0535C@vllmrt.net>


Robert Vollmert skribis:

> [ This is a user/developer friendliness feature request. I’m not arguing
>   that `guix gc` should do anything differently on a technical level, I’m
>   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 generation,
>   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’t result in everything
>   being rebuilt.
>
> (If there’s some way I can achieve that now, perhaps by explicitly managing
> some roots, or passing specific arguments to `guix gc`, I’d be happy to
> know! I’d still argue that we should try to make this the default behaviour,
> though.)

Have you tried passing the options '--gc-keep-derivations=yes' and
'--gc-keep-outputs=yes' 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 =>
              (guix-configuration
               (inherit config)
               (extra-options '("--gc-keep-derivations=yes"
                                "--gc-keep-outputs=yes")))))))
--8<---------------cut here---------------end--------------->8---

  reply	other threads:[~2019-12-03 13:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-03 10:48 bug#38469: guix gc should keep around recent intermediate build ingredients by default Robert Vollmert
2019-12-03 12:59 ` Guillaume Le Vaillant [this message]
2019-12-03 14:29 ` bug#38469: guix gc should keep around recent intermediate build Robert Vollmert
2019-12-10 16:39   ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d0d5a7kl.fsf@yamatai \
    --to=glv@posteo.net \
    --cc=38469@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.