From b8ad0125b68d8b76e3783857ec8f1b185a3cf193 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 29 Aug 2019 16:10:28 +0300 Subject: [PATCH] Dockerfile: add GO111MODULE export Maybe fixes this one: ---> Running in 3b964b007f22 + export 'GOGC=off' + export 'CGO_ENABLED=0' + export 'LDFLAGS=-X /config.Version=0.5.0-pre-39-ga168f09' + go build -v '-mod=vendor' -ldflags '-X /config.Version=0.5.0-pre-39-ga168f09' -o /go/bin/neo-go ./cli/main.go build command-line-arguments: cannot load github.com/go-redis/redis: open /neo-go/vendor/github.com/go-redis/redis: no such file or directory The command '/bin/sh -c set -x && export GOGC=off && export CGO_ENABLED=0 && export LDFLAGS="-X ${REPO}/config.Version=${VERSION}" && go build -v -mod=vendor -ldflags "${LDFLAGS}" -o /go/bin/neo-go ./cli/main.go' returned a non-zero code: 1 make: *** [Makefile:19: image] Error 1 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index bad1875ba..08656080f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ ARG VERSION=dev # go build -mod=vendor RUN set -x \ && export GOGC=off \ + && export GO111MODULE=on \ && export CGO_ENABLED=0 \ && export LDFLAGS="-X ${REPO}/config.Version=${VERSION}" \ && go build -v -mod=vendor -ldflags "${LDFLAGS}" -o /go/bin/neo-go ./cli/main.go