Example: In a project with protobuffers, how can I require that when the package is go get'd, the protobuffers are compiled before attempting to build?
Asked
Active
Viewed 413 times
0
-
2possible duplicate of [Is it possible use Go build with extra build steps?](http://stackoverflow.com/questions/27402956/is-it-possible-use-go-build-with-extra-build-steps) – JimB Jul 13 '15 at 00:45
-
if you are using protobuf I would suggest to commit generated code along with proto files. This way the library won't require protoc compiler being available on the user's machine. – kostya Jul 13 '15 at 00:59
1 Answers
0
You cannot add hook to go get
build but you could use go generate
to get protobuffers compiled when compiling your go code.

TheHippo
- 61,720
- 15
- 75
- 100