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 QBRjFmJRHGADDQAA0tVLHw (envelope-from ) for ; Thu, 04 Feb 2021 19:56:18 +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 +NTLEWJRHGDJGwAAbx9fmQ (envelope-from ) for ; Thu, 04 Feb 2021 19:56:18 +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 1300F9402BD for ; Thu, 4 Feb 2021 19:56:16 +0000 (UTC) Received: from localhost ([::1]:39850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7kjf-0004vN-Nz for larch@yhetil.org; Thu, 04 Feb 2021 14:56:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7khX-0002bs-1D for bug-guix@gnu.org; Thu, 04 Feb 2021 14:54:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58997) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7khW-0003aH-PL for bug-guix@gnu.org; Thu, 04 Feb 2021 14:54:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l7khW-0000ol-KD for bug-guix@gnu.org; Thu, 04 Feb 2021 14:54:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46303: Typo helper doesn't always know which command is missing Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 Feb 2021 19:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46303 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zimoun X-Debbugs-Original-Cc: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16124684303123 (code B ref -1); Thu, 04 Feb 2021 19:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Feb 2021 19:53:50 +0000 Received: from localhost ([127.0.0.1]:42310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7khK-0000oI-0r for submit@debbugs.gnu.org; Thu, 04 Feb 2021 14:53:50 -0500 Received: from lists.gnu.org ([209.51.188.17]:55926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7khG-0000o6-RH for submit@debbugs.gnu.org; Thu, 04 Feb 2021 14:53:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7khG-00026q-GZ for bug-guix@gnu.org; Thu, 04 Feb 2021 14:53:46 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:56587) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7khE-0003S8-Oq for bug-guix@gnu.org; Thu, 04 Feb 2021 14:53:46 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8B9C95C0087; Thu, 4 Feb 2021 14:53:43 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 04 Feb 2021 14:53:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=E+VeGl9Axk0kkkjNT64zGW5V cTaVfOFLRIVKdmDW8Dg=; b=BnfHZHKKo2yg8q1sNhGCR6AmGPChqTUCzdHreeBq Mu4gHJFJTXkunJr04sxcn52IfJ+jInYZxhmAJuKrdgnz00Ul6PMTUKLAgnN0uUAt RJH+eqOl1VDsSS/xJM1HPwd1sHBM99/8WR0ApkxBo4PJgHHSTeznnUz1ldlublHS HYg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=E+VeGl 9Axk0kkkjNT64zGW5VcTaVfOFLRIVKdmDW8Dg=; b=vYc7yVYKHA1BMptimROgF5 9Glhos0Pd9RhlB8HwUjRXgp3+QHFuZJ+x8sZTi8TTBjVDt3p8vIqonHUgfx89my2 YmR0qfJv87kAIenJiVUMXpJB9Qfd4ORD67nn1gL8nvoUlnbVP1l9QeO+6vEroZTz paUtd8GNANvsp6aVJOLRujErOFwIxvYZrhVPbP05wc5SEhsSdzBWTBQiNHwddGJf e5ZDoBSQBVB/6wUSK6TLiDNWOr2RigmSzp5L2eQT+tgvs9i3Uls6wgk/TeiqRvzX UepO8orlK32H2+Ncf2G/iIqtAdmELbAeOaZTBXHXOmz1dhseIXLCaw8cMtNt/unw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrgeeggdduvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgr rhhirdhnrghmvgeqnecuggftrfgrthhtvghrnhepvddvudegffefiedttdfhfedvuefhgf ekieekgeekveetgefhfeetgfegueduffeinecuffhomhgrihhnpehgnhhurdhorhhgnecu kfhppedutddtrdduuddrudeiledruddukeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: from localhost (pool-100-11-169-118.phlapa.fios.verizon.net [100.11.169.118]) by mail.messagingengine.com (Postfix) with ESMTPA id 2A5731080064; Thu, 4 Feb 2021 14:53:43 -0500 (EST) Date: Thu, 4 Feb 2021 14:53:41 -0500 From: Leo Famulari Message-ID: References: <20210115163732.53665-1-zimon.toutoune@gmail.com> <20210119212810.20681-1-zimon.toutoune@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210119212810.20681-1-zimon.toutoune@gmail.com> Received-SPF: pass client-ip=66.111.4.29; envelope-from=leo@famulari.name; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 46303@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.14 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=BnfHZHKK; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=vYc7yVYK; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 1300F9402BD X-Spam-Score: 0.14 X-Migadu-Scanner: scn1.migadu.com X-TUID: zaQfMnZqoMkB On Tue, Jan 19, 2021 at 10:28:08PM +0100, zimoun wrote: > * guix/utils.scm (string-distance): New procedure. > (string-closest): New procedure. > * tests/utils.scm: Test it. This is a great feature, but I found a tricky failure: ------ $ ./pre-inst-env guix system vm --no-grafts doc/os-config-bare-bones.texi --substitute-urls=https://ci.guix.gnu.org -d guix: system: command not found hint: Did you mean `system'? Try `guix --help' for more information. $ guix environment guix $ ./pre-inst-env guix system vm --no-grafts doc/os-config-bare-bones.texi -d /gnu/store/pw453xpixcll02w1nz9mfggm2cn0jqpx-run-vm.sh.drv ------ It will only be seen by developers, so not a big deal, but it would still be nice to correctly report which command is missing. Some run-time dependency of guix is missing.