From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YN3PCzSqb2SyTQAASxT56A (envelope-from ) for ; Thu, 25 May 2023 20:34:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mD5kCzSqb2RsQAAAauVa8A (envelope-from ) for ; Thu, 25 May 2023 20:34:28 +0200 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 EE2E0FBF8 for ; Thu, 25 May 2023 20:34:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2Fmn-0000LP-A9; Thu, 25 May 2023 14:34:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2Fml-0000Ka-Tc for guix-patches@gnu.org; Thu, 25 May 2023 14:34:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2Fml-0003A8-LI for guix-patches@gnu.org; Thu, 25 May 2023 14:34:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q2Fml-0000F8-HX for guix-patches@gnu.org; Thu, 25 May 2023 14:34:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62264] [PATCH core-updates 0/6] Add `guix index` subcommand Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 May 2023 18:34:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62264 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: "Antoine R. Dumont \(@ardumont\)" , 62264@debbugs.gnu.org Received: via spool by 62264-submit@debbugs.gnu.org id=B62264.1685039640889 (code B ref 62264); Thu, 25 May 2023 18:34:03 +0000 Received: (at 62264) by debbugs.gnu.org; 25 May 2023 18:34:00 +0000 Received: from localhost ([127.0.0.1]:48105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2Fmh-0000EB-NA for submit@debbugs.gnu.org; Thu, 25 May 2023 14:34:00 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:41416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2Fmb-0000D6-S0 for 62264@debbugs.gnu.org; Thu, 25 May 2023 14:33:54 -0400 Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-3f6e67df911so687135e9.1 for <62264@debbugs.gnu.org>; Thu, 25 May 2023 11:33:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685039628; x=1687631628; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=7+cjozpUwxHZ32F0iOEnW2SfjWn/hX+2ko7Keru7ksk=; b=I6TtV0TzpKdgPboqseuUIJBi+xGjhSmP8HGkWuUUAS5hFEM1bWgOxzzlHg5DYJ12I6 PPRKcHFlOnwwDgArEje/wLRjd8pn+Ci03QOjc841M1eusVmYtGttrTIxtXMrN+H333fR GLvWbCSgEOLyGtMiggpJvBgj0OEAVPE/uhELKlA/NdE+VBNMB+/hpZbHeBJpuUzWyCPu RfbJlaExhzDllQ5x98zeRkA30ZuRAu2B/wAqInYpkP3XnliMPLWU3mltQqQ6dZk2SMR5 VoXP+oC/r9VNyBFr/uxgMEv5EvLjiFCEVeKfCkZZEM4wqy2NsF81T6m4AWfDlvVJEBXp DpVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685039628; x=1687631628; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7+cjozpUwxHZ32F0iOEnW2SfjWn/hX+2ko7Keru7ksk=; b=awqeaU/QlTUIDaeK5JcfktoEjG+f7/qD3Uh8DirtCXBGmZIGUH+x661drDFs5qzIZk zXmmbXFIuP04dvh6F9QPovqobvOJLKEVRK0FRcXA14kmHxYgkBKCmrUFALOXjwFE0vfB rMu0aB4IFctlACz85HVGb/bTuINjz1CeMNtjSNeNrx0AfFDHJEdIfPDlF5jy4vb1e1N5 sCURzmmPgc/RWvMTa9WT9MytHaNp7i3s8Ii+vWxAosgW6AQ3xiTW9egcmU6gle/0xtWt BYhbbA/bOjqNbvDcBYZJikEstugJwbmHT1yxpNe8JIRlS0Ty2+GWWkE2uLsyYTzBT4wJ ptZw== X-Gm-Message-State: AC+VfDxSGSb06SJY3nSdyDYQyU0wfAsky3wkfP957zyDFFClqDVUBE9V WAfmR8ZItB1dsih9Y2z4eW3/CximCdM= X-Google-Smtp-Source: ACHHUZ4U4vYTLGSwyzZ/pqw0XGQb3y4tdJHCTgknHAhGZ9WJuD/h5DwArGSedArf2XAFkNZsKEHYKw== X-Received: by 2002:a05:600c:3c86:b0:3f5:f543:d81f with SMTP id bg6-20020a05600c3c8600b003f5f543d81fmr15506293wmb.3.1685039628298; Thu, 25 May 2023 11:33:48 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id c12-20020a7bc84c000000b003f3e50eb606sm2881106wml.13.2023.05.25.11.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 11:33:48 -0700 (PDT) From: Simon Tournier In-Reply-To: <87lehdkd1u.fsf@gnu.org> References: <87v8iy59j1.fsf@gmail.com> <87cz4mt0ao.fsf@gnu.org> <87jzx1tl34.fsf_-_@gnu.org> <87edn8xq7c.fsf@gmail.com> <87lehdkd1u.fsf@gnu.org> Date: Thu, 25 May 2023 18:20:11 +0200 Message-ID: <877cswwfgk.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685039668; a=rsa-sha256; cv=none; b=JT5avuA0ituHWj/7i41xSgkp0STSfVadRoDkLyMFNbb9NwNnC01g2QdS8Nd9Q51Rzth8Vc B7a561LKinWQzs3QZ97ZP5tdaJDi+WrvfQHuh3K+hxthWW8pYztMtyiNLIFec058qCsIL/ aSwPpbDW74LyV4IxODf8DQYlKBpy/2UBZL/jImOAs9MkFqC97LuT4bLVLnRN1g2vAcWf7k iaJgTaeOoGmMiS2bfwilqIauqCq5yAAzEt/ZGcQdusrJci6eJdCzWuIsjPmGq+Rz8UDOzG 1GeztRj8k0pyGpsLozc2IIV70FezSQBOfWtJTA0zS0zzfyu/Mgpe+zH6LkSpGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=I6TtV0Tz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685039668; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7+cjozpUwxHZ32F0iOEnW2SfjWn/hX+2ko7Keru7ksk=; b=CjprcwCGDNG6iX3oLcQBr0o9iTbkSQcEVKo5k+M9FxxyqsZ/VanHOYWMSnkWDdZFuJIW+M NZvT6aRDCtUsAmwZ2AnY5cv9tUDuhFbUgEFGMmLEadPavg17CylLKOmvJh6VWG6N9Ymjmy 23f/+OhnnTKOw+Szv1TKiEPt2ouD8GtZGYOBKvYtDw2opSjXj/QzFhD4wnk26ZJn1KrJNI EH/4Cbl4xTfW0Q+3pjlaGyKLw/5JWQ7MSEvFIEzfNlZn3n1fdPlsRdQmfGL1DxpbsVfheS lPyFzl9vFKr1Y6T6hIC4vI21WIKIKa2OE9TGi4RKrbj1RhrVCL+0agKI9C3xTA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=I6TtV0Tz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.83 X-Spam-Score: 5.83 X-Migadu-Queue-Id: EE2E0FBF8 X-TUID: A6EYKa1N7nK1 Hi Ludo, On mer., 24 mai 2023 at 16:40, Ludovic Court=C3=A8s wrote: >> Well, I have some patches that rename to =E2=80=9Cguix file=E2=80=9D. :-) >> >> Well, =E2=80=99guix locale=E2=80=99 appears to me also fine. I was meaning =E2=80=99locate=E2=80=99 not =E2=80=99locale=E2=80=99, sorry = for the typo. > =E2=80=9Clocate=E2=80=9D sounds better to me, notably because it=E2=80=99= s a verb. Yeah, =E2=80=99locate=E2=80=99 is better. Especially when one knows about = the good ol=E2=80=99 locate program. ;-) >>> - [ ] 'search' action removed; option added to force reindexing >> >> I have an unpolished stuff that do: >> >> guix file --index=3DTYPE >> guix file foo bar >> >> Somehow, =E2=80=9Cguix file =E2=80=9D the default action (=3D sea= rch). And then >> some action with --action (as index or else). >> >>> - [ ] warning printed when database is too old >>> - [ ] start anew when database is very old >>> - [ ] documentation written >> >> I have started=E2=80=A6 but I am not very far. :-) > > Could you share what you have? I will. Do you prefer a patch? Or that I push to the branch? > (I didn=E2=80=99t expect feedback so I thought I=E2=80=99d end up hack on= the stuff > head-down. Now we need to synchronize. :-)) There is much to synchronize because I did few. :-) My concerns were: 1. about the name =E2=80=9Cguix index=E2=80=9D and now it=E2=80=99s fixed = by =E2=80=9Cguix locate=E2=80=9D ;-) and 2. about the CLI; the default =E2=80=9Cguix locate =E2=80=9D sho= uld be the search action. The update action should be triggered with an option as =E2=80=9C-i/--index=3D=E2=80=9D. Cheers, simon