unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Packaging Golang programs
@ 2021-04-30 13:24 Formbi
  2021-05-07  9:26 ` Ekaitz Zarraga
  0 siblings, 1 reply; 2+ messages in thread
From: Formbi @ 2021-04-30 13:24 UTC (permalink / raw)
  To: help-guix@gnu.org

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-07  9:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-30 13:24 Packaging Golang programs Formbi
2021-05-07  9:26 ` Ekaitz Zarraga

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).