diff mbox series

[meta-oe] crucible: Allow network access during do_compile

Message ID 20250621090926.1466318-1-alperyasinak1@gmail.com
State New
Headers show
Series [meta-oe] crucible: Allow network access during do_compile | expand

Commit Message

Alper Ak June 21, 2025, 9:09 a.m. UTC
Allow network access during do_compile to let Go modules be fetched at build time and avoid network unreachable errors.

ERROR: crucible-2023.11.02-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/crucible/2023.11.02/temp/run.do_compile.1454' failed with exit code 1

| fusemap/yaml.go:15:2: github.com/ghodss/yaml@v1.0.0: Get "https://proxy.golang.org/github.com/ghodss/yaml/@v/v1.0.0.zip": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable
| cmd/habtool/habtool_gcp.go:14:2: cloud.google.com/go/kms@v1.15.6: Get "https://proxy.golang.org/cloud.google.com/go/kms/@v/v1.15.6.zip": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable
| cmd/habtool/habtool_gcp.go:15:2: cloud.google.com/go/kms@v1.15.6: Get "https://proxy.golang.org/cloud.google.com/go/kms/@v/v1.15.6.zip": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable
| cmd/habtool/habtool_gcp.go:16:2: cloud.google.com/go/security@v1.15.5: Get "https://proxy.golang.org/cloud.google.com/go/security/@v/v1.15.5.zip": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable
| cmd/habtool/habtool_gcp.go:17:2: cloud.google.com/go/security@v1.15.5: Get "https://proxy.golang.org/cloud.google.com/go/security/@v/v1.15.5.zip": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable
| hab/crypto.go:23:2: github.com/smallstep/pkcs7@v0.0.0-20231107075624-be1870d87d13: Get "https://proxy.golang.org/github.com/smallstep/pkcs7/@v/v0.0.0-20231107075624-be1870d87d13.zip": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable

Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
 meta-oe/recipes-support/crucible/crucible_2023.11.02.bb | 1 +
 1 file changed, 1 insertion(+)

Comments

Gyorgy Sarvari June 21, 2025, 11:20 a.m. UTC | #1
On 6/21/25 11:09, Alper Ak via lists.openembedded.org wrote:
> Allow network access during do_compile to let Go modules be fetched at build time and avoid network unreachable errors.
>
Is the new go-mod fetcher not usable with this recipe?
Peter Kjellerstedt June 21, 2025, 2:34 p.m. UTC | #2
> -----Original Message-----
> From: openembedded-devel@lists.openembedded.org <openembedded-devel@lists.openembedded.org> On Behalf Of Gyorgy Sarvari via
> lists.openembedded.org
> Sent: den 21 juni 2025 13:20
> To: alperyasinak1@gmail.com; openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [meta-oe][PATCH] crucible: Allow network access during do_compile
> 
> On 6/21/25 11:09, Alper Ak via lists.openembedded.org wrote:
> > Allow network access during do_compile to let Go modules be fetched at build time and avoid network unreachable errors.
> > 
> > ERROR: crucible-2023.11.02-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/crucible/2023.11.02/temp/run.do_compile.1454' failed with exit code 1
> > 
> > | fusemap/yaml.go:15:2: github.com/ghodss/yaml@v1.0.0
: Get "https://proxy.golang.org/github.com/ghodss/yaml/@v/v1.0.0.zip
": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable
> > | cmd/habtool/habtool_gcp.go:14:2: cloud.google.com/go/kms@v1.15.6: Get "https://proxy.golang.org/cloud.google.com/go/kms/@v/v1.15.6.zip": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable
> > | cmd/habtool/habtool_gcp.go:15:2: cloud.google.com/go/kms@v1.15.6: Get "https://proxy.golang.org/cloud.google.com/go/kms/@v/v1.15.6.zip": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable
> > | cmd/habtool/habtool_gcp.go:16:2: cloud.google.com/go/security@v1.15.5: Get "https://proxy.golang.org/cloud.google.com/go/security/@v/v1.15.5.zip": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable
> > | cmd/habtool/habtool_gcp.go:17:2: cloud.google.com/go/security@v1.15.5: Get "https://proxy.golang.org/cloud.google.com/go/security/@v/v1.15.5.zip": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable
> > | hab/crypto.go:23:2: github.com/smallstep/pkcs7@v0.0.0-20231107075624-

be1870d87d13: Get "https://proxy.golang.org/github.com/smallstep/pkcs7/@v/v0.0.0-20231107075624-be1870d87d13.zip": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable
> > 
> > Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
> 
> Is the new go-mod fetcher not usable with this recipe?

The crucible recipe was the first to be modified to use the go-mod 
fetcher, and it should definitely not need to use the network during 
the compile task.

//Peter
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/crucible/crucible_2023.11.02.bb b/meta-oe/recipes-support/crucible/crucible_2023.11.02.bb
index 132395e023..47d10c515a 100644
--- a/meta-oe/recipes-support/crucible/crucible_2023.11.02.bb
+++ b/meta-oe/recipes-support/crucible/crucible_2023.11.02.bb
@@ -9,6 +9,7 @@  require ${BPN}-go-mods.inc
 
 SRCREV = "dec27cd4e0e0db106c0a21d429c04ca8d36bbdd5"
 
+do_compile[network] = "1"
 
 GO_IMPORT = "github.com/usbarmory/crucible"
 GO_INSTALL = "\