From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFJCi-0000gM-Tn for guix-patches@gnu.org; Wed, 24 Oct 2018 09:28:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFJCd-0007k9-0w for guix-patches@gnu.org; Wed, 24 Oct 2018 09:28:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34964) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFJCc-0007iq-QT for guix-patches@gnu.org; Wed, 24 Oct 2018 09:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gFJCc-0000vN-NT for guix-patches@gnu.org; Wed, 24 Oct 2018 09:28:02 -0400 Subject: [bug#33134] [PATCH 0/1] guix-install.sh: Add ability to run it non-interactively. Resent-Message-ID: Date: Wed, 24 Oct 2018 16:27:51 +0300 From: Efraim Flashner Message-ID: <20181024132751.GC1297@macbook41> References: <20181024001542.16368-1-s@ricketyspace.net> <20181024115443.GA1297@macbook41> <87k1m7scjw.fsf@tobias.gr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zCKi3GIZzVBPywwA" Content-Disposition: inline In-Reply-To: <87k1m7scjw.fsf@tobias.gr> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Tobias Geerinckx-Rice Cc: 33134@debbugs.gnu.org, rsiddharth --zCKi3GIZzVBPywwA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 24, 2018 at 03:24:03PM +0200, Tobias Geerinckx-Rice wrote: > rsiddharth, Efraim, >=20 > Efraim Flashner wrote: > > On Tue, Oct 23, 2018 at 08:15:42PM -0400, rsiddharth wrote: > > > I want to be able to run the guix-install.sh non-interactively[1] > > > like this: > > >=20 > > > echo "yy" | guix-install.sh > > >=20 > > > (One "y" for "Press return to continue..." prompt, the other > > > "y" for > > > "Permit downloading pre-built package binaries from the > > > project's build > > > farms? (yes/no)" prompt). > > >=20 > > > Currently, the `read` in welcome function reads both the "y". I > > > updated it to > > > read just one character. > > >=20 > >=20 > > would this work? echo "y\ny" | guix-install.sh >=20 > Not quite, but >=20 > $ echo -e "y\ny" | guix-install.sh >=20 > will. Or the more conventional >=20 > $ yes | guix-install.sh # untested >=20 > providing guix-install.sh doesn't choke on that infinite stream of "y"s. > Which it might, and even if it doesn't now, there's no guarantee that this > dirty hack won't break the future. This actually made me snort. "Alright! I get it! You really want it!" >=20 > If this is something we want to support, it could be done more better > through a '--non-interactive' or '--force' flag that skips these and any > future prompts at the source. >=20 > Non? >=20 > T G-R This is actually something I was thinking of a while ago. I use github as a mirror, and I definately wouldn't be against using their CI system to install guix, 'guix pull', 'guix build -f guix.scm'. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --zCKi3GIZzVBPywwA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlvQc1MACgkQQarn3Mo9 g1EhyA//WETs1uCC/xD2OZT4UvT54r6VEVCQ6hoL49WJdyUHDOD1Euuy5ndUFATV 9NQGIpvDCF3+Bt7rYznaIeIdng9MjQKqzDEo4fNMGxsR5qSP3nPgvYDoCKgsfGGd MGCdcECWtCs+i11sXTzE6u/Dl+h8h2tP+t7f3RyFTVR0/u/VhABTvKpYLwcnqeWs C1qygFl0JcCUgK7roKGpT5/a8f8eZKSUOpDTjmgNOIHyYc+mw5fL5iE7OVJTncin Z+RZ4mB+M/mnsZHUdkaVet/L6KlfBTXb8OvJXhyiryRArFJ1pyqC6edpBBDR13Pi SlEkUQOa5ZV0Si80N4e1DKiP3Mx60SJjMWA9RfDxH1aKa9uQyvFmSUSwSS3ixkyT 5ZDTFqHNUqeDc07jwKulgeyuZmshN7WE0XPjVgm4PlhilGlpTsTc6jd0oJbE1abj YgJe166LXOsYIuGIUrh+w1XqSp0PutX9zoFGHIXMi+ZeAd4SoOGmmx16zEvVwkUq 1gklV8PCHHzVnbrGTlL8IqwjekexlBbMkXaJ+ga3YqDQjGZxLodJTFyarmusicoI prsWpHyRLa2h6iS4RKWJ91OyjWDRj+DAJshqUVX2lWs2HGNEycsAQDastXoxe1Rs GwcHD2joaGcQVbkc3Ljt1fLLlX/tMpxQAk1pZQIb9Dzb+8fcRVo= =60Fz -----END PGP SIGNATURE----- --zCKi3GIZzVBPywwA--