Defines GOOS and GOARCH for windows builds (#1621)

* defines GOOS and GOARCH for windows builds

* default to amd64 on windows

* windows: use latest versions of missing packages
This commit is contained in:
politician
2016-08-11 07:35:00 -07:00
committed by Cameron Sparr
parent a282fb8524
commit 26315bfbea
3 changed files with 8 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ build:
go install -ldflags "-X main.version=$(VERSION)" ./...
build-windows:
go build -o telegraf.exe -ldflags \
GOOS=windows GOARCH=amd64 go build -o telegraf.exe -ldflags \
"-X main.version=$(VERSION)" \
./cmd/telegraf/telegraf.go