From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'. Date: Thu, 08 Oct 2015 14:27:20 +0300 Message-ID: <87d1wpfvmv.fsf@gmail.com> References: <1443791046-1015-1-git-send-email-alezost@gmail.com> <1443791046-1015-3-git-send-email-alezost@gmail.com> <87d1wvadw2.fsf@gnu.org> <87bnceah2e.fsf@gmail.com> <87r3la6077.fsf@gnu.org> <87eghalc7s.fsf@gmail.com> <87wpv1tils.fsf@gnu.org> <87a8rwf2vl.fsf@gmail.com> <87mvvu6f5y.fsf@gnu.org> <87si5mbnfr.fsf@gmail.com> <87k2qy1gah.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk9M3-00037I-E2 for guix-devel@gnu.org; Thu, 08 Oct 2015 07:27:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zk9Lz-0006PB-BI for guix-devel@gnu.org; Thu, 08 Oct 2015 07:27:23 -0400 In-Reply-To: <87k2qy1gah.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 08 Oct 2015 00:10:14 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s (2015-10-08 01:10 +0300) wrote: [...] >>>> for example "" (an empty string). Also I believe people begin to >>>> write a new package from some template, so you have a working skeleton >>>> of future package with all required fields from the very beginning. >>>> Then after filling an origin 'uri', you could "C-c . s" to download >>>> the source and get its hash. >>> >>> Hmm. I=E2=80=99m skeptical. :-) >> >> Sorry, I didn't get it. Skeptical that people start from a template? > > Yes, it feels weird to me, the idea that an object with bogus > values would be created just for the sake of satisfying the download > tool. Hm, I have an opposite opinion: for me it is weird to write a package from scratch. I usually start from a package template that has all required fields (including ) or even I just copy an existing package and then modify the fields I need. I wonder, do you start to write a package from scratch? > Wouldn=E2=80=99t the explanation in the manual of how to use this be rela= tively > complex? That=E2=80=99s a good benchmark. As I see it, it is not complex: =C2=ABDownload a source of the package defined by the current variable definition and print its SHA256 hash. This command has the same meaning as running @code{guix download} on the package source (@pxref{Invoking guix download})=C2=BB Anyway, after all I'm not going to add this command to not give people an incentive not to check signatures. >>> What about, instead, providing an interactive function that would prompt >>> for a URL, run =E2=80=98guix download=E2=80=99 on that, and emit an =E2= =80=98origin=E2=80=99 template at >>> point with all the info? >> >> I see several problems here, but the main is: this sounds like it should >> be synchronous: you give an URL, wait until the source is downloaded and >> finally get the template at point. But downloading can take a VERY long >> time, so I don't think it will be a usable command. > > Good point. But there=E2=80=99s the same problem with what you propose n= o? The > user somehow has to wait for the download to complete? Well, sure you also need to wait for the download, but your Emacs won't be freezed for all this time, so you can do something else while it is being downloaded in the REPL. >>> (Him or her.) >> >> Yes, I just always say/write "he", "him", etc. > > Yeah, but I think it=E2=80=99s best to try and avoid this language bias (= see > .) We want to > welcome all human beings to our Guix party, don=E2=80=99t we? :-) Wow, I didn't realize it could be counted as an offence. In Russian (my native language) a phrase "A user does something, because he ..." is absolutely neutral. Thanks for the info! --=20 Alex