[Buildroot] go receipe not installing go.env
Phil Williams
phil.williams at advisoft.co.nz
Wed Mar 20 00:17:57 UTC 2024
I ran into this issue when using the toolchain compiled with buildroot:
https://github.com/golang/go/issues/61928
Aparently the default GOPROXY configuration is now read from GOROOT/go.env.
I made the following change which fixed my issue:
diff --git a/package/go/go.mk b/package/go/go.mk
index 9efd4a31..d031fd25 100644
--- a/package/go/go.mk
+++ b/package/go/go.mk
@@ -153,6 +153,8 @@ define HOST_GO_INSTALL_CMDS
cp -a $(@D)/lib $(HOST_GO_ROOT)/
+ cp -a $(@D)/go.env $(HOST_GO_ROOT)/
+
mkdir -p $(HOST_GO_ROOT)/pkg
cp -a $(@D)/pkg/include $(HOST_GO_ROOT)/pkg/
cp -a $(@D)/pkg/tool $(HOST_GO_ROOT)/pkg/
I don't know enough about buildroot or go as to whether this would be
useful for others.
If someone can confirm it is, I will following the procedure and
properly submit a patch.
Thanks
More information about the buildroot
mailing list