From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UG9aHWa5bV9wfgAA0tVLHw (envelope-from ) for ; Fri, 25 Sep 2020 09:33:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WBc7GWa5bV9fBgAAB5/wlQ (envelope-from ) for ; Fri, 25 Sep 2020 09:33:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8AE799403D2 for ; Fri, 25 Sep 2020 09:33:25 +0000 (UTC) Received: from localhost ([::1]:34928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLk6U-00088b-JJ for larch@yhetil.org; Fri, 25 Sep 2020 05:33:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLk6A-00082s-3n for guix-patches@gnu.org; Fri, 25 Sep 2020 05:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59342) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLk69-00020C-Qd for guix-patches@gnu.org; Fri, 25 Sep 2020 05:33:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLk69-0006n1-NH for guix-patches@gnu.org; Fri, 25 Sep 2020 05:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Sep 2020 09:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43477 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: Ricardo Wurmus , 43477@debbugs.gnu.org Received: via spool by 43477-submit@debbugs.gnu.org id=B43477.160102634226051 (code B ref 43477); Fri, 25 Sep 2020 09:33:01 +0000 Received: (at 43477) by debbugs.gnu.org; 25 Sep 2020 09:32:22 +0000 Received: from localhost ([127.0.0.1]:42655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLk5W-0006m7-AJ for submit@debbugs.gnu.org; Fri, 25 Sep 2020 05:32:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLk5U-0006lv-9v for 43477@debbugs.gnu.org; Fri, 25 Sep 2020 05:32:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52228) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLk5O-0001z1-Kj; Fri, 25 Sep 2020 05:32:14 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=60758 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLk5O-0002iJ-2l; Fri, 25 Sep 2020 05:32:14 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200917193931.14699-1-zimon.toutoune@gmail.com> <87v9gbtg9w.fsf@elephly.net> <87o8lv8cao.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 =?UTF-8?Q?Vend=C3=A9miaire?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 25 Sep 2020 11:32:11 +0200 In-Reply-To: (zimoun's message of "Thu, 24 Sep 2020 17:47:18 +0200") Message-ID: <87wo0i2odg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: /xa0fP9clTrG Hi, zimoun skribis: > The point is I am often doing > > guix graph -t | grep label | grep > > then I select what I am interested in and reuse it with another Guix > command (size or graph again or show or whatever). And the regexp > directly pick the package name is too complicated to remember, so yes > I could have a script. > > For example, I would to know if all the packages in my profile are OK > about CVE and already archived on SWH, with the proposed patch, it is > simply: > > guix package -I | cut -f1 \ > | xargs -I{} ./pre-inst-env guix graph -b list-nodes {} \ > | xargs -I{} guix lint -c cve,archival {} > > and obviously instead "-t bag" could be used. > > Well, another option as "--list-nodes" could be added. WDTY? I think we should really focus on individual use cases and see how to best address them. For example there=E2=80=99s that we could revisit now that we have provenance metadata and inferiors. There=E2=80=99s also =E2=80=98guix= size=E2=80=99, =E2=80=98guix refresh -l=E2=80=99, and =E2=80=98guix graph --path=E2=80=99. Perhaps we could have the backend you propose with the name =E2=80=98plain-= flat=E2=80=99 (or similar), but I agree with Ricardo that it seems misplaced given that it doesn=E2=80=99t show edges. Thoughts? Ludo=E2=80=99.