From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IAI2B4eOBGBkPAAA0tVLHw (envelope-from ) for ; Sun, 17 Jan 2021 19:22:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ANzzAoeOBGANfwAAB5/wlQ (envelope-from ) for ; Sun, 17 Jan 2021 19:22:47 +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 88B729404DF for ; Sun, 17 Jan 2021 19:22:46 +0000 (UTC) Received: from localhost ([::1]:42912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1DdM-00071b-5C for larch@yhetil.org; Sun, 17 Jan 2021 14:22:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <0x2b3bfa0@gmail.com>) id 1l18AG-00010x-5F for help-guix@gnu.org; Sun, 17 Jan 2021 08:32:20 -0500 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]:37250) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <0x2b3bfa0@gmail.com>) id 1l18AC-0000eA-GX for help-guix@gnu.org; Sun, 17 Jan 2021 08:32:19 -0500 Received: by mail-qv1-xf30.google.com with SMTP id l7so6323566qvt.4 for ; Sun, 17 Jan 2021 05:32:15 -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=vgYgFzQWFQeSyAmMVCxZZ5nHZCt9eqTtl0ZDAif1ii0=; b=FsnZzG1eIONL/Z6Ox4z6Cbj6v+NZ9ykycuR4SjV+vsBuJiPyF1qxOjkj7A6vhjlJtH fGsolSSqkGO/azKE3vE9RM2Ss/aQAUNrQoA0UibbcJr02ennaxLDCr4Wglk9Q8ofX5ra lBpW+blsbRZKUdbjzI5VrMXdMaQ5ooukAZa2rTU1ZeeReT2RqC5nSnmgUyucwfor8XY2 2QuE8dKxrPH5IcLOGrr0jlnh3P0x5pth4QuVbOXG8gYKH4D5MxfELZaqGMG1fqYEcxG/ JPdVdho/yVaGrg9rsVvxosmYfd29axstBsQ6I2EwX6N6w3NiJ8/4I8V7Ia1gWpBtVI13 TwwQ== 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=vgYgFzQWFQeSyAmMVCxZZ5nHZCt9eqTtl0ZDAif1ii0=; b=okq5ZXb3E88oNB55stroAqtj4IjYLA1JuLNKu7uXZI8TEhOLFrVrCePBQ9XQqGD0yb cGUgO5AGqPv8QM8T2s9/139DI8VKMB9X3ixs/OE75LM0dzQ+I6ireY0m3rPI726/tre7 aypbzDWOcjuJkhQYMuy8gQ6o614UwtmN8ldmAnopUUVTRpTFo5sllP0RCvx+eJj1Gs8K bQn8Ki9eyomeyyQayNBpfIrPAerqeDptbHIQOKi+U9IYb6p0LicdWIwsUiFYgmfdTyH0 xFwBzhGr2c0rH+vQvN3hD9P5K56qVUTY2R9CiwcYgThe0R6HpNYZWrD/yXQUhMmGCIhH JcKQ== X-Gm-Message-State: AOAM5309tpbWS51/Ecnz5JoDVsdWiCppL4UV8oUJmIxF+ym1thOyE/kl BSAux8JE5I5t9RoYrvOqSQPKLbZiu63zV8Fc9aM= X-Google-Smtp-Source: ABdhPJzoUFMYV3L9jH75Zo5Cs1PVMzxmoR6Q/VqE+E+CPQ2moxsBQRCYYRkPA8JI1Wdwg17nl3uhgmc6jkmh9eAWuIM= X-Received: by 2002:ad4:42a5:: with SMTP id e5mr20163894qvr.37.1610890334982; Sun, 17 Jan 2021 05:32:14 -0800 (PST) MIME-Version: 1.0 References: <87h7nrud2a.fsf@timmydouglas.com> <4bdbc469-ad45-4739-b001-739ad3a60adc@www.fastmail.com> <87a6thtyvm.fsf@timmydouglas.com> <87bldw0ztb.fsf@timmydouglas.com> In-Reply-To: <87bldw0ztb.fsf@timmydouglas.com> From: Helio Machado <0x2b3bfa0@gmail.com> Date: Sun, 17 Jan 2021 14:31:39 +0100 Message-ID: Subject: Re: packaging a golang package To: Timmy Douglas , Leo Famulari , help-guix@gnu.org, Katherine Cox-Buday , Helio Machado <0x2b3bfa0@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::f30; envelope-from=0x2b3bfa0@gmail.com; helo=mail-qv1-xf30.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 17 Jan 2021 14:22:31 -0500 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.24 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=FsnZzG1e; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 88B729404DF X-Spam-Score: 0.24 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8zjSY7wlU8vl Hi! Looks like it ran into the replace syntax and didn't parse it correctly? > https://golang.org/ref/mod#go-mod-file So it seems. I'll debug it as soon as I can; the import process is unbearably long. I sort of wonder if the `git-fetch` portion of go packages should be > something like `git-fetch-and-restore-go-modules` Maybe something like > `go mod vendor` could be used an the hash would be calculated on that? > I'm not familiar enough with the internals of go modules, but I'm not > really seeing the value in generating a bunch of package metadata on all > the module dependencies. > Guix seems to have a strong opinion about dependency vendoring, but it's technically viable as long as you don't produce architecture-specific artifacts when packaging. See https://issues.guix.info/43872 for more information about the pitfalls I encountered while packaging go-ethereum the fast way.