[prev in list] [next in list] [prev in thread] [next in thread]
List: openembedded-core
Subject: [OE-core] [PATCH 1/1] go.bbclass: Allow network in do_compile
From: "Andrei Gherzan" <andrei () gherzan ! com>
Date: 2022-02-28 23:54:33
Message-ID: 20220228235433.3948994-1-andrei () gherzan ! com
[Download RAW message or body]
Content-Transfer-Encoding: 8bit
From: Andrei Gherzan <andrei.gherzan@huawei.com>
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 <andrei.gherzan@huawei.com>
---
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/4454766
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [openembedded-core@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic