guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] guix package: Add '--delete-generations'.


From: Ludovic Courtès
Subject: Re: [PATCH] guix package: Add '--delete-generations'.
Date: Wed, 25 Sep 2013 15:05:19 +0200
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Nikita Karetnikov <address@hidden> skribis:

>> Oh.  I’d prefer if it would delete all generations but the current one.
>
>> That’s a fairly useful pattern: suppose you want to make space on your
>> disk (and you know you won’t need to roll back), it’d be handy to run:
>
>>   guix package --delete-generations && guix gc
>
>> Whereas if you have to use ranges, you end up doing something like:
>
>>   guix package --list-generations |grep ^G
>>   # check the number of the last generation...
>>   guix package --delete-generations=..42 && guix gc
>
>> Conversely, removing *all* the generations is something you’re unlikely
>> to do very often.
>
> ‘--delete-generations’ could accept an additional argument, say,
> ‘keep-current’.  It’d be easier to implement, and I find it less
> confusing.
>
> Would you accept such a solution?

Frankly, I don’t like it.  I think the default behavior should not be to
let the user shoot themself in the foot.

WDYT?

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]