GNU bug report logs - #68163
[PATCH] gnu: Prevent stale cache use when `%package-module-path' is parameterized.

Previous Next

Package: guix-patches;

Reported by: antlers <antlers <at> illucid.net>

Date: Sun, 31 Dec 2023 06:25:02 UTC

Severity: normal

Tags: patch

Full log


Message #8 received at 68163 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: antlers <antlers <at> illucid.net>
Cc: dev <at> jpoiret.xyz, 68163 <at> debbugs.gnu.org, zimon.toutoune <at> gmail.com,
 othacehe <at> gnu.org, me <at> tobias.gr, rekado <at> elephly.net, guix <at> cbaines.net
Subject: Re: [bug#68163] [PATCH] gnu: Prevent stale cache use when
 `%package-module-path' is parameterized.
Date: Mon, 08 Jan 2024 18:06:02 +0100
Hi,

antlers <antlers <at> illucid.net> skribis:

> * gnu/packages.scm(find-package-by-name/direct): Convert `delay'-ed cache
> construction in closure into a form memoized over `%package-module-path'.
>
> Change-Id: I6e4b4b3fa58082b79aacf307468aec43ec60bf22
> ---
> This enables `specification->package' to be parameterized to resolve packages
> from within the module-under-compilation.
>
> I use this to parse my init.el[0] into packages in my guix-home profile, all
> in one repo.

Looks like you forgot reference [0].

(I’m not sure I understand the use case but seeing your code will surely
help!)

Thanks,
Ludo’.




This bug report was last modified 1 year and 154 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.