Skip to content

Commit

Permalink
Merge c908bd8 into 464c8d6
Browse files Browse the repository at this point in the history
  • Loading branch information
jdef committed Sep 8, 2017
2 parents 464c8d6 + c908bd8 commit 133c186
Show file tree
Hide file tree
Showing 47 changed files with 52,889 additions and 1,426 deletions.
15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ GO_VERSION := $(shell go version|cut -f3 -d' '|dd bs=1 count=5 2>/dev/null)
all: test

.PHONY: install
install: INSTALL_FLAGS +=
install:
go install $(BINARIES)
go install $(INSTALL_FLAGS) $(BINARIES)

.PHONY: test
test:
Expand Down Expand Up @@ -62,6 +63,10 @@ protobufs: protobufs-requirements clean-protobufs
(cd ${API_PKG}; protoc --proto_path="${PROTO_PATH}" --gogo_out=. ./scheduler/*.proto)
(cd ${API_PKG}; protoc --proto_path="${PROTO_PATH}" --gogo_out=. ./executor/*.proto)
(cd ${API_PKG}; protoc --proto_path="${PROTO_PATH}" --gogo_out=. ./agent/*.proto)
(cd ${API_PKG}; protoc --proto_path="${PROTO_PATH}" --gogo_out=. ./quota/*.proto)
(cd ${API_PKG}; protoc --proto_path="${PROTO_PATH}" --gogo_out=. ./allocator/*.proto)
(cd ${API_PKG}; protoc --proto_path="${PROTO_PATH}" --gogo_out=. ./maintenance/*.proto)
(cd ${API_PKG}; protoc --proto_path="${PROTO_PATH}" --gogo_out=. ./master/*.proto)

.PHONY: clean-protobufs
clean-protobufs:
Expand All @@ -73,6 +78,10 @@ ffjson: clean-ffjson
(cd ${API_PKG}; ffjson scheduler/*.pb.go)
(cd ${API_PKG}; ffjson executor/*.pb.go)
(cd ${API_PKG}; ffjson agent/*.pb.go)
(cd ${API_PKG}; ffjson quota/*.pb.go)
(cd ${API_PKG}; ffjson allocator/*.pb.go)
(cd ${API_PKG}; ffjson maintenance/*.pb.go)
(cd ${API_PKG}; ffjson master/*.pb.go)

.PHONY: clean-ffjson
clean-ffjson:
Expand All @@ -85,7 +94,7 @@ sync:
(cd ${CMD_VENDOR}; govendor sync)

.PHONY: generate
generate: GENERATE_PACKAGES = ./api/v1/lib/extras/executor/eventrules ./api/v1/lib/extras/executor/callrules ./api/v1/lib/extras/scheduler/eventrules ./api/v1/lib/extras/scheduler/callrules ./api/v1/lib/executor/events ./api/v1/lib/executor/calls ./api/v1/lib/scheduler/events ./api/v1/lib/scheduler/calls
generate: GENERATE_PACKAGES = ./api/v1/lib/extras/executor/eventrules ./api/v1/lib/extras/executor/callrules ./api/v1/lib/extras/scheduler/eventrules ./api/v1/lib/extras/scheduler/callrules ./api/v1/lib/executor/events ./api/v1/lib/executor/calls ./api/v1/lib/scheduler/events ./api/v1/lib/scheduler/calls ./api/v1/lib/agent/calls ./api/v1/lib/master/calls ./api/v1/lib/httpcli/httpagent ./api/v1/lib/httpcli/httpmaster
generate:
go generate -x ${GENERATE_PACKAGES}

Expand Down Expand Up @@ -116,7 +125,7 @@ docker:
make -C api/${MESOS_API_VERSION}/docker

.PHONY: coveralls
coveralls: IGNORE_FILES = $(shell { find api/v1/cmd -type d ; ls api/v1/lib{,/scheduler,/executor,/agent}/*.pb{,_ffjson}.go ; find api/v0 -type d; } | tr '\n' ,)
coveralls: IGNORE_FILES = $(shell { find api/v1/cmd -type d ; ls api/v1/lib{,/scheduler,/executor,/agent,/quota,/allocator,/maintenance,/master}/*.pb{,_ffjson}.go ; find api/v0 -type d; } | tr '\n' ,)
coveralls: SHELL := /bin/bash
coveralls:
test "$(TRAVIS)" = "" || rm -rf $$HOME/gopath/pkg
Expand Down
2 changes: 1 addition & 1 deletion api/v1/cmd/example-scheduler/app/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type codec struct{ encoding.Codec }
func (c *codec) Set(value string) error {
v := strings.ToLower(value)
for _, codec := range encoding.DefaultCodecs {
if v == codec.Name() {
if v == codec.Name {
c.Codec = codec
return nil
}
Expand Down
4 changes: 2 additions & 2 deletions api/v1/cmd/example-scheduler/app/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func prepareExecutorInfo(
Type: mesos.ExecutorInfo_CUSTOM,
ExecutorID: mesos.ExecutorID{Value: "default"},
Name: proto.String("Test Executor"),
Command: mesos.CommandInfo{
Command: &mesos.CommandInfo{
Shell: func() *bool { x := false; return &x }(),
},
Container: &mesos.ContainerInfo{
Expand Down Expand Up @@ -77,7 +77,7 @@ func prepareExecutorInfo(
Type: mesos.ExecutorInfo_CUSTOM,
ExecutorID: mesos.ExecutorID{Value: "default"},
Name: proto.String("Test Executor"),
Command: mesos.CommandInfo{
Command: &mesos.CommandInfo{
Value: proto.String(executorCommand),
URIs: executorUris,
},
Expand Down

0 comments on commit 133c186

Please sign in to comment.