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

RPC Name Conflict with Client Generated Code #747

Closed
SkamDart opened this issue Aug 20, 2021 · 2 comments
Closed

RPC Name Conflict with Client Generated Code #747

SkamDart opened this issue Aug 20, 2021 · 2 comments
Labels
A-build C-bug Category: Something isn't working
Milestone

Comments

@SkamDart
Copy link
Contributor

Bug Report

Version

└── tonic v0.5.2
└── tonic-build v0.5.2

Platform

Linux chowder 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Crates

tonic-build

Description

Service name connect creates conflict with generated client connect function.

Sample proto

syntax = "proto3";

package request;

message ConnectRequest {}

message ConnectResponse {}

service Connector {
    rpc Connect(ConnectRequest) returns (ConnectResponse) {}
}

Full repro

A fix might be to check the generated service definitions for reserved identifiers like tokio/prost does.

@davidpdrsn davidpdrsn added A-build C-bug Category: Something isn't working labels Aug 20, 2021
@LucioFranco LucioFranco modified the milestones: 0.6, 0.7 Oct 13, 2021
@LucioFranco
Copy link
Member

To work around this you should be able to just disable the transport feature of tonic-build.

@chancila
Copy link

chancila commented Jul 13, 2022

@LucioFranco isn't it more desirable to just fix the issue instead of using this workaround? what's the reservation for #749 or just generally fixing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build C-bug Category: Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants