From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:40809) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1im3Hb-0002M1-7Y for guix-patches@gnu.org; Mon, 30 Dec 2019 17:13:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1im3Ha-00082F-9w for guix-patches@gnu.org; Mon, 30 Dec 2019 17:13:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55849) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1im3Ha-00081r-6c for guix-patches@gnu.org; Mon, 30 Dec 2019 17:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1im3Ha-00046T-09 for guix-patches@gnu.org; Mon, 30 Dec 2019 17:13:02 -0500 Subject: [bug#38754] [PATCH 2/2] scripts: lint: Set the %link-checker-store-connection parameter. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <8736d7rnzg.fsf@cbaines.net> <20191226180104.10888-1-mail@cbaines.net> <20191226180104.10888-2-mail@cbaines.net> Date: Mon, 30 Dec 2019 23:12:45 +0100 In-Reply-To: <20191226180104.10888-2-mail@cbaines.net> (Christopher Baines's message of "Thu, 26 Dec 2019 18:01:04 +0000") Message-ID: <87lfqtzcma.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Christopher Baines Cc: 38754@debbugs.gnu.org Christopher Baines skribis: > + (with-store store > + (parameterize > + ((%lint-checker-store-connection store)) Actually it means that now =E2=80=98guix lint=E2=80=99 systematically conne= cts to the daemon. I wonder if we could arrange to open the connection lazily, and to somehow carry state across linter invocations. Perhaps =E2=80=98check-derivation=E2=80=99 should be monadic, with a field in indicating that. Sounds complicated though. Thoughts? Ludo=E2=80=99.