Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add protoc on build #2899

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

iameli-streams
Copy link

@iameli-streams iameli-streams commented Oct 24, 2023

So... this shouldn't be necessary. protoc is needed to build the files in net like net/lp_rpc.pb.go. Those files are committed to the repo; make shouldn't be rebuilding them. And yet, every so often, we get an error on build that looks like this:

protoc -I=. --go_out=plugins=grpc:. net/lp_rpc.proto
/bin/bash: line 1: protoc: command not found
make: *** [Makefile:7: net/lp_rpc.pb.go] Error 127
Error: Process completed with exit code 2.

I don't know why that happens. It doesn't happen once you rebuild. But... regenerating those files is harmless, I guess, so this will stop that for everybody forever. IDK.

@iameli iameli force-pushed the eli/protoc-on-build branch from 57df927 to bf990ca Compare October 26, 2023 22:22
@thomshutt
Copy link
Contributor

@iameli shall we merge this?

@iameli
Copy link
Contributor

iameli commented Dec 12, 2023

@thomshutt Let me rebase, but I seem to recall this not solving the problem it was supposed to

So... this shouldn't be necessary. `protoc` is needed to build the files
in `net` like `net/lp_rpc.pb.go`. Those files are committed to the repo;
`make` shouldn't be rebuilding them. And yet, every so often, we get an
error on build that [looks like this](https://github.com/livepeer/go-livepeer/actions/runs/6630250258/job/18011282601?pr=2886):

```
protoc -I=. --go_out=plugins=grpc:. net/lp_rpc.proto
/bin/bash: line 1: protoc: command not found
make: *** [Makefile:7: net/lp_rpc.pb.go] Error 127
Error: Process completed with exit code 2.
```

I don't know why that happens. It doesn't happen once you rebuild. But...
regenerating those files is harmless, I guess, so this will stop that
for everybody forever. IDK.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants