[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#53144] [PATCH 0/13] Make more git-using packages auto-updatable
From: |
Ludovic Courtès |
Subject: |
[bug#53144] [PATCH 0/13] Make more git-using packages auto-updatable |
Date: |
Tue, 18 Jan 2022 18:39:39 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Maxime Devos <maximedevos@telenet.be> 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’s 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
> returns."
> + (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 ‘remote-create-detached’
though.
Otherwise LGTM!
Ludo’.
- [bug#53144] [PATCH 0/13] Make more git-using packages auto-updatable, Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 01/13] doc: Give some tips on Minetest packaging., Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 02/13] gnu: minetest-ethereal: Follow new versioning conventions., Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 06/13] gnu: minetest-ethereal: Update to 2022-01-05., Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 03/13] gnu: minetest-mesecons: Follow new versioning conventions., Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 05/13] gnu: minetest: Remove obsolete comments about version numbers., Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 11/13] git: Support resolving references without cloning., Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 0/13] Make more git-using packages auto-updatable,
Ludovic Courtès <=
- [bug#53144] [PATCH 13/13] gnu: minetest-throwing-arrows: Use 'latest-git' updater., Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 07/13] gnu: minetest-mesecons: Update to 2021-11-28., Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 04/13] gnu: minetest-throwing: Follow new versioning conventions., Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 08/13] gnu: minetest-mobs: Update to 2022-01-03., Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 09/13] doc: Document the Minetest importer., Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 10/13] upstream: Support incrementing the revision of 'git-version'., Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 12/13] import: Add 'latest-git' updater., Maxime Devos, 2022/01/09
- [bug#53144] [PATCH 01/13] doc: Give some tips on Minetest packaging., Liliana Marie Prikler, 2022/01/09