unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19978: It's too easy to accidentally delete all generations
@ 2015-03-01 21:41 Taylan Ulrich Bayırlı/Kammer
  2015-04-06 19:59 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Taylan Ulrich Bayırlı/Kammer @ 2015-03-01 21:41 UTC (permalink / raw)
  To: 19978

The other day I ran "guix package -d 1d" thinking it will preserve the
current generation, but it didn't.  If I'm not mistaken, there's no
recovery from that either.

Any command that will delete even the current generation should probably
interactively warn/prompt the user by default, or fail, unless given a
--force flag.  Documentation should also warn I guess.

Taylan

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

* bug#19978: It's too easy to accidentally delete all generations
  2015-03-01 21:41 bug#19978: It's too easy to accidentally delete all generations Taylan Ulrich Bayırlı/Kammer
@ 2015-04-06 19:59 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2015-04-06 19:59 UTC (permalink / raw)
  To: Taylan Ulrich "Bayırlı/Kammer"; +Cc: 19978-done

taylanbayirli@gmail.com (Taylan Ulrich "Bayırlı/Kammer") skribis:

> The other day I ran "guix package -d 1d" thinking it will preserve the
> current generation, but it didn't.  If I'm not mistaken, there's no
> recovery from that either.
>
> Any command that will delete even the current generation should probably
> interactively warn/prompt the user by default, or fail, unless given a
> --force flag.  Documentation should also warn I guess.

I believe d26eb84 fixes that.

There’s no --force flag, but I think it’s unnecessary: it’s always
possible to rollback to generation 0 and from there remove whatever.

Thanks,
Ludo’.

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

end of thread, other threads:[~2015-04-06 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-01 21:41 bug#19978: It's too easy to accidentally delete all generations Taylan Ulrich Bayırlı/Kammer
2015-04-06 19:59 ` Ludovic Courtès

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).