unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Attila Lendvai <attila@lendvai.name>
To: 53657@debbugs.gnu.org
Subject: bug#53657: inconsistent parsing of the channel sexp's
Date: Mon, 31 Jan 2022 12:30:18 +0000	[thread overview]
Message-ID: <vWS-lrAeFGLQaLuXJYXzWHtdxZUHeu7db8o26Xhm8tFRyyoaQBFf1DOKU19ll7am1Nod_FjRRcQyaWxQEEKBSZHTYHu7YhxINVXEByfdrVE=@lendvai.name> (raw)

pull.scm does this with channel files, e.g. with /etc/guix/channels.scm:

(load* file (make-user-module '((guix channels))))

i.e. this way field values are EVAL'd. beside the big can of worms that this opens up, it also means that e.g. the name field must be quoted: (name 'guix).

then at other occurrences of channels, an sexp parser is used to read them, e.g. in the 'dependencies field of a .guix-channel entry. see READ-CHANNEL-METADATA in guix/channels.scm.

here the name field is not EVAL'd, and thus it must be specified without quotes: (name guix).

this leads to an actual issue that channel dependencies don't match up, unless the name is without quotes in the dependencies list specification.

--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Awareness isn’t something we own; awareness isn’t something we possess. Awareness is actually what we are.”
	— Adyashanti (1962–)





             reply	other threads:[~2022-01-31 12:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-31 12:30 Attila Lendvai [this message]
2022-02-01 14:41 ` bug#53657: inconsistent parsing of the channel sexp's Ricardo Wurmus
2022-03-02 10:44 ` Ludovic Courtès

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to='vWS-lrAeFGLQaLuXJYXzWHtdxZUHeu7db8o26Xhm8tFRyyoaQBFf1DOKU19ll7am1Nod_FjRRcQyaWxQEEKBSZHTYHu7YhxINVXEByfdrVE=@lendvai.name' \
    --to=attila@lendvai.name \
    --cc=53657@debbugs.gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).