Philipp15b / go-steam

Steam's protocol in Go to allow automation of different actions on the Steam network without running an actual Steam client. Includes APIs for friends, chatting, trading, trade offers and TF2 crafting.
https://pkg.go.dev/github.com/Philipp15b/go-steam/v3
Other
387 stars 131 forks source link

Update generator for new protoc and protoc-gen-go #118

Closed Philipp15b closed 2 years ago

Philipp15b commented 3 years ago

See https://github.com/Philipp15b/go-steam/pull/117#issuecomment-827002980 and https://github.com/Philipp15b/go-steam/pull/117#issuecomment-827126492. The generator relies on an an ancient version of protoc-gen-go.

With a current version, protoc-gen-go errors:

 protoc-gen-go: unable to determine Go import path for "google/protobuf/descriptor.proto"
>
> Please specify either:
>       • a "go_package" option in the .proto source file, or
>       • a "M" argument on the command line.
>
> See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.
>
> --go_out: protoc-gen-go: Plugin failed with status code 1.
> exit status 1

The generator code (generator.go) needs to be updated to pass the "M" argument on the command line.

Tommy-42 commented 3 years ago

I opened #120 to fix this issue, If someone have a working project that want to test it out, that would be great