From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#19978: It's too easy to accidentally delete all generations Date: Mon, 06 Apr 2015 21:59:36 +0200 Message-ID: <87a8yl81uf.fsf@gnu.org> References: <871tl8gzun.fsf@taylan.uni.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfDWg-0003DZ-H4 for bug-guix@gnu.org; Mon, 06 Apr 2015 16:21:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfDWf-0000Nk-I6 for bug-guix@gnu.org; Mon, 06 Apr 2015 16:21:42 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:56781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfDWf-0000Mt-EM for bug-guix@gnu.org; Mon, 06 Apr 2015 16:21:41 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YfDBl-0007ac-Gt for bug-guix@gnu.org; Mon, 06 Apr 2015 16:00:05 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <871tl8gzun.fsf@taylan.uni.cx> ("Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Bay\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=22's\?\= message of "Sun, 01 Mar 2015 22:41:20 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: "Taylan Ulrich \"=?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=\"" Cc: 19978-done@debbugs.gnu.org taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/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=E2=80=99s no --force flag, but I think it=E2=80=99s unnecessary: it= =E2=80=99s always possible to rollback to generation 0 and from there remove whatever. Thanks, Ludo=E2=80=99.