all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simon Tournier <zimon.toutoune@gmail.com>
To: "André A. Gomes" <andremegafone@gmail.com>, help-guix@gnu.org
Subject: Re: guix shell without arguments
Date: Fri, 12 May 2023 14:18:52 +0200	[thread overview]
Message-ID: <87bkip215f.fsf@gmail.com> (raw)
In-Reply-To: <871qjlizan.fsf@gmail.com>

Hi,

On ven., 12 mai 2023 at 14:06, André A. Gomes <andremegafone@gmail.com> wrote:

> --8<---------------cut here---------------start------------->8---
> guix shell -D -f /path/to/guix.scm -- foo-command
> --8<---------------cut here---------------end--------------->8---
>
> The incantation below creates an empty environment.  But wouldn't it be
> nice if it would infer manifest.scm or guix.scm, in case they exist in
> the current directory?
>
> --8<---------------cut here---------------start------------->8---
> guix shell -- foo-command
> --8<---------------cut here---------------end--------------->8---

That’s already the case, no?   From the manual:

    If it finds a manifest.scm in the current working directory or any
    of its parents, it uses this manifest as though it was given via
    --manifest. Likewise, if it finds a guix.scm in the same
    directories, it uses it to build a development profile as though
    both --development and --file were present. In either case, the file
    will only be loaded if the directory it resides in is listed in
    ~/.config/guix/shell-authorized-directories. This provides an easy
    way to define, share, and enter development environments.

    <https://guix.gnu.org/manual/devel/en/guix.html#Invoking-guix-shell>

Is it a regression?

Cheers,
simon


  reply	other threads:[~2023-05-12 16:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-12 11:06 guix shell without arguments André A. Gomes
2023-05-12 12:18 ` Simon Tournier [this message]
2023-05-12 16:14   ` Thompson, David
2023-05-13 12:05     ` Simon Tournier
2023-05-12 16:19   ` André A. Gomes
2023-05-12 13:10 ` Thompson, David
2023-05-12 14:17   ` Hafeez Bana
2023-05-14 15:51     ` Felix Lechner via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bkip215f.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=andremegafone@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.