Closed GoogleCodeExporter closed 9 years ago
Yes, this is a known problem. There's not a good answer right now.
The current best option is to generate the .pb.go files, and check them in to
your source control in a suitable directory. The go tool will work fine with
that, and there's zero extra tools that need to be installed to be able to use
that package. Then you only have to deal with regenerating them when your
.proto files change.
Original comment by dsymo...@golang.org
on 25 Feb 2013 at 3:09
Makefiles are not deprecated in general, they are just not necessary if your
program is pure Go. There are many Makefiles in the Go repo, for instance.
Protobufs are not Go. Without building support for the protobuf tool into the
go command (which won't happen soon, if ever), make remains a good way to build
Go programs that depend on protobufs.
I disagree with David on his definition of the best option, since it
complicates development of the protobuf definition itself. But do what works
best for you.
Original comment by r@golang.org
on 25 Feb 2013 at 5:48
Original issue reported on code.google.com by
ian.sche...@gmail.com
on 25 Feb 2013 at 3:01