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 2FzpIupR5F48UwAA0tVLHw (envelope-from ) for ; Sat, 13 Jun 2020 04:11:22 +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 aLPFHupR5F6bSgAA1q6Kng (envelope-from ) for ; Sat, 13 Jun 2020 04:11:22 +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 29A9A9403E9 for ; Sat, 13 Jun 2020 04:11:22 +0000 (UTC) Received: from localhost ([::1]:46452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjxVp-0004yi-5m for larch@yhetil.org; Sat, 13 Jun 2020 00:11:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjxVg-0004yW-3G for guix-devel@gnu.org; Sat, 13 Jun 2020 00:11:12 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:41390) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjxVe-0006aH-Db for guix-devel@gnu.org; Sat, 13 Jun 2020 00:11:11 -0400 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jjxVc-0002RJ-9R; Sat, 13 Jun 2020 00:11:08 -0400 Date: Sat, 13 Jun 2020 00:11:08 -0400 (EDT) From: Jack Hill X-X-Sender: jackhill@marsh.hcoop.net To: Josh Marshall Subject: Re: guile-readline bug -- readline module not available In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Received-SPF: pass client-ip=104.248.1.95; envelope-from=jackhill@jackhill.us; helo=minsky.hcoop.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/13 00:11:08 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; 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-Spam-Score: -1.01 X-TUID: WGvgpdem77wn On Fri, 12 Jun 2020, Josh Marshall wrote: > Hello all, > > I ran into an issue where the readline module isn't available for the > guile repl after installing `guile-readline`. It can be replicated > via: > > `echo "(use-modules (ice-9 readline))" | guix environment --pure guile > guile-readline -- guile` > > So with that, I'm pretty sure it isn't just me. I think you actually want to be using a different guix environment command. guix environment --pure --ad-hoc guile guile-readline should get you what you want. The difference is that without --ad-hoc, what you're asking for is an environment with all the dependencies of guile and guile-readline. This is useful, for instance, if you want to work on those packages. In this case, guile is available because guile-readline depends on it, but nothing depends on guile-readline, so it is not in the environment. With --ad-hoc, you specify the the packages you want in the environment explicitly. See the manual [0] for more information and more advanced usage of environment. [0] https://guix.gnu.org/manual/en/html_node/Invoking-guix-environment.html This isn't the first time the --ad-hoc has caused confusion. I tend to use that option more often than not. There was previous discussion [1] about making environment more friendly to use interactively without breaking compatibility, but more work is still needed on that front. [1] https://lists.gnu.org/archive/html/guix-devel/2019-12/msg00126.html Hope that helps, Jack