I'am using Mickledore, with Go 1.20.5 I got successful build with following recipe:
GO_IMPORT = "tailscale.com" GO_WORKDIR = "${GO_IMPORT}" GO_INSTALL = "\ ${GO_IMPORT}/cmd/tailscale \ ${GO_IMPORT}/cmd/tailscaled \ " do_compile() { ${GO} install ${GOBUILDFLAGS} ${GO_INSTALL} } do_compile[network] = "1" do_install() { install -d ${D}/${bindir} install -d ${D}/${sbindir} install ${B}/bin/linux_arm/tailscale ${D}/${bindir}/tailscale install ${B}/bin/linux_arm/tailscaled ${D}/${sbindir}/tailscaled if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then install -d ${D}${sysconfdir}/default/ install -m 0644 ${WORKDIR}/build/src/${GO_IMPORT}/cmd/tailscaled/tailscaled.defaults ${D}${sysconfdir}/default/tailscaled install -d ${D}${systemd_unitdir}/system install -m 0644 ${WORKDIR}/build/src/${GO_IMPORT}/cmd/tailscaled/tailscaled.service ${D}${systemd_unitdir}/system/tailscaled.service install -d ${D}${sysconfdir}/systemd/system/multi-user.target.wants/ ln -s ${systemd_unitdir}/system/tailscaled.service ${D}${sysconfdir}/systemd/system/multi-user.target.wants/tailscaled.service fi } SYSTEMD_PACKAGES = "${PN}" SYSTEMD_SERVICE:${PN} = "tailscaled.service" SYSTEMD_AUTO_ENABLE = "enable" It's using do_compile[network] = "1" as was mentioned in this topic to omit network isolation. I'm not particularly pleased with defining compile task for this recipe as it should use task from go.bbclass, but without it it gave me following error: | 2023/07/05 12:35:55 duplicated definition of symbol tailscale.com/util/singleflight.(*Group[go.shape.string,go.shape.struct { tailscale.com/net/dnscache.ip net/netip.Addr; tailscale.com/net/dnscache.ip6 net/netip.Addr; tailscale.com/net/dnscache.allIPs []net/netip.Addr }]).doCall.func2, from tailscale.com/derp/derphttp and main I'm not really familiar with Go, so I have no idea what's the cause of this error.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#60519): https://lists.yoctoproject.org/g/yocto/message/60519 Mute This Topic: https://lists.yoctoproject.org/mt/99915079/21656 Mute #golang:https://lists.yoctoproject.org/g/yocto/mutehashtag/golang Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-