From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +MzGGYO+bV/NNQAA0tVLHw (envelope-from ) for ; Fri, 25 Sep 2020 09:55:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id k7m7FYO+bV/3JgAA1q6Kng (envelope-from ) for ; Fri, 25 Sep 2020 09:55:15 +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 0001194060E for ; Fri, 25 Sep 2020 09:55:14 +0000 (UTC) Received: from localhost ([::1]:56602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLkRe-0001aK-0f for larch@yhetil.org; Fri, 25 Sep 2020 05:55:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLkRU-0001Zw-1y for guix-patches@gnu.org; Fri, 25 Sep 2020 05:55:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59377) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLkRT-0004Th-Fm for guix-patches@gnu.org; Fri, 25 Sep 2020 05:55:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLkRS-0007LG-E2 for guix-patches@gnu.org; Fri, 25 Sep 2020 05:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Sep 2020 09:55:02 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Ricardo Wurmus , 43477@debbugs.gnu.org Received: via spool by 43477-submit@debbugs.gnu.org id=B43477.160102768428189 (code B ref 43477); Fri, 25 Sep 2020 09:55:02 +0000 Received: (at 43477) by debbugs.gnu.org; 25 Sep 2020 09:54:44 +0000 Received: from localhost ([127.0.0.1]:42690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLkR9-0007Kb-Pp for submit@debbugs.gnu.org; Fri, 25 Sep 2020 05:54:44 -0400 Received: from mail-qv1-f67.google.com ([209.85.219.67]:38426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLkR5-0007KM-N8 for 43477@debbugs.gnu.org; Fri, 25 Sep 2020 05:54:42 -0400 Received: by mail-qv1-f67.google.com with SMTP id p15so1009312qvk.5 for <43477@debbugs.gnu.org>; Fri, 25 Sep 2020 02:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ZNHJ24WmA2HwLbFcykUrIpVdWMIfpa2sfEY6ctPvI9Q=; b=rGHpaU1QX2VAEDK7qeGlPJeEXvmztJ3JJQzWnDFht5qWnHEDHjZ0Lms82N2U/rlhw9 kSW+VifbFoD19a4q6XyU3ltA62jSUkFUBAsYtQGEZ3AGBTqjSx3p9mKLoB4UvS4xJPSM jq88ktizi4xo3iuooJcr+5ZnOcIacxTWk/XUH4JDlPhsAcAKocR8wdKk7wp9iEhMxQ08 b/9f2iNp0KcQDoefADWWuDyahIjwt1Ni3FK4WgT52LRErGd09qS4tw4TOPXDwBpxQwmS ulSZlNqxGnQI2SOIzr41M1tX9BI4f9qAILnChurZ/25xFbZTTDkoDXRQuTIlC3nmZsfM M/xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ZNHJ24WmA2HwLbFcykUrIpVdWMIfpa2sfEY6ctPvI9Q=; b=mgKK3+/7d7XwBeQqD+DLLzeiPCKCi+NRMBsL43JOByKneI0/9QuMV/FrDGvn5UdVoX ZW5gVw6Ob1KiUESwcBr2fdmRm7PHgWti51PR0k7/Jj/qif6YRoVJuvsDokOrtchRe7rd WVQXcxLvTCQq2TTlR3XjJ+AY2REflN9ZsxHIoWsGJkJ0uVSisVblzVIT8FXEvY3pBoEI 7y+3me9pIEUqYA2eeX9g3hGFTw1hi6Xv4eVv6sPZSvm2PLXcqmzaLAyygT8SVV+Fd9Df vKiTuxifxmLK+dLH7xJW0oHr48B4sBQn0I9rk++dIfq2diy5+575Jkez3Yt6yG/2tIQ4 hh6w== X-Gm-Message-State: AOAM532WsisB32HW/GfwoxcXmruwGJBEPcQ47k+nZKGnUMZ/LqIn3rm7 DGwkLIE1CURaFVASiupMmGp+d/JCon1kGnjwn/WHThqPggA= X-Google-Smtp-Source: ABdhPJyl7zh9H6m3Y5IMpXu7sNV/KdxZsce7vdlYvLs5oXyyeZAO0mMf4J3RWGsvrAB89/J9Cu0kxtvZkNyOiHqu/MA= X-Received: by 2002:a0c:ca08:: with SMTP id c8mr3520579qvk.42.1601027673808; Fri, 25 Sep 2020 02:54:33 -0700 (PDT) MIME-Version: 1.0 References: <20200917193931.14699-1-zimon.toutoune@gmail.com> <87v9gbtg9w.fsf@elephly.net> <87o8lv8cao.fsf@gnu.org> <87wo0i2odg.fsf@gnu.org> In-Reply-To: <87wo0i2odg.fsf@gnu.org> From: zimoun Date: Fri, 25 Sep 2020 11:54:22 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=rGHpaU1Q; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 0.09 X-TUID: TnMC3FQf+Pyv On Fri, 25 Sep 2020 at 11:32, Ludovic Court=C3=A8s wrote: > zimoun skribis: > > 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 I am not sure to understand. The aim of pipe composition is to build bigger use cases reusing smaller units, right? (friday's trolling inside ;-)) My individual use case is to list all the nodes of one package. And by "all the nodes" I mean for all the kinds of graph types. There is a "guix graph --path" which is really nice. Why not "guix graph --list-nodes"? > that we could revisit now that we > have provenance metadata and inferiors. There=E2=80=99s also =E2=80=98gu= ix size=E2=80=99, =E2=80=98guix > refresh -l=E2=80=99, and =E2=80=98guix graph --path=E2=80=99. The example above comes from this patch "guix health" that I commented on [1]. :-) Let's discuss that overthere. [1] > Perhaps we could have the backend you propose with the name =E2=80=98plai= n-flat=E2=80=99 > (or similar), but I agree with Ricardo that it seems misplaced given > that it doesn=E2=80=99t show edges. I understand. The addition of a backend is not appropriate and confusing (except the plain you backend you proposed). Therefore, my proposal is to add another option to "guix graph": guix graph --list-nodes similarly to "--path". Except that "guix graph --list-nodes -t bag" will show all the nodes of the bag graph. WDYT? All the best, simon