From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SD1UKzs9q18YeQAA0tVLHw (envelope-from ) for ; Wed, 11 Nov 2020 01:24:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QII+Jzs9q1+hIAAA1q6Kng (envelope-from ) for ; Wed, 11 Nov 2020 01:24:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 48B599403EC for ; Wed, 11 Nov 2020 01:24:10 +0000 (UTC) Received: from localhost ([::1]:44520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kcern-0004Ml-MP for larch@yhetil.org; Tue, 10 Nov 2020 20:24:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kceri-0004Me-9D for guix-patches@gnu.org; Tue, 10 Nov 2020 20:24:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56256) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kceri-0001HD-0C for guix-patches@gnu.org; Tue, 10 Nov 2020 20:24:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kcerh-0006EB-R5 for guix-patches@gnu.org; Tue, 10 Nov 2020 20:24:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44178] Add a Go Module Importer Resent-From: Helio Machado <0x2b3bfa0@gmail.com> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Nov 2020 01:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44178 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 44178@debbugs.gnu.org Received: via spool by 44178-submit@debbugs.gnu.org id=B44178.160505782423913 (code B ref 44178); Wed, 11 Nov 2020 01:24:01 +0000 Received: (at 44178) by debbugs.gnu.org; 11 Nov 2020 01:23:44 +0000 Received: from localhost ([127.0.0.1]:39569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kcerQ-0006Dc-DP for submit@debbugs.gnu.org; Tue, 10 Nov 2020 20:23:44 -0500 Received: from mail-qt1-f173.google.com ([209.85.160.173]:33788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <0x2b3bfa0@gmail.com>) id 1kcerO-0006DP-1T for 44178@debbugs.gnu.org; Tue, 10 Nov 2020 20:23:42 -0500 Received: by mail-qt1-f173.google.com with SMTP id i12so300949qtj.0 for <44178@debbugs.gnu.org>; Tue, 10 Nov 2020 17:23:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=y8nrYLjKxck1A5J3/CkEvWoKDcNwo+P2S2p8LTJikj0=; b=pJ92/7zMYpww19dNeo18coiYTUrcwoiwRN4F/lnifFVRL+J08XedjNKy3rV3ekS6GQ IHKZlZY6l4GgB0TwHVVwee72JboJTmiZRhs3Hdygr0gFPKPNa34VwLurJuUO7IRrUmcy LCLtsDAZqdCR8Oy7BBK4Up3ryYfE24oMsbhLELMtp5ZI7YMvwLqVlcAM1B+f/B1/L2ow qoidMmUzhBbCkTK6zkXRNUnTWK6cmXuX5pScDHffRzisu+C6eMVNzeJNV6Z8uOK1T1LA j0xBNhBSW1dbqu3S4lynuci1PhyPu28WyRMNcUySVMfovd5FIHAoy3iinzAdYJqQnfZS cshg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=y8nrYLjKxck1A5J3/CkEvWoKDcNwo+P2S2p8LTJikj0=; b=meFK0MF+eoC+DOnwoZ5xrQxpV1c6HTzZF44zpNduMk36PQAuiMvr6zM0ezVutEL4nT lVneCVs+j4OyVSHa4rSrpcnq6XPOhoaQlHdpG4KUikaZOP03H7gGaJ2cW/TM7pL8zrup 2KxJe0SbDSP0Zq+7lvIZmJw2BmLoVA+TukxJhHAJYK6vcWk6nLGFozIGXaL3q/eoTGbx wzQym2Cj4/g1KL/R3angSoPbspUGseOqC8DYRh8eKKlephLjnTcY+LmL/viK8pUEZkvh gW0CPD+kOvFsSpQgi+tsUnyAOTiFoOW0yzZ0b6yWJpNXtlLDY6Rsrc1fqhYKR9X2mKOs jCgQ== X-Gm-Message-State: AOAM532NlKbhFlzPtE8JKDAgLr3fcZZaSkvd3IRLog8dASOnBgXg6Un0 QHUBHFZeHybsj2AhkWsATIM9TrUFSB6tUwF2LKy5urTWU2m0Fg== X-Google-Smtp-Source: ABdhPJwUFF5LFW9/3Jc0IaAkwlIhgRoO1lw96fGyv9DWUA2xlV8DdmcubDXszWCkJL6MTmRRSQeku3gX/3yRG9v2OiI= X-Received: by 2002:aed:38ca:: with SMTP id k68mr9742206qte.28.1605057816323; Tue, 10 Nov 2020 17:23:36 -0800 (PST) MIME-Version: 1.0 References: <87sga5kpdp.fsf@gmail.com> <87blg5dkla.fsf@gnu.org> In-Reply-To: From: Helio Machado <0x2b3bfa0@gmail.com> Date: Wed, 11 Nov 2020 02:23:00 +0100 Message-ID: Content-Type: multipart/alternative; boundary="000000000000fc6c5a05b3caa49f" X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.7 (/) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=pJ92/7zM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 1.59 X-TUID: OsG5wQjz4fLk --000000000000fc6c5a05b3caa49f Content-Type: text/plain; charset="UTF-8" Thanks for the ping, Marius! I've been quite busy with some yak shaving tasks, but my importer is already working and has some interesting improvements, like elegant module fetching from the official module proxy, license extraction and recursive import support. I need to fix an esoteric bug that trips the kernel's out-of-memory killer when building a derivation with dependencies, but the importer part works pretty well. You can take a look to [my changes][1] for some readily backportable ideas, like [the compact algorithm for uppercase path escaping][2]. Please forgive the code quality and the possible backwards-compatibility mistakes; this is an unfinished proof of concept. $ guix import go-modules -r github.com/FiloSottile/age # Please refer to the issue 43872 for more information about the resting environment [1]: https://github.com/0x2b3bfa0/guix-go-modules/commit/5defe897065c5d3e63740932b360474132c77877 [2]: https://github.com/0x2b3bfa0/guix-go-modules/blob/main/guix/build-system/go.scm#L65-L71 On Wed, 11 Nov 2020 at 02:19, Helio Machado <0x2b3bfa0@gmail.com> wrote: > Thanks for the ping, Marius! I've been quite busy with some yak shaving > tasks, but my importer is already working and has some interesting > improvements, like elegant module fetching from the official module proxy, > license extraction and recursive import support. > > I need to fix an esoteric bug that trips the kernel's out-of-memory killer > when building a derivation with dependencies, but the importer part works > pretty well. > > You can take a look to [my changes][1] for some readily backportable > ideas, like [the compact algorithm for uppercase path escaping][2]. > > Please forgive the code quality and the possible backwards-compatibility > mistakes; this is an unfinished proof of concept. > > [1]: > https://github.com/0x2b3bfa0/guix-go-modules/commit/5defe897065c5d3e63740932b360474132c77877 > [2]: > https://github.com/0x2b3bfa0/guix-go-modules/blob/main/guix/build-system/go.scm#L65-L71 > > On Tue, 10 Nov 2020 at 21:26, Marius Bakke wrote: > >> Katherine Cox-Buday writes: >> >> >>From cc92cbcf5ae89891f478f319e955419800bdfcf9 Mon Sep 17 00:00:00 2001 >> > From: Katherine Cox-Buday >> > Date: Thu, 22 Oct 2020 19:40:17 -0500 >> > Subject: [PATCH] * guix/import/go.scm: Created Go Importer * >> > guix/scripts/import.scm: Created Go Importer Subcommand * >> guix/import/go.scm >> > (importers): Added Go Importer Subcommand >> >> I just want to say thanks a lot for this! I tested it, and it pretty >> much works as advertised. >> >> Cc'ing Helio who was working on a Go importer as well recently. >> > --000000000000fc6c5a05b3caa49f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the ping, Marius! I've been quite= busy with some yak shaving tasks, but my importer is already working and h= as some interesting improvements, like elegant module fetching from the off= icial module proxy, license extraction and recursive=C2=A0import support.

I need to fix an esoteric bug that trips the = kernel's out-of-memory killer when building a derivation with dependenc= ies, but the importer part works pretty well.

You = can take a look to [my changes][1] for some readily backportable ideas, lik= e [the compact algorithm for uppercase path escaping][2].

Please forgive the code quality and the possible backwards-compatib= ility mistakes; this is an unfinished proof of concept.

On Wed, 11 Nov 2= 020 at 02:19, Helio Machado <0x2b3bfa0@gmail.com> wrote:
=
Thanks = for the ping, Marius! I've been quite busy with some yak shaving tasks,= but my importer is already working and has some interesting improvements, = like elegant module fetching from the official module proxy, license extrac= tion and recursive=C2=A0import support.

I ne= ed to fix an esoteric bug that trips the kernel's out-of-memory killer = when building a derivation with dependencies, but the importer part works p= retty well.

You can take a look to [my changes][1]= for some readily backportable ideas, like [the compact algorithm for upper= case path escaping][2].

Please forgive the code qu= ality and the possible backwards-compatibility mistakes; this is an unfinis= hed proof of concept.


On Tue, 10 Nov 2020 at 21:26, Marius Bakke <marius@gnu.org> wrote:
Katherine Cox-Buday <cox.katherine.e@gmail.com> writes:

>>From cc92cbcf5ae89891f478f319e955419800bdfcf9 Mon Sep 17 00:00:00 2= 001
> From: Katherine Cox-Buday <cox.katherine.e@gmail.com>
> Date: Thu, 22 Oct 2020 19:40:17 -0500
> Subject: [PATCH] * guix/import/go.scm: Created Go Importer *
>=C2=A0 guix/scripts/import.scm: Created Go Importer Subcommand * guix/i= mport/go.scm
>=C2=A0 (importers): Added Go Importer Subcommand

I just want to say thanks a lot for this!=C2=A0 I tested it, and it pretty<= br> much works as advertised.

Cc'ing Helio who was working on a Go importer as well recently.
--000000000000fc6c5a05b3caa49f--