On Mon, Feb 28, 2022 at 8:17 PM Bruce Ashfield via lists.openembedded.org <[email protected]> wrote: > > On Mon, Feb 28, 2022 at 6:54 PM Andrei Gherzan <[email protected]> wrote: > > > > 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 > > This is something that needs to be carried in your own layers, IMHO it > isn't appropriate for core. > > It isn't about the fetching, it is the entire gap in functionality > that we are missing if go starts fetching dependencies during compile.
A further thought is that if this is for go.mod issues, there is the go-mod.bbclass. Perhaps enabling it in that class and doing a bbwarn about go fetching dependencies would be appropriate ? Otherwise, someone may not know that this is happening and that a no network configuration has no chance of working. Cheers, Bruce > > Bruce > > > > > 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 > > > > > > > > > > > -- > - Thou shalt not follow the NULL pointer, for chaos and madness await > thee at its end > - "Use the force Harry" - Gandalf, Star Trek II > > > -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#162522): https://lists.openembedded.org/g/openembedded-core/message/162522 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]] -=-=-=-=-=-=-=-=-=-=-=-
