Merge pull request #10 from huksley/build-os

Use default GOOS and allow to specify GOOS on cmd-line
This commit is contained in:
Egor Kovetskiy 2019-11-15 15:40:56 +03:00 committed by GitHub
commit 22f3e6ce76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ get:
build: build:
@echo :: building go binary $(VERSION) @echo :: building go binary $(VERSION)
CGO_ENABLED=0 GOOS=linux go build \ CGO_ENABLED=0 go build \
-ldflags "-X main.version=$(VERSION)" \ -ldflags "-X main.version=$(VERSION)" \
-gcflags "-trimpath $(GOPATH)/src" -gcflags "-trimpath $(GOPATH)/src"