Fix vendor build

This commit is contained in:
erroneousboat 2019-05-29 10:20:38 +02:00
parent 7a1b9c8a36
commit 0320f2877e

View File

@ -43,19 +43,16 @@ dev: build
# Location of the source files
build:
@ echo "+ $@"
@ go mod vendor
@ CGO_ENABLED=0 go build -mod=vendor -a -installsuffix cgo -o ./bin/slack-term .
# Cross-compile
# http://dave.cheney.net/2015/08/22/cross-compilation-with-go-1-5
build-linux:
@ echo "+ $@"
@ go mod vendor
@ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -mod=vendor -a -installsuffix cgo -o ./bin/slack-term-linux-amd64 .
build-mac:
@ echo "+ $@"
@ go mod vendor
@ GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -mod=vendor -a -installsuffix cgo -o ./bin/slack-term-darwin-amd64 .
run: build