Skip to content

proto: file "steammessages_base.proto" has a name conflict over CMsgProtoBufHeader #124

@jannislehmann

Description

@jannislehmann

Hey!

I really enjoy working with your library. However, with the new protobuf library from Google, I am running into the following issue:

panic: proto: file "steammessages_base.proto" has a name conflict over CMsgProtoBufHeader
        previously from: "github.com/Philipp15b/go-steam/v3/csgo/protocol/protobuf"
        currently from:  "github.com/Philipp15b/go-steam/v3/protocol/protobuf"
See https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict

This seems to be caused by the default init in the protobuf packages.
Since both the csgo/protocol/protobuf and the protocol/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions