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?
You cannot add hook to go get
build but you could use go generate
to get protobuffers compiled when compiling your go code.