all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#71332: guix gc delete order
@ 2024-06-03  9:10 Nicolas Graves via Bug reports for GNU Guix
  2024-06-03  9:30 ` Guillaume Le Vaillant
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Graves via Bug reports for GNU Guix @ 2024-06-03  9:10 UTC (permalink / raw)
  To: 71332


Hi Guix,

I feel the way `guix gc` choose its files to delete quite
inconvenient. For instance, when developping big programs locally, I
often find myself missing space, but when I will `guix gc -C30G`,
instead of the expected unused items (not present in any profile, just
built but discarded as the package I'm building is updated for
instance), I will instead loose most of the native-inputs that are
needed to build my `guix home` and `guix system`.

This make me stuck in an endless loop of removing / redownloading over
and over the same native-inputs, while my intention is first to remove
files that aren't these native-inputs.

I haven't delved into `guix gc` yet, how hard is that issue to solve? 

-- 
Best regards,
Nicolas Graves




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#71332: guix gc delete order
  2024-06-03  9:10 bug#71332: guix gc delete order Nicolas Graves via Bug reports for GNU Guix
@ 2024-06-03  9:30 ` Guillaume Le Vaillant
  2024-06-03 13:26   ` Nicolas Graves via Bug reports for GNU Guix
  0 siblings, 1 reply; 4+ messages in thread
From: Guillaume Le Vaillant @ 2024-06-03  9:30 UTC (permalink / raw)
  To: Nicolas Graves; +Cc: 71332

[-- Attachment #1: Type: text/plain, Size: 1035 bytes --]

Nicolas Graves via Bug reports for GNU Guix <bug-guix@gnu.org> skribis:

> Hi Guix,
>
> I feel the way `guix gc` choose its files to delete quite
> inconvenient. For instance, when developping big programs locally, I
> often find myself missing space, but when I will `guix gc -C30G`,
> instead of the expected unused items (not present in any profile, just
> built but discarded as the package I'm building is updated for
> instance), I will instead loose most of the native-inputs that are
> needed to build my `guix home` and `guix system`.
>
> This make me stuck in an endless loop of removing / redownloading over
> and over the same native-inputs, while my intention is first to remove
> files that aren't these native-inputs.
>
> I haven't delved into `guix gc` yet, how hard is that issue to solve? 

Hi.
Is the guix-daemon of your system started with the
"--gc-keep-derivations=yes" and "--gc-keep-outputs=yes" options?
It should prevent "guix gc" from deleting the build dependencies of live
profiles.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#71332: guix gc delete order
  2024-06-03  9:30 ` Guillaume Le Vaillant
@ 2024-06-03 13:26   ` Nicolas Graves via Bug reports for GNU Guix
  2024-06-03 15:22     ` Andrew Tropin via Bug reports for GNU Guix
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Graves via Bug reports for GNU Guix @ 2024-06-03 13:26 UTC (permalink / raw)
  To: Guillaume Le Vaillant; +Cc: Andrew Tropin, 71332

On 2024-06-03 09:30, Guillaume Le Vaillant wrote:

> Hi.
> Is the guix-daemon of your system started with the
> "--gc-keep-derivations=yes" and "--gc-keep-outputs=yes" options?
> It should prevent "guix gc" from deleting the build dependencies of live
> profiles.

Probably not if they have to be added through the extra-options field of
<guix-configuration> record. I'll try that, thanks! 

-- 
Best regards,
Nicolas Graves




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#71332: guix gc delete order
  2024-06-03 13:26   ` Nicolas Graves via Bug reports for GNU Guix
@ 2024-06-03 15:22     ` Andrew Tropin via Bug reports for GNU Guix
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Tropin via Bug reports for GNU Guix @ 2024-06-03 15:22 UTC (permalink / raw)
  To: Nicolas Graves, Guillaume Le Vaillant; +Cc: 71332

[-- Attachment #1: Type: text/plain, Size: 731 bytes --]

On 2024-06-03 15:26, Nicolas Graves via Bug reports for GNU Guix wrote:

> On 2024-06-03 09:30, Guillaume Le Vaillant wrote:
>
>> Hi.
>> Is the guix-daemon of your system started with the
>> "--gc-keep-derivations=yes" and "--gc-keep-outputs=yes" options?
>> It should prevent "guix gc" from deleting the build dependencies of live
>> profiles.

Didn't know about those options, thank you for sharing!

>
> Probably not if they have to be added through the extra-options field of
> <guix-configuration> record. I'll try that, thanks! 

I was suffering from the issue you have.  After I updated SSD I just
don't do gc, but it would be a good fix for the problem, if it works.

-- 
Best regards,
Andrew Tropin 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-03 15:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-03  9:10 bug#71332: guix gc delete order Nicolas Graves via Bug reports for GNU Guix
2024-06-03  9:30 ` Guillaume Le Vaillant
2024-06-03 13:26   ` Nicolas Graves via Bug reports for GNU Guix
2024-06-03 15:22     ` Andrew Tropin via Bug reports for GNU Guix

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.