From mboxrd@z Thu Jan 1 00:00:00 1970 From: swedebugia Subject: Re: Go importer - help with git-fetch Date: Tue, 6 Aug 2019 14:45:37 +0200 Message-ID: References: <4c2f5f76-b431-57ce-3697-ac2cbb48f395@riseup.net> <87sgqezj1p.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49871) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huyqV-0001m9-E0 for guix-devel@gnu.org; Tue, 06 Aug 2019 08:45:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huyqU-0001gv-Id for guix-devel@gnu.org; Tue, 06 Aug 2019 08:45:43 -0400 Received: from mx1.riseup.net ([198.252.153.129]:43704) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1huyqU-0001gE-7R for guix-devel@gnu.org; Tue, 06 Aug 2019 08:45:42 -0400 In-Reply-To: <87sgqezj1p.fsf@ambrevar.xyz> Content-Language: en-US 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" To: Pierre Neidhardt , guix-devel On 2019-08-06 12:26, Pierre Neidhardt wrote: > Just to be sure: did you write the go imported from scratch? Because a > work-in-progress has been available for a while, you may want to base > your work on it. Oh. Yeah, I did based on Go-Search and with inspiration from Jakob Kreuze. I just found the WIP golang.scm among the patches, see #35627. It relies on unstable github tarballs for sha256 hashes which in my view is not a viable approach. Also it was lacking an easy road to recursive import which is really what we want IMHO. My patch is quite concise in comparison and also extract licenses and readme's from github. It also has a complete list of the dependencies and can be easily extended with recourse-ability. Only the hashing is missing now, besides the calling script in guix/scripts/import and documentation. Anyone know how to calculate the hash based on a checkout? -- Cheers Swedebugia