You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, common refers to another repo in our organization containing a set of common protobuf files, and google is well-known Google protobufs that we don't have locally at all.
The protofetch.toml file for my project looks like:
When I run protobuf fetch, protofetch is able to successfully pull protofetch files from the G repo; but it is not able to discover that the import "common/v1/common.proto" lines in those files correspond to protobuf files contained in the common repo, despite the transitive = true flag. Instead, protofetch looks for those common protobuf within the G repo and exits with an error when it can't find them. I'm also having trouble understanding how the prune and transitive options are intended to be used from the README documentation.
Additionally, I also can't see any way to tell protofetch to avoid trying to find the google protobufs itself at all. Our protobuf-building code is capable of fetching those from Google itself, so it would be fine if protofetch could completely ignore them, rather than trying and failing to find them and then exiting with an error.
The text was updated successfully, but these errors were encountered:
Transitive and prune are poorly designed and confusing. They need to be re-implemented. For the case you are mentioning I don't think you need to use either
My organization has a number of protobuf files in repo
G
of the form:Here,
common
refers to another repo in our organization containing a set of common protobuf files, andgoogle
is well-known Google protobufs that we don't have locally at all.The
protofetch.toml
file for my project looks like:When I run
protobuf fetch
, protofetch is able to successfully pull protofetch files from theG
repo; but it is not able to discover that theimport "common/v1/common.proto"
lines in those files correspond to protobuf files contained in thecommon
repo, despite thetransitive = true
flag. Instead,protofetch
looks for thosecommon
protobuf within theG
repo and exits with an error when it can't find them. I'm also having trouble understanding how theprune
andtransitive
options are intended to be used from the README documentation.Additionally, I also can't see any way to tell protofetch to avoid trying to find the
google
protobufs itself at all. Our protobuf-building code is capable of fetching those from Google itself, so it would be fine if protofetch could completely ignore them, rather than trying and failing to find them and then exiting with an error.The text was updated successfully, but these errors were encountered: