Closed
Description
Summary
To not install binaries on the user's local machine, use Docker for proto swagger generation.
Problem Definition
In protoc-swagger-gen.sh, we rely on a globally installed swagger-combine
binary to combine all the generated swagger files into one. This may lead to incompatible versions used by different devs on the cosmos-sdk, leading to unwanted file diff in generated files.
cosmos-sdk/scripts/protoc-swagger-gen.sh
Lines 21 to 24 in 4b529a4
Proposal
Following #7332, we should containerize swagger-combine
(maybe in the same Dockerfile as buf/protoc?), and update the following Makefile target to use Docker:
Lines 380 to 381 in 4b529a4
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate contributors tagged
- Contributor assigned/self-assigned