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 gGXqDI8AgWQWOwEASxT56A (envelope-from ) for ; Thu, 08 Jun 2023 00:11:27 +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 4A32DI8AgWT1fgEAauVa8A (envelope-from ) for ; Thu, 08 Jun 2023 00:11:27 +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 DE2A025D6F for ; Thu, 8 Jun 2023 00:11:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q71Mw-0005d9-Kz; Wed, 07 Jun 2023 18:11:06 -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 1q71Mt-0005bL-GD; Wed, 07 Jun 2023 18:11: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 1q71Mt-00008U-7z; Wed, 07 Jun 2023 18:11:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q71Mt-0007NS-2U; Wed, 07 Jun 2023 18:11:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62264] [PATCH v2 0/3] Add 'guix locate' Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: antoine.romain.dumont@gmail.com, guix-devel@gnu.org, guix-patches@gnu.org Resent-Date: Wed, 07 Jun 2023 22:11: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: 62264@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Antoine R. Dumont , guix-devel@gnu.org X-Debbugs-Original-Xcc: Antoine R. Dumont , guix-devel@gnu.org Received: via spool by 62264-submit@debbugs.gnu.org id=B62264.168617583928285 (code B ref 62264); Wed, 07 Jun 2023 22:11:03 +0000 Received: (at 62264) by debbugs.gnu.org; 7 Jun 2023 22:10:39 +0000 Received: from localhost ([127.0.0.1]:55120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q71MU-0007M3-JO for submit@debbugs.gnu.org; Wed, 07 Jun 2023 18:10:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q71MQ-0007Lb-Ey for 62264@debbugs.gnu.org; Wed, 07 Jun 2023 18:10:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q71MJ-00006K-Fd; Wed, 07 Jun 2023 18:10:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=1gjckSQobzNGAOvXjy8Zp/DdyZUuA+9LJwvudzGG/Yc=; b=M7Pg9G7nvGJCmDcVs7ix WAV4uBrrF70avFXFwNALohJxoD7v36Fo56i01m18AFLanzEPPOXB7EP7Pav7YbwtbSJgavN3CY5xk 82O/+Wi10rJUgdd2mgVYbyCXecYgTAAeGWs7titsmL5f5qWNRl3J1spfM95BWhKt3KKDWCPQmHUzp l2/qW8fAk+L/UxufV/dHiJLShmeMWSWI6Qx+0wNgMbM+Bnq3ApZHCanqIOrUd34l222bm8tp2CGBc jGNbLcN5RFgGPjH05RtCp+xuMVdiyUEoj9+t1fNRmVWOyJApCux6wnhuCFiw4k3kqsrJOW1od+B5n Ek3/8sofTqBNnQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q71M4-0007hQ-IY; Wed, 07 Jun 2023 18:10:27 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Thu, 8 Jun 2023 00:09:51 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: <87zg5e27cd.fsf_-_@gnu.org> References: <87zg5e27cd.fsf_-_@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686175887; 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=1gjckSQobzNGAOvXjy8Zp/DdyZUuA+9LJwvudzGG/Yc=; b=UHnyoSexlI1Aop+uwQaJnB9adldToy1GwB4gwfoDeKuGeOF+KO29CcT1T0zM/KAeuaKgaH czm/vU7RS7EpNUEgHeEvhjg5dzgKxO5nyphJRKv6yxkCPVCmo383OYeLHGBnwpY0yqC1Rw MWdFSo9HDAoJVJc2t9FoEOB9vEUYvm/Vwmcj0qUiuk0DvsgRYbRR06S+htJBm7GpL31DM1 PU0NX9+dbITEwAer+bZBwn5Pvr1qNeEqXdbgrCEDpJeoJ2cdGMIav7/OpHOpeiA+2U2i8s lgSiVbx2v8clLrOL4S4k8SOYUEVSuzH9JkPUIzYk8LLxshKTx8WWa0OHyrTK4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=M7Pg9G7n; dmarc=pass (policy=none) header.from=gnu.org; 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-Seal: i=1; s=key1; d=yhetil.org; t=1686175887; a=rsa-sha256; cv=none; b=WH6C+jmHOouxeUwmQ5NsY2UfwNxcCSAGQv523GEQx9iWeiQIYLeDpmnHlaV+AHQ6Ui/0XU peBrnTaLafOoRPKqdAxxYmA3uEqoLCDPoAqjb+KpLMHuiwojPezdCk0k+ekqww9cKhUqwf JmPPY74Xkf5rld/rtGB56K9oU40+pgVO8TWOgACO2lj+Dl2swHB+H3405xEZmgr62+/Ozf e3Ti1GGFfloOWI/cMsZd1i3JVZvdK8Jv8WbMJ90CFGo54rjTJ7alDc3+5kXMMwnLpRhRzv 0Dvx9O5nqwuH74Gonnm/tX7sA4atJa1vkcdjrAfAC0fRnfkhn856+aHToF0SGA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.60 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=M7Pg9G7n; dmarc=pass (policy=none) header.from=gnu.org; 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-Queue-Id: DE2A025D6F X-Spam-Score: -1.60 X-TUID: nnYXlVil/yHK Hello! Here is the “camera-ready” version of the new ‘guix locate’ command (formerly ‘guix index’) that Antoine and myself have worked on. I think it’s ready to go. This version relies only on local knowledge, which means you can only find packages already in your store. In a future iteration, we’ll add an optional mechanism to download the database from elsewhere. Thoughts? Ludo’. Ludovic Courtès (3): store: Tolerate non-existent GC root directories. Add 'guix locate'. DRAFT news: Add entry for 'guix locate'. Makefile.am | 2 + doc/guix.texi | 118 ++++++++ etc/news.scm | 17 ++ guix/scripts/locate.scm | 657 ++++++++++++++++++++++++++++++++++++++++ guix/store/roots.scm | 12 +- po/guix/POTFILES.in | 1 + tests/guix-locate.sh | 72 +++++ tests/store-roots.scm | 18 +- 8 files changed, 892 insertions(+), 5 deletions(-) create mode 100644 guix/scripts/locate.scm create mode 100755 tests/guix-locate.sh base-commit: e8f9fb3e03ea8fee0e13f13706a6b16414f74a7b -- 2.40.1