I am trying to build a GO project using yocto using the following recipe
DESCRIPTION = "An Identity Provider for ORY Hydra over LDAP"
SECTION = "examples"
HOMEPAGE = "https://github.com/i-core/werther"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=c22a4ad704abf6e006791a40249a18cb"
GO_IMPORT = "github.com/i-core/werther"
SRC_URI = "git://${GO_IMPORT}"
SRCREV = "${AUTOREV}"
FILES_${PN} += "${GOBIN_FINAL}/*"
inherit go
DEPENDS += "go-dep"
But I'm running into this error
ERROR: werther-1.1.1-r0 do_compile: Function failed: do_compile (log file is located at /tmp/tala/tmp/work/cortexa9-neon-tala-linux-gnueabi/werther/1.1.1-r0/temp/log.do_compile.10723)
ERROR: Logfile of failure stored in: /tmp/tala/tmp/work/cortexa9-neon-tala-linux-gnueabi/werther/1.1.1-r0/temp/log.do_compile.10723
Log data follows:
| DEBUG: Executing shell function do_compile
| src/github.com/i-core/werther/internal/ldapclient/ldapclient.go:20:2: cannot find package "github.com/coocood/freecache" in any of:
| /tmp/tala/tmp/work/cortexa9-neon-tala-linux-gnueabi/werther/1.1.1-r0/recipe-sysroot/usr/lib/go/src/github.com/coocood/freecache (from $GOROOT)
| /tmp/tala/tmp/work/cortexa9-neon-tala-linux-gnueabi/werther/1.1.1-r0/build/src/github.com/coocood/freecache (from $GOPATH)
"github.com/coocood/freecache" is used by the project I am trying to build. There are other dependencies which are also not found (I have omitted them from the above error message).
Basically my question is how I can I resolve these dependencies. I dont think I need to create and put separate recipes for all these go packages.