Skip to content

Commit 0a417ae

Browse files
committed
Merge pull request #4088 from mboersma/add-mesos-static-checks
style(mesos): check for static go binaries
2 parents 1f9914c + 6914079 commit 0a417ae

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

mesos/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,12 @@ setup-gotools:
7777

7878
mesos-go: setup-gotools
7979
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 godep go build -a -installsuffix cgo -ldflags '-s' -o bin/master-boot pkg/boot/mesos/master/main.go
80+
@$(call check-static-binary,bin/master-boot)
8081
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 godep go build -a -installsuffix cgo -ldflags '-s' -o bin/slave-boot pkg/boot/mesos/slave/main.go
82+
@$(call check-static-binary,bin/slave-boot)
8183
go-bindata -pkg bindata -o bindata/marathon/bindata.go pkg/boot/mesos/marathon/bash/; \
8284
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 godep go build -a -installsuffix cgo -ldflags '-s' -o bin/marathon-boot pkg/boot/mesos/marathon/main.go
85+
@$(call check-static-binary,bin/marathon-boot)
8386

8487
mesos-template:
8588
sed "s/#VERSION#/$(MESOS)/g" template > Dockerfile
@@ -116,6 +119,7 @@ zookeeper-go:
116119
echo "Building..."
117120
go-bindata -pkg bindata -o bindata/zookeeper/bindata.go pkg/boot/zookeeper/bash/; \
118121
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 godep go build -a -installsuffix cgo -ldflags '-s' -o zookeeper/bin/boot pkg/boot/zookeeper/main/boot.go
122+
@$(call check-static-binary,zookeeper/bin/boot)
119123

120124
test: mesos-go zookeeper-go
121125
@$(GOFMT) -timeout 10s $(GO_PACKAGES)

0 commit comments

Comments
 (0)