From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 MMKzIjlbvmZOfAEAqHPOHw:P1 (envelope-from ) for ; Thu, 15 Aug 2024 19:47:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MMKzIjlbvmZOfAEAqHPOHw (envelope-from ) for ; Thu, 15 Aug 2024 21:47:05 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=hRdGtGDe; dkim=pass header.d=wolfsden.cz header.s=mail header.b=DImUHM3+; 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=wolfsden.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723751225; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=FVb82PuQnkUq6e9u81ZOEYo965MdzylwAbHo+XTKDNA=; b=Cz/u3l7iy5chX5smPJet37KyFwCqel5lrPQHzknYaldemC/owQrcxdK7Nc3QQOHguFd1y3 4IB3SBWTTgnKmqM22EjOm/4Bw9K5sfLsbkwyIwQd4OmoxieHs7pfrgXVUun76Mg85tHNGO VnMZP1hVagn5x3DYcTUbj2mtzb4PxBkL/Vsr2eaTo8T+r4q+539byf2adRqoUHRATg8qMM 9WYtpLrQWxjQ60B5rktrm2RndupTChqILIrVH3lVclEclanJsf3AtXcN+GQ6CiVMD3Sm8s lflVtP/6t+Pbew3UgoBqrybYcrMf14EtapMXN/wj1gDl03BVC7jPCk6a807IPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=hRdGtGDe; dkim=pass header.d=wolfsden.cz header.s=mail header.b=DImUHM3+; 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=wolfsden.cz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723751225; a=rsa-sha256; cv=none; b=HSbc3z0SGyfnhCckOJ1S+zHnxVjBJOrVyeCmT4SES+P6JI4Y6Dye7WwoB5R+2sAPvzJCHi PRUEd8pLhZcetRua3N5L1onYn+HKIqakPDWIj6oanJjfzooPFfo4S82gJKgWM5znOeeLjG VIDDdTbq7k+VSWSlqRDjwntT58cWcIGMuqkyL0PmbbVYJxIYYMhJ/e2S5dFS2/Lp1XAv+9 +O5NvTHb+9JeSCuG4bKnd3tcxlxJTgv4/CY2Hc9WY+QCOcoMm6Tk/d0iE980/hBBb7ePyz PQorrR2LjvnUOjF0S4VoVD1W6tFMQwrpsReO89PCiMWegrohy1p24KiVljDG0w== 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 54D2256F92 for ; Thu, 15 Aug 2024 21:47:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1segQe-00067T-GS; Thu, 15 Aug 2024 15:46:36 -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 <~@wolfsden.cz>) id 1segQX-000670-6J for help-guix@gnu.org; Thu, 15 Aug 2024 15:46:30 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1segQU-0005B7-Od for help-guix@gnu.org; Thu, 15 Aug 2024 15:46:28 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 788902AD13C; Thu, 15 Aug 2024 19:46:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1723751182; bh=gz68rQzP3+zWNbMiXjIA2zy6zPYQ0WvMDnxOieRM7do=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=hRdGtGDe1mnKZC8TOFJfhr7Pcd4nESDiSJuzY8MRp1BAHrksTW/DwzvsIXM5xDYaW McOV3xhgh3TDakrzkm/S6q+8LzbPVrSsmzr3ImWSBTmNKKMT5lHbTflhd5lxAZQ0k+ ALWfyYxcOmhOV+Z/4mlhQelc6V3b9NhZF6QIry27RDmWRCRxq1r/a42Rg5mf3b9kj3 44u8C95SWRvrDrolxNbZLo/9V3iIaOMfaxSqAaMPLNugXngdmBjAh7mj9ed0DjBmNC 0Gxtn9cODzOxMS7L54d67w7lEYafUAcHiqgej6vWOi7KY5YeGqc6WIDjC4X7FdrdYH nqOsP9ny6ewDApqkL45NhIJW452QENDcgvVSLiOs/yPMwuj/ZSiJduRHe5wy63zOqK +hmQb0MsI2JAy25Fz53xZhK+wlNfVCkUhn641qi2480Nj4fsxpYNQWO8FP4ypRbRR7 5AzHq0ZYlWMCqrgidd5du4FRHefzjbYuXYGFPogd0gpD3E6RnvywL7UF/2CGNPIQ8k BeNWWA6MQ7C2vW/Rj3/XInrqfUx64tbVitaXhB7rBdr0nF3MMivBak9ghqmUhuDJIz O7Uj5Byy8Mp0myOZXUYXJn/whYrskyLxnvta6deLGUJoL8YzXetK8NFyLXOzuQwqQ1 rPfllDgo3UoYamvLWNMBHnzw= Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id AA8582AD8BB; Thu, 15 Aug 2024 19:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1723751181; bh=gz68rQzP3+zWNbMiXjIA2zy6zPYQ0WvMDnxOieRM7do=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=DImUHM3+8wR8KBq7Vlxciyi9E5wb1cmwyfV5XKOqL8bakOPKlpR7sp4HyWHUMt11c lOVFr018tOiYeMBUvRWwEA/Dth7/h7Fyu4vJa9kqE81CpPHoQuLw+iSwzQd6q8zimg r/bjPDpLy4qtKrFnMvedqyBZ1XtzR64ffTuo4oeVg3p4GailklgpSvIXTl2BA3IOAx GOb77vJbt6Cnn+GbyGKYYW+l9sM8E6ikCK2uNyEWQZNgAzfoctnwqOOxXFBQmVTIkx UTUgI5pHiLSuysfM287+9mPmb/ftNUcWmdk/T7dKLtya79mmXDPKZsynQnW4Wqd6sZ TNiBOf8S4mU6KPJbRqtF3zH8AD0cUKZDoHj4VDHlv17+0jCXg7dQqzgqZsffa29TPE /Ecsyx/2XYIAaubkUOIVOcLvhBgzsSGQ1G37Tlj3y9qcEPVwamZlJ7jAhn0XPCLJIE G+xjBGGcikCqbgTaQ2wm580B8x0uSaBQKSnDDmWQfdGS7Z0SDT7PlFm4ib0wYuEcAK wKM/NbUkkvirUvLeso6qX9cqvbxZhUICrfPF5HPVhOFpjki7WImFwndvBhWPftejD+ jbzHOKgMa+wlhJtWzIMGn71nfHLT6zzz9lO/Cj//RmlSug7yyDVhZuosuaehwIvUf4 WEqM0l4+o9XSzlhtaXlcjkzg= Date: Thu, 15 Aug 2024 21:46:21 +0200 From: Tomas Volf <~@wolfsden.cz> To: Nils Landt Cc: help-guix@gnu.org Subject: Re: How to use guix-for-channels together with -L without errors? Message-ID: Mail-Followup-To: Nils Landt , help-guix@gnu.org References: <883867975.432417.1723742092236@office.mailbox.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="atPpvmyC1wObvN0J" Content-Disposition: inline In-Reply-To: <883867975.432417.1723742092236@office.mailbox.org> Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz 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, SPF_HELO_PASS=-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: 54D2256F92 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.65 X-Spam-Score: -9.65 X-TUID: bRHGBbdNTaKQ --atPpvmyC1wObvN0J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 2024-08-15 19:14:52 +0200, Nils Landt wrote: > > 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. Yes! That is it, when I use GUILE_LOAD_PATH instead of -L the errors go away. Thank you so much. You have saved me so much time. ^_^ Now I have a different problem however. Given a channel list with commits, hence resolving to the same code every time, it still gets pulled every time, and Guix derivation computed every time. Illustrated here: /tmp/repro $ cat x.scm (use-modules (guix channels) (gnu packages package-management)) (guix-for-channels (list (channel (name 'guix) (url "https://git.wolfsden.cz/.git/guix") (commit "b03eddc326ee4eb26b25743faee2080de6aded7e") (introduction (make-channel-introduction "028e445a2028068e3c83996daa281057f19141a0" (openpgp-fingerprint "B783 49B3 8C14 7D36 2988 68A4 2FBF EE7D B67F C1A9")))))) /tmp/repro $ guix build -f x.scm Updating channel 'guix' from Git repository at 'https://git.wolfsden.cz/.git/guix'... Computing Guix derivation for 'x86_64-linux'... | /gnu/store/9i597ckynirxy4w5iv2wbmy288vc7gf0-profile /tmp/repro $ guix build -f x.scm Updating channel 'guix' from Git repository at 'https://git.wolfsden.cz/.git/guix'... Computing Guix derivation for 'x86_64-linux'... | /gnu/store/9i597ckynirxy4w5iv2wbmy288vc7gf0-profile This does not seem necessary (it uses commit, so it does not change) and makes re-deploys *much* slower. Would you happen to have magical trick for this as well? Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --atPpvmyC1wObvN0J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAma+Ww0ACgkQL7/ufbZ/ walJOBAArUWAVHsuHxK8ZPJCt3k5PnMfYixZ/b1r2rqTs+TvD7JGKOmNicb7gINg 4Qnj7t9AcQhtH2k9cC6qxMlzvJXlCH4rldMfzxrVO5TJ5gRawhPmKlj6rFXJYyYP nEKS1Sb6BAWc7qGbMZVf4K+s7JYVpesuwlS7JBRyzCtkmWPS1UnBy0hzbx6Alcpp pulxNSKhy+gWmjeRntJavVFtl11YolJYejl+wnAM5L7upYfW7SBxGo+/cuH4HJK8 74w3Ua1LjzNMChsgBENsKNk7TUCamBAB7bhjgSCRs1X+zrMEaJHNoIBI1+mWm5zq 9bJ4SfSqvosoLB9CJgZoRnTqw/0tqmzBL2nJuB+30kIx+cmqPWWzICwh82jgqQTV iNQnt6QwH3tiwHv/NQewcvLZHRux432nk/cHxD0j12ZosvoKeLYgbQuA3j0atb9s tTSAX73DKhhjNKV60GTNMzlO/PVjJxCHgeXfCZ80mvBKRTar3FDwbd/oFYLK07Bi TJ12oTNKstY1mRflnYUdmZISPL91tR6Mr/LjQxwBqWKqDqdJN9hXMNWG8nC7LQhw gNvzgAEyvutFonBi0MhhTerJWJxJmahK9ROgHfznC59rcdzgRNitcKnjnzfWMB0Y tX7fqeUtP6Mu/3G0sGBRXmmYZA3LJlaEgRoatcrHSj46jA4w5TM= =cmKO -----END PGP SIGNATURE----- --atPpvmyC1wObvN0J--