This is now failing when you are behind a proxy because it's trying to fetch 
those modules during do_compile().
https://github.com/golang/example/commit/bcf50bfd7dcd8020c90965747d857ae42802e0c5

Error log:

| ERROR: Execution of 
'~/build/tmp/work/corei7-64-poky-linux/go-helloworld/0.1-r0/temp/run.do_compile.26031'
 failed with exit code 1:
| go: golang.org/x/[email protected]: Get 
"https://proxy.golang.org/golang.org/x/tools/@v/v0.0.0-20210112183307-1e6ecd4bf1b0.mod":
 dial tcp 216.58.196.49:443: i/o timeout
| go: golang.org/x/[email protected]: Get 
"https://proxy.golang.org/golang.org/x/tools/@v/v0.0.0-20210112183307-1e6ecd4bf1b0.mod":
 dial tcp 216.58.196.49:443: i/o timeout

Regards,
Naveen

> -----Original Message-----
> From: [email protected] <openembedded-
> [email protected]> On Behalf Of Khem Raj
> Sent: Wednesday, February 24, 2021 12:13 PM
> To: [email protected]
> Cc: Khem Raj <[email protected]>
> Subject: [OE-core] [PATCH v2 3/3] go-helloworld: Turn into a go module
> enabled build
> 
> Signed-off-by: Khem Raj <[email protected]>
> ---
>  meta/recipes-extended/go-examples/go-helloworld_0.1.bb | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-extended/go-examples/go-helloworld_0.1.bb
> b/meta/recipes-extended/go-examples/go-helloworld_0.1.bb
> index ab70ea98a3..d3f7525dc9 100644
> --- a/meta/recipes-extended/go-examples/go-helloworld_0.1.bb
> +++ b/meta/recipes-extended/go-examples/go-helloworld_0.1.bb
> @@ -6,13 +6,14 @@ LICENSE = "MIT"
>  LIC_FILES_CHKSUM =
> "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b
> 4f302"
> 
>  SRC_URI = "git://${GO_IMPORT}"
> -SRCREV = "46695d81d1fae905a270fb7db8a4d11a334562fe"
> +SRCREV = "bcf50bfd7dcd8020c90965747d857ae42802e0c5"
>  UPSTREAM_CHECK_COMMITS = "1"
> 
>  GO_IMPORT = "github.com/golang/example"
>  GO_INSTALL = "${GO_IMPORT}/hello"
> +GO_WORKDIR = "${GO_INSTALL}"
> 
> -inherit go
> +inherit go-mod
> 
>  # This is just to make clear where this example is
>  do_install_append() {
> --
> 2.30.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#148840): 
https://lists.openembedded.org/g/openembedded-core/message/148840
Mute This Topic: https://lists.openembedded.org/mt/80870121/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to