-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
All Makefile proto commands use Docker #7931
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7931 +/- ##
=======================================
Coverage 54.17% 54.17%
=======================================
Files 612 612
Lines 38999 38999
=======================================
Hits 21129 21129
Misses 15697 15697
Partials 2173 2173 |
|
||
# This generates the SDK's custom wrapper for google.protobuf.Any. It should only be run manually when needed | ||
proto-gen-any: | ||
@./scripts/protocgen-any.sh | ||
docker run -v $(shell pwd):/workspace --workdir /workspace tendermintdev/sdk-proto-gen sh ./scripts/protocgen-any.sh | ||
|
||
proto-swagger-gen: | ||
@./scripts/protoc-swagger-gen.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, this one still uses local protoc, because it relies to swagger-combine
. I created #7933 to track this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks that we've got proto linting :)
I've merged this in by hand as automerge does not work when there are changes in |
Description
follow-up: #7332
follow-up: #7901 (comment)
closes: #7851
ref: #7893 (comment)
Problem
Too many user errors when generating from proto files (wrong buf, protoc, protoc-gen-gocosmos...). It has been decided in #7332 to use Docker
However, some Makefile commands still use the local binaries.
Proposed Solution
To test the commands: I ran all the
proto-*
commands, and the output is committed in this PR. It'd be nice if someone would run the commands again, to make sure there's no file diff.Additional Notes
If you absolutely don't want to run Docker, then you should 1/ make sure your tooling is correctly installed locally, with the same versions as those in the Dockerfile and 2/ run the scripts directly, e.g.
$ ./scripts/protocgen.sh
.This should be a niche case for advanced users, so I prefer to remove this use case from the Makefile.
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes