From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Package input loop detection Date: Mon, 12 Feb 2018 20:04:33 +0100 Message-ID: <877erikp1a.fsf@elephly.net> References: <87eflzfkwh.fsf@cbaines.net> <87fu66kyxn.fsf@elephly.net> 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]:37235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elK79-0000do-GB for guix-devel@gnu.org; Mon, 12 Feb 2018 14:50:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elK74-0001J6-LV for guix-devel@gnu.org; Mon, 12 Feb 2018 14:50:11 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21073) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1elK74-0001Gw-Co for guix-devel@gnu.org; Mon, 12 Feb 2018 14:50:06 -0500 In-reply-to: <87fu66kyxn.fsf@elephly.net> 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" To: Christopher Baines Cc: guix-devel@gnu.org Ricardo Wurmus writes: >> I've had this issue for a while now, while adding some packages, I'll >> create a loop in the package graph, which causes Guix to just loop >> infinitely when trying to generate derivations. > > this is a great initiative. I=E2=80=99ve been having this issue in the p= ast as > well, and I=E2=80=99d really like Guix to be a little smarter about it. I=E2=80=99m currently updating many Haskell packages and I applied this pat= ch to make this job easier. It works as advertised. I think it could be less verbose (because something like this won=E2=80=99t happen in a released version of Guix and is only useful to developers). I=E2=80=99m no longer convinced that it should be a separate tool; it is an improvement over having =E2=80=9Cguix build=E2=80=9D hang indefinitely. I= =E2=80=99d much rather have =E2=80=9Cguix build=E2=80=9D fail on its own than requiring me to lose= patience and hit Ctrl-C. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net