From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id ALsNCsc3vmbURAEA62LTzQ:P1 (envelope-from ) for ; Thu, 15 Aug 2024 17:15:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id ALsNCsc3vmbURAEA62LTzQ (envelope-from ) for ; Thu, 15 Aug 2024 19:15:51 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=landt.email header.s=MBO0001 header.b=FhZiWlJT; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=landt.email ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723742151; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=HvCjl8Y5lVq6wfxjBiPdV/UpvgA82JRiuxE9/qnua7E=; b=gNn5TWc7BOMaD1M9hELMYdJr1xYAU8BB5LpFzOAcuEscGo9wGjN7x/we+K3yJWbVBpkcX1 6redGYHHh6xhAHsldPGw70MkGdqVoiPeNILp2B9gnc5YiRhzfWEBous2YPPkCmUW3ZDEU3 azlkp73HIsVRWJ3/NhRwz8/2uY3eYHbtEI41AqQib4PGDkhb2peY/BfkLCQYy49Xiq4CIZ p6pqFJrzU3oWRU6d88PkjWFyxcSUIVODfKhDyw7ijgSR7fuj5jdRGNmEA5L/gBUDX4sfmy MThjEUWquS+bc3GXm5/7qV00h2Pj4OVHlDZ0Rh2aIms5GlC6EmZCCvNYoUOBcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=landt.email header.s=MBO0001 header.b=FhZiWlJT; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=landt.email ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723742151; a=rsa-sha256; cv=none; b=BW2eh02h2/fqI8RXT0kVmqKeBmOSrpbURUTJJ728TCV5+rb9jIYbGFdiFSNCJ5xjHHuLIs dMY1f0qQY+Kt6Yq/SKP2SWzooWR52dFKZlMOzQVG5eqMyAsEXyNp6Y0PzZ82ytwHOHa94K ALMffuYXKlo3OAA03jiPhQyC5O5tMzT8C8udUvvKBsvnDHhCERogG9HmSTKP6sZM+uMNU/ a78ntskI0LmrKQAuLykCSRukN8vIUepuNiwOls4Ip6sbWxflh0VOXs9R+6WU7ztYy8nYzW eY9dloEnKRlqUjOFIkavk/aivNimowwaWLP3TIDhVc4XeE1QyFOIPfJ7W72r0Q== 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 CFF953ADE8 for ; Thu, 15 Aug 2024 19:15:50 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1see4A-0004Ye-Jt; Thu, 15 Aug 2024 13:15:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1see43-0004Y4-CP for help-guix@gnu.org; Thu, 15 Aug 2024 13:15:07 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1see3y-00067v-OA for help-guix@gnu.org; Thu, 15 Aug 2024 13:15:07 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4WlBZP0wprz9slv; Thu, 15 Aug 2024 19:14:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landt.email; s=MBO0001; t=1723742093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HvCjl8Y5lVq6wfxjBiPdV/UpvgA82JRiuxE9/qnua7E=; b=FhZiWlJTI0Rlif/nXs8BgcNYfN0erKOarVSmcDPjh3ZHSNN7yFVeRON8BnhK8JEHVTlbOs SdKV3QJTLyfAzNCnE0/Dy7q8uayj1GMLhXtKxl/6cWEnF5rneIwzrxhVUxjqKnP/xFJwC7 OZ4EEXSvT4X+F7jNgdxNaOE05/phXh31JOH8rtKmhtiZJ2IHA/AZ3YZxrKGJT/C2PI58vQ +VAg4DTkEJ95lk3PoRaVQJCmxlAOc6Ocp7hXSeyyvvKFaTG5Y89bbY2qbMN8oykFfk/bEP cIe8hhNHlzUi5dB3kbqLT7x4bztSPKpgCjDBDwP+AndJUW3DyTAly1qeYgmM7Q== Date: Thu, 15 Aug 2024 19:14:52 +0200 (CEST) From: Nils Landt To: Tomas Volf <~@wolfsden.cz>, help-guix@gnu.org Message-ID: <883867975.432417.1723742092236@office.mailbox.org> In-Reply-To: References: Subject: Re: How to use guix-for-channels together with -L without errors? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Rspamd-Queue-Id: 4WlBZP0wprz9slv Received-SPF: pass client-ip=80.241.56.152; envelope-from=nils@landt.email; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: CFF953ADE8 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.87 X-Spam-Score: -6.87 X-TUID: PPPXcMawv0Cm > Tomas Volf <~@wolfsden.cz> hat am 15.08.2024 00:24 CEST geschrieben: > > Now, what I do not understand is why this error: > > no code for module (foo) > > is there. I am building guix from %default-channels, why is it even loading > files in the local directory? And how do I make it stop? In this case, I could > just drop `-L .', but in real code I need the argument to load modules required > for the system. When that happened to me, it took me forever to find out, so I'm happy to save you some pain: The -L adds to the *package* module search path. Guix loads all the scm files there to get the package definitions, I'm guessing so there doesn't need to be empty modules with a huge "requires" list of every package-containing module. So I put my package definitions in a subdirectory of the channels directory, add that subdirectory to GUIX_PACKAGE_PATH, and add the channel root directory to GUILE_LOAD_PATH.