From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uMJyHMSMY19jQQAA0tVLHw (envelope-from ) for ; Thu, 17 Sep 2020 16:20:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cOdxGMSMY18IYQAAbx9fmQ (envelope-from ) for ; Thu, 17 Sep 2020 16:20:20 +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 AB306940221 for ; Thu, 17 Sep 2020 16:20:19 +0000 (UTC) Received: from localhost ([::1]:46286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIwdu-0000NR-Ii for larch@yhetil.org; Thu, 17 Sep 2020 12:20:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIwZm-00067f-9M for bug-guix@gnu.org; Thu, 17 Sep 2020 12:16:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55497) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIwZl-0007IU-Ti for bug-guix@gnu.org; Thu, 17 Sep 2020 12:16:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIwZl-0004PO-Pc for bug-guix@gnu.org; Thu, 17 Sep 2020 12:16:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42688: Running a script with `guix repl` doesn't "see" additional channels using (%package-module-path) Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 17 Sep 2020 16:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42688 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 42688-submit@debbugs.gnu.org id=B42688.160035932114552 (code B ref 42688); Thu, 17 Sep 2020 16:16:01 +0000 Received: (at 42688) by debbugs.gnu.org; 17 Sep 2020 16:15:21 +0000 Received: from localhost ([127.0.0.1]:38809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIwYt-0003Xm-6m for submit@debbugs.gnu.org; Thu, 17 Sep 2020 12:15:21 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:52842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIwYq-0003Tz-TN for 42688@debbugs.gnu.org; Thu, 17 Sep 2020 12:15:06 -0400 Received: from nijino.local (217-149-165-169.nat.highway.telekom.at [217.149.165.169]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4BshrP4T2Mz3xBY; Thu, 17 Sep 2020 18:15:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1600359301; bh=BKFOaSokaguPgvcyj9kxaO87uM/7gT5nkDcUvgJL5Ps=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=R64l2XC6egt++u24CHH9HufiQozu4tSpzLRrlxk1BFHApM/I9GSYcy51r3US1moC+ itx107rpRNzNtWitv/m3ElIiuq/ffFhUsTOLVA8h+QrFH2RLDFeyckc+wEv8UgdQwr OQvJ1d5b033hwHqP/1cErXiqZkbgK0rK9uIuluSI= Message-ID: <34cc318a15bd8070d0863214864687c0d45a414c.camel@student.tugraz.at> From: Leo Prikler Date: Thu, 17 Sep 2020 18:15:23 +0200 In-Reply-To: <874knws9mu.fsf@gnu.org> References: <20200803043331.78b20336@runbox.com> <874knws9mu.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 42688@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=tugraz.at header.s=mailrelay header.b=R64l2XC6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: 36OG1zCrXnY9 Hi Ludo, Am Donnerstag, den 17.09.2020, 17:31 +0200 schrieb Ludovic Courtès: > Hi Leo, > > [...] > > ‘scm_program_arguments_fluid’ is marked as SCM_INTERNAL, so it’s > really > inaccessible. Thought so. > However, perhaps we could save the initial value of (program- > arguments) > in (guix ui) and use that in (guix describe)? I'd personally put it in (guix describe) and use the same autoload trick, that you've now used for %package-module-path (or a dedicated save-...-excursion). (guix ui) has a heavy closure for (guix describe) to pull. > > On the other hand, we could patch `guix repl` to initialize > > %package- > > module-path earlier (still leaving `guix describe` broken) or > > somehow > > try to work around that issue in `guix describe`. > > Initializing (%package-module-path) earlier sounds like a good idea > too, > maybe like this: > > [...] > I haven't tested that yet (pre-inst-env makes it so Guix doesn't have any channels anyway), but yeah, something like that would have been my idea. Regards, Leo