From a6e70f1b29804790ea55162286f143911a4c8656 Mon Sep 17 00:00:00 2001 From: konrad Date: Sat, 27 Apr 2019 11:41:28 +0200 Subject: [PATCH] Fixed enabling go modules for cross-platform --- .drone1.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.drone1.yml b/.drone1.yml index 8480925e018..4334e2b538d 100644 --- a/.drone1.yml +++ b/.drone1.yml @@ -152,7 +152,9 @@ steps: image: techknowlogick/xgo:latest pull: true environment: - GO111MODULE: on + # This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why. + # Leaving this here until we know how to resolve this properly. + GOPATH: /srv/app commands: - export PATH=$PATH:$GOPATH/bin - make release-windows @@ -162,7 +164,9 @@ steps: image: techknowlogick/xgo:latest pull: true environment: - GO111MODULE: on + # This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why. + # Leaving this here until we know how to resolve this properly. + GOPATH: /srv/app commands: - export PATH=$PATH:$GOPATH/bin - make release-linux @@ -172,7 +176,9 @@ steps: image: techknowlogick/xgo:latest pull: true environment: - GO111MODULE: on + # This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why. + # Leaving this here until we know how to resolve this properly. + GOPATH: /srv/app commands: - export PATH=$PATH:$GOPATH/bin - make release-darwin @@ -343,7 +349,9 @@ steps: image: techknowlogick/xgo:latest pull: true environment: - GO111MODULE: on + # This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why. + # Leaving this here until we know how to resolve this properly. + GOPATH: /srv/app commands: - export PATH=$PATH:$GOPATH/bin - make release-windows @@ -353,7 +361,9 @@ steps: image: techknowlogick/xgo:latest pull: true environment: - GO111MODULE: on + # This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why. + # Leaving this here until we know how to resolve this properly. + GOPATH: /srv/app commands: - export PATH=$PATH:$GOPATH/bin - make release-linux @@ -363,7 +373,9 @@ steps: image: techknowlogick/xgo:latest pull: true environment: - GO111MODULE: on + # This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why. + # Leaving this here until we know how to resolve this properly. + GOPATH: /srv/app commands: - export PATH=$PATH:$GOPATH/bin - make release-darwin