lf-edge / eve-api

Repository for eve-api code
Apache License 2.0
0 stars 13 forks source link

Makefile doesn't work manually #11

Open eriknordmark opened 1 year ago

eriknordmark commented 1 year ago

Back in eve/api I could do a make proto and it ran protoc etc. That was using the go builder.

When I try that (under Linux) in the eve-api repo it fails with nordmark@bobo:~/main/eve-api$ make proto rm -rf go//; mkdir -p go # building proto-api-go protoc -I./proto --go_out=paths=source_relative:./go proto//*.proto /bin/sh: 1: protoc: not found make: [Makefile:19: proto-api-go] Error 127 nordmark@bobo:~/main/eve-api$ which protoc nordmark@bobo:~/main/eve-api$ make protodot -inc /usr/include -src ./proto/config/devconfig.proto -output devconfig -generated ./images make: protodot: No such file or directory make: [Makefile:2: proto-diagram] Error 127 nordmark@bobo:~/main/eve-api$

Can we make this work, or add the prerequisite installs to the README.md?

deitch commented 1 year ago

The prerequisites are listed in the README here.

The other question is whether we want to containerize this so that it is all set ups, the same way we did in eve? I don't think we want that heavy go-builder for this, we could do something much more lightweight.

Is it worth it?

eriknordmark commented 1 year ago

On 8/6/23 02:57, Avi Deitcher wrote:

The prerequisites are listed in the README here https://github.com/lf-edge/eve-api#prerequisites.

Either we introduced a bug recently, or those instructions are insufficient. After installing them I get @.*:~/main/eve-api$ make proto rm -rf go//; mkdir -p go # building proto-api-go protoc -I./proto --go_out=paths=source_relative:./go proto//.proto config/patch_envelope.proto: This file contains proto3 optional fields, but --experimental_allow_proto3_optional was not set. make: [Makefile:19: proto-api-go] Error 1

Are we running "make" or "make proto" as part of the CI?

Erik

The other question is whether we want to containerize this so that it is all set ups, the same way we did in eve? I don't think we want that heavy go-builder for this, we could do something much more lightweight.

Is it worth it?

— Reply to this email directly, view it on GitHub https://github.com/lf-edge/eve-api/issues/11#issuecomment-1666797995, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGNLQWHJSFPSVEMNIEKAMJLXT5TCPANCNFSM6AAAAAA3B7SIKU. You are receiving this because you authored the thread.Message ID: @.***>

deitch commented 1 year ago

Then incomplete.

Can you post here what versions of the tools you have?

Yes CI is running the tools as well. I suspect minimum version or flags or such. Let's use this failure to narrow down the issue.

Maybe we should make it run-in-docker with an option to run locally? Rather than the current run locally? I'll look into that.

Either way, do post your versions.

eriknordmark commented 1 year ago

Either way, do post your versions.

FWIW protoc --version libprotoc 3.12.4

deitch commented 1 year ago

That is a bit old, as in released July 2020. I suspect that is the issue.

Either way, we now have the devcontainer setup.

Can we close this?