From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YKZcOCn/AWAnCAAA0tVLHw (envelope-from ) for ; Fri, 15 Jan 2021 20:46:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sNc5NCn/AWAeeQAA1q6Kng (envelope-from ) for ; Fri, 15 Jan 2021 20:46:33 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 76EAC940363 for ; Fri, 15 Jan 2021 20:46:31 +0000 (UTC) Received: from localhost ([::1]:34230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0VzK-0007xe-EO for larch@yhetil.org; Fri, 15 Jan 2021 15:46:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0Vye-0007xY-N7 for guix-devel@gnu.org; Fri, 15 Jan 2021 15:45:48 -0500 Received: from sender4-of-o54.zoho.com ([136.143.188.54]:21452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0Vyb-0006BH-JG for guix-devel@gnu.org; Fri, 15 Jan 2021 15:45:48 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1610743542; cv=none; d=zohomail.com; s=zohoarc; b=mhnAzVfNT6Fz68sSl3nRBEFhs7oWxyknsJ43xm79dOMTuUVOvs+ur9cr4YWp0QlPoZi7MNpcu3zeRMVB78PYIhpawnyDxZlu5UhEo+lTAftovmqWrU0j1QXTY/f01MwALF5r24KXmN3CY+Vd9+k8qibyrQEJepTrxHtLTTgFrWk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610743542; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=DPwLZ0xRxUOmj4zWgV/SYTCI9Ogysef5esatV3dQxZs=; b=G/aWrwX0zBbrGwZ80GYoXsAjArU+wJYsJPK3YGW4wbo9+87c+75Xy6N+oVQF2kDbEIEiiD7WuF0sX5zNzW393r3OOMiMTidTF23JhOCtH4DU31CFlnC2AhU2B+dcYGBsZ9nqQPO5nHPjWT5wafG0ujDKdYXBvo7zCzZCqEv2MC4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1610743542; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=DPwLZ0xRxUOmj4zWgV/SYTCI9Ogysef5esatV3dQxZs=; b=eT8totu6eDfPLow5Kx03Sv79y4MvcBDY+OQ2F3oiKZV6VpQq3nm+lR571iS/lATj +nYtP3kZg7z1D/V0nMsTicOnRROJcifmBSuLPFbOmpaHjuQvHRWZ6l4QiW1NO2A5/Tb xOKo+BvFs6UZcEVSu0+/vrpmTo3FuZ07m5QRz/NI= Received: from localhost (p54ad4d0f.dip0.t-ipconnect.de [84.173.77.15]) by mx.zohomail.com with SMTPS id 1610743540450301.1177934245004; Fri, 15 Jan 2021 12:45:40 -0800 (PST) References: <86k0sekkj8.fsf@gmail.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus To: zimoun Subject: Re: GUIX_EXTENSIONS_PATH error? In-reply-to: <86k0sekkj8.fsf@gmail.com> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 15 Jan 2021 21:45:37 +0100 Message-ID: <87zh1aapzi.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.54; envelope-from=rekado@elephly.net; helo=sender4-of-o54.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=eT8totu6; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 76EAC940363 X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: hRxJsyomrI0l zimoun writes: > In the mood for documenting the recent GUIX_EXTENSIONS_PATH, I am > missing something because I hit an error. It=E2=80=99s not your fault. It=E2=80=99s hard to do this without document= ation. > --8<---------------cut here---------------start------------->8--- > $ cat /tmp/foo/bar.scm > (define-module (guix extensions bar) > #:use-module (guix scripts)) This right here is the problem. The module name and the file name do not match. The file must be $GUIX_EXTENSIONS_PATH/guix/extensions/bar.scm and provide the module (guix extensions bar). > $ export GUIX_EXTENSIONS_PATH=3D/tmp/foo > > $ guix --help > Usage: guix COMMAND ARGS... > Run COMMAND with ARGS. > > COMMAND must be one of the sub-commands listed below: > Backtrace: > 4 (primitive-load "/home/simon/.config/guix/current/bin/guix") > In ice-9/boot-9.scm: > 1731:15 3 (with-exception-handler # _ # _ =E2=80=A6) > In guix/ui.scm: > 2105:20 2 (show-guix-help) > In srfi/srfi-1.scm: > 691:23 1 (filter-map # _ . _) > In guix/ui.scm: > 2023:2 0 (source-file-command _) > > guix/ui.scm:2023:2: In procedure source-file-command: > Throw to key `match-error' with args `("match" "no matching pattern" ("tm= p" "foo" "bar.scm"))'. But it still shouldn=E2=80=99t throw an error like that. I=E2=80=99ll fix = it. Sorry! --=20 Ricardo