From: Dan McGregor <[email protected]> The go tools require the GOPROXY and GOSUMDB environment variables set when using modules on a target system. These aren't set by default in the binaries, they require an environment file. Install the default one in the target case. In our -native toolchain we always set these values appropriately, so no need for it there.
Signed-off-by: Dan McGregor <[email protected]> --- meta/recipes-devtools/go/go-target.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/go/go-target.inc b/meta/recipes-devtools/go/go-target.inc index 981c7abd313..7e4139102e3 100644 --- a/meta/recipes-devtools/go/go-target.inc +++ b/meta/recipes-devtools/go/go-target.inc @@ -34,6 +34,7 @@ do_install() { cp --preserve=mode,timestamps -R ${B}/pkg/tool/${TARGET_GOTUPLE} ${D}${libdir}/go/pkg/tool/ install -d ${D}${libdir}/go/src cp --preserve=mode,timestamps -R ${S}/src/cmd ${D}${libdir}/go/src/ + cp --preserve=mode,timestamps ${S}/go.env ${D}${libdir}/go/ find ${D}${libdir}/go/src -depth -type d -name testdata -exec rm -rf {} \; install -d ${D}${libdir}/go/bin install -d ${D}${bindir} @@ -46,7 +47,7 @@ do_install() { } PACKAGES = "${PN} ${PN}-dev" -FILES:${PN} = "${libdir}/go/bin ${libdir}/go/pkg/tool/${TARGET_GOTUPLE} ${bindir}" +FILES:${PN} = "${libdir}/go/bin ${libdir}/go/go.env ${libdir}/go/pkg/tool/${TARGET_GOTUPLE} ${bindir}" RDEPENDS:${PN} = "go-runtime" INSANE_SKIP:${PN} = "ldflags" -- 2.47.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#212077): https://lists.openembedded.org/g/openembedded-core/message/212077 Mute This Topic: https://lists.openembedded.org/mt/111441622/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
