From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: Plan for 0.9.0 Date: Fri, 16 Oct 2015 12:14:24 +0800 Message-ID: References: <87io6b943m.fsf@gnu.org> <878u75ql2q.fsf@gnu.org> <87eggxfc5o.fsf@openmailbox.org> <87k2qpp1ko.fsf@gnu.org> <20151014170227.3a293b5a@openmailbox.org> <874mhsiae1.fsf@openmailbox.org> 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]:49165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmwPS-0008Lm-MF for guix-devel@gnu.org; Fri, 16 Oct 2015 00:14:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmwPR-00041o-FY for guix-devel@gnu.org; Fri, 16 Oct 2015 00:14:26 -0400 Received: from mail-ig0-x235.google.com ([2607:f8b0:4001:c05::235]:32925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmwPR-00041k-C0 for guix-devel@gnu.org; Fri, 16 Oct 2015 00:14:25 -0400 Received: by igbkq10 with SMTP id kq10so6279151igb.0 for ; Thu, 15 Oct 2015 21:14:24 -0700 (PDT) In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: "Thompson, David" Cc: guix-devel On 15/10/2015, Thompson, David wrote: > On Thu, Oct 15, 2015 at 8:28 AM, Mathieu Lirzin > wrote: >> Eric Bavier writes: >> >>> On Wed, 14 Oct 2015 23:44:39 +0200 >>> ludo@gnu.org (Ludovic Court=C3=A8s) wrote: >>> >>>> Mathieu Lirzin skribis: >>>> >>>> > ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>>> > >>>> >> Dunno, I admit I=E2=80=99m not as enthusiastic as the other people = here. >>>> >> :-) >>>> >> >>>> >> What would =E2=80=98guix gc=E2=80=99 (without any option) do? >>>> > >>>> > Show --help and exit(0)? ;) >>>> >>>> Sure we could do that, but I=E2=80=99m not convinced it=E2=80=99s an i= mprovement. >>>> WDYT? >>> >>> FWIW, I'm not convinced either. >> >> I think the enthusiasm for changing =E2=80=98guix gc=E2=80=99 was induce= d by somekind of >> shared experience of typing it loosely and ending up having to download >> a lot of substitutes again. So maybe we can keep =E2=80=98guix gc=E2=80= =99 as it is but >> make it interactive by listing what is going to be deleted and ask for >> confirmation with a [Y/n] prompt. This solution will also require >> somekind of a =E2=80=98--force=E2=80=99 option for scripting purposes. >> >> Does it sound better? > > In general, I do not like interactive CLIs. I'm fine with 'guix gc' > working as-is. The re-downloading lots of substitutes issue is not an > issue about the CLI, but rather about not making store items that you > want to hang around GC roots. > Wow, the discussion is long... Talking about interactive CLIs, in general I am not a fan of it too, especially after you get used to the program. That's why I am using plain apt-get instead of aptitude which uses ncurses. However, I will say it is sometimes useful. For example, in git clean, there is an `-i' switch, which can help if you don't want to mess with your .gitignore file. So perhaps making something GC roots is like putting it in .gitignore in git, but we should still provide a way for interacting GC-ing. I also have an opinions on some other things, but I need to recap it first.