unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
Cc: guix-devel@gnu.org
Subject: Re: Bootstrap script only works with guix environment, not with guix shell
Date: Fri, 08 Jul 2022 23:10:36 +0100	[thread overview]
Message-ID: <8735fb8d78.fsf@cbaines.net> (raw)
In-Reply-To: <15fc706b-7e07-c3cf-e5dd-c24c9bdfb0ed@posteo.de>

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


Zelphir Kaltstahl <zelphirkaltstahl@posteo.de> writes:

> I am messing around again with updating a package and according to my
> own guide from previous adventures, I have to run the following
> command to generate the `pre-inst-env` script, in the root directory
> of the guix sources:
>
> ~~~~
> guix environment guix -- ./bootstrap
> ~~~~

→ guix environment --help
Usage: guix environment [OPTION]... PACKAGE... [-- COMMAND...]
Build an environment that includes the dependencies of PACKAGE and execute
COMMAND or an interactive shell in that environment.


So this is giving you an environment including the dependencies of the
guix package, which is I think what you want, since you're trying to run
the ./bootstrap script.

> But then I remembered, that actually `guix shell` is the newer thing and changed it to:
>
> ~~~~
> guix shell guix -- ./bootstrap
> ~~~~

→ guix shell --help
Usage: guix shell [OPTION] PACKAGES... [-- COMMAND...]
Build an environment that includes PACKAGES and execute COMMAND or an
interactive shell in that environment.


guix shell is a newer command, but new things don't just replace old
things because they're newer. guix shell isn't intended to replace guix
environment, just to make it easier to get an environment that includes
some specific packages (rather than having to pass --ad-hoc to guix
environment).

In this case, you've got an environment containing guix, rather than the
dependencies of guix.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

      parent reply	other threads:[~2022-07-08 22:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-08 21:57 Bootstrap script only works with guix environment, not with guix shell Zelphir Kaltstahl
2022-07-08 22:02 ` Zelphir Kaltstahl
2022-07-08 22:06   ` Julien Lepiller
2022-07-08 22:07   ` Ekaitz Zarraga
2022-07-08 22:16     ` Zelphir Kaltstahl
2022-07-08 22:22       ` Ekaitz Zarraga
2022-07-08 22:10 ` Christopher Baines [this message]

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=8735fb8d78.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=guix-devel@gnu.org \
    --cc=zelphirkaltstahl@posteo.de \
    /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 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).