New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does "make generate" fail? #1471

Closed
NanXiao opened this Issue Aug 30, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@NanXiao
Contributor

NanXiao commented Aug 30, 2016

I use the newest code, but executing "make generate" failed:

# make generate
馃惓 bin/protoc-gen-gogoswarm
馃惓 generate
mockgen -package exec -destination controller_test.mock.go -source controller.go Controller StatusReporter
agent/exec/controller_test.go:17: running "mockgen": exec: "mockgen": executable file not found in $PATH
protoc -I.:../protobuf:../vendor:../vendor/github.com/gogo/protobuf --gogoswarm_out=plugins=grpc+deepcopy+raftproxy+authenticatedwrapper,import_path=github.com/docker/swarmkit/api,Mgogoproto/gogo.proto=github.com/gogo/protobuf/gogoproto,Mtimestamp/timestamp.proto=github.com/docker/swarmkit/api/timestamp,Mduration/duration.proto=github.com/docker/swarmkit/api/duration,Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor,Mplugin/plugin.proto=github.com/docker/swarmkit/protobuf/plugin:. types.proto specs.proto objects.proto control.proto dispatcher.proto ca.proto snapshot.proto raft.proto health.proto resource.proto
protoc -I.:../../vendor:../../vendor/github.com/gogo/protobuf --gogoswarm_out=plugins=grpc+deepcopy+raftproxy+authenticatedwrapper,import_path=github.com/docker/swarmkit/api/duration,Mgogoproto/gogo.proto=github.com/gogo/protobuf/gogoproto:. duration.proto
protoc -I.:../../vendor:../../vendor/github.com/gogo/protobuf --gogoswarm_out=plugins=grpc+deepcopy+raftproxy+authenticatedwrapper,import_path=github.com/docker/swarmkit/api/timestamp,Mgogoproto/gogo.proto=github.com/gogo/protobuf/gogoproto:. timestamp.proto
protoc -I.:/usr/local --gogoswarm_out=import_path=github.com/docker/swarmkit/protobuf/plugin,Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor:. plugin.proto
protoc -I.:../../../../vendor --gogoswarm_out=plugins=deepcopy,import_path=github.com/docker/swarmkit/protobuf/plugin/deepcopy/test:. deepcopy.proto
protoc -I.:../../../../vendor --gogoswarm_out=plugins=grpc+raftproxy,import_path=github.com/docker/swarmkit/protobuf/plugin/raftproxy/test:. service.proto
Makefile:43: recipe for target 'generate' failed
make: *** [generate] Error 1

Could anyone help to check it? Thanks very much in advance!

@FrenchBen

This comment has been minimized.

Show comment
Hide comment
@FrenchBen

FrenchBen Aug 30, 2016

Contributor

Looks like mockgen wasn't vendored - You should be able to install it via:

go get github.com/golang/mock/mockgen

make generate should then work

Contributor

FrenchBen commented Aug 30, 2016

Looks like mockgen wasn't vendored - You should be able to install it via:

go get github.com/golang/mock/mockgen

make generate should then work

@aaronlehmann

This comment has been minimized.

Show comment
Hide comment
@aaronlehmann

aaronlehmann Aug 30, 2016

Collaborator

Run make setup before running make generate.

Collaborator

aaronlehmann commented Aug 30, 2016

Run make setup before running make generate.

@aaronlehmann

This comment has been minimized.

Show comment
Hide comment
@aaronlehmann

aaronlehmann Aug 30, 2016

Collaborator

Closing, please reopen if make setup doesn't resolve the issue.

Collaborator

aaronlehmann commented Aug 30, 2016

Closing, please reopen if make setup doesn't resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment