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 rlICHNgMuF79MAAA0tVLHw (envelope-from ) for ; Sun, 10 May 2020 14:16:56 +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 8Ns3AeYMuF7TdAAA1q6Kng (envelope-from ) for ; Sun, 10 May 2020 14:17:10 +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 929BB9402D1 for ; Sun, 10 May 2020 14:17:07 +0000 (UTC) Received: from localhost ([::1]:36836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXmlP-0002n3-Vu for larch@yhetil.org; Sun, 10 May 2020 10:17:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXmlK-0002mt-P0 for guix-patches@gnu.org; Sun, 10 May 2020 10:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXmlK-0007vA-Fq for guix-patches@gnu.org; Sun, 10 May 2020 10:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jXmlK-0000jY-Bb for guix-patches@gnu.org; Sun, 10 May 2020 10:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41164] [PATCH 0/3] Add 'guix graph --path' Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 10 May 2020 14:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41164 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 41164@debbugs.gnu.org Received: via spool by 41164-submit@debbugs.gnu.org id=B41164.15891202202810 (code B ref 41164); Sun, 10 May 2020 14:17:02 +0000 Received: (at 41164) by debbugs.gnu.org; 10 May 2020 14:17:00 +0000 Received: from localhost ([127.0.0.1]:50174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXmlI-0000jG-JS for submit@debbugs.gnu.org; Sun, 10 May 2020 10:17:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXmlG-0000iw-NI for 41164@debbugs.gnu.org; Sun, 10 May 2020 10:16:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43761) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXmlB-0007ZA-Gn; Sun, 10 May 2020 10:16:53 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=43676 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jXmlA-0005vJ-Rg; Sun, 10 May 2020 10:16:53 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200509230401.28364-1-ludo@gnu.org> Date: Sun, 10 May 2020 16:16:49 +0200 In-Reply-To: (zimoun's message of "Sun, 10 May 2020 12:51:40 +0200") Message-ID: <873687an8u.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (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 X-Spam-Score: -1.01 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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-Scan-Result: default: False [-1.01 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.53882810844893]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.08), country: US(-0.00), ip: 209.51.188.17(-0.54)]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_IN_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[ludo@gnu.org,guix-patches-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[gnu.org:email]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gnu.org]; HAS_LIST_UNSUB(-0.01)[]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; RCVD_COUNT_SEVEN(0.00)[9]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: 7qUxJs+8vl2T Hi! zimoun skribis: > I remember discussing such feature at FOSDEM. :-) > And a couple of days ago (updating with core-updates), I was annoyed > because a lot of "unexpected" packages were downloaded, I asked myself > "why". So you removed one item of my feature wishlist. ;-) Yeah, I guess we=E2=80=99re all periodically annoyed by that. :-) > On Sun, 10 May 2020 at 01:05, Ludovic Court=C3=A8s wrote: > >> --8<---------------cut here---------------start------------->8--- >> $ ./pre-inst-env guix graph --path emacs libffi >> --8<---------------cut here---------------end--------------->8--- > > Well, the command is obviously not symmetric (oriented). The path is > from 'emacs' to 'libffi'. > > It appears to me not clear in '--help'. > > display the shortest path between the given nodes =E2=80=98--help=E2=80=99 is not a substitute for the manual though. Do you= have another wording proposal in mind that is as concise? > Well, I am already bikeshedding but the CLI "guix graph emacs > --path-to libffi" appears to me clearer (or '--why' as "why" is > mentioned and underlined in the doc :-)). Actually, as things are, the location of =E2=80=98--path=E2=80=99 on the co= mmand line does not matter at all. I don=E2=80=99t think it=E2=80=99s worth changing. As for =E2=80=98--path-to=E2=80=99 instead of =E2=80=98--path=E2=80=99: I t= hink a path in common language is directed (one follows a path from one place to another). >> There=E2=80=99s a bikeshedding opportunity in the last patch: should it = go >> in =E2=80=98guix graph=E2=80=99 or elsewhere? I think =E2=80=98guix gra= ph=E2=80=99 is a good home >> for that, and could eventually include more graph queries. For >> instance, =E2=80=98guix refresh -l=E2=80=99 could very well live in =E2= =80=98guix graph=E2=80=99. > > I do not have a strong opinion. Good! I knew there=E2=80=99d be candidates for the bikeshedding opportunit= y. :-) > The "graph" subcommand fits well. But for example: > > guix show emacs --why libffi > guix search emacs --why libffi > > make sense too -- at least to me. ;-) Dunno, I=E2=80=99m not convinced. > And bikeshedding again, there is a temptation to pipe the current CLI: > > guix graph --path emacs libffi | guix show =E2=80=98guix graph --path emacs libffi | xargs guix show=E2=80=99 Though =E2=80=98guix show=E2=80=99 appears to ignore all but one argument, = uh. Thanks! Ludo=E2=80=99.