GNU bug report logs -
#36555
[PATCH 0/2] Refactor out common behavior for system reconfiguration.
Previous Next
Full log
Message #166 received at 36555 <at> debbugs.gnu.org (full text, mbox):
Hi,
zerodaysfordays <at> sdf.lonestar.org (Jakob L. Kreuze) skribis:
> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> I wonder it we should just use
>>
>> #~(begin (use-modules (guix build utils)) (invoke …))
>>
>> here and in other places.
>>
>> That’s probably better longer-term (for example when we switch to
>> Guile 3, that could ease the transition since the right Guile would be
>> used) but we can keep it this way and revisit it later.
>
> I've been playing with this for a little while now, and I'm having
> second thoughts regarding the use of 'invoke'. Any exceptions thrown in
> the callee are swallowed into an '&invoke-error', so context for failure
> in i.e. the activation script is lost. Also, does it really matter that
> the "right" Guile is being used for the activation scripts if the daemon
> is still going to be running the old Guile? WDYT?
I guess it only matters in corner cases—i.e., when switching Guiles.
And even then, we’re probably still able to evaluate code, so you’re
right that it’s not that big a deal.
And yeah, losing execution context isn’t great.
So maybe the status quo is not so bad after all!
Ludo’.
This bug report was last modified 5 years and 272 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.