Protobuf/grpc integration with Pants 2.12.0 question 🧵
I’ve a need to use
I instructed Pants to use the specific protoc version as documented here
But it looks like I need to provide the
as well. Which is a bit tedious.
Is there a better way to accomplish this?
Can Pants not use the same protoc version as the
dependency specified in the requirements?
06/30/2022, 8:49 PM
Which language (python/scala/java)?
06/30/2022, 8:50 PM
Sorry, forgot to mention
06/30/2022, 8:55 PM
Passing the version from a resolve through to the tool config is non-trivial to do given how the code is currently written. (The config for the
binary is also used for other languages in Pants.) And the notion of “resolve” and tool config are separate in the code.
A more tractable solution would be for Pants to contain the digests for most recent versions of
for the default value of
which would avoid the user having to fill it in.
That was the solution used for
known versions in a recent PR.
06/30/2022, 8:59 PM
Thanks. That makes sense
Also, the recent versioning change will make it difficult to tie the protoc version with language specific protobuf lib version