* [Buildroot] [PATCH v7 1/3] package/pkg-golang.mk: use golang toolchain default GOPROXY
@ 2026-10-02 19:26 James Hilliard
2026-10-02 19:26 ` [Buildroot] [PATCH v7 2/3] package/pkg-golang.mk: make GOPROXY configurable James Hilliard
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: James Hilliard @ 2026-10-02 19:26 UTC (permalink / raw)
To: buildroot; +Cc: Christian Stewart, 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:
- 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"
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
package/pkg-golang.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/pkg-golang.mk b/package/pkg-golang.mk
index ffd50adecc..26da7be71b 100644
--- a/package/pkg-golang.mk
+++ b/package/pkg-golang.mk
@@ -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
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v7 2/3] package/pkg-golang.mk: make GOPROXY configurable
2026-10-02 19:26 [Buildroot] [PATCH v7 1/3] package/pkg-golang.mk: use golang toolchain default GOPROXY James Hilliard
@ 2026-10-02 19:26 ` James Hilliard
2026-10-02 19:26 ` [Buildroot] [PATCH v7 3/3] package/tailscale: bump to version 1.102.5 James Hilliard
2026-10-20 21:19 ` [Buildroot] [PATCH v7 1/3] package/pkg-golang.mk: use golang toolchain default GOPROXY Thomas Petazzoni via buildroot
2 siblings, 0 replies; 4+ messages in thread
From: James Hilliard @ 2026-10-02 19:26 UTC (permalink / raw)
To: buildroot; +Cc: Christian Stewart, James Hilliard
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
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Christian Stewart <christian@aperture.us>
---
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
Signed-off-by: Christian Stewart <christian@aperture.us>
---
Config.in | 16 ++++++++++++++++
package/pkg-golang.mk | 2 +-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/Config.in b/Config.in
index ac58c685d1..34e9ec6705 100644
--- a/Config.in
+++ b/Config.in
@@ -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"
diff --git a/package/pkg-golang.mk b/package/pkg-golang.mk
index 26da7be71b..3e388cb257 100644
--- a/package/pkg-golang.mk
+++ b/package/pkg-golang.mk
@@ -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
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v7 3/3] package/tailscale: bump to version 1.102.5
2026-10-02 19:26 [Buildroot] [PATCH v7 1/3] package/pkg-golang.mk: use golang toolchain default GOPROXY James Hilliard
2026-10-02 19:26 ` [Buildroot] [PATCH v7 2/3] package/pkg-golang.mk: make GOPROXY configurable James Hilliard
@ 2026-10-02 19:26 ` James Hilliard
2026-10-20 21:19 ` [Buildroot] [PATCH v7 1/3] package/pkg-golang.mk: use golang toolchain default GOPROXY Thomas Petazzoni via buildroot
2 siblings, 0 replies; 4+ messages in thread
From: James Hilliard @ 2026-10-02 19:26 UTC (permalink / raw)
To: buildroot; +Cc: Christian Stewart, James Hilliard
LICENSE hash changed due to changing AUTHORS to contributors:
https://github.com/tailscale/tailscale/commit/3ec5be3f510f74738179c1023468343a62a7e00f
Fixes:
https://tailscale.com/security-bulletins#ts-2025-008
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
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(-)
diff --git a/package/tailscale/tailscale.hash b/package/tailscale/tailscale.hash
index e2d600f03e..5683610ef2 100644
--- a/package/tailscale/tailscale.hash
+++ b/package/tailscale/tailscale.hash
@@ -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
diff --git a/package/tailscale/tailscale.mk b/package/tailscale/tailscale.mk
index 86039fd4b1..6979e9f28b 100644
--- a/package/tailscale/tailscale.mk
+++ b/package/tailscale/tailscale.mk
@@ -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
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH v7 1/3] package/pkg-golang.mk: use golang toolchain default GOPROXY
2026-10-02 19:26 [Buildroot] [PATCH v7 1/3] package/pkg-golang.mk: use golang toolchain default GOPROXY James Hilliard
2026-10-02 19:26 ` [Buildroot] [PATCH v7 2/3] package/pkg-golang.mk: make GOPROXY configurable James Hilliard
2026-10-02 19:26 ` [Buildroot] [PATCH v7 3/3] package/tailscale: bump to version 1.102.5 James Hilliard
@ 2026-10-20 21:19 ` Thomas Petazzoni via buildroot
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-20 21:19 UTC (permalink / raw)
To: James Hilliard; +Cc: buildroot, Christian Stewart
On Fri, Oct 02, 2026 at 01:26:46PM -0600, James Hilliard wrote:
> 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"
>
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
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
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-10-20 21:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-02 19:26 [Buildroot] [PATCH v7 1/3] package/pkg-golang.mk: use golang toolchain default GOPROXY James Hilliard
2026-10-02 19:26 ` [Buildroot] [PATCH v7 2/3] package/pkg-golang.mk: make GOPROXY configurable James Hilliard
2026-10-02 19:26 ` [Buildroot] [PATCH v7 3/3] package/tailscale: bump to version 1.102.5 James Hilliard
2026-10-20 21:19 ` [Buildroot] [PATCH v7 1/3] package/pkg-golang.mk: use golang toolchain default GOPROXY Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox