self: Mark the generation (guix config) as non-declarative.

Fixes <https://issues.guix.gnu.org/58927>.
Reported by Maxime Devos <maximedevos@telenet.be>
and Marius Bakke <marius@gnu.org>.

Starting from 076e825dc5, "guix --version"
would print "0" as the version number, due to '%guix-version' being
inlined in (guix ui) when compiling '*core-modules*' in (guix self).

* guix/self.scm (make-config.scm): Pass #:declarative? #f.
This commit is contained in:
Ludovic Courtès 2022-11-14 11:05:22 +01:00
parent 4cc746820a
commit 54003af85c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 6 additions and 0 deletions

View File

@ -1090,6 +1090,12 @@ itself."
(scheme-file "config.scm"
#~(;; The following expressions get spliced.
(#$defmod (guix config)
;; Mark it as non-declarative to prevent cross-module
;; inlining that could lead to inlining %GUIX-VERSION in
;; (guix ui).
#:declarative? #f
#:export (%guix-package-name
%guix-version
%guix-bug-report-address