From: "Ludovic Courtès" <ludo@gnu.org>
To: 41164@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>
Subject: [bug#41164] [PATCH 0/3] Add 'guix graph --path'
Date: Sun, 10 May 2020 01:04:01 +0200 [thread overview]
Message-ID: <20200509230401.28364-1-ludo@gnu.org> (raw)
Hello!
The attached patches add ‘guix graph --path’, a command to display
the shortest path between two nodes:
--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix graph --path emacs libffi
emacs@26.3
gnutls@3.6.9
guile@2.2.6
libffi@3.2.1
$ ./pre-inst-env guix graph --path -t derivation emacs libffi
/gnu/store/aswcmllr300bbsiv1i63idpivzkzq2f2-emacs-26.3.drv
/gnu/store/dfcgalgx2fnc7alsi0qdjfzghn517ha3-libffi-3.2.1.drv
$ ./pre-inst-env guix graph --path -t references libreoffice llvm@9
/gnu/store/1rbww1g8q5sc9x3v318wp6xn62832n5m-libreoffice-6.4.2.2
/gnu/store/ir05kr2z31xgaih9k5z4xah7k3gqs0sk-libepoxy-1.5.4
/gnu/store/2mf0clz9w64diy0kz11qcs4q5wg9hc6z-mesa-19.3.4
/gnu/store/vsd496n5arjjlriqw914syirhyscq8q1-llvm-9.0.1
--8<---------------cut here---------------end--------------->8---
It was long overdue, and it’s rather cool.
There’s a bikeshedding opportunity in the last patch: should it go
in ‘guix graph’ or elsewhere? I think ‘guix graph’ is a good home
for that, and could eventually include more graph queries. For
instance, ‘guix refresh -l’ could very well live in ‘guix graph’.
Feedback welcome!
Ludo’.
Ludovic Courtès (3):
graph: reference/referrer node types work with graph traversal.
graph: Add 'shortest-path'.
guix graph: Add '--path'.
doc/guix.texi | 48 ++++++++++++++++++++++-
guix/graph.scm | 69 ++++++++++++++++++++++++++++++++-
guix/scripts/graph.scm | 69 +++++++++++++++++++++++++++------
tests/graph.scm | 88 ++++++++++++++++++++++++++++++++++++++++++
tests/guix-graph.sh | 16 +++++++-
5 files changed, 274 insertions(+), 16 deletions(-)
--
2.26.2
next reply other threads:[~2020-05-09 23:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-09 23:04 Ludovic Courtès [this message]
2020-05-09 23:27 ` [bug#41164] [PATCH 1/3] graph: reference/referrer node types work with graph traversal Ludovic Courtès
2020-05-09 23:27 ` [bug#41164] [PATCH 2/3] graph: Add 'shortest-path' Ludovic Courtès
2020-05-09 23:27 ` [bug#41164] [PATCH 3/3] guix graph: Add '--path' Ludovic Courtès
2020-05-10 10:51 ` [bug#41164] [PATCH 0/3] Add 'guix graph --path' zimoun
2020-05-10 14:16 ` Ludovic Courtès
2020-05-10 16:18 ` zimoun
2020-05-10 19:27 ` zimoun
2020-05-11 12:33 ` Ludovic Courtès
2020-05-11 12:36 ` Ludovic Courtès
2020-05-11 14:02 ` zimoun
2020-05-11 20:55 ` Ludovic Courtès
2020-05-11 22:13 ` zimoun
2020-05-12 8:41 ` Ludovic Courtès
2020-05-12 11:56 ` zimoun
2020-05-11 21:36 ` bug#41164: " Ludovic Courtès
2020-05-10 23:45 ` [bug#41164] Fix pipe 'guix show' zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200509230401.28364-1-ludo@gnu.org \
--to=ludo@gnu.org \
--cc=41164@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).