ci: gox, vendor and you

seems like gox is messing with GOPATH even when -mod=vendor option is
passed

setting GOFLAGS env variable looks to give better results
This commit is contained in:
Dawid Dziurla 2019-09-11 12:06:31 +02:00
parent ef1b2b57b0
commit 817fb5349b
No known key found for this signature in database
GPG key ID: 7B6D8368172E9B0B

View file

@ -21,7 +21,7 @@ build-shared: &build-shared
name: Compile project on every platform
command: |
go get github.com/mitchellh/gox
gox -mod=vendor -parallel 10 -os "linux freebsd" -osarch "darwin/i386 darwin/amd64"
GOFLAGS=-mod=vendor gox -parallel 10 -os "linux freebsd" -osarch "darwin/i386 darwin/amd64"
- save_cache:
key: pkg-cache-{{ checksum "go.sum" }}-v5
paths: