All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-virtualization][PATCH] riddler: export GO111MODULE=off
@ 2021-03-04 11:20 Martin Jansa
  2021-03-04 13:36 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Jansa @ 2021-03-04 11:20 UTC (permalink / raw)
  To: meta-virtualization; +Cc: Martin Jansa

With the latest go version bump in oe-core export GO111MODULE is
on by default. Our build is not setup to use go modules, so we
disable it and avoid configuration errors:

| + static
| CGO_ENABLED=1 arm-webos-linux-gnueabi-go build -tags " cgo static_build" -ldflags "-w -extldflags -static" -o riddler .
| go: cannot find main module, but found vendor/manifest in riddler/0.1.0+gitAUTOINC+23befa0b23-r0/git/src/import
|       to create a module there, run:
|       go mod init

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 recipes-containers/riddler/riddler_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-containers/riddler/riddler_git.bb b/recipes-containers/riddler/riddler_git.bb
index 8f71649..7beaf29 100644
--- a/recipes-containers/riddler/riddler_git.bb
+++ b/recipes-containers/riddler/riddler_git.bb
@@ -38,6 +38,7 @@ do_compile() {
 	mkdir -p "${S}/src/import/vendor/src/github.com/jessfraz/riddler"
 	ln -sfn "${S}/src/import/parse" "${S}/src/import/vendor/src/github.com/jessfraz/riddler/parse"
 	export GOPATH="${S}/src/import/vendor"
+	export GO111MODULE=off
 
 	# Pass the needed cflags/ldflags so that cgo
 	# can find the needed headers files and libraries
-- 
2.30.0


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

* Re: [meta-virtualization][PATCH] riddler: export GO111MODULE=off
  2021-03-04 11:20 [meta-virtualization][PATCH] riddler: export GO111MODULE=off Martin Jansa
@ 2021-03-04 13:36 ` Bruce Ashfield
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2021-03-04 13:36 UTC (permalink / raw)
  To: Martin Jansa; +Cc: meta-virtualization

This one surprised me, since I knew that I had fixed riddler along
with my other changes .. apparently I didn't actually *commit* the
change.

Thanks for the patch, I just committed the file locally and pushed the change.

Bruce

On Thu, Mar 4, 2021 at 6:20 AM Martin Jansa <Martin.Jansa@gmail.com> wrote:
>
> With the latest go version bump in oe-core export GO111MODULE is
> on by default. Our build is not setup to use go modules, so we
> disable it and avoid configuration errors:
>
> | + static
> | CGO_ENABLED=1 arm-webos-linux-gnueabi-go build -tags " cgo static_build" -ldflags "-w -extldflags -static" -o riddler .
> | go: cannot find main module, but found vendor/manifest in riddler/0.1.0+gitAUTOINC+23befa0b23-r0/git/src/import
> |       to create a module there, run:
> |       go mod init
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  recipes-containers/riddler/riddler_git.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/recipes-containers/riddler/riddler_git.bb b/recipes-containers/riddler/riddler_git.bb
> index 8f71649..7beaf29 100644
> --- a/recipes-containers/riddler/riddler_git.bb
> +++ b/recipes-containers/riddler/riddler_git.bb
> @@ -38,6 +38,7 @@ do_compile() {
>         mkdir -p "${S}/src/import/vendor/src/github.com/jessfraz/riddler"
>         ln -sfn "${S}/src/import/parse" "${S}/src/import/vendor/src/github.com/jessfraz/riddler/parse"
>         export GOPATH="${S}/src/import/vendor"
> +       export GO111MODULE=off
>
>         # Pass the needed cflags/ldflags so that cgo
>         # can find the needed headers files and libraries
> --
> 2.30.0
>
>
> 
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

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

end of thread, other threads:[~2021-03-04 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04 11:20 [meta-virtualization][PATCH] riddler: export GO111MODULE=off Martin Jansa
2021-03-04 13:36 ` Bruce Ashfield

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.