Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/pkg-golang.mk: allow packages to override download GOPROXY
@ 2024-07-19  3:05 James Hilliard
  2024-07-19  3:05 ` [Buildroot] [PATCH 2/2] package/tailscale: new package James Hilliard
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: James Hilliard @ 2024-07-19  3:05 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Anisse Astier, Christian Stewart

Some packages like the upcoming tailscale package need to set GOPROXY
to get the correct dependencies.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/pkg-golang.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/pkg-golang.mk b/package/pkg-golang.mk
index 8e27602d41..118908a159 100644
--- a/package/pkg-golang.mk
+++ b/package/pkg-golang.mk
@@ -85,10 +85,12 @@ define $(2)_GEN_GOMOD
 endef
 $(2)_POST_PATCH_HOOKS += $(2)_GEN_GOMOD
 
+$(2)_DL_GOPROXY ?= direct
+
 $(2)_DOWNLOAD_POST_PROCESS = go
 $(2)_DL_ENV += \
 	$$(HOST_GO_COMMON_ENV) \
-	GOPROXY=direct \
+	GOPROXY=$$($(2)_DL_GOPROXY) \
 	$$($(2)_GO_ENV)
 
 # Because we append vendored info, we can't rely on the values being empty
-- 
2.34.1

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

^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 1/2] package/pkg-golang.mk: allow packages to override download GOPROXY
@ 2024-10-23 17:36 James Hilliard
  0 siblings, 0 replies; 9+ messages in thread
From: James Hilliard @ 2024-10-23 17:36 UTC (permalink / raw)
  To: buildroot; +Cc: Anisse Astier, James Hilliard, Christian Stewart

Some packages like the upcoming netbird package need to set GOPROXY
to get the correct dependencies.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/pkg-golang.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/pkg-golang.mk b/package/pkg-golang.mk
index 8e27602d41..118908a159 100644
--- a/package/pkg-golang.mk
+++ b/package/pkg-golang.mk
@@ -85,10 +85,12 @@ define $(2)_GEN_GOMOD
 endef
 $(2)_POST_PATCH_HOOKS += $(2)_GEN_GOMOD
 
+$(2)_DL_GOPROXY ?= direct
+
 $(2)_DOWNLOAD_POST_PROCESS = go
 $(2)_DL_ENV += \
 	$$(HOST_GO_COMMON_ENV) \
-	GOPROXY=direct \
+	GOPROXY=$$($(2)_DL_GOPROXY) \
 	$$($(2)_GO_ENV)
 
 # Because we append vendored info, we can't rely on the values being empty
-- 
2.34.1

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

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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-19  3:05 [Buildroot] [PATCH 1/2] package/pkg-golang.mk: allow packages to override download GOPROXY James Hilliard
2024-07-19  3:05 ` [Buildroot] [PATCH 2/2] package/tailscale: new package James Hilliard
2024-07-19  3:26   ` Christian Stewart via buildroot
2024-07-19  3:26 ` [Buildroot] [PATCH 1/2] package/pkg-golang.mk: allow packages to override download GOPROXY Christian Stewart via buildroot
2024-07-19  3:37   ` James Hilliard
2024-07-19  4:23     ` Christian Stewart via buildroot
2024-08-02 21:39 ` Thomas Petazzoni via buildroot
2024-08-02 21:40   ` Thomas Petazzoni via buildroot
  -- strict thread matches above, loose matches on Subject: below --
2024-10-23 17:36 James Hilliard

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