GNU bug report logs - #62335
Exception when showing version-control packages

Previous Next

Package: guix;

Reported by: Greg Hogan <code <at> greghogan.com>

Date: Tue, 21 Mar 2023 14:26:02 UTC

Severity: normal

Done: Josselin Poiret <dev <at> jpoiret.xyz>

Bug is archived. No further changes may be made.

Full log


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

From: Josselin Poiret <dev <at> jpoiret.xyz>
To: Greg Hogan <code <at> greghogan.com>, 62335 <at> debbugs.gnu.org
Subject: Re: bug#62335: Exception when showing version-control packages
Date: Tue, 21 Mar 2023 20:00:25 +0100
[Message part 1 (text/plain, inline)]
Hi Greg,

Greg Hogan <code <at> greghogan.com> writes:

> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> error: pre-commit: unbound variable

This is caused by yet another import cycle: pre-commit is defined in
version-control.scm, which uses python-xyz, which defines
python-jupytext and which has pre-commit among its native-inputs, which
is thus not yet defined (if you tried loading version-control.scm
first).

I think the fix would be to move pre-commit to python-xyz?  These import
cycles are getting a bit out of hand, especially since we never catch
them during development...  Can we also turn unbound variable warnings
into errors, so that `guix pull` could catch them earlier?

Best,
-- 
Josselin Poiret
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 61 days ago.

Previous Next


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