package/pkg-golang.mk: use golang toolchain default GOPROXY
PATCH v7 1/3 package/pkg-golang.mk: use golang toolchain default GOPROXY
This change sets the default GOPROXY value to match Go's built-in default of "https://proxy.golang.org,direct" which provides several benefits:
- Avoid package breakages due to missing module sources
- Better alignment with upstream Go toolchain defaults
- Faster downloads via the proxy compared to direct Git clones
- Maintains reproducible builds through Go's module checksum validation
The default value from the toolchain can be read with "go env GOPROXY"
--- package/pkg-golang.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/pkg-golang.mk +1 -1
@@ -101,7 +101,7 @@ $(2)_POST_PATCH_HOOKS += $(2)_GEN_GOMOD $(2)_DOWNLOAD_POST_PROCESS = go $(2)_DL_ENV += \ $$(HOST_GO_COMMON_ENV) \ - GOPROXY=direct \ + GOPROXY="https://proxy.golang.org,direct" \ $$($(2)_GO_ENV) # If building in a sub directory, do the vendoring in there
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v7 2/3 package/pkg-golang.mk: make GOPROXY configurable
BR2_GOPROXY now configures the Go module proxy URL used to download Go modules specified in project go.mod and go.sum files. By default, it uses Google's official Go module mirror at proxy.golang.org, falling back to direct downloads if the module is not found in the mirror.
The default value from the toolchain can be read with "go env GOPROXY"
We rely on package developers to audit their dependencies in go.mod and go.sum.
The value can be configured to:
- A comma-separated list of proxy URLs
- "off" to disable all downloads
- "direct" to download directly from source repositories
For more details on Go module proxies:
https://go.dev/ref/mod#module-proxy
Discussion:
https://lore.kernel.org/all/CADvTj4pXO2rwJ8oCzzGNY+OxLuo3uJnDT2PAxbyquw0L6dhfiA@mail.gmail.com/T/#t
---
v1 -> v2:
- added more context and links
- renamed to GOPROXY instead of GOPROXY_LIST
- moved into the !BR2_PRIMARY_SITE_ONLY section
v2 -> v3:
- split out GOPROXY default change
--- Config.in | 16 ++++++++++++++++ package/pkg-golang.mk | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-)
Config.in +16 -0
@@ -334,6 +334,22 @@ config BR2_LUAROCKS_MIRROR See http://luarocks.org +config BR2_GOPROXY + string "Go module proxy" + default "https://proxy.golang.org,direct" + depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS + help + The Go module proxy URL used to download Go modules. By + default, it uses the official Go module mirror, falling back + to direct downloads if the module is not found in the mirror. + + The value can be one of: + - Comma-separated list of proxy URLs + - "off" to disable all downloads + - "direct" to download directly from source repositories + + See https://go.dev/ref/mod#module-proxy + config BR2_CPAN_MIRROR string "CPAN mirror (Perl packages)" default "https://cpan.metacpan.org"
package/pkg-golang.mk +1 -1
@@ -101,7 +101,7 @@ $(2)_POST_PATCH_HOOKS += $(2)_GEN_GOMOD $(2)_DOWNLOAD_POST_PROCESS = go $(2)_DL_ENV += \ $$(HOST_GO_COMMON_ENV) \ - GOPROXY="https://proxy.golang.org,direct" \ + GOPROXY=$$(call qstrip,$$(BR2_GOPROXY)) \ $$($(2)_GO_ENV) # If building in a sub directory, do the vendoring in there
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Raphaël Mélotte via buildroot
AppliedRe: [Buildroot] [PATCH v7 2/3] package/pkg-golang.mk: make GOPROXY configurable
In reply of:
Quoted 14 lines
BR2_GOPROXYnow configures the Go module proxy URL used to download Go modules specified in project go.mod and go.sum files. By default, it uses Google's official Go module mirror at proxy.golang.org, falling back to direct downloads if the module is not found in the mirror.The default value from the toolchain can be read with "go env GOPROXY"
We rely on package developers to audit their dependencies in go.mod and go.sum.
The value can be configured to:
- A comma-separated list of proxy URLs
- "off" to disable all downloads
- "direct" to download directly from source repositories
Quoted 8 lines
For more details on Go module proxies:
https://go.dev/ref/mod#module-proxyDiscussion:
https://lore.kernel.org/all/CADvTj4pXO2rwJ8oCzzGNY+OxLuo3uJnDT2PAxbyquw0L6dhfiA@mail.gmail.com/T/#tSigned-off-by James Hilliard <[email protected]>Signed-off-by Christian Stewart <[email protected]>
Applied to 2025.02.x, 2026.08.x. Thanks
Quoted 48 lines
---
v1 -> v2:- added more context and links
- renamed to GOPROXY instead ofGOPROXY_LIST
- moved into the !BR2_PRIMARY_SITE_ONLY sectionv2 -> v3:
- split out GOPROXY default changeSigned-off-by Christian Stewart <[email protected]>--- Config.in | 16 ++++++++++++++++ package/pkg-golang.mk | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-)Config.in +16
-0@@ -334,6 +334,22 @@ config BR2_LUAROCKS_MIRROR See http://luarocks.org +config BR2_GOPROXY + string "Go module proxy" + default "https://proxy.golang.org,direct" + depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS + help + The Go module proxy URL used to download Go modules. By + default, it uses the official Go module mirror, falling back + to direct downloads if the module is not found in the mirror. + + The value can be one of: + - Comma-separated list of proxy URLs + - "off" to disable all downloads + - "direct" to download directly from source repositories + + See https://go.dev/ref/mod#module-proxy + config BR2_CPAN_MIRROR string "CPAN mirror (Perl packages)" default "https://cpan.metacpan.org"package/pkg-golang.mk +0
-0
package/pkg-golang.mk $(2)_POST_PATCH_HOOKS += $(2)_GEN_GOMOD · line 107
Quoted 8 lines
package/pkg-golang.mk +1
-1@@ -101,7 +101,7 @@ $(2)_POST_PATCH_HOOKS += $(2)_GEN_GOMOD $(2)_DOWNLOAD_POST_PROCESS = go $(2)_DL_ENV += \ $$(HOST_GO_COMMON_ENV) \ - GOPROXY="https://proxy.golang.org,direct" \ + GOPROXY=$$(call qstrip,$$(BR2_GOPROXY)) \ $$($(2)_GO_ENV) # If building in a sub directory, do the vendoring in there
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v7 3/3 package/tailscale: bump to version 1.102.5
In reply to James HilliardLICENSE hash changed due to changing AUTHORS to contributors:
https://github.com/tailscale/tailscale/commit/3ec5be3f510f74738179c1023468343a62a7e00f
Fixes:
https://tailscale.com/security-bulletins#ts-2025-008
---
Changes v6 -> v7:
- update tailscale to 1.102.5
Changes v5 -> v6:
- update tailscale to 1.92.3
Changes v4 -> v5:
- update tailscale to 1.90.9 fixing security vulnerability
Changes v3 -> v4:
- update tailscale to 1.90.6
--- package/tailscale/tailscale.hash | 4 ++-- package/tailscale/tailscale.mk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
package/tailscale/tailscale.hash +2 -2
@@ -1,3 +1,3 @@ # Locally computed -sha256 4830cd822a838d5d44fd5eeebd07a2aacaf0255fb3fb7d3852d57659f54e51bc tailscale-1.78.1-go2.tar.gz -sha256 d1ee1c7947d4b2c1963ea214d5324f1d4c89f2f1d0f0224889b4dfb868dad725 LICENSE +sha256 a4c0e5916bb4cf5a8a46791788534e8931a622ffac32dbff5bd8f21df7272029 tailscale-1.102.5-go2.tar.gz +sha256 a7ca6186a7963a0a60740f6047760eecd7a0234e8c38bd7e1e0bbcb324bda45b LICENSE
package/tailscale/tailscale.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -TAILSCALE_VERSION = 1.78.1 +TAILSCALE_VERSION = 1.102.5 TAILSCALE_SITE = $(call github,tailscale,tailscale,v$(TAILSCALE_VERSION)) TAILSCALE_LICENSE = BSD-3-Clause TAILSCALE_LICENSE_FILES = LICENSE
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 4 lines · James Hilliard
This change sets the default GOPROXY value to match Go's built-in default of "https://proxy.golang.org,direct" which provides several benefits:
Quoted 8 lines
- Avoid package breakages due to missing module sources
- Better alignment with upstream Go toolchain defaults
- Faster downloads via the proxy compared to direct Git clones
- Maintains reproducible builds through Go's module checksum validationThe default value from the toolchain can be read with "go env GOPROXY"
Signed-off-by James Hilliard <[email protected]>
Thanks, series applied. To be honest, I hesitated a bit on PATCH 2/3 because I'm not quite sure to understand under which (realistic) circumstances one would want to tweak BR2_GOPROXY. But fair enough, since both Christian and you agreed on that, I took the patch. It would have been nice to have some explanation of the "why" in the commit message: as it is the commit message only explains the "how" which is already clear by looking at the code.
Thanks!
Thomas Petazzoni
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Raphaël Mélotte via buildroot
AppliedIn reply of:
Quoted 4 lines
This change sets the default GOPROXY value to match Go's built-in default of "https://proxy.golang.org,direct" which provides several benefits:
Quoted 8 lines
- Avoid package breakages due to missing module sources
- Better alignment with upstream Go toolchain defaults
- Faster downloads via the proxy compared to direct Git clones
- Maintains reproducible builds through Go's module checksum validationThe default value from the toolchain can be read with "go env GOPROXY"
Signed-off-by James Hilliard <[email protected]>
Applied to 2025.02.x, 2026.08.x. Thanks
Quoted 9 lines
--- package/pkg-golang.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/pkg-golang.mk +0
-0
package/pkg-golang.mk $(2)_POST_PATCH_HOOKS += $(2)_GEN_GOMOD · line 107
Quoted 8 lines
package/pkg-golang.mk +1
-1@@ -101,7 +101,7 @@ $(2)_POST_PATCH_HOOKS += $(2)_GEN_GOMOD $(2)_DOWNLOAD_POST_PROCESS = go $(2)_DL_ENV += \ $$(HOST_GO_COMMON_ENV) \ - GOPROXY=direct \ + GOPROXY="https://proxy.golang.org,direct" \ $$($(2)_GO_ENV) # If building in a sub directory, do the vendoring in there
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot