riddler: export GO111MODULE=off
PATCH 1/1 riddler: export GO111MODULE=off
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 <[email protected]>
--- recipes-containers/riddler/riddler_git.bb | 1 + 1 file changed, 1 insertion(+)
recipes-containers/riddler/riddler_git.bb +1 -0
@@ -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
Signature · 1 line
2.30.0
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
Quoted 34 lines · 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 initSigned-off-by Martin Jansa <[email protected]>--- recipes-containers/riddler/riddler_git.bb | 1 + 1 file changed, 1 insertion(+)recipes-containers/riddler/riddler_git.bb +1
-1@@ -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
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II