From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YKAqApz75mGcSgEAgWs5BA (envelope-from ) for ; Tue, 18 Jan 2022 18:40:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wAkjO5v75mH3yQAA9RJhRA (envelope-from ) for ; Tue, 18 Jan 2022 18:40:43 +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 AC4A8B4CE for ; Tue, 18 Jan 2022 18:40:43 +0100 (CET) Received: from localhost ([::1]:55838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9sTK-0007pb-Rh for larch@yhetil.org; Tue, 18 Jan 2022 12:40:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9sSg-0007o7-HJ for guix-patches@gnu.org; Tue, 18 Jan 2022 12:40:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58659) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9sSg-0008Rm-7H for guix-patches@gnu.org; Tue, 18 Jan 2022 12:40:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n9sSf-00084D-Ux for guix-patches@gnu.org; Tue, 18 Jan 2022 12:40:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53144] [PATCH 0/13] Make more git-using packages auto-updatable Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 18 Jan 2022 17:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53144 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 53144@debbugs.gnu.org Received: via spool by 53144-submit@debbugs.gnu.org id=B53144.164252758930985 (code B ref 53144); Tue, 18 Jan 2022 17:40:01 +0000 Received: (at 53144) by debbugs.gnu.org; 18 Jan 2022 17:39:49 +0000 Received: from localhost ([127.0.0.1]:51562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9sST-00083h-BT for submit@debbugs.gnu.org; Tue, 18 Jan 2022 12:39:49 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:56960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9sSR-00083S-MH for 53144@debbugs.gnu.org; Tue, 18 Jan 2022 12:39:48 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 3D409796; Tue, 18 Jan 2022 18:39:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VmuVoJxuYV0m; Tue, 18 Jan 2022 18:39:40 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id D5ECF2D7; Tue, 18 Jan 2022 18:39:39 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20220109191015.33058-1-maximedevos@telenet.be> <20220109191015.33058-11-maximedevos@telenet.be> Date: Tue, 18 Jan 2022 18:39:39 +0100 In-Reply-To: <20220109191015.33058-11-maximedevos@telenet.be> (Maxime Devos's message of "Sun, 9 Jan 2022 19:10:13 +0000") Message-ID: <87fspldjtw.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: 3D409796 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] 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" 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=1642527643; 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; bh=BgKm9WfeYzAeT9/VnH+I+QKyUB40qXoIcpkAAoQ5wV8=; b=PviCe5E39GVAWbZZH/EE1zKP1oBYEieMReB/R/ZayRQaVHxutkcaaf0f1MMkf4srPoyjFq XtAioVss1U7IQTI/u7L4yGEksek9CUO5kmNeOdJThNrHwpI68G9h9yJFd++ymEGwPDmsBU NERIZwbkIBqXwqaRJ9knYkhGgveAs1m3oYXJYfFkJ7gL3IC8Vq+Ca+TugcJFZw2ZpADi7J ntsqo36HhjUx1psYvlygHzs8bkAyRDYMBKoxb4sEnL64QL+zauz5rPxwp43eVV7t7Tr6Bk lEhCPyNTMazNWRAQKYpZAbRo6OpAFBaXAPx0nPJYbh7aYTkcPtUGsNRdCXnBBw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642527643; a=rsa-sha256; cv=none; b=ZPO/UV/Q9FuN7uM3CYB4TM2MjHTgyGBkD5ec4z8duw0wLtsVV67o2t2mnnmElcOvVe3i4v 7u7KryyXDdpq63WUISf5s48mQkexmlRsIIVLPyviqJe1sMIUtUhUlEMl7qmFnjZTWZR+/x OJOzFHOrNzOp6O0P5wBUQ1Cc7j4ImqTaUo1snAMRTQ3Qb4kQLgUDAL1ZAAfVcHcolPnDmF 5NEJs6F2KQtvXUM15VLa4fbTNYoMb5jcrQv6w1ZGH/OqImaa9J3NEMrsb3k5J1mK8j+d+k +GcF7oTkUfCq6OPynaUV2THCTZ6jYskYWq90WAUGXimzUCS9nlKTaiJw/+c5Eg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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-Spam-Score: -3.62 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: AC4A8B4CE X-Spam-Score: -3.62 X-Migadu-Scanner: scn1.migadu.com X-TUID: X0kccnNfQhES Maxime Devos skribis: > * guix/git.scm (remote-refs): Split off some logic to ... > (call-with-detached-remote): ... this new procedure. > (lookup-reference): New procedure. > * tests/git.scm ("lookup-reference: branch and HEAD"): New test. [...] > +;; TODO: it would be nice to use 'remote-create-detached' here, > +;; but that procedure isn't in any released version of guile-git yet. > +(define (call-with-detached-remote url proc) Let=E2=80=99s prepare a new Guile-Git release then (Erik Edrosa has been MIA lately, but Marius, Mathieu, or myself can tag a release when needed). > + "Call PROC with a remote for URL. The remote is closed after PROC ret= urns." > + (call-with-temporary-directory > + (lambda (cache-directory) > + (let* ((repository (repository-init cache-directory)) > + ;; Create an in-memory remote so we don't touch disk. > + (remote (remote-create-anonymous repository url))) > + (remote-connect remote) > + (let-values ((result (proc remote))) s/let-values/let/ > + ;; Wait until we're finished with the repository before closing= it. > + (remote-disconnect remote) > + (repository-close! repository) > + (apply values result)))))) We can use this code until Guile-Git provides =E2=80=98remote-create-detach= ed=E2=80=99 though. Otherwise LGTM! Ludo=E2=80=99.