From: Andrei Gherzan <[email protected]> Compile pulls in the go.mod list requiring network. Without this, do compile would fail with a similar error to the following:
dial tcp: lookup proxy.golang.org: Temporary failure in name resolution Signed-off-by: Andrei Gherzan <[email protected]> --- meta/classes/go.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index 9c4c92bffd..dc246c72cb 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass @@ -113,6 +113,7 @@ go_do_compile() { } do_compile[dirs] =+ "${GOTMPDIR}" do_compile[cleandirs] = "${B}/bin ${B}/pkg" +do_compile[network] = "1" go_do_install() { install -d ${D}${libdir}/go/src/${GO_IMPORT} -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#162517): https://lists.openembedded.org/g/openembedded-core/message/162517 Mute This Topic: https://lists.openembedded.org/mt/89464905/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
