On Thu, 2022-12-22 at 16:02 +0100, Vyacheslav Yurkov wrote: > 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 <[email protected]> > --- > 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!" > +}
This patch is not in master and is not a backport therefore not eligible for kirkstone/langdale. Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#174968): https://lists.openembedded.org/g/openembedded-core/message/174968 Mute This Topic: https://lists.openembedded.org/mt/95827446/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
