From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QNcQFLCJj2P3wgAAbAwnHQ (envelope-from ) for ; Tue, 06 Dec 2022 19:28:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mNoUFLCJj2OzdgAA9RJhRA (envelope-from ) for ; Tue, 06 Dec 2022 19:28:00 +0100 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 089103990F for ; Tue, 6 Dec 2022 19:28:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2cf8-0003eO-Oz; Tue, 06 Dec 2022 13:27:26 -0500 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 1p2cf6-0003eA-Sn for guix-devel@gnu.org; Tue, 06 Dec 2022 13:27:24 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2cf4-000856-Jd; Tue, 06 Dec 2022 13:27:24 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id E9D3F40DE6; Tue, 6 Dec 2022 19:27:16 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 40R-gAEBWPcp; Tue, 6 Dec 2022 19:27:15 +0100 (CET) Content-Type: multipart/signed; boundary=27faab957568e5883ec1499718801c122edac868276e74397d7cfce146d5; micalg=pgp-sha512; protocol="application/pgp-signature" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1670351235; bh=tlBy4wNAdwHBQ8rJC7GOaeMNlDC5bNwY+uHukYlGGwA=; h=Date:Cc:Subject:From:To:References:In-Reply-To; b=hgUR5FiBIn9W/ozEcSCZ/r9ZTZesdQm9Ok7o+eFvTHmDP/w1HF3z4LNem61nmYxis OOT3bjTcmjGF5+9GayNNeYL2tfXwg8PUcVk5Bz1ijFkaas0WmcN8jM5rb982ZaRpNJ bxJj7rYST9BHoWnx04Tcke6RveWuS4uFEYjmXaU2djZt3W5b9ztxA07CeEGZ0n9CZ3 tQw/gkZQXyZ6tMuZYXVlA4bUAXfkeFDRS0D6E1oAOY2Y+mAU6SCSVrwt3+M3IXSrPC qW4nPwmok5YCLXQL8MsK2O7W6mAD6yyVOa6wewEuyf1/kWFXc4DbERN6FuVohqmOjo lNMZziIcHzMug== Date: Tue, 06 Dec 2022 18:27:10 +0000 Message-Id: Cc: Subject: Re: File search From: "(" To: =?utf-8?q?Ludovic_Court=C3=A8s?= , "Antoine R. Dumont (@ardumont)" References: <87pmd1r8kt.fsf@gmail.com> <87mt85r7h8.fsf@gmail.com> <87lenonydz.fsf@gnu.org> <877cz7qg80.fsf@gmail.com> <878rjkn949.fsf@gnu.org> In-Reply-To: <878rjkn949.fsf@gnu.org> Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, MIME_HEADER_CTYPE_ONLY=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670351280; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Dog0x0YRSK0CVn95/sq35zMdeK/P9swckuII53W+QPY=; b=eUJno9O691svhIee4tAkqmZrMngjBmV0wATtIJ+7en6wwDRtTuqLp7ofamhowMYQJF9t2M OTAlDBoYNJl8QUXUowLN81rGVuDn9tb6Omm90TGoY58IbD0bQHFLi/nXCKukd5DGZKYXZz reGeSXKxy6Q3qSN9+aJ+1h4zP49i8RCTucKZLweX9DklcsEMJNfZplUbWYiho75AcQ6wZJ YvblKmHeNqqNlMKuR8iHycS+PJEOt8vRZpSSFrgfVomz+qg8GxWIBYnI/kPZdT0LcCrbMj sysWA4NVce8HFqz28KPmR4/fptJxiwkCksVGwH6OUP00IvJCEU9eP5/r+f/OOw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670351280; a=rsa-sha256; cv=none; b=EF9xqNX1hQx/4HAkLJcvOomz4FvnY2uboxJ6gv1Qk217+3tpjfFxqQamqwlISUYV/Lxov5 HxpcScUmbxKlXuv2Q3umUmm6uZnLb1VYBEStoU8+aY5vn9bwd1QbMfojNYs8KHp26RUbtA vIiitJjhjtKv4ZOOS7NTfFZNO1TChsMGmGcsiNm904GCZH6ikK9YFwAfS/CJB7FAQBstFS 6O9tHZH+cK0zMm1KgQfeyqLKwtxiWtSFxwcMX66qsfx+qCVRNiArOldrj297OmPxsKtOUh kAU34pv/W2BVRruSShK+f08WISTbPSGqbu7uvBfbr6gpGa1FZlWZnuyIMx7oIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=hgUR5FiB; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=hgUR5FiB; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 089103990F X-Spam-Score: -3.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: OX/OOnc1KiDf --27faab957568e5883ec1499718801c122edac868276e74397d7cfce146d5 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Tue Dec 6, 2022 at 10:01 AM GMT, Ludovic Court=C3=A8s wrote: > The implementation based on manifests can of course miss packages, so > it=E2=80=99s a tradeoff. Purely local indexing will only find packages y= ou > already have anyway, so eventually we=E2=80=99ll need a second mode that = would > download a database. Someone on IRC suggested that we use GraphQL to allow us to request that a substitute server search for files in a database constructed using all the packages that have been built. I suggest something like this: # on the client when [built a package derivation] [add files to local database] when [user ran guix find] if [send find request to substitute server] didn't work [search through local database] [display result] # on the substitute server when [built a package definition] [add files to local database] when [user sent find request] [search through local database] [reply with result] -- ( --27faab957568e5883ec1499718801c122edac868276e74397d7cfce146d5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEE6Vh10NblKE5doNlW7ImHg/nqI20FAmOPiX8ACgkQ7ImHg/nq I22EhwwAialH/h3pPfvCBpWymgHPkWoWJn03D0fDjdcRN0tAn0m4lJzgWpKrv8RI Mi7gPpuquIsVYbxKMZwnm9faoEc5thwHlsXZ8dFGfGxo/S8Sg99I2KSpg/L8ndAK YpxPJxjNCdAcZ738bxo2S2AFipN4J79jlPOTFmpEjx5tabrzedWp3trmhM4b4CXs alO9odg9crKS5qi3WwpMScRs3PZupz9Cn/JJ1heRI098h3V0zYOKJPZoSO06Vcf3 4lHjWmZF8GHMP/g0lBBo5NaqKpzNMfn/apxnb3x+WcZGoy5WqwMDOuOEIDkuyG+s 6NOBgq4f4As6EWQEzmURT/qLR98FGDBl3//aOyXfFjH29YC3K8hnPHVe+pKkdxJ4 3gLRhx6QcJ/LpEQQjAFSrIc5XK/STE0RtOruMnaCNcxNJFWJa74c3wNoexwxmd5B DoA/nq/w+GhAOZaKgzC87q9fypusKx6RPFCCPDPzRQ68TJZb1KOoZ0STvVm/QHPf kwyRevkQ =SwY/ -----END PGP SIGNATURE----- --27faab957568e5883ec1499718801c122edac868276e74397d7cfce146d5--