* Re: 01/03: guix-install.sh: Improve prompt_yes_no procedure.
[not found] ` <20221007122837.15E56C0CD93@vcs2.savannah.gnu.org>
@ 2022-10-10 15:44 ` Lars-Dominik Braun
2022-10-10 16:26 ` zimoun
0 siblings, 1 reply; 2+ messages in thread
From: Lars-Dominik Braun @ 2022-10-10 15:44 UTC (permalink / raw)
To: guix-devel; +Cc: maxim.cournoyer
Hi Maxim,
> commit 6a2e303d3a49baf7c222a70b91f453e9efd456c6
> Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
> AuthorDate: Wed Oct 5 21:48:25 2022 -0400
>
> guix-install.sh: Improve prompt_yes_no procedure.
>
> * etc/guix-install.sh (_flush): New function.
> (prompt_yes_no): Clear input, then only read the first character, silently.
> Add the [Yes/no] string to the message. When a newline is entered by the
> user, treat it as the default value, which is "yes".
> (chk_gpg_keyring): Remove "(yes/no)" from the prompt message.
> (configure_substitute_discovery): Likewise.
> (sys_authorize_build_farms): Likewise.
I got a report here[1] that this refactoring broke my GitHub action,
which simply pipes `yes` into guix-install.sh. Thus all pipelines
depending on https://github.com/PromyLOPh/guix-install-action are (again)
broken. Shall we revert this or do you have a quick fix at hand?
Lars
[1] https://github.com/PromyLOPh/guix-install-action/issues/16
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 01/03: guix-install.sh: Improve prompt_yes_no procedure.
2022-10-10 15:44 ` 01/03: guix-install.sh: Improve prompt_yes_no procedure Lars-Dominik Braun
@ 2022-10-10 16:26 ` zimoun
0 siblings, 0 replies; 2+ messages in thread
From: zimoun @ 2022-10-10 16:26 UTC (permalink / raw)
To: Lars-Dominik Braun, guix-devel; +Cc: maxim.cournoyer
Hi,
On lun., 10 oct. 2022 at 17:44, Lars-Dominik Braun <lars@6xq.net> wrote:
> I got a report here[1] that this refactoring broke my GitHub action,
> which simply pipes `yes` into guix-install.sh. Thus all pipelines
> depending on https://github.com/PromyLOPh/guix-install-action are (again)
> broken. Shall we revert this or do you have a quick fix at hand?
Oh, indeed. I was expected that
bash -c 'yes | bash guix-install.sh'
would still work with ’_flush’. Hum, why does it pass for
’chk_gpg_keyring’ and then not for ’configure_substitute_discovery’
called by ’sys_enable_guix_daemon’?
Cheers,
simon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-10 16:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <166514571663.3366.6547940820636399037@vcs2.savannah.gnu.org>
[not found] ` <20221007122837.15E56C0CD93@vcs2.savannah.gnu.org>
2022-10-10 15:44 ` 01/03: guix-install.sh: Improve prompt_yes_no procedure Lars-Dominik Braun
2022-10-10 16:26 ` zimoun
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.