This fixes containerd compile error (#238)

Error:
go: cannot find main module, but found vendor.conf in somepath
This commit is contained in:
Martin Valba 2021-05-27 12:39:00 +03:00 committed by Yaksh Bariya
parent 6a56869791
commit bae2e1561d
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ TERMUX_PKG_CONFFILES="etc/containerd/config.toml"
termux_step_make() {
# setup go build environment
termux_setup_golang
go env -w GO111MODULE=auto
export GOPATH="${PWD}/go"
mkdir -p "${GOPATH}/src/github.com/containerd"
ln -sf "${TERMUX_PKG_SRCDIR}" "${GOPATH}/src/github.com/containerd/containerd"