Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 1/3] package/pkg-golang.mk: use golang toolchain default GOPROXY
@ 2025-10-21  5:59 James Hilliard
  2025-10-21  5:59 ` [Buildroot] [PATCH v3 2/3] package/pkg-golang.mk: make GOPROXY configurable James Hilliard
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: James Hilliard @ 2025-10-21  5:59 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.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-10-21 17:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-21  5:59 [Buildroot] [PATCH v3 1/3] package/pkg-golang.mk: use golang toolchain default GOPROXY James Hilliard
2025-10-21  5:59 ` [Buildroot] [PATCH v3 2/3] package/pkg-golang.mk: make GOPROXY configurable James Hilliard
2025-10-21  5:59 ` [Buildroot] [PATCH v3 3/3] package/tailscale: bump to version 1.88.3 James Hilliard
2025-10-21  6:30 ` [Buildroot] [PATCH v3 1/3] package/pkg-golang.mk: use golang toolchain default GOPROXY yann.morin
2025-10-21  7:00   ` James Hilliard
2025-10-21 16:52     ` Christian Stewart via buildroot
2025-10-21 17:23       ` James Hilliard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox