Fixed enabling go modules for cross-platform

This commit is contained in:
konrad 2019-04-27 11:41:28 +02:00
parent 44223bde77
commit a6e70f1b29
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -152,7 +152,9 @@ steps:
image: techknowlogick/xgo:latest image: techknowlogick/xgo:latest
pull: true pull: true
environment: 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: commands:
- export PATH=$PATH:$GOPATH/bin - export PATH=$PATH:$GOPATH/bin
- make release-windows - make release-windows
@ -162,7 +164,9 @@ steps:
image: techknowlogick/xgo:latest image: techknowlogick/xgo:latest
pull: true pull: true
environment: 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: commands:
- export PATH=$PATH:$GOPATH/bin - export PATH=$PATH:$GOPATH/bin
- make release-linux - make release-linux
@ -172,7 +176,9 @@ steps:
image: techknowlogick/xgo:latest image: techknowlogick/xgo:latest
pull: true pull: true
environment: 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: commands:
- export PATH=$PATH:$GOPATH/bin - export PATH=$PATH:$GOPATH/bin
- make release-darwin - make release-darwin
@ -343,7 +349,9 @@ steps:
image: techknowlogick/xgo:latest image: techknowlogick/xgo:latest
pull: true pull: true
environment: 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: commands:
- export PATH=$PATH:$GOPATH/bin - export PATH=$PATH:$GOPATH/bin
- make release-windows - make release-windows
@ -353,7 +361,9 @@ steps:
image: techknowlogick/xgo:latest image: techknowlogick/xgo:latest
pull: true pull: true
environment: 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: commands:
- export PATH=$PATH:$GOPATH/bin - export PATH=$PATH:$GOPATH/bin
- make release-linux - make release-linux
@ -363,7 +373,9 @@ steps:
image: techknowlogick/xgo:latest image: techknowlogick/xgo:latest
pull: true pull: true
environment: 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: commands:
- export PATH=$PATH:$GOPATH/bin - export PATH=$PATH:$GOPATH/bin
- make release-darwin - make release-darwin