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 eNKGBnUpuF63HwAA0tVLHw (envelope-from ) for ; Sun, 10 May 2020 16:19:01 +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 UFnmKYIpuF5KMwAAB5/wlQ (envelope-from ) for ; Sun, 10 May 2020 16:19:14 +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 2D481940C62 for ; Sun, 10 May 2020 16:19:12 +0000 (UTC) Received: from localhost ([::1]:37978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXofY-0001M0-Tl for larch@yhetil.org; Sun, 10 May 2020 12:19:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXofO-0001Lt-F3 for guix-patches@gnu.org; Sun, 10 May 2020 12:19:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXofO-0000TE-2H for guix-patches@gnu.org; Sun, 10 May 2020 12:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jXofN-0006wH-UW for guix-patches@gnu.org; Sun, 10 May 2020 12:19:01 -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 16:19:01 +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.158912751926636 (code B ref 41164); Sun, 10 May 2020 16:19:01 +0000 Received: (at 41164) by debbugs.gnu.org; 10 May 2020 16:18:39 +0000 Received: from localhost ([127.0.0.1]:50292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXof1-0006vY-Kg for submit@debbugs.gnu.org; Sun, 10 May 2020 12:18:39 -0400 Received: from mail-qv1-f67.google.com ([209.85.219.67]:44078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXof0-0006vJ-44 for 41164@debbugs.gnu.org; Sun, 10 May 2020 12:18:38 -0400 Received: by mail-qv1-f67.google.com with SMTP id ck5so3409151qvb.11 for <41164@debbugs.gnu.org>; Sun, 10 May 2020 09:18:38 -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=t80B2J075llaBGADqcKss71SPhA4L0Bdc2SBopO/GeM=; b=DH/MXaHghfLBQ5H6eq2b3hywkhOXN4v8ecbfz6OPLrwtccrOu+zr1RmQ9lI0oBTgVy uNgC96E68Oh7k5yU1kui5qlMmPnIM7Z2/5VG5fgj36IKE/XiM/Ii3lefJhiZejZIiDT/ zjGH3+pud/VLCqN0ybh4zlCpIKjgO3ImYpg/4Yxc8JbD0b1PuORmFlody3Pw+sf9Uo8r 6/VBi6x/YNPCzmLfmtpOpv4aR3g81Dzxnz1tKJC1uwC1VifeJSRwq2lbd2i/x0nNRKDU TPgjzS0SJzoCAnvpRPx16SaGeCcHyiGqXAFm7aECJfTzs3k86sxOo6GZ8LNM1m5/BJYX 7SIg== 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=t80B2J075llaBGADqcKss71SPhA4L0Bdc2SBopO/GeM=; b=ei2GU4l3DRbO64MHFNBwPnhnnWbYQkUKd6dqM4A0LtiMAJ6fe4PhePLd5VNDe/kEdM B7/M5BtMLT/4o+FasB/XDjn6b9+Qzj/Wrtz8F1Ehp8lqBf86vS0YYfXRpqG53o43sPJG d9rGnPkhug56L9tyawQu2RmwLiW4e8LWbRWiadZjwxfgN+0DWhawzD3mSnNim3R7QRRH 7L/q84ScK8OhsPJxxu78InJx5Nmsd8Va8kA5o+umq045XrkJP/DKDJ6s7EPr4yoHv1ST xKtOU4Kh60WExHW9bYgzMh1sVZ9qA9sBZS7gUvN6UdbmUixz68Fi5sjSCjU+PHNc1smQ oIIA== X-Gm-Message-State: AGi0PuaqIoTWR9HlEJJU+YWA/iLyhKqotzi7ZCqPdcx+A76seThNe6PI KoE3HWieZ7N7Oe8Aa48QSU8Q2fG5qzfTlmY4Fs/i0lJp X-Google-Smtp-Source: APiQypJ9huU+nByp6iXa7czPYOLcSqN4O9R+KJ/Rn4SZF6zLPtDuXhoyziV4ty5jyOAGh72md8uNvb1s87LLWgTKpDQ= X-Received: by 2002:ad4:5604:: with SMTP id ca4mr11759422qvb.6.1589127512467; Sun, 10 May 2020 09:18:32 -0700 (PDT) MIME-Version: 1.0 References: <20200509230401.28364-1-ludo@gnu.org> <873687an8u.fsf@gnu.org> In-Reply-To: <873687an8u.fsf@gnu.org> From: zimoun Date: Sun, 10 May 2020 18:18:21 +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=DH/MXaHg; 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.53893550992712]; 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)[]; 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]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[41164@debbugs.gnu.org]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[209.51.188.17:from]; 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: SrIKXVPrEMb5 Hi Ludo, Reproducing the example from the manual leads to this error: --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix graph --path -t references libreoffice llvm guix graph: error: no path from '/gnu/store/rd24gl402vy5g5sm3azhq13mwdg5fbi1-libreoffice-6.4.2.2' to '/gnu/store/bcgnx704v408sr7lcy480wcnbkcixwrw-llvm-10.0.0-opt-viewer' --8<---------------cut here---------------end--------------->8--- On Sun, 10 May 2020 at 16:16, Ludovic Court=C3=A8s wrote: > > 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 y= ou have another Yes for sure. '--help' is only a remind. I mean I use it like that: I know something but I do not remember the exact details on how to use it (option name, arguments order, etc.) > wording proposal in mind that is as concise? display the shortest path from node1 to node2 > As for =E2=80=98--path-to=E2=80=99 instead of =E2=80=98--path=E2=80=99: I= think a path in common > language is directed (one follows a path from one place to another). My english is probably not enough good. (Note that is the same for me with the french word "chemin".) To me, "path" is often ambiguous because sometimes it means oriented and sometimes not; depending on the context: topology, graph theory, common life: synonymous of road or track and synonymous of route or direction. This ambiguity added to the non positional option '--path' appears to me confusing from where to where. My 2 remarks come from this ambiguity of the word "path". Well, maybe it is only me. > > 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. The main issue with "search" is that the subcommand accepts an regxexps and so it breaks consistency. Therefore, I answer to myself: it is a bad idea. :-) > > 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. Yes. Because it is a pure alias of "guix package --show=3D'. Cheers, simon