GNU bug report logs - #73292
“guix shell --pure“ displays twice the same warning

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Simon Tournier <zimon.toutoune@HIDDEN>; dated Mon, 16 Sep 2024 08:03:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Sep 2024 08:03:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 16 04:03:01 2024
Received: from localhost ([127.0.0.1]:51033 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sq6hI-0007Am-Tm
	for submit <at> debbugs.gnu.org; Mon, 16 Sep 2024 04:03:01 -0400
Received: from lists.gnu.org ([209.51.188.17]:42244)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1sq6hG-0007Ae-Gc
 for submit <at> debbugs.gnu.org; Mon, 16 Sep 2024 04:02:59 -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 <zimon.toutoune@HIDDEN>)
 id 1sq6h3-0004ui-0h
 for bug-guix@HIDDEN; Mon, 16 Sep 2024 04:02:45 -0400
Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1sq6h1-00075h-Gx
 for bug-guix@HIDDEN; Mon, 16 Sep 2024 04:02:44 -0400
Received: by mail-wr1-x432.google.com with SMTP id
 ffacd0b85a97d-378f600e090so320608f8f.3
 for <bug-guix@HIDDEN>; Mon, 16 Sep 2024 01:02:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1726473751; x=1727078551; darn=gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=GqczhMYWqen+AjgN1MnD2M5N9a3jhurIlP7rsu1orU0=;
 b=YmYhEy8RIVw6l2CNB1aX084i0QOlbeRNdCmR6y48ES5HZvFAVROGIPLNrMsnBl+66u
 G+4N1Nsr3ZmL8WUwUrpe3MSntCX2L5AKA2ZIsbHjSD9XL04/ZRUskL0jB601rRnzqnIY
 yP6AFEtXZtcO1Dm+X79Q/Y0JyguH42Il6nvTHrMX0mUE4P8RMq8DmdWYCsyCbjDqjmXV
 OXGKfLVshQs8R2T2p0+KRoKliVb+CJMpXFY/M4rkMfg/mLtkhmDWdCLM66gczdX3+9EV
 AyvJnzRXRibyf3TBFsrTtMleSkDd0eGnie9pTCQbaS1Ocn0ZywNUoUmFegGU06CfHzdP
 zVjQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1726473751; x=1727078551;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=GqczhMYWqen+AjgN1MnD2M5N9a3jhurIlP7rsu1orU0=;
 b=NK70uyRGC/O9X3A1e6sV6RZpBDwCGq/Vp67Ky+IvfBogIRseJYBof35O9GUP0UlGUQ
 5h1i6W0ECRfTfYaMK1Bdvh8GDIDJ80V4H/OsGJmzVdNYPGsyEDX/tP9AfAjN8SoGjiUV
 4BR5uzbkg3dzbhLF9jLlF6IVmLfwshhLo76Zvn9Iaz4YXoJcBTg/4Rgm/OqR8awlX7Ie
 8zO9RGOnsjfzElKSjAK4smF5axJJKdPUJn7EmEwoE67IWxfehnUsGDNaCbUmHjlQE35F
 LCvxRJY6MEWIZ/PGKwr+1gxeKi9yd0w+UzOVNEn3q8t2r8k3/Pni3Lqkz1e2QZw25Kbr
 Iu2Q==
X-Gm-Message-State: AOJu0Yy1D4bF+uehyZd5DInbBOQA77kwCG2W0cu5UvfH63O4e7K8Rzm9
 ijXL0nwVcLLsF9M+QLdful24Kq6Uh4AaPEkAlSCFjV5LMLacALUC6mXG4g==
X-Google-Smtp-Source: AGHT+IHDt+IU9CJB6RMmH5qRg7hxzsZLFh5qcDjzYFCLo9rLzB9HCQRWCtf6JjPQ53REWeZmz1vVIw==
X-Received: by 2002:a5d:6743:0:b0:374:c640:8596 with SMTP id
 ffacd0b85a97d-378c2d04e20mr7395170f8f.32.1726473750597; 
 Mon, 16 Sep 2024 01:02:30 -0700 (PDT)
Received: from lili (roam-nat-fw-prg-194-254-61-47.net.univ-paris-diderot.fr.
 [194.254.61.47]) by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-378e7800243sm6454844f8f.86.2024.09.16.01.02.29
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 16 Sep 2024 01:02:30 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: bug-guix@HIDDEN
Subject: =?utf-8?Q?=E2=80=9Cguix?= shell =?utf-8?Q?--pure=E2=80=9C?=
 displays twice the same warning
Date: Mon, 16 Sep 2024 10:01:54 +0200
Message-ID: <87tteggh71.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::432;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-wr1-x432.google.com
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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hi,

--8<---------------cut here---------------start------------->8---
$ guix shell --pure
guix shell: warning: no packages specified; creating an empty environment
guix shell: warning: no packages specified; creating an empty environment
--8<---------------cut here---------------end--------------->8---

That=E2=80=99s because: one is from =E2=80=99auto-detect-manifest=E2=80=99 =
in (guix scripts
shell):

  (if (or (not interactive?)
          disallow-implicit-load?
          (options-contain-payload? opts))
      opts
      (match (find-file-in-parent-directories '("manifest.scm" "guix.scm"))
        (#f
         (warning (G_ "no packages specified; creating an empty environment=
~%"))
         opts)

called by =E2=80=99parse-args=E2=80=99 called by the entry-point command =
=E2=80=99guix-sell=E2=80=99.

And another one is from =E2=80=99guix-environment*=E2=80=99 in (guix scripts
environment):

        (when (null? (manifest-entries manifest))
          (warning (G_ "no packages specified; creating an empty environmen=
t~%")))

called by the entry-point command =E2=80=99guix-shell=E2=80=99.

Well, since =E2=80=98guix environment=E2=80=99 is deprecated, I would sugge=
st to remove
the warning in =E2=80=99guix-environment*=E2=80=99.  It would improve the =
=E2=80=9Cpolish=E2=80=9D.

Cheers,
simon

Reported by @lynn_sh@HIDDEN from Mastodon. :-)




Acknowledgement sent to Simon Tournier <zimon.toutoune@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#73292; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.