unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Ekaitz Zarraga <ekaitz@elenq.tech>
To: Formbi <formbi@protonmail.com>
Cc: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: Packaging Golang programs
Date: Fri, 07 May 2021 09:26:26 +0000	[thread overview]
Message-ID: <oJwhxAxbA-_VY2CGyPjAU0g8aQeQz2fugyCAHQ1YwAY3ygO5j80Mx3Ypzv-re6JZGrBp_vUb07gzxtR1VSSIinLty_b15QVHT9QRuRzXzLA=@elenq.tech> (raw)
In-Reply-To: <BaX4SmnN53sKiFcFSTn43ltYato2yfDI3rUaJPsb637PNs9OXERKnBuV_TNqYouMXvz5sarqmIYbsLXjEYU3mbGuODal43Q1uMCKwh_f1bg=@protonmail.com>

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, April 30, 2021 3:24 PM, Formbi <formbi@protonmail.com> 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 system says, for example:
>
> can't load package: package golang.org/x/mobile: no Go files in (…)
>
> Those packages are referenced as whole, though. If the sub-packages (with #:unpack-path) are needed, they don't really work either. For example github.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.com/shurcooL/httpfs/vfsutil" in any of:
> /gnu/store/y5rwacd5l4q26pxis28wsmswj2603hkw-go-1.14.15/src/github.com/shurcooL/httpfs/vfsutil (from $GOROOT)
> /tmp/guix-build-go-github-com-shurcool-httpfs-vfsutil-0.0.0-20190707220628-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 «builds», it can't be found by a package which needs it. Could you please give 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


      reply	other threads:[~2021-05-07  9:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-30 13:24 Packaging Golang programs Formbi
2021-05-07  9:26 ` Ekaitz Zarraga [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='oJwhxAxbA-_VY2CGyPjAU0g8aQeQz2fugyCAHQ1YwAY3ygO5j80Mx3Ypzv-re6JZGrBp_vUb07gzxtR1VSSIinLty_b15QVHT9QRuRzXzLA=@elenq.tech' \
    --to=ekaitz@elenq.tech \
    --cc=formbi@protonmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).