Subject: Re: bug#62335: Exception when showing version-control packages

From: Josselin Poiret <[email-masked]>
Date: Tue, 21 Mar 2023 20:00:25 +0100

Hi Greg,

Greg Hogan <[email-masked]> 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