unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#55317] [PATCH] doc: Clarify guix shell's DWIM behaviour.
@ 2022-05-08 15:29 Liliana Marie Prikler
  2022-05-08 15:29 ` [bug#55317] [PATCH v2] " Liliana Marie Prikler
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Liliana Marie Prikler @ 2022-05-08 15:29 UTC (permalink / raw)
  To: 55317; +Cc: Ryan Prior

---
Bonjour Guix,

as can be seen from <http://logs.guix.gnu.org/guix/2022-05-08.log#164019>,
the way in which guix shell interactively does what you mean is open to
interpretation and different folks may mean different things when
specifying nothing.  Therefore, document guix' assumptions more clearly.

Cheers

 doc/guix.texi | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 5399584cb0..249c5956e2 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -5693,17 +5693,16 @@ before @command{guix shell} was invoked.  The next garbage collection
 (@pxref{Invoking guix gc}) may clean up packages that were installed in
 the environment and that are no longer used outside of it.
 
-As an added convenience, when running from a directory that contains a
-@file{manifest.scm} or a @file{guix.scm} file (in this order), possibly
-in a parent directory, @command{guix shell} automatically loads the
-file---provided the directory is listed in
-@file{~/.config/guix/shell-authorized-directories}, and only for
-interactive use:
-
-@example
-guix shell
-@end example
-
+As an added convenience, @command{guix shell} when invoked interactively
+without any other arguments will try to do what you mean based on the
+files it locates in the current directory or parent directories.
+If it finds a @file{manifest.scm}, it uses this manifest as though
+it was given via @code{--manifest}.
+If it finds a @file{guix.scm}, it uses this package file as though
+it was given via @code{--development --file}.
+In either case, the file will only be loaded if the directory it
+resides in is listed in
+@file{~/.config/guix/shell-authorized-directories}.
 This provides an easy way to define, share, and enter development
 environments.
 
-- 
2.36.0





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#55317] [PATCH v2] doc: Clarify guix shell's DWIM behaviour.
  2022-05-08 15:29 [bug#55317] [PATCH] doc: Clarify guix shell's DWIM behaviour Liliana Marie Prikler
@ 2022-05-08 15:29 ` Liliana Marie Prikler
  2022-05-17 12:46   ` Ludovic Courtès
  2022-05-09  1:33 ` [bug#55317] [PATCH] " Ryan Prior via Guix-patches via
  2022-05-14  9:16 ` Ludovic Courtès
  2 siblings, 1 reply; 6+ messages in thread
From: Liliana Marie Prikler @ 2022-05-08 15:29 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 55317, Ryan Prior

* doc/guix.texi ("Invoking guix shell"): Document the exact behaviour, that is
which flags go together with which file names.
---
 doc/guix.texi | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index e1fb50a634..34908462e2 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -5670,17 +5670,20 @@ before @command{guix shell} was invoked.  The next garbage collection
 (@pxref{Invoking guix gc}) may clean up packages that were installed in
 the environment and that are no longer used outside of it.
 
-As an added convenience, when running from a directory that contains a
-@file{manifest.scm} or a @file{guix.scm} file (in this order), possibly
-in a parent directory, @command{guix shell} automatically loads the
-file---provided the directory is listed in
-@file{~/.config/guix/shell-authorized-directories}, and only for
-interactive use:
-
+As an added convenience, @command{guix shell} will try to do what you
+mean when it is invoked interactively as in
 @example
 guix shell
 @end example
-
+without any other arguments.  If it finds a @file{manifest.scm} in the
+current working directory or any of its parents, it uses this manifest
+as though it was given via @code{--manifest}.  Likewise, if it finds
+a @file{guix.scm} in the same directories, it uses it to build a
+development profile as though both @code{--development} and @code{--file}
+were present.
+In either case, the file will only be loaded if the directory it
+resides in is listed in
+@file{~/.config/guix/shell-authorized-directories}.
 This provides an easy way to define, share, and enter development
 environments.
 
-- 
2.36.0





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#55317] [PATCH] doc: Clarify guix shell's DWIM behaviour.
  2022-05-08 15:29 [bug#55317] [PATCH] doc: Clarify guix shell's DWIM behaviour Liliana Marie Prikler
  2022-05-08 15:29 ` [bug#55317] [PATCH v2] " Liliana Marie Prikler
@ 2022-05-09  1:33 ` Ryan Prior via Guix-patches via
  2022-05-14  9:16 ` Ludovic Courtès
  2 siblings, 0 replies; 6+ messages in thread
From: Ryan Prior via Guix-patches via @ 2022-05-09  1:33 UTC (permalink / raw)
  To: liliana.prikler, 55317

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]

-------- Original Message --------
On May 8, 2022, 10:29 AM, Liliana Marie Prikler < liliana.prikler@gmail.com> wrote:
---
Bonjour Guix,
as can be seen from <http://logs.guix.gnu.org/guix/2022-05-08.log#164019>,
the way in which guix shell interactively does what you mean is open to
interpretation and different folks may mean different things when
specifying nothing.

Thank you Liliana, this is a helpful change!

[-- Attachment #2: Type: text/html, Size: 530 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#55317] [PATCH] doc: Clarify guix shell's DWIM behaviour.
  2022-05-08 15:29 [bug#55317] [PATCH] doc: Clarify guix shell's DWIM behaviour Liliana Marie Prikler
  2022-05-08 15:29 ` [bug#55317] [PATCH v2] " Liliana Marie Prikler
  2022-05-09  1:33 ` [bug#55317] [PATCH] " Ryan Prior via Guix-patches via
@ 2022-05-14  9:16 ` Ludovic Courtès
  2 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2022-05-14  9:16 UTC (permalink / raw)
  To: Liliana Marie Prikler; +Cc: 55317, Ryan Prior

Hi,

Liliana Marie Prikler <liliana.prikler@gmail.com> skribis:

> +++ b/doc/guix.texi
> @@ -5693,17 +5693,16 @@ before @command{guix shell} was invoked.  The next garbage collection
>  (@pxref{Invoking guix gc}) may clean up packages that were installed in
>  the environment and that are no longer used outside of it.
>  
> -As an added convenience, when running from a directory that contains a
> -@file{manifest.scm} or a @file{guix.scm} file (in this order), possibly
> -in a parent directory, @command{guix shell} automatically loads the
> -file---provided the directory is listed in
> -@file{~/.config/guix/shell-authorized-directories}, and only for
> -interactive use:
> -
> -@example
> -guix shell
> -@end example
> -
> +As an added convenience, @command{guix shell} when invoked interactively
> +without any other arguments will try to do what you mean based on the
> +files it locates in the current directory or parent directories.
> +If it finds a @file{manifest.scm}, it uses this manifest as though
> +it was given via @code{--manifest}.
> +If it finds a @file{guix.scm}, it uses this package file as though
> +it was given via @code{--development --file}.
> +In either case, the file will only be loaded if the directory it
> +resides in is listed in
> +@file{~/.config/guix/shell-authorized-directories}.
>  This provides an easy way to define, share, and enter development
>  environments.

It’s clearer like this, so go for it!  Maybe you can keep the @example
bit as that makes an easily visible anchor in the text.

Thank you,
Ludo’.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#55317] [PATCH v2] doc: Clarify guix shell's DWIM behaviour.
  2022-05-08 15:29 ` [bug#55317] [PATCH v2] " Liliana Marie Prikler
@ 2022-05-17 12:46   ` Ludovic Courtès
  2022-08-16 19:16     ` bug#55317: " Liliana Marie Prikler
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2022-05-17 12:46 UTC (permalink / raw)
  To: Liliana Marie Prikler; +Cc: 55317, Ryan Prior

Hi!

Liliana Marie Prikler <liliana.prikler@gmail.com> skribis:

> * doc/guix.texi ("Invoking guix shell"): Document the exact behaviour, that is
> which flags go together with which file names.

[...]

> +As an added convenience, @command{guix shell} will try to do what you
> +mean when it is invoked interactively as in
>  @example

I’d add a colon after “in” followed by a newline.

Otherwise LGTM, thank you!

Ludo’.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#55317: [PATCH v2] doc: Clarify guix shell's DWIM behaviour.
  2022-05-17 12:46   ` Ludovic Courtès
@ 2022-08-16 19:16     ` Liliana Marie Prikler
  0 siblings, 0 replies; 6+ messages in thread
From: Liliana Marie Prikler @ 2022-08-16 19:16 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 55317-done, Ryan Prior

Am Dienstag, dem 17.05.2022 um 14:46 +0200 schrieb Ludovic Courtès:
> 
> > +As an added convenience, @command{guix shell} will try to do what
> > you
> > +mean when it is invoked interactively as in
> >  @example
> 
> I’d add a colon after “in” followed by a newline.
I pushed this in 131acaa28ded1455de291a83a8cdecab77b74a87 some while
ago (with the added colon), so I'm closing this now.

Cheers




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-08-16 19:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-08 15:29 [bug#55317] [PATCH] doc: Clarify guix shell's DWIM behaviour Liliana Marie Prikler
2022-05-08 15:29 ` [bug#55317] [PATCH v2] " Liliana Marie Prikler
2022-05-17 12:46   ` Ludovic Courtès
2022-08-16 19:16     ` bug#55317: " Liliana Marie Prikler
2022-05-09  1:33 ` [bug#55317] [PATCH] " Ryan Prior via Guix-patches via
2022-05-14  9:16 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).