unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* .guix-channel: Quote inconsistency
@ 2019-04-08 17:26 Pierre Neidhardt
  2019-04-10 21:06 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Neidhardt @ 2019-04-08 17:26 UTC (permalink / raw)
  To: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]

Today I got tripped by some inconsistency in the syntax.  Observe:

- ~/.config/guix/channels.scm

     (list (channel
             (name 'guix)
             (url "https://example.org/my-guix.git")
             (branch "super-hacks")))

- /some/channel/with/deps/.guix-channel:

     (channel
      (version 0)
      (dependencies
       (channel
        (name some-collection)
        (url "https://example.org/first-collection.git"))
       (channel
        (name some-other-collection)
        (url "https://example.org/second-collection.git")
        (branch "testing"))))

(Those are examples taken from the manual.)

The former NAME field takes a quote while the latter does not.
In the latter, when adding a quote we get the not-so-helpful error:

--8<---------------cut here---------------start------------->8---
guix/channels.scm:326:22: Throw to key `match-error' with args `("match" "no matching pattern" #f)'.
--8<---------------cut here---------------end--------------->8---

(Admittedly the backtrace gives a clue on what's happening, but still.)

I haven't looked at the code and I guess that .guix-channel is only
READ, not EVALed, while channels.scm is a first-class scheme code,
right?

Maybe we could match both 'SOME-NAME and SOME-NAME?

Thoughts?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-11  8:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-08 17:26 .guix-channel: Quote inconsistency Pierre Neidhardt
2019-04-10 21:06 ` Ludovic Courtès
2019-04-11  8:31   ` Pierre Neidhardt

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).