From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: .guix-channel: Quote inconsistency Date: Mon, 08 Apr 2019 19:26:40 +0200 Message-ID: <87tvf89zn3.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDY2k-0000OF-1i for guix-devel@gnu.org; Mon, 08 Apr 2019 13:26:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDY2g-0000kk-Ss for guix-devel@gnu.org; Mon, 08 Apr 2019 13:26:48 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:42183) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hDY2f-0000ey-N9 for guix-devel@gnu.org; Mon, 08 Apr 2019 13:26:45 -0400 Received: from bababa (lfbn-1-4117-19.w92-169.abo.wanadoo.fr [92.169.116.19]) (Authenticated sender: pierre@atlas.engineer) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 261F3240002 for ; Mon, 8 Apr 2019 17:26:40 +0000 (UTC) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Guix-devel --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Today I got tripped by some inconsistency in the syntax. Observe: =2D ~/.config/guix/channels.scm (list (channel (name 'guix) (url "https://example.org/my-guix.git") (branch "super-hacks"))) =2D /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: =2D-8<---------------cut here---------------start------------->8--- guix/channels.scm:326:22: Throw to key `match-error' with args `("match" "n= o matching pattern" #f)'. =2D-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? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlyrhFAACgkQm9z0l6S7 zH+niAf/SPDREnfOWSqgnSGES9NjvyWgICE7xWMdsEKqHPSivFGSZXstvzbGvJLk HLQnJ4slKW9DmYutC/4UoIRaca4I+wuwov9EMUK/YANiJU+bQ9Wey3tXuJwthjvv GRGxB1HTAojopRkQsGRrGSmMfuLYF/5bI1LwhqmWHT0sOzOWnxngWWR5Jxfkb+9T QNVBvAsXmtyT8xFDV/aLWkQF4vvA0UMVMcIjYoviu9QkFs/5n8UXX54ztJdYJOIt EJarK+X95NLqz1FnXnmF3FDjZYwjnhBr1v03T69QDEuNVt47A3QcMI3934rnjoSE qveM9fOyN1TnerIPWnSn/XwXAd8v4Q== =v9N4 -----END PGP SIGNATURE----- --=-=-=--