all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: raingloom <raingloom@riseup.net>
Cc: help-guix@gnu.org
Subject: Re: more than one target service shehperd-root / possible scheme records terribleness
Date: Wed, 03 Mar 2021 14:06:12 +0100	[thread overview]
Message-ID: <87czwgv12z.fsf@elephly.net> (raw)
In-Reply-To: <20210303115932.575aae04@riseup.net>


raingloom <raingloom@riseup.net> writes:

> I have an operating-system called bingobongo. I have another called
> greg that inherits the bingobongo config. If I leave the services field
> empty in greg, there is no issue. If I define it as
> (operating-system-services bingobongo) then all hell breaks loose and I
> get the aforementioned error and no amount of filtering seems to fix it
> becaues then I get the same error but with "profile" instead of
> shepherd-root.

This is not a very clear report.  What filtering leads to a “profile”
error?

> Now, I don't know what causes this, whether it's a Guix issue or
> Guile's record system being... well... kind of terrible

No, Guile’s records are fine.  “Terrible” is a strong word for a wild
guess.

The issue here is likely that operating-system-services returns all
services, including those that are added by the operating system
machinery.  Since your new operating system would run that same
machinery to add root services to the graph you’ll end up with some
duplicates.  If this is in fact the case then the fix is to either make
those root services explicit (meh), or to let operating-system-services
return only explicitly listed services, or to add another procedure (or
a keyword argument ot operating-system-services) that lets users specify
the depth of the result set.

-- 
Ricardo


  parent reply	other threads:[~2021-03-03 13:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-03 10:59 more than one target service shehperd-root / possible scheme records terribleness raingloom
2021-03-03 12:35 ` Joshua Branson
2021-03-03 13:06 ` Ricardo Wurmus [this message]
2021-03-03 16:07   ` Simon South

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87czwgv12z.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=help-guix@gnu.org \
    --cc=raingloom@riseup.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.