You need to allow network connection for the do_compile task

do_compile[network] = "1"


On Sun, Jul 2 2023 at 12:45:40 PM -0700, [email protected] wrote:
Hi!
I'm trying to build Tailscale with Yocto
This is me recipe:

inherit go-mod

SRC_URI = "git://github.com/tailscale/tailscale;protocol=https;branch=main"
SRCREV = "30d9201a11ebc2e3a0f17bf8963956b77dadeb5d"

GO_IMPORT = "tailscale.com"
GO_WORKDIR = "${GO_IMPORT}"
GO_INSTALL = "\
    ${GO_IMPORT}/cmd/tailscale \
    ${GO_IMPORT}/cmd/tailscaled \
"

do_install() {
    install -d ${D}/${bindir}
    install -d ${D}/${sbindir}
    install ${B}/bin/tailscale ${D}/${bindir}/tailscale
    install ${B}/bin/tailscaled ${D}/${sbindir}/tailscaled
}


However, build step ends up with errors like these (full log):

| wgengine/netstack/netstack.go:34:2: gvisor.dev/[email protected]: Get "https://proxy.golang.org/gvisor.dev/gvisor/@v/v0.0.0-20230504175454-7b0a1988a28f.zip": dial tcp: lookup proxy.golang.org on 8.8.8.8:53: dial udp 8.8.8.8:53: connect: network is unreachable | wgengine/netstack/netstack.go:35:2: gvisor.dev/[email protected]: Get "https://proxy.golang.org/gvisor.dev/gvisor/@v/v0.0.0-20230504175454-7b0a1988a28f.zip": dial tcp: lookup proxy.golang.org on 8.8.8.8:53: dial udp 8.8.8.8:53: connect: network is unreachable | net/tstun/tap_linux.go:23:2: gvisor.dev/[email protected]: Get "https://proxy.golang.org/gvisor.dev/gvisor/@v/v0.0.0-20230504175454-7b0a1988a28f.zip": dial tcp: lookup proxy.golang.org on 8.8.8.8:53: dial udp 8.8.8.8:53: connect: network is unreachable | wgengine/netstack/netstack.go:37:2: gvisor.dev/[email protected]: Get "https://proxy.golang.org/gvisor.dev/gvisor/@v/v0.0.0-20230504175454-7b0a1988a28f.zip": dial tcp: lookup proxy.golang.org on 8.8.8.8:53: dial udp 8.8.8.8:53: connect: network is unreachable | ipn/ipnauth/ipnauth.go:16:2: inet.af/[email protected]: Get "https://proxy.golang.org/inet.af/peercred/@v/v0.0.0-20210906144145-0893ea02156a.zip": dial tcp: lookup proxy.golang.org on 8.8.8.8:53: dial udp 8.8.8.8:53: connect: network is unreachable

On some resources I have found it was recomended to add environmental variables: `GOPROXY="direct"` and `GOSUMDB="off"`, but it didn't helped.

Maybe someone has some ideas what is the cause of these errors?

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60492): https://lists.yoctoproject.org/g/yocto/message/60492
Mute This Topic: https://lists.yoctoproject.org/mt/99915079/21656
Mute #golang:https://lists.yoctoproject.org/g/yocto/mutehashtag/golang
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to