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 ms0.migadu.com with LMTPS id 0FOGLfMHlWBvAQEAgWs5BA (envelope-from ) for ; Fri, 07 May 2021 11:27:15 +0200 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 cKQrKfMHlWD8BgAAB5/wlQ (envelope-from ) for ; Fri, 07 May 2021 09:27:15 +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 C7F071008E for ; Fri, 7 May 2021 11:27:14 +0200 (CEST) Received: from localhost ([::1]:42228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lewlM-00019n-Ld for larch@yhetil.org; Fri, 07 May 2021 05:27:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lewkw-00019Z-8z for help-guix@gnu.org; Fri, 07 May 2021 05:26:47 -0400 Received: from mail-40136.protonmail.ch ([185.70.40.136]:47730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lewkq-0004TT-30 for help-guix@gnu.org; Fri, 07 May 2021 05:26:45 -0400 Date: Fri, 07 May 2021 09:26:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail3; t=1620379588; bh=4i/ND18E7v90D6uEls05EAE/4W/5j1zDZ3o06znlcBM=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=JjsvcvZQwd9whqpsYfmhcF4EZetElDNBwMiDE1AmN7w9hLzJPyxVtavNUazFIjGBm 1w1U4aQREIAcRZeetfiTggB2QjXU5OyN1UixXph9sCJIUpesOQTO0cyF2//8fG5wjO aM57x53FjnnhfObxVjglE91Z5WTFcvRLTf7h9E1XLh0X9z0aFldJHAEkzRhPv0nCyL COgi0AV40Y3ItTHH/xQM04nrAsYo91O0v/yZZrbSF8vVI39gNyLZztUfbirKzImqik +r1WNVKCfM/vEQPZ9isyNSpejyfsn/hQ5gKHWiBnTyqaIuAvoyTANQRFKuNh2y87aR VmMMVbUpzh5tQ== To: Formbi From: Ekaitz Zarraga Subject: Re: Packaging Golang programs Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.136; envelope-from=ekaitz@elenq.tech; helo=mail-40136.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-To: Ekaitz Zarraga Cc: "help-guix@gnu.org" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620379635; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4i/ND18E7v90D6uEls05EAE/4W/5j1zDZ3o06znlcBM=; b=cYcjz9tc76N4raf/HN72VcdTfQ0EhM/R5j9uFPuCdkjtd05n0KL5HvGBE1Rbyv8SIFG/hB 5Bm4epk2E+aDdlA/xpzYDwMF+onNxmFAN5+QVNDXna3iKnhkJ+jbC+OF37g6B+DgVd7ST4 VgmeuJ4dcvEsVllbHPFAEoe4MeVLEUPZ5mME5kq6+D+ORxOuPK0pidckRkifkT1/bcY1HT iB+JfIotJscrQI3bWCfhqUVVnIxLeCa6ppxOKj7qBe2pCjQ8zSPmJsl8dvz/WMF34VliW0 5F0Rwj3bhYP69H6eAUK0Gfh7FI9VG/AVVTh0Cnf2aWygOYLpmoPQEGCG6WNrMQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620379635; a=rsa-sha256; cv=none; b=Nd/MEZJGKayksKEm1wH03M1ZaWIl7qTL83qe1YLjYhTsWrcWzBTsw2oD3lj8enqzsYqkqe vlP+cKDZAiqlWE4Pnhtb6Ig2LU6gEuCygQC5QvoLiT5CcNoHJ0kP2qxTo0YUQvc+nRjsiC kQ8yGNMLc7RRv1szLaLutqgPiBBn1cc3ZSzgxjptNZTO7MwffPxyA0Yp6T4lEUTO9t/+XU zSjaTDI7GR34IyA4vvwnEGXuTgE1glfZrfQbP91++fCSR2FTAL7bz8jem21Hzd9oApybGX UooUeuaVAdGYvu972lYzq/10TTPSd2d3CZE0ZlRzAkAhe7zKG8KAZGd+rNz66g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail3 header.b=JjsvcvZQ; 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-Spam-Score: -1.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail3 header.b=JjsvcvZQ; dmarc=pass (policy=none) header.from=elenq.tech; 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: C7F071008E X-Spam-Score: -1.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: W71+m0lDJyfA =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Friday, April 30, 2021 3:24 PM, Formbi wrote: > Hi > > I'm trying to package Protonmail's proton-bridge, which is written in Go.= In most cases, it's quite easy to import a package or write the definition= manually. However, some packages are made of sub-packages and the build sy= stem says, for example: > > can't load package: package golang.org/x/mobile: no Go files in (= =E2=80=A6) > > Those packages are referenced as whole, though. If the sub-packages (with= #:unpack-path) are needed, they don't really work either. For example gith= ub.com/shurcooL/httpfs/vfsutil in the test suite can't find itself: > > package github.com/shurcool/httpfs/vfsutil_test > imports github.com/shurcooL/httpfs/vfsutil: cannot find package "github.c= om/shurcooL/httpfs/vfsutil" in any of: > /gnu/store/y5rwacd5l4q26pxis28wsmswj2603hkw-go-1.14.15/src/github.com/shu= rcooL/httpfs/vfsutil (from $GOROOT) > /tmp/guix-build-go-github-com-shurcool-httpfs-vfsutil-0.0.0-2019070722062= 8-8d4bc4ba7749.drv-0/src/github.com/shurcooL/httpfs/vfsutil (from $GOPATH) > FAIL github.com/shurcool/httpfs/vfsutil [setup failed] > FAIL > > Disabling the tests doesn't suffice here, because after it =C2=ABbuilds= =C2=BB, it can't be found by a package which needs it. Could you please giv= e me some directions? > > Kind regards. Hi, I've been waiting until you got an answer here but seems you're out of luck. I'm writing just to tell you that I had the same issue in the past, trying to package the same exact thing and I was unable to solve it. You have my solidarity at least. That being said, we can join forces and make this package. I'll ping some people in Guix's IRC to see if someone can help. It is true that Go programs are pretty crazy with dependencies... Sorry for the late response. Best, Ekaitz