-
Notifications
You must be signed in to change notification settings - Fork 132
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
proto: file "steammessages_base.proto" has a name conflict over CMsgProtoBufHeader #124
Comments
Hi! That seems to be a serious problem, thanks for reporting. Since there are actually multiple declarations of e.g. It might be easier to pass different package names to the generator (https://developers.google.com/protocol-buffers/docs/reference/go-generated#package). This may have some side-effects which I'm not sure I understand completely, but it should fix the naming conflict. What do you think? |
First of all, thanks for the quick follow-up. Changing the package names should at least work and would definitely be worth a try. |
Just a quick update. I have tested my application with the From that experiment, I think, changing the package names, should not result in side-effects actually. So this should be worth a try. |
Hey!
I really enjoy working with your library. However, with the new protobuf library from Google, I am running into the following issue:
This seems to be caused by the default
init
in the protobuf packages.Since both the
csgo/protocol/protobuf
and theprotocol/protobuf
package declare the same base protobufs, there seems to be a conflict.I am only importing
github.com/Philipp15b/go-steam/v3/csgo/protocol/protobuf
in my code. But I would guess that the other package is being imported automatically by a package in the background.Does anyone have a idea how to fix that issue? Merging the protobufs into one directory would be a solution, but not the prettiest solution.
Update: I guess that a fix could be implemented in this projects generator. We should try to use the same base protobufs and not duplicate the definitions.
The text was updated successfully, but these errors were encountered: