unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36466: guix pull --delete-generations
@ 2019-07-01 18:53 Raghav Gururajan
  2019-07-02  7:02 ` Ricardo Wurmus
  0 siblings, 1 reply; 12+ messages in thread
From: Raghav Gururajan @ 2019-07-01 18:53 UTC (permalink / raw)
  To: 36466

Hello Guix!

I would like to report that "guix pull --delete-generations" is missing
and its absence can be considered as a bug.

Due to this, users cannot straight-forwardly delete guix pull
generations and garbage collect them via guix gc. This causes too much
accumulation of generations and its files in the storage.

I request the admin to set the severity and priority of this bug to
"high".

Thank you!

Regards,
RG.

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

* bug#36466: guix pull --delete-generations
  2019-07-01 18:53 bug#36466: guix pull --delete-generations Raghav Gururajan
@ 2019-07-02  7:02 ` Ricardo Wurmus
  2019-07-02 18:25   ` Raghav Gururajan
  0 siblings, 1 reply; 12+ messages in thread
From: Ricardo Wurmus @ 2019-07-02  7:02 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 36466


Hi Raghav,

> I would like to report that "guix pull --delete-generations" is missing
> and its absence can be considered as a bug.

“guix pull” uses a regular profile at ~/.config/guix/current, so you can
do “guix package -p ~/.config/guix/current --delete-generations”

-- 
Ricardo

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

* bug#36466: guix pull --delete-generations
  2019-07-02  7:02 ` Ricardo Wurmus
@ 2019-07-02 18:25   ` Raghav Gururajan
  2019-07-07 14:29     ` Ludovic Courtès
                       ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Raghav Gururajan @ 2019-07-02 18:25 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 36466


> “guix pull” uses a regular profile at ~/.config/guix/current, so you
> can
> do “guix package -p ~/.config/guix/current --delete-generations”

Thanks Ricardo! I am aware of this as someone suggested this on IRC. ☺.
My concern is that there is "guix system delete-generations" and "guix
package --delete-generations"; but not "guix pull --delete-
generations".

Bringing "guix pull --delete-generations" will be straight-forward and
any user does not have to type profile path everytime they delete
generations. Will also be intutive for new guix users. ☺

Regards,
RG.

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

* bug#36466: guix pull --delete-generations
  2019-07-02 18:25   ` Raghav Gururajan
@ 2019-07-07 14:29     ` Ludovic Courtès
  2019-07-07 20:05     ` Raghav Gururajan
  2019-07-07 20:06     ` Raghav Gururajan
  2 siblings, 0 replies; 12+ messages in thread
From: Ludovic Courtès @ 2019-07-07 14:29 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 36466

Hi,

Raghav Gururajan <rvgn@disroot.org> skribis:

>> “guix pull” uses a regular profile at ~/.config/guix/current, so you
>> can
>> do “guix package -p ~/.config/guix/current --delete-generations”
>
> Thanks Ricardo! I am aware of this as someone suggested this on IRC. ☺.
> My concern is that there is "guix system delete-generations" and "guix
> package --delete-generations"; but not "guix pull --delete-
> generations".
>
> Bringing "guix pull --delete-generations" will be straight-forward and
> any user does not have to type profile path everytime they delete
> generations. Will also be intutive for new guix users. ☺

Note that there’s also ‘guix gc --delete-generations’, which is really
what newcomers should be using IMO because it operates on all the user’s
profiles.

That said, I think a patch that adds ‘--delete-generations’ to ‘guix
pull’ would also be welcome.

Thanks,
Ludo’.

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

* bug#36466: guix pull --delete-generations
  2019-07-02 18:25   ` Raghav Gururajan
  2019-07-07 14:29     ` Ludovic Courtès
@ 2019-07-07 20:05     ` Raghav Gururajan
  2019-07-08  9:42       ` Ludovic Courtès
  2019-07-07 20:06     ` Raghav Gururajan
  2 siblings, 1 reply; 12+ messages in thread
From: Raghav Gururajan @ 2019-07-07 20:05 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 36466

> Note that there’s also ‘guix gc --delete-generations’, which is really
> what newcomers should be using IMO because it operates on all the user’s
> profiles.

Thanks! Does `guix gc --delete-generations` delete guix pull generations as well?

> That said, I think a patch that adds ‘--delete-generations’ to ‘guix
> pull’ would also be welcome.

True :)

Regards,
RG.

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

* bug#36466: guix pull --delete-generations
  2019-07-02 18:25   ` Raghav Gururajan
  2019-07-07 14:29     ` Ludovic Courtès
  2019-07-07 20:05     ` Raghav Gururajan
@ 2019-07-07 20:06     ` Raghav Gururajan
  2 siblings, 0 replies; 12+ messages in thread
From: Raghav Gururajan @ 2019-07-07 20:06 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 36466

> Note that there’s also ‘guix gc --delete-generations’, which is really
> what newcomers should be using IMO because it operates on all the user’s
> profiles.

Thanks! Does `guix gc --delete-generations` delete guix pull generations as well?

> That said, I think a patch that adds ‘--delete-generations’ to ‘guix
> pull’ would also be welcome.

True :)

Regards,
RG.

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

* bug#36466: guix pull --delete-generations
  2019-07-07 20:05     ` Raghav Gururajan
@ 2019-07-08  9:42       ` Ludovic Courtès
  2019-07-08 18:18         ` Raghav Gururajan
  2019-07-08 21:33         ` Raghav Gururajan
  0 siblings, 2 replies; 12+ messages in thread
From: Ludovic Courtès @ 2019-07-08  9:42 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 36466

"Raghav Gururajan" <rvgn@disroot.org> skribis:

>> Note that there’s also ‘guix gc --delete-generations’, which is really
>> what newcomers should be using IMO because it operates on all the user’s
>> profiles.
>
> Thanks! Does `guix gc --delete-generations` delete guix pull generations as well?

Yes.

Ludo’.

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

* bug#36466: guix pull --delete-generations
  2019-07-08  9:42       ` Ludovic Courtès
@ 2019-07-08 18:18         ` Raghav Gururajan
  2019-07-08 21:33         ` Raghav Gururajan
  1 sibling, 0 replies; 12+ messages in thread
From: Raghav Gururajan @ 2019-07-08 18:18 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 36466

> Yes.

Thanks!

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

* bug#36466: guix pull --delete-generations
  2019-07-08  9:42       ` Ludovic Courtès
  2019-07-08 18:18         ` Raghav Gururajan
@ 2019-07-08 21:33         ` Raghav Gururajan
  2019-07-11 21:34           ` Ludovic Courtès
  1 sibling, 1 reply; 12+ messages in thread
From: Raghav Gururajan @ 2019-07-08 21:33 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 36466


> Yes.

Unfortunately, it did not work.

***START***

rg@secondary ~$ guix gc --delete-generations
Backtrace:
           7 (primitive-load "/home/rg/.config/guix/current/bin/guix")
In guix/ui.scm:
  1655:12  6 (run-guix-command _ . _)
In ice-9/boot-9.scm:
    829:9  5 (catch _ _ #<procedure 7fc0b58caca0 at guix/ui.scm:590…>
…)
    829:9  4 (catch _ _ #<procedure 7fc0b58cacb8 at guix/ui.scm:713…>
…)
In guix/scripts/gc.scm:
    253:6  3 (_)
