Skip to content

Commit 26315bf

Browse files
politiciansparrc
authored andcommitted
Defines GOOS and GOARCH for windows builds (influxdata#1621)
* defines GOOS and GOARCH for windows builds * default to amd64 on windows * windows: use latest versions of missing packages
1 parent a282fb8 commit 26315bf

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ consistent with the behavior of `collection_jitter`.
8585

8686
### Bugfixes
8787

88+
- [#1619](https://github.com/influxdata/telegraf/issues/1619): Fix `make windows` build target
8889
- [#1519](https://github.com/influxdata/telegraf/pull/1519): Fix error race conditions and partial failures.
8990
- [#1477](https://github.com/influxdata/telegraf/issues/1477): nstat: fix inaccurate config panic.
9091
- [#1481](https://github.com/influxdata/telegraf/issues/1481): jolokia: fix handling multiple multi-dimensional attributes.

Godeps_windows

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ github.com/go-ole/go-ole be49f7c07711fcb603cff39e1de7c67926dc0ba7
44
github.com/lxn/win 950a0e81e7678e63d8e6cd32412bdecb325ccd88
55
github.com/shirou/w32 3c9377fc6748f222729a8270fe2775d149a249ad
66
golang.org/x/sys a646d33e2ee3172a661fc09bca23bb4889a41bc8
7+
github.com/go-ini/ini 9144852efba7c4daf409943ee90767da62d55438
8+
github.com/jmespath/go-jmespath bd40a432e4c76585ef6b72d3fd96fb9b6dc7b68d
9+
github.com/pmezard/go-difflib/difflib 792786c7400a136282c1664665ae0a8db921c6c2
10+
github.com/stretchr/objx 1a9d0bb9f541897e62256577b352fdbc1fb4fd94
11+
gopkg.in/fsnotify.v1 a8a77c9133d2d6fd8334f3260d06f60e8d80a5fb
12+
gopkg.in/tomb.v1 dd632973f1e7218eb1089048e0798ec9ae7dceb8

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build:
1616
go install -ldflags "-X main.version=$(VERSION)" ./...
1717

1818
build-windows:
19-
go build -o telegraf.exe -ldflags \
19+
GOOS=windows GOARCH=amd64 go build -o telegraf.exe -ldflags \
2020
"-X main.version=$(VERSION)" \
2121
./cmd/telegraf/telegraf.go
2222

0 commit comments

Comments
 (0)