unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#58417: Installer script no longer works with `yes` utility
@ 2022-10-10 15:33 Jonas Freimuth
  2022-10-11 16:04 ` Maxim Cournoyer
  0 siblings, 1 reply; 2+ messages in thread
From: Jonas Freimuth @ 2022-10-10 15:33 UTC (permalink / raw)
  To: 58417

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

Package: guix

Version: 1.4.0

Severity: important

Heyo,

I use the github `guix-install-action` 
(https://github.com/PromyLOPh/guix-install-action), which internally 
runs the `guix-install.sh` script non-interactively, via the yes utility:

```{bash}

bash -c 'yes | bash guix-install.sh'

```

However, since commit `6a2e303d3a49baf7c222a70b91f453e9efd456c6` 
(https://git.savannah.gnu.org/cgit/guix.git/commit/etc/guix-install.sh?id=6a2e303d3a49baf7c222a70b91f453e9efd456c6), 
this apparently causes the entire action to hang (leading to eventual 
termination by github).

I confirmed this behaviour by running the "Download", "Fetch Key", and 
"Install Guix" steps of the `guix-install-action` as root on a WSL2 
instance of Ubuntu20.04 (using todays wsl rootfs from 
https://cloud-images.ubuntu.com/focal/current/).

Running

```{bash}

sudo --preserve-env=GUIX_BINARY_FILE_NAME -- bash -c 'bash guix-install.sh'

```

instead of

```{bash}

sudo --preserve-env=GUIX_BINARY_FILE_NAME -- bash -c 'yes | bash 
guix-install.sh'

```

i.e. running the script interactively works fine.

Is this intended, or is there another suggested way to run the 
`guix-install.sh` script non-interactively?

Best wishes,

Jonas

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

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

* bug#58417: Installer script no longer works with `yes` utility
  2022-10-10 15:33 bug#58417: Installer script no longer works with `yes` utility Jonas Freimuth
@ 2022-10-11 16:04 ` Maxim Cournoyer
  0 siblings, 0 replies; 2+ messages in thread
From: Maxim Cournoyer @ 2022-10-11 16:04 UTC (permalink / raw)
  To: Jonas Freimuth; +Cc: 58417-done

Hi,

Jonas Freimuth <jonas.freimuth@posteo.de> writes:

> Package: guix
>
> Version: 1.4.0
>
> Severity: important
>
> Heyo,
>
> I use the github `guix-install-action`
> (https://github.com/PromyLOPh/guix-install-action), which internally
> runs the `guix-install.sh` script non-interactively, via the yes
> utility:
>
> ```{bash}
>
> bash -c 'yes | bash guix-install.sh'

This should be fixed with e46bb5fd5a.  Please report back if it there
are still issues.

Thanks for reporting the issue, and apologies for the breakage!

-- 
Maxim




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

end of thread, other threads:[~2022-10-11 16:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-10 15:33 bug#58417: Installer script no longer works with `yes` utility Jonas Freimuth
2022-10-11 16:04 ` Maxim Cournoyer

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).