[oi-dev] Error building a zrepl package for OI

Gary Mills gary_mills at fastmail.fm
Fri Apr 15 20:23:37 UTC 2022


On Fri, Apr 15, 2022 at 07:16:02PM +0100, Peter Tribble wrote:
> 
>    The environment variable GOPATH is set to the root of the zrepl source.
>    Any other value will work. If unset, then ~/go, but that's not always
>    ideal.

Thanks.  I assumed it had to exist.  It's the opposite: it had to
not exist, because that's where go will download packages.

>    The common pattern in oi-userland (see eg
>    components/sysutils/chezmoi/Makefile)

That is my model.  Obviously a good choice.

>    is
>    COMPONENT_BUILD_ENV += GOPATH="$(SOURCE_DIR)/gopath"
>    COMPONENT_INSTALL_ENV += GOPATH="$(SOURCE_DIR)/gopath"

Yes, that worked for me.


-- 
-Gary Mills-		-refurb-		-Winnipeg, Manitoba, Canada-



More information about the oi-dev mailing list