In srfi/srfi-1.scm:
    640:9  2 (for-each #<procedure d37ba0 at guix/scripts/gc.scm:25…>
…)
In guix/scripts/gc.scm:
   114:38  1 (delete-old-generations #<store-connection 256.99 798b…>
…)
In unknown file:
           0 (delv 11 #f)

ERROR: In procedure delv:
In procedure list-copy: Wrong type argument in position 1: #f

***END***

Regards,
RG.

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

* bug#36466: guix pull --delete-generations
  2019-07-08 21:33         ` Raghav Gururajan
@ 2019-07-11 21:34           ` Ludovic Courtès
  2019-07-12  5:16             ` Raghav Gururajan
  0 siblings, 1 reply; 12+ messages in thread
From: Ludovic Courtès @ 2019-07-11 21:34 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 36466

Hi,

Raghav Gururajan <rvgn@disroot.org> skribis:

> rg@secondary ~$ guix gc --delete-generations
> Backtrace:
>            7 (primitive-load "/home/rg/.config/guix/current/bin/guix")
> In guix/ui.scm:
>   1655:12  6 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
>     829:9  5 (catch _ _ #<procedure 7fc0b58caca0 at guix/ui.scm:590…>
> …)
>     829:9  4 (catch _ _ #<procedure 7fc0b58cacb8 at guix/ui.scm:713…>
> …)
> In guix/scripts/gc.scm:
>     253:6  3 (_)
> In srfi/srfi-1.scm:
>     640:9  2 (for-each #<procedure d37ba0 at guix/scripts/gc.scm:25…>
> …)
> In guix/scripts/gc.scm:
>    114:38  1 (delete-old-generations #<store-connection 256.99 798b…>
> …)
> In unknown file:
>            0 (delv 11 #f)
>
> ERROR: In procedure delv:
> In procedure list-copy: Wrong type argument in position 1: #f

Good catch!  This bug should now be fixed by
5c3d44303e1bb75d45334af5cf86cde723da0371.

Could you check if it works for you?

Thanks,
Ludo’.

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

* bug#36466: guix pull --delete-generations
  2019-07-11 21:34           ` Ludovic Courtès
@ 2019-07-12  5:16             ` Raghav Gururajan
  2019-07-12 17:07               ` Ludovic Courtès
  0 siblings, 1 reply; 12+ messages in thread
From: Raghav Gururajan @ 2019-07-12  5:16 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 36466


> Good catch!  This bug should now be fixed by
> 5c3d44303e1bb75d45334af5cf86cde723da0371.
> 
> Could you check if it works for you?

Thank you very much. It worked. Phew! 5GB of data in user and 3GB of
data in root; was removed by `guix gc --delete-generations`. ☺

Regards,
RG.

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

* bug#36466: guix pull --delete-generations
  2019-07-12  5:16             ` Raghav Gururajan
@ 2019-07-12 17:07               ` Ludovic Courtès
  0 siblings, 0 replies; 12+ messages in thread
From: Ludovic Courtès @ 2019-07-12 17:07 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 36466-done

Hi,

Raghav Gururajan <rvgn@disroot.org> skribis:

>> Good catch!  This bug should now be fixed by
>> 5c3d44303e1bb75d45334af5cf86cde723da0371.
>> 
>> Could you check if it works for you?
>
> Thank you very much. It worked. Phew! 5GB of data in user and 3GB of
> data in root; was removed by `guix gc --delete-generations`. ☺

Good!  I’m closing this bug now, but do reopen it if you think there are
other things we should do.

Ludo’.

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

end of thread, other threads:[~2019-07-12 17:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-01 18:53 bug#36466: guix pull --delete-generations Raghav Gururajan
2019-07-02  7:02 ` Ricardo Wurmus
2019-07-02 18:25   ` Raghav Gururajan
2019-07-07 14:29     ` Ludovic Courtès
2019-07-07 20:05     ` Raghav Gururajan
2019-07-08  9:42       ` Ludovic Courtès
2019-07-08 18:18         ` Raghav Gururajan
2019-07-08 21:33         ` Raghav Gururajan
2019-07-11 21:34           ` Ludovic Courtès
2019-07-12  5:16             ` Raghav Gururajan
2019-07-12 17:07               ` Ludovic Courtès
2019-07-07 20:06     ` Raghav Gururajan

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).