From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wCk8L4BFyV7jTQAA0tVLHw (envelope-from ) for ; Sat, 23 May 2020 15:47:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iJQhK4BFyV5HdgAAB5/wlQ (envelope-from ) for ; Sat, 23 May 2020 15:47:12 +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 1B8A494042C for ; Sat, 23 May 2020 15:47:12 +0000 (UTC) Received: from localhost ([::1]:34390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcWMf-00088F-ES for larch@yhetil.org; Sat, 23 May 2020 11:47:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcWMY-00086n-OK for bug-guix@gnu.org; Sat, 23 May 2020 11:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcWMY-00071F-FG for bug-guix@gnu.org; Sat, 23 May 2020 11:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jcWMY-0008Ao-EB for bug-guix@gnu.org; Sat, 23 May 2020 11:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41458: Misleading error message when call guix command using pre-inst-env script Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 23 May 2020 15:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41458 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?J=C3=A9r=C3=A9my?= Korwin-Zmijowski Received: via spool by 41458-submit@debbugs.gnu.org id=B41458.159024877831362 (code B ref 41458); Sat, 23 May 2020 15:47:02 +0000 Received: (at 41458) by debbugs.gnu.org; 23 May 2020 15:46:18 +0000 Received: from localhost ([127.0.0.1]:35342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcWLp-00089m-P9 for submit@debbugs.gnu.org; Sat, 23 May 2020 11:46:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcWLn-00089a-IS for 41458@debbugs.gnu.org; Sat, 23 May 2020 11:46:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44526) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcWLh-0006hU-Uw; Sat, 23 May 2020 11:46:09 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=52602 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jcWLh-0007sZ-4n; Sat, 23 May 2020 11:46:09 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Sat, 23 May 2020 17:46:06 +0200 In-Reply-To: ("=?UTF-8?Q?J=C3=A9r=C3=A9my?= Korwin-Zmijowski"'s message of "Fri, 22 May 2020 16:59:05 +0200") Message-ID: <87367q64e9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 41458@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=none; dmarc=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: -1.01 X-TUID: URmQP4f8uJOn Hi, J=C3=A9r=C3=A9my Korwin-Zmijowski skribis: > Here is my command line history : > > $ git clone https://git.savannah.gnu.org/git/guix.git > $ cd guix > $ guix environment --pure guix > [dev]$ ./bootstrap && ./configure --localstatedir=3D/var && make && > exit > =E2=80=A6 > $ ./pre-inst-env guix build artanis > guix: build: command not found > Try `guix --help' for more information. What probably happens here is that some of the required dependencies provided in $GUILE_LOAD_PATH by =E2=80=98guix environment=E2=80=99 are not = available outside the environment. As a result, loading the (guix scripts build) module and its dependencies fail, which the machinery interprets as =E2=80= =9Cno such command=E2=80=9D. This is a development environment issue that cannot happen when using a =E2=80=98guix pull=E2=80=99-provided =E2=80=98guix=E2=80=99 command. I wou= ld close it as =E2=80=9Cwontfix=E2=80=9D since, after all, it=E2=80=99s just one of the many ways one can end up wit= h a non-functional development environment. WDYT? Ludo=E2=80=99.