From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oHGzFwqG52G0cgAAgWs5BA (envelope-from ) for ; Wed, 19 Jan 2022 04:31:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UIs4FAqG52EHYAEAauVa8A (envelope-from ) for ; Wed, 19 Jan 2022 04:31:22 +0100 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 BDADF29455 for ; Wed, 19 Jan 2022 04:31:21 +0100 (CET) Received: from localhost ([::1]:38124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nA1gu-0002wz-TU for larch@yhetil.org; Tue, 18 Jan 2022 22:31:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nA1ff-0002wq-HU for bug-guix@gnu.org; Tue, 18 Jan 2022 22:30:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59157) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nA1ff-0003pX-05 for bug-guix@gnu.org; Tue, 18 Jan 2022 22:30:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nA1fe-00030Z-Os for bug-guix@gnu.org; Tue, 18 Jan 2022 22:30:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53355: guix shell --check: confusing error message Resent-From: Chris Marusich Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 19 Jan 2022 03:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53355 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 53355@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164256295311472 (code B ref -1); Wed, 19 Jan 2022 03:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jan 2022 03:29:13 +0000 Received: from localhost ([127.0.0.1]:52060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nA1er-0002yy-7C for submit@debbugs.gnu.org; Tue, 18 Jan 2022 22:29:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:39778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nA1en-0002yp-KU for submit@debbugs.gnu.org; Tue, 18 Jan 2022 22:29:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nA1en-0002uK-E8 for bug-guix@gnu.org; Tue, 18 Jan 2022 22:29:09 -0500 Received: from [2607:f8b0:4864:20::1029] (port=50891 helo=mail-pj1-x1029.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nA1ek-0003eT-R7 for bug-guix@gnu.org; Tue, 18 Jan 2022 22:29:09 -0500 Received: by mail-pj1-x1029.google.com with SMTP id pf13so1273115pjb.0 for ; Tue, 18 Jan 2022 19:29:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=nnFRz73MbhuLcEhNEVi8POZnviQtuwyS9/E/S2jQVyA=; b=Ix8B0Ewh/tzat8tVE2uFgsUZIKmSkGVaFQdJ8HU25dJLvUvbmze5eXqPiBGLrbK+an JJUgtmjPcAqGFr0CsnIQ57GuMGYcmyny4VhI4l/mq/HWz38wxPuO6ZZeOE+zdX3QImzO VuT3NM9Zf+yrFbybtiVs3x+GwSGMDj5f+TiEHhTtjU6leCkBn7NqjgeKbUVB1VtZ/mge CJ/nprqKKbmzkPi8oA5ZVwcWUJE9bFz2AnjUsV2fZhXbbbBwDBv6rJk4rp7TgUu7ADa4 1mgiNb+tzMI+X2l66fRvroE0QPMDuST5CmL3FnD0FOdRDwDCZqUETZgFRtd4lu5vVd0f l+5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=nnFRz73MbhuLcEhNEVi8POZnviQtuwyS9/E/S2jQVyA=; b=gIKXjjA7mggT7od5cgUzkvxaUITyhTcRXlN7UK3VwxVul5rftKkv7XSO24veTrYhpY vaySOpQdBbFZNvPjUXnqjTOIhVavbQpoTKJ2MxIcQ6gmbN77sdNlSOKAAWwDPMdTlYg4 wQ1OpreZ6bwArhOcIRlJqgzkRcPcGcxpV+2oeMxDmNxAAyqZEPYhJxYRsbdcNyd7hLIK 3OyAtOM8RAQg72VaDeWo40sRQtzeG9r47zkXafK7uqYfIQfgwElw4ZpvJiBPtOlpI0VC VBnmk235MYGNP/UVsoLkB8bVsE2pjkAkfFxsFRCSVtVk9o36td/vWIGzs9j4EMlFvPf3 UseQ== X-Gm-Message-State: AOAM530AUrLC5qqnABDOcMMEx7ZBMhoZjBLR4ZVYOc7FBCMnD6XJ+2DW wVg22pVSufF72y8xUFRYhgD20iqLxQU= X-Google-Smtp-Source: ABdhPJz7yU6YxJFokwFThc44lBmTbkWSkJbYdN1UiQWCLUeYEHSq99JT+1mx7UD7lxzw/w0RV8hs4g== X-Received: by 2002:a17:903:32c2:b0:14a:37ba:2fa3 with SMTP id i2-20020a17090332c200b0014a37ba2fa3mr30789757plr.37.1642562944228; Tue, 18 Jan 2022 19:29:04 -0800 (PST) Received: from garuda-lan (c-71-231-157-28.hsd1.wa.comcast.net. [71.231.157.28]) by smtp.gmail.com with ESMTPSA id h5sm18662560pfi.46.2022.01.18.19.29.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jan 2022 19:29:03 -0800 (PST) From: Chris Marusich Date: Tue, 18 Jan 2022 19:29:00 -0800 Message-ID: <87h7a08kub.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1029 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=cmmarusich@gmail.com; helo=mail-pj1-x1029.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642563081; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=nnFRz73MbhuLcEhNEVi8POZnviQtuwyS9/E/S2jQVyA=; b=ArGu/FuVVKr4fM9YyUqZEnec2ZkySnjLaFglpbc+v4ys7YPSPmxcCH9Q1cJrNl4BIthqu+ +N7wpB7PzZr54yW7EBM1mbKSHGk9tkrnAad664EHXb/yFAMgD51Wn9uNE2Q3B0lBqy/hJw hlCsu0b1aQJjxetKZDXieLJzkLy1Bo3jB5p0Mi5tpbnYuhYHSR107mzQ9RoyLCH4VN0qR/ Rbrjkj8YP/s03YcVtuJpSEI2K2HtKSIHovvPjNt0rVYAWJce1Y/F3EcN+hzpv5l6zE1xGM Ny8BSrxOILtN7AJu/Uo7OwZmaKVMHcK2tjokg4/o+G8DFuBT9Axrivs5iqtz+A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642563081; a=rsa-sha256; cv=none; b=C7DxMSKK6TlQIXbt9bwTvyTrcvokNo41laskfEew4J5TRL+cunUiyQWr8RHYKSwFx2hiSA hjnM+DUVOKXLAUYo86eByUE+0H/TWRZXyzWXbhQ506xxHkCxevp0+akVXHT3FtwQcy6B8W 9bNo3Ps+/8zWvZADuj3fG8spW6NJ10MG6xplj5RkTsyTusL4jRaY/FB4ubZrBwmjuEwvbH qInLJOYlaemuKdX16gvEF34CXcXYn7WwwMhEMDHGD04XsndmXr5HDBIUMsaKKYGm0JjyeU w3YSDeadTDYxmeA7l0eEfjj++ufqXWJL1Ww1pQWgIhQq6mWIOa5oxlTMRSVijA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Ix8B0Ewh; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.82 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Ix8B0Ewh; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: BDADF29455 X-Spam-Score: -3.82 X-Migadu-Scanner: scn1.migadu.com X-TUID: NuUbXZlrsLdi --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I've grown so used to using "guix environment," I thought I'd try out "guix shell." It looks pretty neat! It's good to try to improve the CLI. However, when I tried "guix shell," I quickly observed this confusing behavior: =2D-8<---------------cut here---------------start------------->8--- [130] marusich@suzaku:~/guix-master $ guix shell --container --check -D guix guix shell: checking the environment variables visible from shell '/bin/bas= h'... guix shell: warning: variable 'PKG_CONFIG_PATH' is missing from shell envir= onment hint: One or more environment variables have a different value in the shell= than the one we set. This means that you may find yourself running code in an environment different from the one you asked Guix to prepare. This usually indicates that your shell startup files are unexpectedly modifying those environment variables. For example, if you are using Bash, make sure that environment variables are set or modified in `~/.bash_profile' and _not_ in `~/.bashrc'. For more information on Bash startup files, run: info "(bash) Bash Startup Files" Alternatively, you can avoid the problem by passing the `--container' or `-C' option. That will give you a fully isolated environment running in a "container", immune to the issue described above. [1] marusich@suzaku:~/guix-master $ env | grep PKG_CONF [1] marusich@suzaku:~/guix-master $ guix shell --check -D guix guix shell: checking the environment variables visible from shell '/bin/bas= h'... guix shell: warning: variable 'PKG_CONFIG_PATH' is missing from shell envir= onment hint: One or more environment variables have a different value in the shell= than the one we set. This means that you may find yourself running code in an environment different from the one you asked Guix to prepare. This usually indicates that your shell startup files are unexpectedly modifying those environment variables. For example, if you are using Bash, make sure that environment variables are set or modified in `~/.bash_profile' and _not_ in `~/.bashrc'. For more information on Bash startup files, run: info "(bash) Bash Startup Files" Alternatively, you can avoid the problem by passing the `--container' or `-C' option. That will give you a fully isolated environment running in a "container", immune to the issue described above. [1] marusich@suzaku:~/guix-master $ guix shell -D guix [0] [env] marusich@suzaku:~/guix-master $ env | grep PKG PKG_CONFIG_PATH=3D/gnu/store/qr79b2m6cfdj8ar7g0psqg4hglm6djfm-profile/lib/p= kgconfig [0] [env] marusich@suzaku:~/guix-master $ exit [0] marusich@suzaku:~/guix-master $ guix shell --container -D guix marusich@suzaku ~/guix-master [env]$ env | grep PKG PKG_CONFIG_PATH=3D/gnu/store/qr79b2m6cfdj8ar7g0psqg4hglm6djfm-profile/lib/p= kgconfig marusich@suzaku ~/guix-master [env]$ =2D-8<---------------cut here---------------end--------------->8--- I found the following things to be confusing: (1) The error message claims that PKG_CONFIG_PATH is "missing from shell environment." However, it seems to be present when I run "env". (2) It says I can avoid the problem by passing the `--container' option, but even when I do that, the problem seems to persist. If that is expected behavior, then perhaps the wording should be changed to something less certain, such as "you might be able to avoid the problem". It does not seem to be the case that I can avoid the problem by passing the `--container' option in this case. What's really going on here? It's good to be able to look at this feature with the eyes of a newbie, since I'm very used to using "guix environment", but "guix shell" is totally new to me. I thought it would be a good opportunity to provide feedback. =2D-=20 Chris PGP: https://savannah.gnu.org/people/viewgpg.php?user_id=3D106836 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAmHnhXwVHGNtbWFydXNp Y2hAZ21haWwuY29tAAoJEN1AmhXYIkadWR8QANlUC+4jvnGuBlBna2hZl3Qzups+ YBT9EryqYYJxPMY/9IY/cq62nwgtr15WGy03jZjox2cRfimgMBN4u24eY9Mx51hn Ew7IQR/Cq951q6QOP077Av1hZ7Ey3kJPtln6aUYbLfzo8AT/8/iUpjJZ19vxPiye gsP4/6AtoCqMFKfw6KQubHzaJAhOJ7I08Ztyr5DYx5IEjhnT/T2D/hk4gMggNs2y gaWzw/9FXISYl88rsbB3e0WsWBmtvbXkY5wZLJqytcyfmVhINHcAAWof+OhsA0CK Ngb8uNXtwn4eB1/O6wSCCKk8pDOlZwZ/PzmmlIKHMwRlTu1EVe+r0eF2+dvyjWRM L7d5hlFYkCBl/y45IYhEE+W3GuDvZzSYenYVoa5KiRPe/dbFvBlwkA7p/5jCZBNJ yok5EF3t6/EQhicuTYEGfqJUdQHPwXeQpuIYP59dOsuxwa6KkuzTP6kmMM8rJtjL FjgB9tq4dAX+x49Oo37mwvG0jjMoJdIVRZBBmhloenPPJLqbdK5T1YEnN3PCwfXW gqT181jznOFXcFCz1/6KzPlDdyb7dXOi9ZyaOrGJSGt17PKKc04YHBLb+d/2sPKC pvohNZM+VJlwLkn0JSuX2Pv+YbuSI+U+T31/F0wdSgYlj0R8Z1vYqj1S1wSrep0y 2esEmSKqCxXR2V/s =E1CA -----END PGP SIGNATURE----- --=-=-=--