all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [go-build-system] How to access properties or keys of a package on the build side?
@ 2017-08-29 12:54 Frederick Muriithi
  2017-08-31 12:17 ` [go-build-system] Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: Frederick Muriithi @ 2017-08-29 12:54 UTC (permalink / raw)
  To: guix-devel

Maybe the following will help clarify the issue:

The package being built needs the sources of the dependenc(y/ies) to
be available in its GOPATH.

The build system needs to set the GOPATH such that the Go build system
will find the the dependencies and build against them.

I have a repository[1] where I'm currently working on definitions for
IPFS before translating them for mainline guix.
If you checkout commit f7f97edc635381384c3532eb8a2bd92cf10a5ac9 and
look at the code there, you can see that I manually set up GOPATH in
the build of go-log so that it can find go-logging (the modified
version[2]).

Now, when building, you need to lay out the code such that go is able
to find everything, and in my code, I do that manually in the
"setup-go-workspace" phase.

I hope this will help clarify issues a bit.

[1] (https://github.com/fredmanglis/guix-ipfs)
[1] (https://github.com/whyrusleeping/go-logging)

-- 
Frederick M. Muriithi

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

end of thread, other threads:[~2017-09-02 17:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-29 12:54 [go-build-system] How to access properties or keys of a package on the build side? Frederick Muriithi
2017-08-31 12:17 ` [go-build-system] Leo Famulari
2017-09-02 17:00   ` [go-build-system] Leo Famulari

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.