From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sIUFOAfdt14OcgAA0tVLHw (envelope-from ) for ; Sun, 10 May 2020 10:52:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eOzgGRXdt17wHwAAbx9fmQ (envelope-from ) for ; Sun, 10 May 2020 10:53:09 +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 09CF3940B6B for ; Sun, 10 May 2020 10:53:07 +0000 (UTC) Received: from localhost ([::1]:49996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXjZy-00076N-7k for larch@yhetil.org; Sun, 10 May 2020 06:53:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXjZu-00076E-Re for guix-patches@gnu.org; Sun, 10 May 2020 06:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37557) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXjZu-0003RE-I2 for guix-patches@gnu.org; Sun, 10 May 2020 06:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jXjZu-0000PD-FC for guix-patches@gnu.org; Sun, 10 May 2020 06:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41164] [PATCH 0/3] Add 'guix graph --path' Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 10 May 2020 10:53: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 41164@debbugs.gnu.org Received: via spool by 41164-submit@debbugs.gnu.org id=B41164.15891079221481 (code B ref 41164); Sun, 10 May 2020 10:53:02 +0000 Received: (at 41164) by debbugs.gnu.org; 10 May 2020 10:52:02 +0000 Received: from localhost ([127.0.0.1]:49103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXjYw-0000Nf-6K for submit@debbugs.gnu.org; Sun, 10 May 2020 06:52:02 -0400 Received: from mail-qv1-f67.google.com ([209.85.219.67]:41569) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXjYr-0000NH-FD for 41164@debbugs.gnu.org; Sun, 10 May 2020 06:52:01 -0400 Received: by mail-qv1-f67.google.com with SMTP id h6so3157066qvz.8 for <41164@debbugs.gnu.org>; Sun, 10 May 2020 03:51:57 -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=7NEixNUMvFeE5w2tUg2ZUIObyVi3L4jsL3TvH8z8CsY=; b=jJDVH+qoTolqKLUOWwt9wNbkOBk3rHT8pkTccZmSTkKk11oN0LzcMCHH9N9csjC3IJ B894OdJH75tvBNZ9p6/NEbkiQJAOzYhGKTGKMVqI7kxO+imOzwNjSVJigxql6x4b+kmw +A9u+qaihYutOQmU2MIilOhPDxs+xtR+0q0eNCIpe+fRKTbtdY1cUY99zZZIj3c8ADPf CebqW2uMcwhHdsxoN7N/8LOaJe2aI4DooEWZJ4LvFcJLoReIl0/kxSQvNpRbnRMd5GIV JmsnM9Gg4trzVZwHLitABb5jsPLX9cIRGDN0BFvgsmRDpxoieR8/rNVQKcXV6Urv9sb/ dyPA== 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=7NEixNUMvFeE5w2tUg2ZUIObyVi3L4jsL3TvH8z8CsY=; b=ODdzAwTmpjQntvSOBmXMDfuUehBsEOYEefdmgY4an04sWSfPah4kzZjVnKBfp/9KvF QNOAygzUDDCm+KKzAVz4R6NfcCu43L5+x/I/gb/UXZYQBQfPuDWHkzazk0QBGMl2cQzz /7OVP6pIL4esSjnRpId7r09ENC/VXzBAj3K9l3YMpKpcDNuSZtEzyeYt5TaxGUhiElmz JK8PHtjUQ2Kb5TMWrdfYh1Dznl28vlL7pnmkubP9YoPbKb+oH0HM/PyIIug9+V3Jphbb EiG4Y+kADX917XJdvDhA5iTt0wJ6SVE+NEgTohsf1Tzhhrk6U/WgjI+ujkbStWvjj8/+ Y8ww== X-Gm-Message-State: AGi0PuYqPJn92nmzh4UQUHG18NkcfL+3YkV1VaX+YBrmx8zyL6YB3mJ2 Y68QJ6row5D6zv/SUPimn3U9MdCFdpdecJiFgwE= X-Google-Smtp-Source: APiQypKEcuVOxkutTg0msDenu3YZKKBWNo/XRbFqnLpQ9m6O1qDVfAm+xXwcPhxXwBYI3o0ybWpgXgyp0xE1ZG6tFzY= X-Received: by 2002:ad4:4c92:: with SMTP id bs18mr10820431qvb.67.1589107911661; Sun, 10 May 2020 03:51:51 -0700 (PDT) MIME-Version: 1.0 References: <20200509230401.28364-1-ludo@gnu.org> In-Reply-To: <20200509230401.28364-1-ludo@gnu.org> From: zimoun Date: Sun, 10 May 2020 12:51:40 +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 X-Spam-Score: 0.09 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=jJDVH+qo; 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-Scan-Result: default: False [0.09 / 13.00]; GENERIC_REPUTATION(0.00)[-0.53890792692931]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; R_DKIM_REJECT(1.00)[gmail.com:s=20161025]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; FREEMAIL_FROM(0.00)[gmail.com]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.08), country: US(-0.00), ip: 209.51.188.17(-0.54)]; DKIM_TRACE(0.00)[gmail.com:-]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[zimontoutoune@gmail.com,guix-patches-bounces@gnu.org]; ARC_NA(0.00)[]; URIBL_BLOCKED(0.00)[gnu.org:email,3.0.0.3:email,3.0.0.2:email,3.6.0.9:email,26.0.0.3:email]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[41164@debbugs.gnu.org]; HAS_LIST_UNSUB(-0.01)[]; DBL_PROHIBIT(0.00)[3.6.0.9:email,3.0.0.2:email,26.0.0.3:email,3.0.0.3:email]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; RCVD_COUNT_SEVEN(0.00)[8]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed),none] X-TUID: fx8+ndGwq+4P Hi Ludo, Awesome! 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. ;-) 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'. --8<---------------cut here---------------start------------->8--- display the shortest path between the given nodes --8<---------------cut here---------------end-------------->8--- 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 :-)). > There=E2=80=99s a bikeshedding opportunity in the last patch: should it g= o > in =E2=80=98guix graph=E2=80=99 or elsewhere? I think =E2=80=98guix grap= h=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. 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. ;-) And bikeshedding again, there is a temptation to pipe the current CLI: guix graph --path emacs libffi | guix show which does not obviously work because of "show". From my point of view, this CLI seems good: guix search emacs --why libffi | guix show --format=3Doneline emacs@26.3 The extensible, customizable, self-documenting text editor gnutls@3.6.9 Transport layer security library guile@3.0.2 Scheme implementation intended especially for extensions libffi@3.3 Foreign function call interface library And '--format' could be 'recutils' or whatever. But that another story. :-= ) Last, it is not new but confusing, the node "guile@3.0.2" is returned but it is reachable with "guile-next". All the best, simon