This tool could be helpful for cd/ci.
It seems that the ebuild must be moved to go modules.
Step 14/16 : RUN emerge -j ${JOBS} --nodeps dev-vcs/hub ---> Running in 9a55dc72f013 >>> Verifying ebuild manifests >>> Jobs: 0 of 1 complete, 1 running Load avg: 3.24, 3.12, 3.54 >>> Emerging (1 of 1) dev-vcs/hub-2.11.1::dev-kit >>> Jobs: 0 of 1 complete, 1 running Load avg: 3.24, 3.12, 3.54 >>> Failed to emerge dev-vcs/hub-2.11.1, Log file: >>> Jobs: 0 of 1 complete, 1 running Load avg: 3.30, 3.13, 3.54 >>> '/var/tmp/portage/dev-vcs/hub-2.11.1/temp/build.log' >>> Jobs: 0 of 1 complete, 1 running Load avg: 3.30, 3.13, 3.54 >>> Jobs: 0 of 1 complete, 1 running, 1 failed Load avg: 3.30, 3.13, 3.54 >>> Jobs: 0 of 1 complete, 1 failed Load avg: 3.30, 3.13, 3.54 * Package: dev-vcs/hub-2.11.1 * Repository: dev-kit * Maintainer: williamh@gentoo.org * USE: amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs userpriv >>> Unpacking source... >>> Unpacking hub-2.11.1.tar.gz to /var/tmp/portage/dev-vcs/hub-2.11.1/work >>> Unpacking hub-linux-amd64-2.11.1.tgz to /var/tmp/portage/dev-vcs/hub-2.11.1/work >>> Source unpacked in /var/tmp/portage/dev-vcs/hub-2.11.1/work >>> Preparing source in /var/tmp/portage/dev-vcs/hub-2.11.1/work/hub-2.11.1 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-vcs/hub-2.11.1/work/hub-2.11.1 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-vcs/hub-2.11.1/work/hub-2.11.1 ... go: cannot find main module, but found Gopkg.lock in /var/tmp/portage/dev-vcs/hub-2.11.1/work/hub-2.11.1 to create a module there, run: go mod init * ERROR: dev-vcs/hub-2.11.1::dev-kit failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 1161: Called die * The specific snippet of code: * GOCACHE="${T}"/go-cache GOPATH= LDFLAGS= ./script/build -o ${PN} || die * * If you need support, post the output of `emerge --info '=dev-vcs/hub-2.11.1::dev-kit'`, * the complete build log and the output of `emerge -pqv '=dev-vcs/hub-2.11.1::dev-kit'`. * The complete build log is located at '/var/tmp/portage/dev-vcs/hub-2.11.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-vcs/hub-2.11.1/temp/environment'. * Working directory: '/var/tmp/portage/dev-vcs/hub-2.11.1/work/hub-2.11.1' * S: '/var/tmp/portage/dev-vcs/hub-2.11.1/work/hub-2.11.1' * Messages for package dev-vcs/hub-2.11.1:
Gopkg.lock is something related to the old `dep` tool replaced by go modules.