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

fix(build): Match namespace code with other generated packages #472

Merged

Conversation

tylerhawkes
Copy link
Contributor

Motivation

I submitted a pr earlier that made it so that when prost supports protobufs without a package spec that tonic will already support it. Because prost doesn't actually support the feature I can't see a way to test the functionality. I just tried spinning up a server and had an issue with the implementation of the NamedService trait in hyper where it wasn't respecting the package spec. This is a fix for that.

Solution

If the package is empty then don't add a preceding . to the namespace.

Copy link
Member

@LucioFranco LucioFranco left a comment

Choose a reason for hiding this comment

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

Thanks!

@LucioFranco LucioFranco changed the title Fixes the namespace code to match the other generated package code fix(build): Match namespace code with other generated packages Oct 7, 2020
@LucioFranco LucioFranco merged commit 1b03ece into hyperium:master Oct 7, 2020
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