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

gRPC code gen to generate health and reflection stubs #10886

Merged

Conversation

michalszynkiewicz
Copy link
Member

fixes #10214

@boring-cyborg boring-cyborg bot added the area/dependencies Pull requests that update a dependency file label Jul 21, 2020
@michalszynkiewicz michalszynkiewicz added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Jul 21, 2020
Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Added some comments and questions.

extensions/grpc/codegen/pom.xml Outdated Show resolved Hide resolved
extensions/grpc/codegen/pom.xml Outdated Show resolved Hide resolved
if (OS.determineOS() == OS.LINUX) {
return path.replaceAll(" ", "\\ ");
} else {
return path;
Copy link
Member

Choose a reason for hiding this comment

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

spaces will work as is on Windows and macOS?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know, I don't really have a way to check.
@rsvoboda reported that it doesn't work on linux

Copy link
Member Author

Choose a reason for hiding this comment

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

To shed some more light on it, the paths are passed as separate arguments in the ProcessBuilder's command, so they should be okay without backslashes before spaces. It's protoc that doesn't handle them properly on Linux. I don't know about other systems.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe @cescoffier can check on macOS if you can put together a test case?

Copy link
Member Author

Choose a reason for hiding this comment

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

@cescoffier checked and this version (without \ before spaces) worked for him on Mac

extensions/grpc/stubs/pom.xml Outdated Show resolved Hide resolved
@michalszynkiewicz michalszynkiewicz removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Jul 21, 2020
@michalszynkiewicz
Copy link
Member Author

I updated the doc by the way

@michalszynkiewicz michalszynkiewicz requested a review from gsmet July 22, 2020 08:27
Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Added some small comments on the doc.

docs/src/main/asciidoc/grpc-getting-started.adoc Outdated Show resolved Hide resolved
if (OS.determineOS() == OS.LINUX) {
return path.replaceAll(" ", "\\ ");
} else {
return path;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe @cescoffier can check on macOS if you can put together a test case?

@gsmet gsmet added this to the 1.7.0 - master milestone Jul 23, 2020
@boring-cyborg boring-cyborg bot added area/core area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/gradle Gradle area/maven labels Jul 23, 2020
@michalszynkiewicz michalszynkiewicz merged commit 05a0ec5 into quarkusio:master Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core area/dependencies Pull requests that update a dependency file area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/documentation area/gradle Gradle area/grpc gRPC area/maven
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quarkus project compilation fails when && is present in path - e.g. 'RHEL8 && large'
3 participants