All of lore.kernel.org
 help / color / mirror / Atom feed
* [langdale][kirkstone][PATCH] go-mod.bbclass: Allow network in do_compile
@ 2022-12-22 15:02 Vyacheslav Yurkov
  2022-12-22 16:20 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 15+ messages in thread
From: Vyacheslav Yurkov @ 2022-12-22 15:02 UTC (permalink / raw)
  To: Openembedded-core; +Cc: Vyacheslav Yurkov

This is a workaround to allow using go-mod until a proper solution is in
place. Possible solutions were discussued ealier this year in these
threads:

https://lists.openembedded.org/g/openembedded-core/topic/89464905
https://lists.openembedded.org/g/openembedded-architecture/topic/90782883

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
---
 meta/classes-recipe/go-mod.bbclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/classes-recipe/go-mod.bbclass b/meta/classes-recipe/go-mod.bbclass
index 61571596bc..da9a583288 100644
--- a/meta/classes-recipe/go-mod.bbclass
+++ b/meta/classes-recipe/go-mod.bbclass
@@ -24,3 +24,8 @@ inherit go
 
 GO_WORKDIR ?= "${GO_IMPORT}"
 do_compile[dirs] += "${B}/src/${GO_WORKDIR}"
+do_compile[network] = "1"
+
+do_compile:prepend() {
+    bbwarn "Using go-mod enables network during compilation to be able to fetch dependencies. This breaks reproducibility of the build!"
+}
-- 
2.35.1



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

end of thread, other threads:[~2023-09-27 14:41 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-22 15:02 [langdale][kirkstone][PATCH] go-mod.bbclass: Allow network in do_compile Vyacheslav Yurkov
2022-12-22 16:20 ` [OE-core] " Richard Purdie
2022-12-22 16:48   ` Bruce Ashfield
2022-12-22 18:39     ` Vyacheslav Yurkov
2022-12-22 19:08       ` Martin Jansa
2022-12-26  9:38         ` Vyacheslav Yurkov
2022-12-26  9:59           ` Martin Jansa
2022-12-29 16:42             ` Vyacheslav Yurkov
2023-01-02 15:40             ` Stefan Herbrechtsmeier
2023-01-03 16:03         ` Lukas Funke
2023-03-12  9:15           ` Martin Jansa
     [not found]           ` <174BA13431CDE838.27660@lists.openembedded.org>
2023-09-10 21:26             ` Martin Jansa
2023-09-27 13:34               ` Lukas Funke
2023-09-27 14:40                 ` Bruce Ashfield
2023-01-12  5:01         ` wonsang.ryu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.