GNU bug report logs - #74749
Constructors created by define-configuration evaluate the fields twice

Previous Next

Package: guix;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Mon, 9 Dec 2024 15:41:02 UTC

Severity: normal

To reply to this bug, email your comments to 74749 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#74749; Package guix. (Mon, 09 Dec 2024 15:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tomas Volf <~@wolfsden.cz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 09 Dec 2024 15:41:02 GMT) Full text and rfc822 format available.

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

From: Tomas Volf <~@wolfsden.cz>
To: bug-guix <at> gnu.org
Subject: Constructors created by define-configuration evaluate the fields twice
Date: Mon, 09 Dec 2024 16:40:21 +0100
[Message part 1 (text/plain, inline)]
Hello,

I discovered that every field in configuration created by
define-configuration is evaluated twice:

--8<---------------cut here---------------start------------->8---
scheme@(guix-user)> ,use (gnu services configuration)
scheme@(guix-user)> (define serialize-string #f)
scheme@(guix-user)> (define-configuration test (s string ""))
scheme@(guix-user)> (test (s (pk "x")))

;;; ("x")

;;; ("x")
--8<---------------cut here---------------end--------------->8---

That probably is not intentional.

Have a nice day,
Tomas volf

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 190 days ago.

Previous Next


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