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-

_______________________________________________
oi-dev mailing list
[email protected]
https://openindiana.org/mailman/listinfo/oi-dev

Reply via email to