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

Fixes to grpc-gateway generation #30

Merged
merged 5 commits into from
Dec 4, 2017
Merged

Fixes to grpc-gateway generation #30

merged 5 commits into from
Dec 4, 2017

Conversation

mdkess
Copy link
Contributor

@mdkess mdkess commented Dec 4, 2017

grpc-gateway generation is now golang specific.

gateway files are generated in the same directory as the protobufs, which is required for imports to work.

@mdkess mdkess requested a review from mhamrah December 4, 2017 20:35
test.sh Outdated
@@ -8,7 +8,10 @@ docker build -t namely/test-protoc-all ./all
for lang in ${LANGS[@]}; do
echo "Testing language $lang"
docker run --rm -v=`pwd`:/defs namely/test-protoc-all -f test/test.proto -l $lang -i test
docker run --rm -v=`pwd`:/defs namely/test-protoc-all -d test -l $lang -o gen/dir/$lang --with-gateway
if [[ "$lang" == "go" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: remove go check and move outside of the for loop. this will test the command with and without the --with-gateway flag for go

@mdkess
Copy link
Contributor Author

mdkess commented Dec 4, 2017

how's this?

@mhamrah
Copy link
Contributor

mhamrah commented Dec 4, 2017

awesome 🥇

@mdkess mdkess merged commit 4585131 into master Dec 4, 2017
@mdkess mdkess deleted the grpc-gateway branch December 4, 2017 21:04
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.

2 participants