mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
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:
parent
4cc746820a
commit
54003af85c
1 changed files with 6 additions and 0 deletions
|
@ -1090,6 +1090,12 @@ (define defmod 'define-module)
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue