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 lohHJFp2iV96HgAA0tVLHw (envelope-from ) for ; Fri, 16 Oct 2020 10:30:50 +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 2qGAH1p2iV+lQAAAB5/wlQ (envelope-from ) for ; Fri, 16 Oct 2020 10:30:50 +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 21A3994051E for ; Fri, 16 Oct 2020 10:30:50 +0000 (UTC) Received: from localhost ([::1]:40276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTN0b-0002tt-04 for larch@yhetil.org; Fri, 16 Oct 2020 06:30:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTN08-0002sW-MP for guix-devel@gnu.org; Fri, 16 Oct 2020 06:30:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50441) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTN08-0006AY-6h; Fri, 16 Oct 2020 06:30:20 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34978 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kTN02-0001iW-FY; Fri, 16 Oct 2020 06:30:15 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Pierre Neidhardt Subject: Re: File search progress: database review and question on triggers References: <87sgcuh8rb.fsf@ambrevar.xyz> <86imd4e7cr.fsf@gmail.com> <87eenspcf8.fsf@ambrevar.xyz> <865z94dz83.fsf@gmail.com> <87zh6gns4l.fsf@ambrevar.xyz> <87zh5c7hx6.fsf@ambrevar.xyz> <87k0w4zw8q.fsf@gnu.org> <875z7oijxu.fsf@ambrevar.xyz> <87eem3u4n8.fsf@gnu.org> <875z7f6663.fsf@ambrevar.xyz> <87blh6jl32.fsf@gnu.org> <878scaz0te.fsf@ambrevar.xyz> <87y2k9g6ta.fsf@gnu.org> <87eem1xn4i.fsf@ambrevar.xyz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 25 =?utf-8?Q?Vend=C3=A9miaire?= an 229 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 16 Oct 2020 12:30:13 +0200 In-Reply-To: <87eem1xn4i.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Wed, 14 Oct 2020 09:50:05 +0200") Message-ID: <87k0vq79ai.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, Mathieu Othacehe Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: XBwJMn6BWNWM Pierre Neidhardt skribis: > Ludovic Court=C3=A8s writes: > >>> Question: How do I hook onto =3Dguix build=3D? >> >> You would need a build-completion hook in the daemon, which doesn=E2=80= =99t >> exist (yet!). Note also that at this level we only see derivations, not >> packages. > > Hmm... Can you explain me how =3Dguix size=3D works with local builds? D= oes > it compute the size on demand or is it stored somewhere? It first tries =E2=80=98query-path-info=E2=80=99, which succeeds if the sto= re item is available and contains info about its size, references, and so on. When =E2=80=98query-path-info=E2=80=99 fails, it falls back to =E2=80=98query-substitutable-path-info=E2=80=99, which allows it to obtain = the same information for substitutes. Thus, it doesn=E2=80=99t need to have the sto= re item available locally. HTH! Ludo=E2=80=99.