bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55898: Services depending on new Shepherd features may fail until re


From: Maxime Devos
Subject: bug#55898: Services depending on new Shepherd features may fail until reboot
Date: Tue, 30 Aug 2022 11:35:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0

On 30-08-2022 09:33, Ludovic Courtès wrote:

So are you suggesting replacing:

   (defined? 'make-inetd-constructor)

by something like:

   (version<? shepherd-version "0.9.0")

or is it something different that you have in mind?

I’m not sure how this could improve the user experience, unless by
“user” you mean the person writing the service?

(defined? '...) does not work in all contexts -- it works on the top-level, but not always inside a procedure, as it tests if the thing is defined in (current-module), and not whether it is defined in the module that calls (defined? '...).

Perhaps it works fine in the way it is used in Guix currently, but AFAIK it is not guaranteed anywhere. As such, I cannot recommend defined? here. The version<? does not have this problem.

A hypothetical defined-in-this-module macro would be ideal, but such a thing does not exist yet.

Greetings,
Maxime.

Attachment: OpenPGP_0x49E3EE22191725EE.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]