all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Formbi <formbi@protonmail.com>
To: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Packaging Golang programs
Date: Fri, 30 Apr 2021 13:24:16 +0000	[thread overview]
Message-ID: <BaX4SmnN53sKiFcFSTn43ltYato2yfDI3rUaJPsb637PNs9OXERKnBuV_TNqYouMXvz5sarqmIYbsLXjEYU3mbGuODal43Q1uMCKwh_f1bg=@protonmail.com> (raw)

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.


             reply	other threads:[~2021-04-30 16:35 UTC|newest]

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

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

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

  git send-email \
    --in-reply-to='BaX4SmnN53sKiFcFSTn43ltYato2yfDI3rUaJPsb637PNs9OXERKnBuV_TNqYouMXvz5sarqmIYbsLXjEYU3mbGuODal43Q1uMCKwh_f1bg=@protonmail.com' \
    --to=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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.